Lista obveznika
get/v1/taxpayers
Scope tenant: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.
Primer
curl -X GET "https://api.bokapos.rs/v1/taxpayers" \
-H "Authorization: Bearer $BOKAPOS_TOKEN"Odgovori
| 200 OK | TaxpayersTaxpayerPage |
|---|---|
| 400 Bad Request | The command violates a Boka or fiscal ruleErrorCode |
{
"items": [
{
"id": "3f9c2a8e-6b1d-4e5a-9c47-1d2b8e6f0a11",
"taxIdentifier": "115711881",
"legalName": "BOKA GROUP DOO",
"environment": "sandbox",
"status": "active",
"registrationNumber": "22196456",
"address": "Roze Luksemburg 16",
"city": "Beograd",
"municipality": "Rakovica",
"activityCode": "6201",
"activityName": "Računarsko programiranje",
"vatStatus": "in_vat",
"createdAt": "2026-08-21T09:00:00.000Z",
"updatedAt": "2026-08-21T09:00:00.000Z"
}
]
}Odgovor: TaxpayerPage
Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.
| Polje | Tip | Opis |
|---|---|---|
itemsobavezno | array<Taxpayer> | |
idobavezno | uuid | |
taxIdentifierobavezno | string | pattern ^[0-9]{9}$ |
legalNameobavezno | string | |
environmentobavezno | FiscalEnvironment | The 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.
|
statusobavezno | string |
|
registrationNumberopciono | string| null (može biti null) | Serbian registration number (matični broj), usually prefilled from the company registry lookup. pattern ^[0-9]{8}$ |
addressopciono | string| null (može biti null) | max 300 |
cityopciono | string| null (može biti null) | max 100 |
municipalityopciono | string| null (može biti null) | max 100 |
activityCodeopciono | string| null (može biti null) | pattern ^[0-9]{4}$ |
activityNameopciono | string| null (može biti null) | max 150 |
vatStatusopciono | 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.
|
createdAtobavezno | date-time | |
updatedAtobavezno | date-time |