Pređi na sadržaj
Referenca

Avansi

Serverski vođen lanac avansa: avansne prodaje, storniranje pogrešnog avansa i zatvaranje konačnim računom.

6 operacija

Lista avansnih slučajeva

get/v1/advance-cases

Scopefiscal:read

Lanci avansa po vremenu poslednje promene, sa filterom stanja (OPEN, CLOSED, FAILED) i pretragom po referenci.

Beleške iz ugovora (OpenAPI, engleski)

Returns tenant-scoped advance chains in most-recently-updated order so an operator can continue a chain without handling an internal identifier. Filters narrow by state, reference text and last change.

Parametri

listAdvanceCases: Parametri
PoljeOpis
taxpayerIdopcionoGde: queryTip: uuid
businessPremiseIdopcionoGde: queryTip: uuid
stateopcionoGde: queryTip: stringOPEN is every chain still in progress (including unknown-outcome states the operator must resolve); CLOSED and FAILED are terminal.

VrednostiOPENCLOSEDFAILED

searchopcionoGde: queryTip: stringCase-insensitive substring of the client reference.

max 200

updatedFromopcionoGde: queryTip: date-timeOnly chains changed at or after this instant. Any RFC 3339 offset is accepted and compared as an instant.
pageSizeopcionoGde: queryTip: integer

>= 1<= 50default 25

Odgovori

listAdvanceCases: Odgovori
200OKRecent advance chainsAdvanceCasePage
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
Odgovor: AdvanceCasePage

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

listAdvanceCases: Odgovor
PoljeOpis
itemsobaveznoTip: array<AdvanceCase>
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
clientReferenceobaveznoTip: string
externalAdvanceopcionoTip: ExternalAdvance | null (može biti null)
amountobaveznoTip: numberSum of every advance collected before eFiscalization; at most two decimals.

> 0step 0.01

taxLabelobaveznoTip: stringTax label of the future supply; must be a prescribed advance label.
paymentTypeobaveznoTip: PaymentType

VrednostiOTHERCASHCARDCHECKWIRE_TRANSFERVOUCHERINSTANT_PAYMENT

lastDocumentNumberobaveznoTip: stringNumber of the last pre-fiscal advance document, digits only (1 to 20). It is sent as the `<number>` part of the reference `XXXXXXXX-XXXXXXXX-<number>`; the official examples are `17`, `121` and `159`, and the V-PFR rejects any other form. Anything but digits returns 422 with the `ExternalAdvance.LastDocumentNumber` validation key.

min 1max 20pattern ^[0-9]{1,20}$

lastDocumentTimeobaveznoTip: date-timeIssue date of that document; must precede the request.
stateobaveznoTip: string

VrednostiOPENADVANCE_SALE_OUTCOME_UNKNOWNCLOSINGADVANCE_REFUND_OUTCOME_UNKNOWNADVANCE_REFUND_FISCALIZED_SALE_PENDINGFINAL_SALE_OUTCOME_UNKNOWNCLOSEDFAILED

advanceSalesobaveznoTip: array<FiscalDocument>
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
cancellationsobaveznoTip: array<FiscalDocument>Standalone Advance Refunds that cancelled an erroneous Advance Sale of this case, in issue order.
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
cancelledAdvanceSaleIdsobaveznoTip: array<uuid>Ids of the Advance Sales in `advanceSales` that a fiscalized cancellation removed from the chain. The remaining fiscalized Advance Sales are the effective chain: they are what the next Advance Sale references, what a closure refunds, and what the next cancellation targets.
advanceRefundopcionoTip: FiscalDocument | null (može biti null)
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
finalSaleopcionoTip: FiscalDocument | null (može biti null)
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
failureCodeopcionoTip: string | null (može biti null)
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Otvori avansni slučaj

post/v1/advance-cases

Scopeadvance:writeZahteva Idempotency-Key

Slučaj vezuje sve avansne prodaje jedne narudžbine na istom obvezniku i prodajnom mestu. Ne izdaje račun; to radi sledeći poziv. Može da preuzme i avanse naplaćene pre eFiskalizacije.

Beleške iz ugovora (OpenAPI, engleski)

Creates a Boka-owned, same-taxpayer/same-premise chain. External and pre-eFiscalization starting references are deliberately outside this bounded workflow.

Telo zahtevaapplication/json

createAdvanceCase: Telo zahteva
PoljeOpis
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
clientReferenceobaveznoTip: string

min 1max 200

