Uplaćeno Docs
sr en

API reference

Numbering

Invoice number pools and model-97 payment references.

GET /v1/numeracije

List: numbering

Returns: List numbering. Allowed roles: per role/scope; scope: organizacije:citanje.

Authentication and scopes

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

Parameters

NameInRequiredTypeDescription
X-Organizacija-Idheadernostring (uuid)Active organization. Required for user OIDC tokens with multiple orgs; for API key/client credentials the org is in the credential (header must match or be omitted).
limitquerynointeger
kursorquerynostringOpaque cursor from sledeci_kursor

Responses

200 Success
{
  "objekat": "lista",
  "podaci": [
    {
      "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
      "objekat": "numeracija",
      "serija": "default",
      "prefiks": "PF-",
      "pocetni_broj": 1,
      "najveci_dodeljeni": 123,
      "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
429 Too many requests
default Unexpected error

Example (curl)

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

Get: numbering

Returns: Get numbering. Allowed roles: per role/scope; scope: organizacije:citanje.

Authentication and scopes

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

Parameters

NameInRequiredTypeDescription
X-Organizacija-Idheadernostring (uuid)Active organization. Required for user OIDC tokens with multiple orgs; for API key/client credentials the org is in the credential (header must match or be omitted).
idpathyesstring (uuid)UUID v7

Responses

200 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "numeracija",
  "serija": "default",
  "prefiks": "PF-",
  "pocetni_broj": 1,
  "najveci_dodeljeni": 123,
  "kreirano": "2026-11-01T08:00:00Z"
}
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/numeracije/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
PATCH /v1/numeracije/{id}

Update: numbering

Partially updates: Update numbering. Allowed roles: per role/scope; scope: organizacije:pisanje.

Authentication and scopes

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

Parameters

NameInRequiredTypeDescription
X-Organizacija-Idheadernostring (uuid)Active organization. Required for user OIDC tokens with multiple orgs; for API key/client credentials the org is in the credential (header must match or be omitted).
idpathyesstring (uuid)UUID v7

Request body

FieldTypeRequiredDescription
prefiksstringno
pocetni_brojintegernoAllowed only before the first issued proforma in the sequence

Responses

200 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "numeracija",
  "serija": "default",
  "prefiks": "PF-",
  "pocetni_broj": 1,
  "najveci_dodeljeni": 123,
  "kreirano": "2026-11-01T08:00:00Z"
}
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)
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 PATCH "https://api.uplaceno.rs/api/v1/numeracije/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -d '{"prefiks":"primer","pocetni_broj":1}'