List taxpayers
get/v1/taxpayers
Scope tenant:read
The taxpayers (legal entities) of the organization the credential belongs to, in the credential's environment only: a sandbox key sees sandbox taxpayers, a production key production ones.
Contract notes (OpenAPI)
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.
Example
curl -X GET "https://api.bokapos.rs/v1/taxpayers" \
-H "Authorization: Bearer $BOKAPOS_TOKEN"Responses
| 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"
}
]
}Response: TaxpayerPage
Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.
| Field | Type | Description |
|---|---|---|
itemsrequired | array<Taxpayer> | |
idrequired | uuid | |
taxIdentifierrequired | string | pattern ^[0-9]{9}$ |
legalNamerequired | string | |
environmentrequired | 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.
|
statusrequired | string |
|
registrationNumberoptional | string| null (nullable) | Serbian registration number (matični broj), usually prefilled from the company registry lookup. pattern ^[0-9]{8}$ |
addressoptional | string| null (nullable) | max 300 |
cityoptional | string| null (nullable) | max 100 |
municipalityoptional | string| null (nullable) | max 100 |
activityCodeoptional | string| null (nullable) | pattern ^[0-9]{4}$ |
activityNameoptional | string| null (nullable) | max 150 |
vatStatusoptional | string| null (nullable) | 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.
|
createdAtrequired | date-time | |
updatedAtrequired | date-time |