Lista avansnih slučajeva
get/v1/
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
| Polje | Opis |
|---|---|
taxpayerIdopcionoGde: queryTip: uuid | |
businessPremiseIdopcionoGde: queryTip: uuid | |
stateopcionoGde: queryTip: string | OPEN is every chain still in progress (including unknown-outcome states the operator must resolve); CLOSED and FAILED are terminal. Vrednosti |
searchopcionoGde: queryTip: string | Case-insensitive substring of the client reference. max 200 |
updatedFromopcionoGde: queryTip: date-time | Only 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
| 200OK | Recent advance chainsAdvanceCasePage |
|---|---|
| 422Unprocessable Content | The 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.
| Polje | Opis |
|---|---|
itemsobaveznoTip: array<AdvanceCase> | |
idobaveznoTip: uuid | |
taxpayerIdobaveznoTip: uuid | |
businessPremiseIdobaveznoTip: uuid | |
clientReferenceobaveznoTip: string | |
externalAdvanceopcionoTip: ExternalAdvance | null (može biti null) | |
amountobaveznoTip: number | Sum of every advance collected before eFiscalization; at most two decimals. > 0step 0.01 |
taxLabelobaveznoTip: string | Tax label of the future supply; must be a prescribed advance label. |
paymentTypeobaveznoTip: PaymentType | Vrednosti |
lastDocumentNumberobaveznoTip: string | Number 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-time | Issue date of that document; must precede the request. |
stateobaveznoTip: string | Vrednosti |
advanceSalesobaveznoTip: array<FiscalDocument> | |
idobaveznoTip: uuid | |
taxpayerIdobaveznoTip: uuid | |
businessPremiseIdobaveznoTip: uuid | |
idempotencyKeyobaveznoTip: string | |
clientReferenceobaveznoTip: string | |
invoiceTypeobaveznoTip: InvoiceType | Vrednosti |
transactionTypeobaveznoTip: TransactionType | Vrednosti |
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 | Vrednosti |
resolvedAtobaveznoTip: date-time | |
statusobaveznoTip: FiscalDocumentStatus | Vrednosti |
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: string | Immutable preferred print/PDF format captured when this fiscal operation was reserved. Vrednosti |
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 | Vrednosti |
transactionTypeobaveznoTip: TransactionType | Vrednosti |
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 | Vrednosti |
resolvedAtobaveznoTip: date-time | |
statusobaveznoTip: FiscalDocumentStatus | Vrednosti |
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: string | Immutable preferred print/PDF format captured when this fiscal operation was reserved. Vrednosti |
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 | Vrednosti |
transactionTypeobaveznoTip: TransactionType | Vrednosti |
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 | Vrednosti |
resolvedAtobaveznoTip: date-time | |
statusobaveznoTip: FiscalDocumentStatus | Vrednosti |
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: string | Immutable preferred print/PDF format captured when this fiscal operation was reserved. Vrednosti |
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 | Vrednosti |
transactionTypeobaveznoTip: TransactionType | Vrednosti |
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 | Vrednosti |
resolvedAtobaveznoTip: date-time | |
statusobaveznoTip: FiscalDocumentStatus | Vrednosti |
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: string | Immutable preferred print/PDF format captured when this fiscal operation was reserved. Vrednosti |
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 |