externalAdvanceopcionoTip: ExternalAdvance | null (može biti null)Advances collected before eFiscalization that this case closes. The first Advance Sale then references the last pre-fiscal document as XXXXXXXX-XXXXXXXX-<number>, or the close starts with the Advance Refund referencing it when no Advance Sale was fiscalized, and the closing Advance Refund sums pre-fiscal and fiscal advances alike.
amountobaveznoTip: numberSum of every advance collected before eFiscalization; at most two decimals.

> 0step 0.01

taxLabelobaveznoTip: stringTax label of the future supply; must be a prescribed advance label.
paymentTypeobaveznoTip: PaymentType

VrednostiOTHERCASHCARDCHECKWIRE_TRANSFERVOUCHERINSTANT_PAYMENT

lastDocumentNumberobaveznoTip: stringNumber of the last pre-fiscal advance document, digits only (1 to 20). It is sent as the `<number>` part of the reference `XXXXXXXX-XXXXXXXX-<number>`; the official examples are `17`, `121` and `159`, and the V-PFR rejects any other form. Anything but digits returns 422 with the `ExternalAdvance.LastDocumentNumber` validation key.

min 1max 20pattern ^[0-9]{1,20}$

lastDocumentTimeobaveznoTip: date-timeIssue date of that document; must precede the request.

Odgovori

createAdvanceCase: Odgovori
200OKIdempotent replay of the same case creationAdvanceCase
201CreatedAdvance caseAdvanceCase
409ConflictThe key was already used with different canonical contentIdempotencyConflict
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
Odgovor: AdvanceCase

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

createAdvanceCase: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
clientReferenceobaveznoTip: string
externalAdvanceopcionoTip: ExternalAdvance | null (može biti null)
amountobaveznoTip: numberSum of every advance collected before eFiscalization; at most two decimals.

> 0step 0.01

taxLabelobaveznoTip: stringTax label of the future supply; must be a prescribed advance label.
paymentTypeobaveznoTip: PaymentType

VrednostiOTHERCASHCARDCHECKWIRE_TRANSFERVOUCHERINSTANT_PAYMENT

lastDocumentNumberobaveznoTip: stringNumber of the last pre-fiscal advance document, digits only (1 to 20). It is sent as the `<number>` part of the reference `XXXXXXXX-XXXXXXXX-<number>`; the official examples are `17`, `121` and `159`, and the V-PFR rejects any other form. Anything but digits returns 422 with the `ExternalAdvance.LastDocumentNumber` validation key.

min 1max 20pattern ^[0-9]{1,20}$

lastDocumentTimeobaveznoTip: date-timeIssue date of that document; must precede the request.
stateobaveznoTip: string

VrednostiOPENADVANCE_SALE_OUTCOME_UNKNOWNCLOSINGADVANCE_REFUND_OUTCOME_UNKNOWNADVANCE_REFUND_FISCALIZED_SALE_PENDINGFINAL_SALE_OUTCOME_UNKNOWNCLOSEDFAILED

advanceSalesobaveznoTip: array<FiscalDocument>
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
cancellationsobaveznoTip: array<FiscalDocument>Standalone Advance Refunds that cancelled an erroneous Advance Sale of this case, in issue order.
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
cancelledAdvanceSaleIdsobaveznoTip: array<uuid>Ids of the Advance Sales in `advanceSales` that a fiscalized cancellation removed from the chain. The remaining fiscalized Advance Sales are the effective chain: they are what the next Advance Sale references, what a closure refunds, and what the next cancellation targets.
advanceRefundopcionoTip: FiscalDocument | null (može biti null)
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
finalSaleopcionoTip: FiscalDocument | null (može biti null)
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
failureCodeopcionoTip: string | null (može biti null)
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Pročitaj avansni slučaj

get/v1/advance-cases/{advanceCaseId}

Scopefiscal:read

Ceo lanac: avansne prodaje, storna, konačna refundacija avansa i konačni račun, plus stanje koje kaže šta je sledeće dozvoljeno.

Parametri

getAdvanceCase: Parametri
PoljeOpis
advanceCaseIdobaveznoGde: pathTip: uuid

Odgovori

getAdvanceCase: Odgovori
200OKAdvance caseAdvanceCase
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
Odgovor: AdvanceCase

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

getAdvanceCase: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
clientReferenceobaveznoTip: string
externalAdvanceopcionoTip: ExternalAdvance | null (može biti null)
amountobaveznoTip: numberSum of every advance collected before eFiscalization; at most two decimals.

> 0step 0.01

