Uplaćeno Docs
sr en

API reference

Inbound email

Inbound statement email addresses.

GET /v1/adrese-za-prijem

List: inbound email

Returns: List inbound email. Allowed roles: per role/scope; scope: prijem:citanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: prijem: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": "adresa_za_prijem",
      "adresa": "lizzard-x7k2@in.uplaceno.rs",
      "bankovni_racun_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
      "banka": "intesa",
      "aktivan": true,
      "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/adrese-za-prijem" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
POST /v1/adrese-za-prijem

Create: inbound email

Creates: ili pokrece: Kreiranje: Email ingest. Allowed roles: per role/scope; scope: prijem:pisanje.

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).
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
bankaenum: intesa | otp | raiffeisenyesMVP parseri
predlog_lokalnog_delastringnoOpcioni predlog lokalnog dela samo pri kreiranju. Posle upisa adresa je nepromenljiva.
dozvoljeni_posiljaociniz (string)no

Responses

201 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "adresa_za_prijem",
  "adresa": "lizzard-x7k2@in.uplaceno.rs",
  "bankovni_racun_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "banka": "intesa",
  "aktivan": true,
  "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/adrese-za-prijem" \
  -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","banka":"intesa"}'
DELETE /v1/adrese-za-prijem/{id}

Delete: inbound email

Deletes or revokes: Delete inbound email. Allowed roles: per role/scope; scope: prijem:pisanje.

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).
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/adrese-za-prijem/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
GET /v1/adrese-za-prijem/{id}

Get: inbound email

Returns: Get inbound email. Allowed roles: per role/scope; scope: prijem:citanje.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: prijem: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": "adresa_za_prijem",
  "adresa": "lizzard-x7k2@in.uplaceno.rs",
  "bankovni_racun_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "banka": "intesa",
  "aktivan": true,
  "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/adrese-za-prijem/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"
PATCH /v1/adrese-za-prijem/{id}

Update: inbound email

Partially updates: Update inbound email. Allowed roles: per role/scope; scope: prijem:pisanje.

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).
idpathyesstring (uuid)UUID v7

Request body

FieldTypeRequiredDescription
aktivanbooleanno
dozvoljeni_posiljaociniz (string)no

Responses

200 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "adresa_za_prijem",
  "adresa": "lizzard-x7k2@in.uplaceno.rs",
  "bankovni_racun_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "banka": "intesa",
  "aktivan": true,
  "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/adrese-za-prijem/{id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -d '{"aktivan":true,"dozvoljeni_posiljaoci":["primer"]}'
POST /v1/adrese-za-prijem/{id}/test-email

Test prosledjivanja mejla banke

Vezano za postojecu adresu za prijem (banka + bank racun). Korisnik prosledi obavestenje banke na adresa_za_prosledjivanje; test istice posle 30 min. Uspesan test (parsiran) postavlja status_verifikacije=verifikovana i zavrsava korak banka. Najvise 1 aktivan test po adresi (409 konflikt).

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).
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/*.

Responses

201 Success
{
  "objekat": "test_email_banke",
  "test_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "adresa_za_prosledjivanje": "lizzard-x7k2@in.uplaceno.rs",
  "status": "ceka",
  "istice": "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/adrese-za-prijem/{id}/test-email" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)"
GET /v1/adrese-za-prijem/{id}/test-email/{test_id}

Status testa mejla banke

Frontend poll-uje svake 3 s dok status nije parsiran ili greska.

Authentication and scopes

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

Responses

200 Success
{
  "objekat": "test_email_banke",
  "test_id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "status": "ceka"
}
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/adrese-za-prijem/{id}/test-email/{test_id}" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json"