Uplaćeno Docs
sr en

API reference

Payments

Recorded inbound payments.

POST /v1/prijem-ingest

Upload: PDF izvod

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: prijem: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).

Responses

201 Statement received and processed
409 Duplikat — kod = izvod_vec_obradjen, polje prijem_ingest_id
422 Validation failed
default Unexpected error

Example (curl)

curl -sS -X POST "https://api.uplaceno.rs/api/v1/prijem-ingest" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
GET /v1/uplate

List: payments

Returns: List payments. Allowed roles: per role/scope; scope: uplate:citanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: uplate: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
statusquerynoenum: primljena | uparena | delimicno_uparena | neuparena | zanemarena
izvorquerynoenum: email | rucno | sandbox
poziv_na_brojquerynostring
odquerynostring (date-time)
doquerynostring (date-time)

Responses

200 Success
{
  "objekat": "lista",
  "podaci": [
    {
      "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
      "objekat": "uplata",
      "izvor": "email",
      "iznos": "12000.00",
      "proknjizeno": "2026-11-01T08:00:00Z",
      "status": "primljena",
      "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/uplate" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
POST /v1/uplate

Create: payments

Creates: ili pokrece: Kreiranje: Uplate. Allowed roles: per role/scope; scope: uplate:pisanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: uplate: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).
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
bankovni_racun_idstring (uuid)yesUUID v7
iznosstringyesAmount in RSD as a decimal string with 2 fraction digits; currency is always RSD (no currency field)
proknjizenostring (date-time)yes
platilacstringno
model_pozivastringno
poziv_na_brojstringno
svrhastringno
profaktura_idstring (uuid)noWhen set, immediately creates a manual match
napomenastringno

Responses

201 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "uplata",
  "izvor": "email",
  "iznos": "12000.00",
  "proknjizeno": "2026-11-01T08:00:00Z",
  "status": "primljena",
  "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
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/uplate" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"bankovni_racun_id":"0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01","iznos":"12000.00","proknjizeno":"2026-11-01T08:00:00Z"}'
GET /v1/uplate/{id}

Get: payments

Returns: Get payments. Allowed roles: per role/scope; scope: uplate:citanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: uplate: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": "uplata",
  "izvor": "email",
  "iznos": "12000.00",
  "proknjizeno": "2026-11-01T08:00:00Z",
  "status": "primljena",
  "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/uplate/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
PATCH /v1/uplate/{id}

Update: payments

Partially updates: Update payments. Allowed roles: per role/scope; scope: uplate:pisanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: uplate: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
napomenastring,nullno
statusenum: zanemarenanoSamo unmatched → ignored

Responses

200 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "uplata",
  "izvor": "email",
  "iznos": "12000.00",
  "proknjizeno": "2026-11-01T08:00:00Z",
  "status": "primljena",
  "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/uplate/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -d '{"napomena":"primer","status":"zanemarena"}'