Pređi na sadržaj
Referenca

Katalog

Proizvodi i usluge sa cenom, jedinicom mere, GTIN-om i poreskim oznakama; uvoz i izvoz CSV-a.

6 operacija

Lista proizvoda

get/v1/products

Scopecatalogue:read

Katalog po obvezniku, sa pretragom po nazivu, šifri ili GTIN-u i filterom aktivnosti. Stranice preko cursor-a.

Parametri

listProducts: Parametri
PoljeOpis
taxpayerIdopcionoGde: queryTip: uuid
searchopcionoGde: queryTip: string

max 200

isActiveopcionoGde: queryTip: boolean
cursoropcionoGde: queryTip: uuid
pageSizeopcionoGde: queryTip: integer

>= 1<= 200default 50

Odgovori

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

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

listProducts: Odgovor
PoljeOpis
itemsobaveznoTip: array<Product>
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
skuobaveznoTip: string
gtinopcionoTip: string | null (može biti null)
nameobaveznoTip: string
unitOfMeasureopcionoTip: string | null (može biti null)
grossUnitPriceobaveznoTip: number

>= 0

taxLabelsobaveznoTip: array<string>
isActiveobaveznoTip: boolean
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
nextCursorobaveznoTip: uuid | null (može biti null)

Dodaj proizvod

post/v1/products

Scopecatalogue:write

Proizvod ili usluga sa šifrom, nazivom, jedinicom mere, bruto cenom (dve decimale) i poreskim oznakama. Stavke računa mogu, ali ne moraju, da se pozivaju na katalog.

Telo zahtevaapplication/json

createProduct: Telo zahteva
PoljeOpis
taxpayerIdobaveznoTip: uuid
skuobaveznoTip: string

min 1max 100

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

max 32

nameobaveznoTip: string

min 1max 500

unitOfMeasureobaveznoTip: string

min 1max 50

grossUnitPriceobaveznoTip: number

>= 0step 0.01

taxLabelsobaveznoTip: array<string>

min 1 itemsunique

Odgovori

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

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

createProduct: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
skuobaveznoTip: string
gtinopcionoTip: string | null (može biti null)
nameobaveznoTip: string
unitOfMeasureopcionoTip: string | null (može biti null)
grossUnitPriceobaveznoTip: number

>= 0

taxLabelsobaveznoTip: array<string>
isActiveobaveznoTip: boolean
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Izvezi katalog (CSV)

get/v1/products/export

Scopecatalogue:read

Deterministički CSV jednog obveznika, isti format kao uvoz.

Parametri

exportProducts: Parametri
PoljeOpis
taxpayerIdobaveznoGde: queryTip: uuid

Odgovori

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

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

exportProducts: Odgovor
PoljeOpis
codeobaveznoTip: string
messageopcionoTip: string

Uvezi katalog (CSV)

post/v1/products/import

Scopecatalogue:write

Sve ili ništa: do 1.000 redova ili 5 MB, oznake razdvojene sa |. Prihvata i CSV iz srpskog Excela (BOM, sep=;, decimalni zarez).

Beleške iz ugovora (OpenAPI, engleski)

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

Parametri

importProducts: Parametri
PoljeOpis
taxpayerIdobaveznoGde: queryTip: uuid

Telo zahtevatext/csv

text/csv

Odgovori

importProducts: Odgovori
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
Odgovor: ProductImportResult

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

importProducts: Odgovor
PoljeOpis
createdobaveznoTip: integer

>= 0

updatedobaveznoTip: integer

>= 0

totalobaveznoTip: integer

>= 1<= 1000

Pročitaj proizvod

get/v1/products/{productId}

Scopecatalogue:read

Jedan proizvod po identifikatoru.

Parametri

getProduct: Parametri
PoljeOpis
productIdobaveznoGde: pathTip: uuid

Odgovori

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

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

getProduct: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
skuobaveznoTip: string
gtinopcionoTip: string | null (može biti null)
nameobaveznoTip: string
unitOfMeasureopcionoTip: string | null (može biti null)
grossUnitPriceobaveznoTip: number

>= 0

taxLabelsobaveznoTip: array<string>
isActiveobaveznoTip: boolean
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Izmeni proizvod

put/v1/products/{productId}

Scopecatalogue:write

Zamena svih uređivih polja. Obveznik je nepromenljiv; deaktivacija čuva istorijske snimke na računima.

Beleške iz ugovora (OpenAPI, engleski)

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

Parametri

updateProduct: Parametri
PoljeOpis
productIdobaveznoGde: pathTip: uuid

Telo zahtevaapplication/json

updateProduct: Telo zahteva
PoljeOpis
skuobaveznoTip: string

min 1max 100

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

max 32

nameobaveznoTip: string

min 1max 500

unitOfMeasureobaveznoTip: string

min 1max 50

grossUnitPriceobaveznoTip: number

>= 0step 0.01

taxLabelsobaveznoTip: array<string>

min 1 itemsunique

isActiveobaveznoTip: boolean

Odgovori

updateProduct: Odgovori
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
Odgovor: Product

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

updateProduct: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
skuobaveznoTip: string
gtinopcionoTip: string | null (može biti null)
nameobaveznoTip: string
unitOfMeasureopcionoTip: string | null (može biti null)
grossUnitPriceobaveznoTip: number

>= 0

taxLabelsobaveznoTip: array<string>
isActiveobaveznoTip: boolean
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time