Customers (buyers) referenced on proformas and invoices.
GET/v1/kupci
List: customers
Returns: List customers. Allowed roles: per role/scope; scope: kupci:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: kupci: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: Kreiranje: Kupci. Allowed roles: per role/scope; scope: kupci:pisanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: kupci: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
tip
enum: fizicko_lice | pravno_lice
no
Zastarelo (1.4.2): isto kao tip_kupca; server prihvata oba
naziv
string
yes
email
string,null (email)
no
telefon
string,null
no
pib
string,null
no
maticni_broj
string,null
no
jbkjs
string,null
no
JBKJS (javni sektor); ako postoji, SEF salje sa sendToCir=Yes
adresa
unija
no
eksterna_oznaka
string,null
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.
Deletes or revokes: Delete customers. Allowed roles: per role/scope; scope: kupci:pisanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: kupci: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 customers. Allowed roles: per role/scope; scope: kupci:citanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: kupci: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 customers. Allowed roles: per role/scope; scope: kupci:pisanje.
Authentication and scopes
Session (HttpOnly cookie)
OAuth2: kupci: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
tip
enum: fizicko_lice | pravno_lice
no
Zastarelo (1.4.2): isto kao tip_kupca; server prihvata oba
naziv
string
no
email
string,null (email)
no
telefon
string,null
no
pib
string,null
no
maticni_broj
string,null
no
adresa
unija
no
eksterna_oznaka
string,null
no
tip_kupca
TipKupca
no
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.