Skip to content
Reference

Taxpayers and premises

The taxpayer and business-premise identifiers every fiscal request carries. They are created in the portal; the API reads them.

4 operations

List taxpayers

get/v1/taxpayers

Scopetenant: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.

Responses

listTaxpayers: Responses
200OKTaxpayersTaxpayerPage
400Bad RequestThe command violates a Boka or fiscal ruleErrorCode
Response: TaxpayerPage

Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.

listTaxpayers: Response
FieldDescription
itemsrequiredType: array<Taxpayer>
idrequiredType: uuid
taxIdentifierrequiredType: string

pattern ^[0-9]{9}$

legalNamerequiredType: string
environmentrequiredType: 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.

Valuessandboxproduction

statusrequiredType: string

Valuesactivesuspendedclosed

registrationNumberoptionalType: string | null (nullable)Serbian registration number (matični broj), usually prefilled from the company registry lookup.

pattern ^[0-9]{8}$

addressoptionalType: string | null (nullable)

max 300

cityoptionalType: string | null (nullable)

max 100

municipalityoptionalType: string | null (nullable)

max 100

activityCodeoptionalType: string | null (nullable)

pattern ^[0-9]{4}$

activityNameoptionalType: string | null (nullable)

max 150

vatStatusoptionalType: 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.

Valuesin_vatnot_in_vat

createdAtrequiredType: date-time
updatedAtrequiredType: date-time

Read a taxpayer

get/v1/taxpayers/{taxpayerId}

Scopetenant:read

One taxpayer with PIB, status and VAT status.

Parameters

getTaxpayer: Parameters
FieldDescription
taxpayerIdrequiredIn: pathType: uuid

Responses

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

Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.

getTaxpayer: Response
FieldDescription
idrequiredType: uuid
taxIdentifierrequiredType: string

pattern ^[0-9]{9}$

legalNamerequiredType: string
environmentrequiredType: 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.

Valuessandboxproduction

statusrequiredType: string

Valuesactivesuspendedclosed

registrationNumberoptionalType: string | null (nullable)Serbian registration number (matični broj), usually prefilled from the company registry lookup.

pattern ^[0-9]{8}$

addressoptionalType: string | null (nullable)

max 300

cityoptionalType: string | null (nullable)

max 100

municipalityoptionalType: string | null (nullable)

max 100

activityCodeoptionalType: string | null (nullable)

pattern ^[0-9]{4}$

activityNameoptionalType: string | null (nullable)

max 150

vatStatusoptionalType: 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.

Valuesin_vatnot_in_vat

createdAtrequiredType: date-time
updatedAtrequiredType: date-time

List business premises

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

Scopetenant:read

The taxpayer's premises (Tax Administration business premises). Each has its own security element.

Parameters

listBusinessPremises: Parameters
FieldDescription
taxpayerIdrequiredIn: pathType: uuid

Responses

listBusinessPremises: Responses
200OKPremisesBusinessPremisePage
400Bad RequestThe command violates a Boka or fiscal ruleErrorCode
Response: BusinessPremisePage

Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.

listBusinessPremises: Response
FieldDescription
itemsrequiredType: array<BusinessPremise>
idrequiredType: uuid
taxpayerIdrequiredType: uuid
puIdentifierrequiredType: string
namerequiredType: string
commerceModerequiredType: const "distance"
environmentrequiredType: 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.

Valuessandboxproduction

statusrequiredType: string

Valuesactivesuspendedclosed

createdAtrequiredType: date-time
updatedAtrequiredType: date-time

Read a business premise

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

Scopetenant:read

One premise with its PU identifier, commerce mode and status.

Parameters

getBusinessPremise: Parameters
FieldDescription
taxpayerIdrequiredIn: pathType: uuid
businessPremiseIdrequiredIn: pathType: uuid

Responses

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

Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.

getBusinessPremise: Response
FieldDescription
idrequiredType: uuid
taxpayerIdrequiredType: uuid
puIdentifierrequiredType: string
namerequiredType: string
commerceModerequiredType: const "distance"
environmentrequiredType: 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.

Valuessandboxproduction

statusrequiredType: string

Valuesactivesuspendedclosed

createdAtrequiredType: date-time
updatedAtrequiredType: date-time