taxLabelobaveznoTip: stringTax label of the future supply; must be a prescribed advance label.
paymentTypeobaveznoTip: PaymentType

VrednostiOTHERCASHCARDCHECKWIRE_TRANSFERVOUCHERINSTANT_PAYMENT

lastDocumentNumberobaveznoTip: stringNumber of the last pre-fiscal advance document, digits only (1 to 20). It is sent as the `<number>` part of the reference `XXXXXXXX-XXXXXXXX-<number>`; the official examples are `17`, `121` and `159`, and the V-PFR rejects any other form. Anything but digits returns 422 with the `ExternalAdvance.LastDocumentNumber` validation key.

min 1max 20pattern ^[0-9]{1,20}$

lastDocumentTimeobaveznoTip: date-timeIssue date of that document; must precede the request.
stateobaveznoTip: string

VrednostiOPENADVANCE_SALE_OUTCOME_UNKNOWNCLOSINGADVANCE_REFUND_OUTCOME_UNKNOWNADVANCE_REFUND_FISCALIZED_SALE_PENDINGFINAL_SALE_OUTCOME_UNKNOWNCLOSEDFAILED

advanceSalesobaveznoTip: array<FiscalDocument>
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
cancellationsobaveznoTip: array<FiscalDocument>Standalone Advance Refunds that cancelled an erroneous Advance Sale of this case, in issue order.
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
cancelledAdvanceSaleIdsobaveznoTip: array<uuid>Ids of the Advance Sales in `advanceSales` that a fiscalized cancellation removed from the chain. The remaining fiscalized Advance Sales are the effective chain: they are what the next Advance Sale references, what a closure refunds, and what the next cancellation targets.
advanceRefundopcionoTip: FiscalDocument | null (može biti null)
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
finalSaleopcionoTip: FiscalDocument | null (može biti null)
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
failureCodeopcionoTip: string | null (može biti null)
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Storniraj poslednji avans

post/v1/advance-cases/{advanceCaseId}/cancellations

Scopeadvance:writeZahteva Idempotency-Key

Avansna refundacija koja poništava poslednju avansnu prodaju u celosti, sa PIB-om prodavca kao kupcem, kako propisuje zvanični postupak. Slučaj ostaje otvoren.

Beleške iz ugovora (OpenAPI, engleski)

Issues an Advance Refund that repeats the complete latest Advance Sale of the open case, references it, and carries the seller's own PIB as the buyer (10:<PIB>), as the official cancellation procedure prescribes. The case stays open; the next Advance Sale chains to the sale before the cancelled one. Only the latest fiscalized Advance Sale can be cancelled.

Parametri

cancelAdvanceSale: Parametri
PoljeOpis
advanceCaseIdobaveznoGde: pathTip: uuid

Telo zahtevaapplication/json

cancelAdvanceSale: Telo zahteva
PoljeOpis
cashierobaveznoTip: Cashier
idobaveznoTip: string
displayNameopcionoTip: string
advanceSaleFiscalDocumentIdobaveznoTip: uuidThe latest fiscalized Advance Sale of the open case; nothing else can be cancelled.

Odgovori

cancelAdvanceSale: Odgovori
200OKIdempotent replay of the fiscalized Advance RefundFiscalDocument
201CreatedFiscalized Advance Refund cancelling the Advance SaleFiscalDocument
409ConflictThe key was already used with different canonical contentIdempotencyConflict
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
503Service UnavailableNo fiscal receipt was issued because V-PFR was unavailable or its outcome requires reconciliationFiscalDocument
Odgovor: FiscalDocument

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

cancelAdvanceSale: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Zatvori avansni slučaj

post/v1/advance-cases/{advanceCaseId}/close

Scopeadvance:closeZahteva Idempotency-Key

Dva dokumenta u jednom pozivu: avansna refundacija ukupnog avansa, pa konačni račun za promet sa stavkama isporuke i preostalim plaćanjem. Ako drugi korak ne stigne do V-PFR-a, odgovor 202 to kaže, a ponovni poziv istim ključem ponavlja samo njega.

Beleške iz ugovora (OpenAPI, engleski)

This is a recoverable two-document workflow. If the Advance Refund is fiscalized but the final Sale is confirmed not submitted, the response exposes the pending state and an idempotent replay retries only that stored final operation. An unknown outcome blocks instead of retrying. If the V-PFR rejects the Advance Refund, the case is `FAILED` with the rejection code, the refund document is `REJECTED`, and the final Sale reserved with it is never sent: it is closed as `NOT_FISCALIZED` with `ADVANCE_REFUND_NOT_FISCALIZED` and `retryable: false`. Open a new case to try again; a replay of the failed close re-drives nothing. This bounded operation closes the whole Boka-owned chain; partial and legacy/external realization remain unsupported. The Advance Refund is not a customer-delivery document.

