List advance cases
get/v1/
Scopefiscal:read
Advance chains by last change, with a state filter (OPEN, CLOSED, FAILED) and a search on the reference.
Contract notes (OpenAPI)
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.
Parameters
| Field | Description |
|---|---|
taxpayerIdoptionalIn: queryType: uuid | |
businessPremiseIdoptionalIn: queryType: uuid | |
stateoptionalIn: queryType: string | OPEN is every chain still in progress (including unknown-outcome states the operator must resolve); CLOSED and FAILED are terminal. Values |
searchoptionalIn: queryType: string | Case-insensitive substring of the client reference. max 200 |
updatedFromoptionalIn: queryType: date-time | Only chains changed at or after this instant. Any RFC 3339 offset is accepted and compared as an instant. |
pageSizeoptionalIn: queryType: integer | >= 1<= 50default 25 |
Responses
| 200OK | Recent advance chainsAdvanceCasePage |
|---|---|
| 422Unprocessable Content | The command violates a Boka or fiscal ruleErrorCode |
Response: AdvanceCasePage
Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.
| Field | Description |
|---|---|
itemsrequiredType: array<AdvanceCase> | |
idrequiredType: uuid | |
taxpayerIdrequiredType: uuid | |
businessPremiseIdrequiredType: uuid | |
clientReferencerequiredType: string | |
externalAdvanceoptionalType: ExternalAdvance | null (nullable) | |
amountrequiredType: number | Sum of every advance collected before eFiscalization; at most two decimals. > 0step 0.01 |
taxLabelrequiredType: string | Tax label of the future supply; must be a prescribed advance label. |
paymentTyperequiredType: PaymentType | Values |
lastDocumentNumberrequiredType: 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}$ |
lastDocumentTimerequiredType: date-time | Issue date of that document; must precede the request. |
staterequiredType: string | Values |
advanceSalesrequiredType: array<FiscalDocument> | |
idrequiredType: uuid | |
taxpayerIdrequiredType: uuid | |
businessPremiseIdrequiredType: uuid | |
idempotencyKeyrequiredType: string | |
clientReferencerequiredType: string | |
invoiceTyperequiredType: InvoiceType | Values |
transactionTyperequiredType: TransactionType | Values |
cashierIdrequiredType: string | |
buyerIdoptionalType: string | null (nullable) | |
buyerDetailsoptionalType: FiscalBuyerDetails | null (nullable) | 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. |
legalNamerequiredType: string | max 350 |
taxIdentifierrequiredType: string | pattern ^[0-9]{9}$ |
registrationNumberoptionalType: string | null (nullable) | pattern ^[0-9]{8}$ |
addressoptionalType: string | null (nullable) | max 300 |
cityoptionalType: string | null (nullable) | max 100 |
sourcerequiredType: string | Values |
resolvedAtrequiredType: date-time | |
statusrequiredType: FiscalDocumentStatus | Values |
fiscalizedrequiredType: boolean | |
failureCodeoptionalType: string | null (nullable) | |
pfrRejectionoptionalType: object | null (nullable) | 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. |
itemsrequiredType: array<object> | max 10 items |
retryablerequiredType: boolean | |
pfroptionalType: PfrResult | null (nullable) | |
invoiceNumberrequiredType: string | |
sdcTimerequiredType: date-time | |
requestedByrequiredType: string | |
signedByrequiredType: string | |
transactionTypeCounteroptionalType: integer | null (nullable) | 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. |
totalCounteroptionalType: integer | null (nullable) | V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter. |
invoiceCounterExtensionoptionalType: string | null (nullable) | Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter. |
totalAmountrequiredType: number | |
totalTaxoptionalType: number | null (nullable) | 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. |
verificationUrlrequiredType: uri | |
journalrequiredType: string | |
receiptoptionalType: ReceiptRepresentations | null (nullable) | |
textUrlrequiredType: uri-reference | |
jsonUrlrequiredType: uri-reference | |
pdfA4UrlrequiredType: uri-reference | |
pdf80mmUrlrequiredType: uri-reference | |
pdf58mmUrlrequiredType: uri-reference | |
previewImageUrlrequiredType: uri-reference | |
qrImageUrlrequiredType: uri-reference | |
verificationUrlrequiredType: uri | |
preferredPaperFormatrequiredType: string | Immutable preferred print/PDF format captured when this fiscal operation was reserved. Values |
referenceoptionalType: ResolvedReference | |
fiscalDocumentIdoptionalType: uuid | |
pfrNumberrequiredType: string | |
pfrTimerequiredType: date-time | |
createdAtrequiredType: date-time | |
updatedAtrequiredType: date-time | |
cancellationsrequiredType: array<FiscalDocument> | Standalone Advance Refunds that cancelled an erroneous Advance Sale of this case, in issue order. |
idrequiredType: uuid | |
taxpayerIdrequiredType: uuid | |
businessPremiseIdrequiredType: uuid | |
idempotencyKeyrequiredType: string | |
clientReferencerequiredType: string | |
invoiceTyperequiredType: InvoiceType | Values |
transactionTyperequiredType: TransactionType | Values |
cashierIdrequiredType: string | |
buyerIdoptionalType: string | null (nullable) | |
buyerDetailsoptionalType: FiscalBuyerDetails | null (nullable) | 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. |
legalNamerequiredType: string | max 350 |
taxIdentifierrequiredType: string | pattern ^[0-9]{9}$ |
registrationNumberoptionalType: string | null (nullable) | pattern ^[0-9]{8}$ |
addressoptionalType: string | null (nullable) | max 300 |
cityoptionalType: string | null (nullable) | max 100 |
sourcerequiredType: string | Values |
resolvedAtrequiredType: date-time | |
statusrequiredType: FiscalDocumentStatus | Values |
fiscalizedrequiredType: boolean | |
failureCodeoptionalType: string | null (nullable) | |
pfrRejectionoptionalType: object | null (nullable) | 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. |
itemsrequiredType: array<object> | max 10 items |
retryablerequiredType: boolean | |
pfroptionalType: PfrResult | null (nullable) | |
invoiceNumberrequiredType: string | |
sdcTimerequiredType: date-time | |
requestedByrequiredType: string | |
signedByrequiredType: string | |
transactionTypeCounteroptionalType: integer | null (nullable) | 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. |
totalCounteroptionalType: integer | null (nullable) | V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter. |
invoiceCounterExtensionoptionalType: string | null (nullable) | Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter. |
totalAmountrequiredType: number | |
totalTaxoptionalType: number | null (nullable) | 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. |
verificationUrlrequiredType: uri | |
journalrequiredType: string | |
receiptoptionalType: ReceiptRepresentations | null (nullable) | |
textUrlrequiredType: uri-reference | |
jsonUrlrequiredType: uri-reference | |
pdfA4UrlrequiredType: uri-reference | |
pdf80mmUrlrequiredType: uri-reference | |
pdf58mmUrlrequiredType: uri-reference | |
previewImageUrlrequiredType: uri-reference | |
qrImageUrlrequiredType: uri-reference | |
verificationUrlrequiredType: uri | |
preferredPaperFormatrequiredType: string | Immutable preferred print/PDF format captured when this fiscal operation was reserved. Values |
referenceoptionalType: ResolvedReference | |
fiscalDocumentIdoptionalType: uuid | |
pfrNumberrequiredType: string | |
pfrTimerequiredType: date-time | |
createdAtrequiredType: date-time | |
updatedAtrequiredType: date-time | |
cancelledAdvanceSaleIdsrequiredType: 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. |
advanceRefundoptionalType: FiscalDocument | null (nullable) | |
idrequiredType: uuid | |
taxpayerIdrequiredType: uuid | |
businessPremiseIdrequiredType: uuid | |
idempotencyKeyrequiredType: string | |
clientReferencerequiredType: string | |
invoiceTyperequiredType: InvoiceType | Values |
transactionTyperequiredType: TransactionType | Values |
cashierIdrequiredType: string | |
buyerIdoptionalType: string | null (nullable) | |
buyerDetailsoptionalType: FiscalBuyerDetails | null (nullable) | 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. |
legalNamerequiredType: string | max 350 |
taxIdentifierrequiredType: string | pattern ^[0-9]{9}$ |
registrationNumberoptionalType: string | null (nullable) | pattern ^[0-9]{8}$ |
addressoptionalType: string | null (nullable) | max 300 |
cityoptionalType: string | null (nullable) | max 100 |
sourcerequiredType: string | Values |
resolvedAtrequiredType: date-time | |
statusrequiredType: FiscalDocumentStatus | Values |
fiscalizedrequiredType: boolean | |
failureCodeoptionalType: string | null (nullable) | |
pfrRejectionoptionalType: object | null (nullable) | 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. |
itemsrequiredType: array<object> | max 10 items |
retryablerequiredType: boolean | |
pfroptionalType: PfrResult | null (nullable) | |
invoiceNumberrequiredType: string | |
sdcTimerequiredType: date-time | |
requestedByrequiredType: string | |
signedByrequiredType: string | |
transactionTypeCounteroptionalType: integer | null (nullable) | 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. |
totalCounteroptionalType: integer | null (nullable) | V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter. |
invoiceCounterExtensionoptionalType: string | null (nullable) | Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter. |
totalAmountrequiredType: number | |
totalTaxoptionalType: number | null (nullable) | 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. |
verificationUrlrequiredType: uri | |
journalrequiredType: string | |
receiptoptionalType: ReceiptRepresentations | null (nullable) | |
textUrlrequiredType: uri-reference | |
jsonUrlrequiredType: uri-reference | |
pdfA4UrlrequiredType: uri-reference | |
pdf80mmUrlrequiredType: uri-reference | |
pdf58mmUrlrequiredType: uri-reference | |
previewImageUrlrequiredType: uri-reference | |
qrImageUrlrequiredType: uri-reference | |
verificationUrlrequiredType: uri | |
preferredPaperFormatrequiredType: string | Immutable preferred print/PDF format captured when this fiscal operation was reserved. Values |
referenceoptionalType: ResolvedReference | |
fiscalDocumentIdoptionalType: uuid | |
pfrNumberrequiredType: string | |
pfrTimerequiredType: date-time | |
createdAtrequiredType: date-time | |
updatedAtrequiredType: date-time | |
finalSaleoptionalType: FiscalDocument | null (nullable) | |
idrequiredType: uuid | |
taxpayerIdrequiredType: uuid | |
businessPremiseIdrequiredType: uuid | |
idempotencyKeyrequiredType: string | |
clientReferencerequiredType: string | |
invoiceTyperequiredType: InvoiceType | Values |
transactionTyperequiredType: TransactionType | Values |
cashierIdrequiredType: string | |
buyerIdoptionalType: string | null (nullable) | |
buyerDetailsoptionalType: FiscalBuyerDetails | null (nullable) | 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. |
legalNamerequiredType: string | max 350 |
taxIdentifierrequiredType: string | pattern ^[0-9]{9}$ |
registrationNumberoptionalType: string | null (nullable) | pattern ^[0-9]{8}$ |
addressoptionalType: string | null (nullable) | max 300 |
cityoptionalType: string | null (nullable) | max 100 |
sourcerequiredType: string | Values |
resolvedAtrequiredType: date-time | |
statusrequiredType: FiscalDocumentStatus | Values |
fiscalizedrequiredType: boolean | |
failureCodeoptionalType: string | null (nullable) | |
pfrRejectionoptionalType: object | null (nullable) | 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. |
itemsrequiredType: array<object> | max 10 items |
retryablerequiredType: boolean | |
pfroptionalType: PfrResult | null (nullable) | |
invoiceNumberrequiredType: string | |
sdcTimerequiredType: date-time | |
requestedByrequiredType: string | |
signedByrequiredType: string | |
transactionTypeCounteroptionalType: integer | null (nullable) | 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. |
totalCounteroptionalType: integer | null (nullable) | V-PFR total counter (the right half of the printed counter and the last segment of invoiceNumber). Null under the same condition as transactionTypeCounter. |
invoiceCounterExtensionoptionalType: string | null (nullable) | Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter. |
totalAmountrequiredType: number | |
totalTaxoptionalType: number | null (nullable) | 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. |
verificationUrlrequiredType: uri | |
journalrequiredType: string | |
receiptoptionalType: ReceiptRepresentations | null (nullable) | |
textUrlrequiredType: uri-reference | |
jsonUrlrequiredType: uri-reference | |
pdfA4UrlrequiredType: uri-reference | |
pdf80mmUrlrequiredType: uri-reference | |
pdf58mmUrlrequiredType: uri-reference | |
previewImageUrlrequiredType: uri-reference | |
qrImageUrlrequiredType: uri-reference | |
verificationUrlrequiredType: uri | |
preferredPaperFormatrequiredType: string | Immutable preferred print/PDF format captured when this fiscal operation was reserved. Values |
referenceoptionalType: ResolvedReference | |
fiscalDocumentIdoptionalType: uuid | |
pfrNumberrequiredType: string | |
pfrTimerequiredType: date-time | |
createdAtrequiredType: date-time | |
updatedAtrequiredType: date-time | |
failureCodeoptionalType: string | null (nullable) | |
createdAtrequiredType: date-time | |
updatedAtrequiredType: date-time |