Uplaćeno Docs
sr en

API reference

PDF payment proofs

Customer-uploaded PDF payment proofs.

GET /v1/potvrde-uplate

List: PDF payment proofs

Returns: List PDF payment proofs. Allowed roles: per role/scope; scope: potvrde:citanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: potvrde: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: otpremljena | u_proveri | prihvacena | odbijena | istekla | potvrdjena
profaktura_idquerynostring (uuid)

Responses

200 Success
{
  "objekat": "lista",
  "podaci": [
    {
      "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
      "objekat": "potvrda_uplate",
      "profaktura_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
      "status": "otpremljena",
      "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/potvrde-uplate" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
DELETE /v1/potvrde-uplate/{id}

Delete: PDF payment proofs

Deletes the R2 file (GDPR); proforma status is recalculated.

Authentication and scopes

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

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)
409 Konflikt: konflikt, konflikt_verzije, nedozvoljen_prelaz_statusa, ponovljen_kljuc_idempotentnosti, opseg_brojeva_potrosen, duplikat_potvrde
429 Too many requests
default Unexpected error

Example (curl)

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

Get: PDF payment proofs

Returns: Get PDF payment proofs. Allowed roles: per role/scope; scope: potvrde:citanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: potvrde: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": "potvrda_uplate",
  "profaktura_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "status": "otpremljena",
  "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/potvrde-uplate/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
POST /v1/potvrde-uplate/{id}/odbij

Odbijanje potvrde

Reject proof. No digital-signature verification; decision uses extracted data (izvuceno, provere) and payment matching.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: potvrde: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
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
razlogstringno
sati_privremenointegernoSamo za approve

Responses

200 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "potvrda_uplate",
  "profaktura_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "status": "otpremljena",
  "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)
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/potvrde-uplate/{id}/odbij" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"razlog":"primer","sati_privremeno":48}'
POST /v1/potvrde-uplate/{id}/odobri

manual prihvatanje

Manual approval → proforma privremeno_placena for 48–72 h (never placeno without bank confirmation). No digital-signature check; uses extracted data and payment matching.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: potvrde: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
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
razlogstringno
sati_privremenointegernoSamo za approve

Responses

200 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "potvrda_uplate",
  "profaktura_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "status": "otpremljena",
  "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)
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/potvrde-uplate/{id}/odobri" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"razlog":"primer","sati_privremeno":48}'