Parametri

closeAdvanceCase: Parametri
PoljeOpis
advanceCaseIdobaveznoGde: pathTip: uuid

Telo zahtevaapplication/json

closeAdvanceCase: Telo zahteva
PoljeOpis
cashierobaveznoTip: Cashier
idobaveznoTip: string
displayNameopcionoTip: string
buyeropcionoTip: Buyer
idopcionoTip: stringOfficial prefix and value, for example 10:123456789.
optionalFieldopcionoTip: stringOfficial buyer-cost-center prefix and value where applicable, printed as Опционо поље купца. Allowed only on a Normal Sale: any other invoice type or transaction type is rejected with 422, because the official manual testing procedure lists the field appearing on a receipt that is not a Промет Продаја as a reason to reject an ESIR. A Copy of a Normal Sale that carried it is issued without it for the same reason, and closing an advance case applies it only to the final Normal Sale, never to the closing Advance Refund.
finalItemsobaveznoTip: array<LineItem>

min 1 items

catalogProductIdopcionoTip: uuidOptional; arbitrary inline items are permitted.
nameobaveznoTip: string

min 1max 2048

unitOfMeasureopcionoTip: stringRequired on every item except the codebook advance literals (10: Аванс (Ђ) and siblings), which are prescribed verbatim without a unit. The API refuses any other item without one (422, Items.UnitOfMeasure) and composes it into the signed item name as name/unit.

min 1max 50

quantityobaveznoTip: numberV-PFR Decimal(14,3).

>= 0.001<= 99999999999.999step 0.001

unitPriceobaveznoTip: numberFinal gross unit price sent to V-PFR as Decimal(28,4). Boka applies the mandated fiscal rounding rules.

>= 0step 0.01

unitPriceBeforeDiscountopcionoTip: numberOptional Boka-local immutable gross unit price before discount. When present it must be greater than unitPrice; it is displayed outside the exact PFR journal and is never sent as a supplier field.

>= 0step 0.0001

gtinopcionoTip: string

min 8max 14

taxLabelsobaveznoTip: array<string>

min 1 itemsunique

remainingPaymentsobaveznoTip: array<Payment>Must equal the final amount less the stored advance amount. Supply one explicit zero-amount element when the remaining balance is zero, because Create Invoice requires at least one payment element.

min 1 items

typeobaveznoTip: PaymentType

VrednostiOTHERCASHCARDCHECKWIRE_TRANSFERVOUCHERINSTANT_PAYMENT

amountobaveznoTip: numberAt most two decimals (the V-PFR rejects more with validation code 2804); the field type on the wire is Decimal(28,4).

>= 0step 0.01

commercialFooteropcionoTip: string

max 1500

Odgovori

closeAdvanceCase: Odgovori
200OKIdempotent replay of an already closed caseAdvanceCloseResult
201CreatedClosed advance caseAdvanceCloseResult
202AcceptedAdvance Refund is fiscalized; final Sale remains pendingAdvanceCloseResult
409ConflictThe key was already used with different canonical contentIdempotencyConflict
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
503Service UnavailableNo fiscal receipt was issued because V-PFR was unavailable or its outcome requires reconciliationFiscalDocument
Odgovor: AdvanceCloseResult

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

closeAdvanceCase: Odgovor
PoljeOpis
caseobaveznoTip: AdvanceCase
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
clientReferenceobaveznoTip: string
externalAdvanceopcionoTip: ExternalAdvance | null (može biti null)
amountobaveznoTip: numberSum of every advance collected before eFiscalization; at most two decimals.

> 0step 0.01

taxLabelobaveznoTip: stringTax label of the future supply; must be a prescribed advance label.
paymentTypeobaveznoTip: PaymentType

VrednostiOTHERCASHCARDCHECKWIRE_TRANSFERVOUCHERINSTANT_PAYMENT

lastDocumentNumberobaveznoTip: stringNumber of the last pre-fiscal advance document, digits only (1 to 20). It is sent as the `<number>` part of the reference `XXXXXXXX-XXXXXXXX-<number>`; the official examples are `17`, `121` and `159`, and the V-PFR rejects any other form. Anything but digits returns 422 with the `ExternalAdvance.LastDocumentNumber` validation key.

