Proforma invoices (predračun) before fiscal documents.
GET/v1/profakture
List: proformas
Returns: List proformas. Allowed roles: per role/scope; scope: profakture:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
Privremeno (1.4.2), ceka potvrdu. Creates i izdaje predracun (isto kao POST /v1/zahtevi-za-placanje, bez objekta zahteva). Dodeljuje najmanji slobodan broj i poziv na broj (model 97). Pravilo izdavanja: racun/faktura se izdaje TEK POSLE uparene uplate. Pre uplate postoji samo predracun (proforma, naslov Predracun ili Zahtev za placanje) koji NIJE poreska isprava i nosi napomenu Ovo nije poreska isprava. Nacin izdavanja se IZVODI (klijent ga ne salje) iz poreski_status i u_fiskalizaciji organization i tip_kupca:
| organization | Kupac (tip_kupca) | nacini_izdavanja |
|---|---|---|
| pdv_obveznik | pravno_lice | e_faktura_sef |
| pdv_obveznik | fizicko_lice | fiskalni_racun |
| pausalac, u_fiskalizaciji=false | bilo koji | pdf_racun |
| pausalac, u_fiskalizaciji=true | bilo koji | pdf_racun, fiskalni_racun |
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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
metapodaci
Metapodaci
no
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.
Only in nacrt status; otherwise use cancel (409 nedozvoljen_prelaz_statusa).
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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 proformas. Allowed roles: per role/scope; scope: profakture:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
Partially updates: Update proformas. Allowed roles: per role/scope; scope: profakture:pisanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
In MVP proformas issue automatically; this endpoint is for drafts (e.g. when issue failed). Assigns a number.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
id
path
yes
string (uuid)
UUID v7
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/*.
Without payments: number returns to the pool (cycle+1). With a payment/approved proof: number is locked → 409 nedozvoljen_prelaz_statusa.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
id
path
yes
string (uuid)
UUID v7
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/*.
Returns: proforma PDF (current or ?version=). Allowed roles: per role/scope; scope: profakture:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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: ili pokrece: Ponovno izdavanje. Allowed roles: per role/scope; scope: profakture:pisanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
id
path
yes
string (uuid)
UUID v7
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/*.
Creates: ili pokrece: Slanje mejlom kupcu. Allowed roles: per role/scope; scope: profakture:pisanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
id
path
yes
string (uuid)
UUID v7
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/*.
Privremeno (1.4.2), ceka potvrdu. PDF ili HTML konkretnog predracuna sa primenjenim sablonom. Uvek sadrzi Ovo nije poreska isprava.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
id
path
yes
string (uuid)
UUID v7
format
query
no
enum: pdf | html
sablon_id
query
no
string (uuid)
Opciono: drugi sablon (inace podrazumevani za vrstu dokumenta)
Returns: IPS QR kod (NBS, tag RO:97…). Allowed roles: per role/scope; scope: profakture:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).
Returns: Istorija verzija. Allowed roles: per role/scope; scope: profakture:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: profakture: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).