Pređi na sadržaj
Referenca

Obveznici i prodajna mesta

Identifikatori obveznika i poslovnog prostora koje svaki fiskalni zahtev nosi. Kreiraju se u portalu, API ih čita.

4 operacija

Lista obveznika

get/v1/taxpayers

Scopetenant:read

Obveznici (pravna lica) organizacije kojoj kredencijal pripada, samo u okruženju kredencijala: sandbox ključ vidi sandbox obveznike, produkcioni produkcione.

Beleške iz ugovora (OpenAPI, engleski)

Scoped to the caller's environment: a machine credential sees only the taxpayers of its own environment, a portal user sees both unless the organization hides its sandbox data.

Odgovori

listTaxpayers: Odgovori
200OKTaxpayersTaxpayerPage
400Bad RequestThe command violates a Boka or fiscal ruleErrorCode
Odgovor: TaxpayerPage

Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.

listTaxpayers: Odgovor
PoljeOpis
itemsobaveznoTip: array<Taxpayer>
idobaveznoTip: uuid
taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

legalNameobaveznoTip: string
environmentobaveznoTip: FiscalEnvironmentThe Stripe-style fiscal environment. Machine credentials carry exactly one environment and may only use security elements of that environment; sandbox elements are BOKA-assigned and route to the TaxCore sandbox, production elements are the customer's own. Taxpayers and business premises carry the environment too: the BOKA sandbox taxpayer and premise created by a pool assignment are sandbox, everything a human registers is production, and setup registered by a machine credential belongs to that credential's environment. A premise inherits its taxpayer's environment and a security element can only be bound to a premise of its own.

Vrednostisandboxproduction

statusobaveznoTip: string

Vrednostiactivesuspendedclosed

registrationNumberopcionoTip: string | null (može biti null)Serbian registration number (matični broj), usually prefilled from the company registry lookup.

pattern ^[0-9]{8}$

addressopcionoTip: string | null (može biti null)

max 300

cityopcionoTip: string | null (može biti null)

max 100

municipalityopcionoTip: string | null (može biti null)

max 100

activityCodeopcionoTip: string | null (može biti null)

pattern ^[0-9]{4}$

activityNameopcionoTip: string | null (može biti null)

max 150

vatStatusopcionoTip: string | null (može biti null)Owner-declared VAT status. not_in_vat restricts every fiscal command to the non-VAT tax label (category N-TAX, label А in production); null means not declared and restricts nothing.

Vrednostiin_vatnot_in_vat

createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Pročitaj obveznika

get/v1/taxpayers/{taxpayerId}

Scopetenant:read

Jedan obveznik sa PIB-om, statusom i PDV statusom.

Parametri

getTaxpayer: Parametri
PoljeOpis
taxpayerIdobaveznoGde: pathTip: uuid

Odgovori

getTaxpayer: Odgovori
200OKTaxpayerTaxpayer
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
Odgovor: Taxpayer

Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.

getTaxpayer: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

legalNameobaveznoTip: string
environmentobaveznoTip: FiscalEnvironmentThe Stripe-style fiscal environment. Machine credentials carry exactly one environment and may only use security elements of that environment; sandbox elements are BOKA-assigned and route to the TaxCore sandbox, production elements are the customer's own. Taxpayers and business premises carry the environment too: the BOKA sandbox taxpayer and premise created by a pool assignment are sandbox, everything a human registers is production, and setup registered by a machine credential belongs to that credential's environment. A premise inherits its taxpayer's environment and a security element can only be bound to a premise of its own.

Vrednostisandboxproduction

statusobaveznoTip: string

Vrednostiactivesuspendedclosed

registrationNumberopcionoTip: string | null (može biti null)Serbian registration number (matični broj), usually prefilled from the company registry lookup.

pattern ^[0-9]{8}$

addressopcionoTip: string | null (može biti null)

max 300

cityopcionoTip: string | null (može biti null)

max 100

municipalityopcionoTip: string | null (može biti null)

max 100

activityCodeopcionoTip: string | null (može biti null)

pattern ^[0-9]{4}$

activityNameopcionoTip: string | null (može biti null)

max 150

vatStatusopcionoTip: string | null (može biti null)Owner-declared VAT status. not_in_vat restricts every fiscal command to the non-VAT tax label (category N-TAX, label А in production); null means not declared and restricts nothing.

Vrednostiin_vatnot_in_vat

createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Lista prodajnih mesta

get/v1/taxpayers/{taxpayerId}/business-premises

Scopetenant:read

Prodajna mesta obveznika (poslovni prostori Poreske uprave). Svako ima svoj bezbednosni element.

Parametri

listBusinessPremises: Parametri
PoljeOpis
taxpayerIdobaveznoGde: pathTip: uuid

Odgovori

listBusinessPremises: Odgovori
200OKPremisesBusinessPremisePage
400Bad RequestThe command violates a Boka or fiscal ruleErrorCode
Odgovor: BusinessPremisePage

Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.

listBusinessPremises: Odgovor
PoljeOpis
itemsobaveznoTip: array<BusinessPremise>
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
puIdentifierobaveznoTip: string
nameobaveznoTip: string
commerceModeobaveznoTip: const "distance"
environmentobaveznoTip: FiscalEnvironmentThe Stripe-style fiscal environment. Machine credentials carry exactly one environment and may only use security elements of that environment; sandbox elements are BOKA-assigned and route to the TaxCore sandbox, production elements are the customer's own. Taxpayers and business premises carry the environment too: the BOKA sandbox taxpayer and premise created by a pool assignment are sandbox, everything a human registers is production, and setup registered by a machine credential belongs to that credential's environment. A premise inherits its taxpayer's environment and a security element can only be bound to a premise of its own.

Vrednostisandboxproduction

statusobaveznoTip: string

Vrednostiactivesuspendedclosed

createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Pročitaj prodajno mesto

get/v1/taxpayers/{taxpayerId}/business-premises/{businessPremiseId}

Scopetenant:read

Jedno prodajno mesto sa PU identifikatorom, režimom prometa i statusom.

Parametri

getBusinessPremise: Parametri
PoljeOpis
taxpayerIdobaveznoGde: pathTip: uuid
businessPremiseIdobaveznoGde: pathTip: uuid

Odgovori

getBusinessPremise: Odgovori
200OKBusiness premiseBusinessPremise
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
Odgovor: BusinessPremise

Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.

getBusinessPremise: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
puIdentifierobaveznoTip: string
nameobaveznoTip: string
commerceModeobaveznoTip: const "distance"
environmentobaveznoTip: FiscalEnvironmentThe Stripe-style fiscal environment. Machine credentials carry exactly one environment and may only use security elements of that environment; sandbox elements are BOKA-assigned and route to the TaxCore sandbox, production elements are the customer's own. Taxpayers and business premises carry the environment too: the BOKA sandbox taxpayer and premise created by a pool assignment are sandbox, everything a human registers is production, and setup registered by a machine credential belongs to that credential's environment. A premise inherits its taxpayer's environment and a security element can only be bound to a premise of its own.

Vrednostisandboxproduction

statusobaveznoTip: string

Vrednostiactivesuspendedclosed

createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time