Uplaćeno Docs
sr en

API reference

Invitations

Email invitations to join an organization.

GET /v1/organizacije/{organizacija_id}/pozivnice

List invitations

Returns: List invitations. Allowed roles: per role/scope; scope: clanovi:citanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: clanovi:citanje
  • API key (Authorization: Bearer upl_live_…)

Parameters

NameInRequiredTypeDescription
organizacija_idpathyesstring (uuid)
limitquerynointeger
kursorquerynostringOpaque cursor from sledeci_kursor

Responses

200 Success
{
  "objekat": "lista",
  "podaci": [
    {
      "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
      "objekat": "pozivnica",
      "email": "knjigovodja@primer.rs",
      "uloga_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
      "status": "na_cekanju",
      "istice": "2026-11-01T08:00:00Z",
      "kreirano": "2026-11-01T08:00:00Z"
    }
  ],
  "ima_jos": true,
  "sledeci_kursor": "eyJpZCI6IjAxOTJlNGExIn0"
}
400 Bad request
401 Missing or invalid token/key
403 Nedovoljna prava: zabranjeno, nedovoljan_opseg, funkcija_nije_u_planu, organization
404 Not found (or not in this organization/environment)
429 Too many requests
default Unexpected error

Example (curl)

curl -sS -X GET "https://api.uplaceno.rs/api/v1/organizacije/{organizacija_id}/pozivnice" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
POST /v1/organizacije/{organizacija_id}/pozivnice

Send invitation

7-day expiry. 402 dostignut_limit_mesta when all seats are taken (active + pending invitations). Basic plan: 1 seat = owner, so invites are effectively unavailable.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: clanovi:pisanje
  • API key (Authorization: Bearer upl_live_…)

Parameters

NameInRequiredTypeDescription
organizacija_idpathyesstring (uuid)
Idempotency-KeyheaderyesstringRequired on every POST. Response cached 24 h (KV); same key + different body → 409 ponovljen_kljuc_idempotentnosti. Response includes Idempotent-Replayed: true on replay. Exceptions (optional key): /v1/nalog/*, /v1/nalog/pristupni-kljucevi/*, /v1/ja/sesije/opozovi-ostale, public /plati/*.

Request body

FieldTypeRequiredDescription
emailstring (email)yes
uloga_idstring (uuid)yesUUID v7

Responses

201 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "pozivnica",
  "email": "knjigovodja@primer.rs",
  "uloga_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "status": "na_cekanju",
  "istice": "2026-11-01T08:00:00Z",
  "kreirano": "2026-11-01T08:00:00Z"
}
400 Bad request
401 Missing or invalid token/key
402 Limit paketa: limit_paketa (proforma i korisnici); ostalo: dostignut_limit_organizacija, dostignut_limit_bankovnih_racuna
403 Nedovoljna prava: zabranjeno, nedovoljan_opseg, funkcija_nije_u_planu, organization
404 Not found (or not in this organization/environment)
409 Konflikt: konflikt, konflikt_verzije, nedozvoljen_prelaz_statusa, ponovljen_kljuc_idempotentnosti, opseg_brojeva_potrosen, duplikat_potvrde
422 Validation failed
429 Too many requests
default Unexpected error

Example (curl)

curl -sS -X POST "https://api.uplaceno.rs/api/v1/organizacije/{organizacija_id}/pozivnice" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"email":"demo@uplaceno.rs","uloga_id":"0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01"}'
DELETE /v1/organizacije/{organizacija_id}/pozivnice/{id}

Revoke invitation

Deletes or revokes: Revoke invitation. Allowed roles: per role/scope; scope: clanovi:pisanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: clanovi:pisanje
  • API key (Authorization: Bearer upl_live_…)

Parameters

NameInRequiredTypeDescription
organizacija_idpathyesstring (uuid)
idpathyesstring (uuid)UUID v7

Responses

204 Success, no content
401 Missing or invalid token/key
403 Nedovoljna prava: zabranjeno, nedovoljan_opseg, funkcija_nije_u_planu, organization
404 Not found (or not in this organization/environment)
429 Too many requests
default Unexpected error

Example (curl)

curl -sS -X DELETE "https://api.uplaceno.rs/api/v1/organizacije/{organizacija_id}/pozivnice/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"