Returns: List payment requests. Allowed roles: per role/scope; scope: zahtevi_za_placanje:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: zahtevi_za_placanje:citanje
API key (Authorization: Bearer upl_live_…)
Parameters
Name
In
Required
Type
Description
X-Organizacija-Id
header
no
string (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).
Creates a payment request and ATOMICALLY issues a proforma: smallest free number 0001–9999 (Durable Object per org+env), model-97 payment reference, PDF + IPS QR asynchronously (queue), customer email when posalji_mejl.
Errors: 402 limit_paketa (monthly cap, Basic 50; sandbox does not consume quota), 409 opseg_brojeva_potrosen, 403 organizacija_samo_za_citanje, 409 ponovljen_kljuc_idempotentnosti.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: zahtevi_za_placanje:pisanje
API key (Authorization: Bearer upl_live_…)
Parameters
Name
In
Required
Type
Description
X-Organizacija-Id
header
no
string (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-Key
header
yes
string
Required 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
Field
Type
Required
Description
kupac_id
string (uuid)
no
Existing customer (or inline kupac)
kupac.tip
enum: fizicko_lice | pravno_lice
no
Zastarelo (1.4.2): isto kao tip_kupca; server prihvata oba
kupac.naziv
string
yes
kupac.email
string,null (email)
no
kupac.telefon
string,null
no
kupac.pib
string,null
no
kupac.maticni_broj
string,null
no
kupac.jbkjs
string,null
no
JBKJS (javni sektor); ako postoji, SEF salje sa sendToCir=Yes
kupac.adresa
unija
no
kupac.eksterna_oznaka
string,null
no
kupac.tip_kupca
TipKupca
yes
Privremeno (1.4.2), ceka potvrdu. pravno_lice (preduzetnik ili firma) zahteva pib (9 cifara) i maticni_broj (8 cifara); nedostaju: 422 nedostaju_podaci_pravnog_lica.
stavke
niz (StavkaUnos)
yes
bankovni_racun_id
string (uuid)
no
Default: default bank account
eksterna_oznaka
string
no
vazi_do
string (date)
no
rok_placanja
string (date)
no
napomena
string
no
posalji_mejl
boolean
no
Automatically emails the customer with the /pay link
Allowed only when the proforma has no payments; equivalent to proforma cancel (number returns to the pool).
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: zahtevi_za_placanje:pisanje
API key (Authorization: Bearer upl_live_…)
Parameters
Name
In
Required
Type
Description
X-Organizacija-Id
header
no
string (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).
Returns: Get payment requests. Allowed roles: per role/scope; scope: zahtevi_za_placanje:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: zahtevi_za_placanje:citanje
API key (Authorization: Bearer upl_live_…)
Parameters
Name
In
Required
Type
Description
X-Organizacija-Id
header
no
string (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).
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).