Privremeno (1.4.2), ceka potvrdu. Sabloni organization iz X-Org-Id.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: sabloni: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 sablon. Prvi sablon za vrstu dokumenta postaje podrazumevani.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: sabloni: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
naziv
string
yes
vrsta_dokumenta
VrstaDokumenta
yes
Vrsta dokumenta za sablon. predracun nije poreska isprava.
naslov
string
no
Za predracun: Predracun ili Zahtev za placanje
boje.primarna
string
no
boje.sekundarna
string
no
boje.akcenat
string,null
no
boje.tekst
string
no
font
enum: inter | roboto | noto_serif
no
polja
niz (SablonPolje)
no
Lista polja i njihov redosled
pozicija_qr
PozicijaQr
no
Pozicija IPS QR koda; skriveno nije dozvoljeno za predracun.
margina_mm
integer
no
Margina stranice u milimetrima. Podrazumevano 12. Pisati sme samo plan Napredni.
napomena
string,null
no
Za predracun server uvek dodaje Ovo nije poreska isprava
Privremeno (1.4.2), ceka potvrdu. Podrazumevani sablon ne moze da se obrise (409 sablon_u_upotrebi).
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: sabloni: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).
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. Menja sablon i povecava verzija. Vec izdati dokumenti zadrzavaju verziju sablona sa kojom su izdati.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: sabloni: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
Request body
Field
Type
Required
Description
naziv
string
no
naslov
string
no
Za predracun: Predracun ili Zahtev za placanje
boje.primarna
string
no
boje.sekundarna
string
no
boje.akcenat
string,null
no
boje.tekst
string
no
font
enum: inter | roboto | noto_serif
no
polja
niz (SablonPolje)
no
Lista polja i njihov redosled
pozicija_qr
PozicijaQr
no
Pozicija IPS QR koda; skriveno nije dozvoljeno za predracun.
margina_mm
integer
no
Margina stranice u milimetrima. Podrazumevano 12. Pisati sme samo plan Napredni.
napomena
string,null
no
Za predracun server uvek dodaje Ovo nije poreska isprava
Privremeno (1.4.2), ceka potvrdu. Uklanja logo iz R2.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: sabloni: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).
Privremeno (1.4.2), ceka potvrdu. multipart/form-data, polje logo. Cuva se u R2 (logo_url). Pogresan sadrzaj: 422 nevazeci_logo.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: sabloni: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).
Privremeno (1.4.2), ceka potvrdu. Renderuje sablon sa primerom podataka (ili primer_podataka) i opcionim nesacuvanim izmene. Returns application/pdf ili text/html po format. Ne menja stanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: sabloni: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
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
format
enum: pdf | html
no
izmene.naziv
string
no
izmene.naslov
string
no
Za predracun: Predracun ili Zahtev za placanje
izmene.boje.primarna
string
no
izmene.boje.sekundarna
string
no
izmene.boje.akcenat
string,null
no
izmene.boje.tekst
string
no
izmene.font
enum: inter | roboto | noto_serif
no
izmene.polja
niz (SablonPolje)
no
Lista polja i njihov redosled
izmene.pozicija_qr
PozicijaQr
no
Pozicija IPS QR koda; skriveno nije dozvoljeno za predracun.
izmene.margina_mm
integer
no
Margina stranice u milimetrima. Podrazumevano 12. Pisati sme samo plan Napredni.
izmene.napomena
string,null
no
Za predracun server uvek dodaje Ovo nije poreska isprava
izmene.podnozje
string,null
no
izmene.jezik
enum: sr-Latn | sr-Cyrl
no
primer_podataka
object
no
Primer podataka (kupac, stavke, iznos); bez njega server koristi ugradjeni primer
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. Postavlja podrazumevani sablon za vrstu dokumenta (predracun, faktura, e_faktura, fiskalni_racun). vrsta_dokumenta mora da se poklapa sa sablonom.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: sabloni: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).
Request body
Field
Type
Required
Description
vrsta_dokumenta
VrstaDokumenta
yes
Vrsta dokumenta za sablon. predracun nije poreska isprava.