min 1max 20pattern ^[0-9]{1,20}$

lastDocumentTimeobaveznoTip: date-timeIssue date of that document; must precede the request.
stateobaveznoTip: string

VrednostiOPENADVANCE_SALE_OUTCOME_UNKNOWNCLOSINGADVANCE_REFUND_OUTCOME_UNKNOWNADVANCE_REFUND_FISCALIZED_SALE_PENDINGFINAL_SALE_OUTCOME_UNKNOWNCLOSEDFAILED

advanceSalesobaveznoTip: array<FiscalDocument>
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
cancellationsobaveznoTip: array<FiscalDocument>Standalone Advance Refunds that cancelled an erroneous Advance Sale of this case, in issue order.
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
cancelledAdvanceSaleIdsobaveznoTip: array<uuid>Ids of the Advance Sales in `advanceSales` that a fiscalized cancellation removed from the chain. The remaining fiscalized Advance Sales are the effective chain: they are what the next Advance Sale references, what a closure refunds, and what the next cancellation targets.
advanceRefundopcionoTip: FiscalDocument | null (može biti null)
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
finalSaleopcionoTip: FiscalDocument | null (može biti null)
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time
failureCodeopcionoTip: string | null (može biti null)
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time

Fiskalizuj avansnu uplatu

post/v1/advance-cases/{advanceCaseId}/payments

Scopeadvance:writeZahteva Idempotency-Key

Izdaje sledeću avansnu prodaju u lancu; BokaPOS sam upisuje referencu na prethodnu. Stavke su propisani avansni artikli (10: Аванс (Ђ) i srodni), komercijalni tekst je obavezan.

Beleške iz ugovora (OpenAPI, engleski)

Boka references the immediately preceding fiscalized Advance Sale stored in this exact case. Any unresolved prior outcome blocks another payment, and a changed idempotent replay is rejected.

Parametri

fiscalizeAdvancePayment: Parametri
PoljeOpis
advanceCaseIdobaveznoGde: pathTip: uuid

Telo zahtevaapplication/json

fiscalizeAdvancePayment: Telo zahteva
PoljeOpis
cashierobaveznoTip: Cashier
idobaveznoTip: string
displayNameopcionoTip: string
buyeropcionoTip: Buyer
idopcionoTip: stringOfficial prefix and value, for example 10:123456789.
optionalFieldopcionoTip: stringOfficial buyer-cost-center prefix and value where applicable, printed as Опционо поље купца. Allowed only on a Normal Sale: any other invoice type or transaction type is rejected with 422, because the official manual testing procedure lists the field appearing on a receipt that is not a Промет Продаја as a reason to reject an ESIR. A Copy of a Normal Sale that carried it is issued without it for the same reason, and closing an advance case applies it only to the final Normal Sale, never to the closing Advance Refund.
paymentOccurredAtopcionoTip: date-timeActual earlier payment time for the documented wire-transfer case. When supplied, it must precede the fiscalization attempt and at least one payment must be Wire Transfer.
itemsobaveznoTip: array<LineItem>

min 1 items

catalogProductIdopcionoTip: uuidOptional; arbitrary inline items are permitted.
nameobaveznoTip: string

min 1max 2048

unitOfMeasureopcionoTip: stringRequired on every item except the codebook advance literals (10: Аванс (Ђ) and siblings), which are prescribed verbatim without a unit. The API refuses any other item without one (422, Items.UnitOfMeasure) and composes it into the signed item name as name/unit.

min 1max 50

quantityobaveznoTip: numberV-PFR Decimal(14,3).

>= 0.001<= 99999999999.999step 0.001

unitPriceobaveznoTip: numberFinal gross unit price sent to V-PFR as Decimal(28,4). Boka applies the mandated fiscal rounding rules.

>= 0step 0.01

unitPriceBeforeDiscountopcionoTip: numberOptional Boka-local immutable gross unit price before discount. When present it must be greater than unitPrice; it is displayed outside the exact PFR journal and is never sent as a supplier field.

>= 0step 0.0001

gtinopcionoTip: string

min 8max 14

taxLabelsobaveznoTip: array<string>

min 1 itemsunique

paymentsobaveznoTip: array<Payment>

min 1 items

typeobaveznoTip: PaymentType

VrednostiOTHERCASHCARDCHECKWIRE_TRANSFERVOUCHERINSTANT_PAYMENT

amountobaveznoTip: numberAt most two decimals (the V-PFR rejects more with validation code 2804); the field type on the wire is Decimal(28,4).

