Skip to content
Reference

Catalogue

Products and services with price, unit of measure, GTIN and tax labels; CSV import and export.

6 operations

List products

get/v1/products

Scopecatalogue:read

The catalogue per taxpayer, searchable by name, SKU or GTIN with an active filter. Pages through the cursor.

Parameters

listProducts: Parameters
FieldDescription
taxpayerIdoptionalIn: queryType: uuid
searchoptionalIn: queryType: string

max 200

isActiveoptionalIn: queryType: boolean
cursoroptionalIn: queryType: uuid
pageSizeoptionalIn: queryType: integer

>= 1<= 200default 50

Responses

listProducts: Responses
200OKProduct pageProductPage
400Bad RequestThe command violates a Boka or fiscal ruleErrorCode
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
Response: ProductPage

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

listProducts: Response
FieldDescription
itemsrequiredType: array<Product>
idrequiredType: uuid
taxpayerIdrequiredType: uuid
skurequiredType: string
gtinoptionalType: string | null (nullable)
namerequiredType: string
unitOfMeasureoptionalType: string | null (nullable)
grossUnitPricerequiredType: number

>= 0

taxLabelsrequiredType: array<string>
isActiverequiredType: boolean
createdAtrequiredType: date-time
updatedAtrequiredType: date-time
nextCursorrequiredType: uuid | null (nullable)

Add a product

post/v1/products

Scopecatalogue:write

A product or service with SKU, name, unit of measure, gross price (two decimals) and tax labels. Receipt lines may, but need not, reference the catalogue.

Request bodyapplication/json

createProduct: Request body
FieldDescription
taxpayerIdrequiredType: uuid
skurequiredType: string

min 1max 100

gtinoptionalType: string | null (nullable)

max 32

namerequiredType: string

min 1max 500

unitOfMeasurerequiredType: string

min 1max 50

grossUnitPricerequiredType: number

>= 0step 0.01

taxLabelsrequiredType: array<string>

min 1 itemsunique

Responses

createProduct: Responses
201CreatedProductProduct
409ConflictThe requested resource conflicts with an existing tenant-scoped recordConflict
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
Response: Product

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

createProduct: Response
FieldDescription
idrequiredType: uuid
taxpayerIdrequiredType: uuid
skurequiredType: string
gtinoptionalType: string | null (nullable)
namerequiredType: string
unitOfMeasureoptionalType: string | null (nullable)
grossUnitPricerequiredType: number

>= 0

taxLabelsrequiredType: array<string>
isActiverequiredType: boolean
createdAtrequiredType: date-time
updatedAtrequiredType: date-time

Export the catalogue (CSV)

get/v1/products/export

Scopecatalogue:read

A deterministic CSV of one taxpayer, the same format as the import.

Parameters

exportProducts: Parameters
FieldDescription
taxpayerIdrequiredIn: queryType: uuid

Responses

exportProducts: Responses
200OKCatalogue CSV using invariant decimals and `|`-separated tax labels
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
Response: ErrorCode

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

exportProducts: Response
FieldDescription
coderequiredType: string
messageoptionalType: string

Import the catalogue (CSV)

post/v1/products/import

Scopecatalogue:write

All or nothing: at most 1,000 rows or 5 MB, labels separated by |. Serbian spreadsheet CSV (BOM, sep=;, decimal comma) is accepted too.

Contract notes (OpenAPI)

The import is all-or-nothing, accepts at most 1,000 rows or 5 MB, and uses `|` between tax labels.

Parameters

importProducts: Parameters
FieldDescription
taxpayerIdrequiredIn: queryType: uuid

Request bodytext/csv

text/csv

Responses

importProducts: Responses
200OKImport countsProductImportResult
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
409ConflictThe requested resource conflicts with an existing tenant-scoped recordConflict
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
Response: ProductImportResult

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

importProducts: Response
FieldDescription
createdrequiredType: integer

>= 0

updatedrequiredType: integer

>= 0

totalrequiredType: integer

>= 1<= 1000

Read a product

get/v1/products/{productId}

Scopecatalogue:read

One product by identifier.

Parameters

getProduct: Parameters
FieldDescription
productIdrequiredIn: pathType: uuid

Responses

getProduct: Responses
200OKProductProduct
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
Response: Product

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

getProduct: Response
FieldDescription
idrequiredType: uuid
taxpayerIdrequiredType: uuid
skurequiredType: string
gtinoptionalType: string | null (nullable)
namerequiredType: string
unitOfMeasureoptionalType: string | null (nullable)
grossUnitPricerequiredType: number

>= 0

taxLabelsrequiredType: array<string>
isActiverequiredType: boolean
createdAtrequiredType: date-time
updatedAtrequiredType: date-time

Update a product

put/v1/products/{productId}

Scopecatalogue:write

Replaces every editable field. The taxpayer is immutable; deactivation preserves the historical snapshots on receipts.

Contract notes (OpenAPI)

The owning taxpayer is immutable; deactivation preserves historical receipt snapshots.

Parameters

updateProduct: Parameters
FieldDescription
productIdrequiredIn: pathType: uuid

Request bodyapplication/json

updateProduct: Request body
FieldDescription
skurequiredType: string

min 1max 100

gtinoptionalType: string | null (nullable)

max 32

namerequiredType: string

min 1max 500

unitOfMeasurerequiredType: string

min 1max 50

grossUnitPricerequiredType: number

>= 0step 0.01

taxLabelsrequiredType: array<string>

min 1 itemsunique

isActiverequiredType: boolean

Responses

updateProduct: Responses
200OKUpdated productProduct
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
409ConflictThe requested resource conflicts with an existing tenant-scoped recordConflict
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
Response: Product

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

updateProduct: Response
FieldDescription
idrequiredType: uuid
taxpayerIdrequiredType: uuid
skurequiredType: string
gtinoptionalType: string | null (nullable)
namerequiredType: string
unitOfMeasureoptionalType: string | null (nullable)
grossUnitPricerequiredType: number

>= 0

taxLabelsrequiredType: array<string>
isActiverequiredType: boolean
createdAtrequiredType: date-time
updatedAtrequiredType: date-time