>= 0step 0.01

commercialFooterobaveznoTip: stringMandatory non-fiscal commercial area for the Advance Sale.

min 1max 2000

Odgovori

fiscalizeAdvancePayment: Odgovori
200OKIdempotent replay of the fiscalized Advance SaleFiscalDocument
201CreatedFiscalized Advance SaleFiscalDocument
409ConflictThe key was already used with different canonical contentIdempotencyConflict
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
503Service UnavailableNo fiscal receipt was issued because V-PFR was unavailable or its outcome requires reconciliationFiscalDocument
Odgovor: FiscalDocument

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

fiscalizeAdvancePayment: Odgovor
PoljeOpis
idobaveznoTip: uuid
taxpayerIdobaveznoTip: uuid
businessPremiseIdobaveznoTip: uuid
idempotencyKeyobaveznoTip: string
clientReferenceobaveznoTip: string
invoiceTypeobaveznoTip: InvoiceType

VrednostiNORMALPROFORMACOPYTRAININGADVANCE

transactionTypeobaveznoTip: TransactionType

VrednostiSALEREFUND

cashierIdobaveznoTip: string
buyerIdopcionoTip: string | null (može biti null)
buyerDetailsopcionoTip: FiscalBuyerDetails | null (može biti null)The buyer's company-registry facts stored with the document at reservation and printed under the buyer identification. Null when the buyer is not a domestic company (prefixes 10, 12, 14 with a valid PIB) or the register could not answer at issuance.
legalNameobaveznoTip: string

max 350

taxIdentifierobaveznoTip: string

pattern ^[0-9]{9}$

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

pattern ^[0-9]{8}$

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

max 300

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

max 100

sourceobaveznoTip: string

Vrednostinbs-jrr

resolvedAtobaveznoTip: date-time
statusobaveznoTip: FiscalDocumentStatus

VrednostiRECEIVEDVALIDATEDSUBMITTINGFISCALIZEDREJECTEDNOT_FISCALIZEDOUTCOME_UNKNOWNRECONCILING

fiscalizedobaveznoTip: boolean
failureCodeopcionoTip: string | null (može biti null)
pfrRejectionopcionoTip: object | null (može biti null)Present only on a single-document read of a REJECTED operation. The V-PFR's own validation result, bounded to the property path of the caller's request and the supplier's numeric codes (2310 invalid tax label; 2800 to 2808 required, length, range, value, format and list-size validation). Lists never carry it.
itemsobaveznoTip: array<object>

max 10 items

propertyobaveznoTip: string

max 120

codesobaveznoTip: array<string>

max 5 items

retryableobaveznoTip: boolean
pfropcionoTip: PfrResult | null (može biti null)
invoiceNumberobaveznoTip: string
sdcTimeobaveznoTip: date-time
requestedByobaveznoTip: string
signedByobaveznoTip: string
transactionTypeCounteropcionoTip: integer | null (može biti null)V-PFR transaction-type counter (the left half of the printed counter). Null when the stored receipt does not carry it; the printed counter is always in the journal text.
totalCounteropcionoTip: integer | null (može biti null)V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter.
invoiceCounterExtensionopcionoTip: string | null (može biti null)Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter.
totalAmountobaveznoTip: number
totalTaxopcionoTip: number | null (može biti null)Sum of the V-PFR signed tax amounts of the document (the printed "Укупан износ пореза" before its two-decimal display rounding). Null under the same condition as transactionTypeCounter.
verificationUrlobaveznoTip: uri
journalobaveznoTip: string
receiptopcionoTip: ReceiptRepresentations | null (može biti null)
textUrlobaveznoTip: uri-reference
jsonUrlobaveznoTip: uri-reference
pdfA4UrlobaveznoTip: uri-reference
pdf80mmUrlobaveznoTip: uri-reference
pdf58mmUrlobaveznoTip: uri-reference
previewImageUrlobaveznoTip: uri-reference
qrImageUrlobaveznoTip: uri-reference
verificationUrlobaveznoTip: uri
preferredPaperFormatobaveznoTip: stringImmutable preferred print/PDF format captured when this fiscal operation was reserved.

Vrednosti80mm58mma4

referenceopcionoTip: ResolvedReference
fiscalDocumentIdopcionoTip: uuid
pfrNumberobaveznoTip: string
pfrTimeobaveznoTip: date-time
createdAtobaveznoTip: date-time
updatedAtobaveznoTip: date-time