List advance cases
get/v1/advance-cases
Scope fiscal: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 | In | Type | Description |
|---|---|---|---|
taxpayerIdoptional | query | uuid | |
businessPremiseIdoptional | query | uuid | |
stateoptional | query | string | OPEN is every chain still in progress (including unknown-outcome states the operator must resolve); CLOSED and FAILED are terminal.
|
searchoptional | query | string | Case-insensitive substring of the client reference. max 200 |
updatedFromoptional | query | date-time | Only chains changed at or after this instant. Any RFC 3339 offset is accepted and compared as an instant. |
pageSizeoptional | query | integer | >= 1<= 50default 25 |
Example
curl -X GET "https://api.bokapos.rs/v1/advance-cases?businessPremiseId=b7d4e2c1-9a3f-4c8e-8f21-6e5a0c9d3b22&state=OPEN&search=ORDER-5001" \
-H "Authorization: Bearer $BOKAPOS_TOKEN"Responses
| 200 OK | Recent advance chainsAdvanceCasePage |
|---|---|
| 422 Unprocessable Content | The command violates a Boka or fiscal ruleErrorCode |
{
"items": [
{
"id": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
"taxpayerId": "3f9c2a8e-6b1d-4e5a-9c47-1d2b8e6f0a11",
"businessPremiseId": "b7d4e2c1-9a3f-4c8e-8f21-6e5a0c9d3b22",
"clientReference": "ORDER-5001",
"externalAdvance": null,
"state": "OPEN",
"advanceSales": [],
"cancellations": [],
"cancelledAdvanceSaleIds": [],
"advanceRefund": null,
"finalSale": null,
"failureCode": null,
"createdAt": "2026-09-03T09:00:00.000Z",
"updatedAt": "2026-09-03T09:01:00.700Z"
}
]
}Response: AdvanceCasePage
Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.
| Field | Type | Description |
|---|---|---|
itemsrequired | array<AdvanceCase> | |
idrequired | uuid | |
taxpayerIdrequired | uuid | |
businessPremiseIdrequired | uuid | |
clientReferencerequired | string | |
externalAdvanceoptional | ExternalAdvance| null (nullable) | |
amountrequired | number | Sum of every advance collected before eFiscalization; at most two decimals. > 0step 0.01 |
taxLabelrequired | string | Tax label of the future supply; must be a prescribed advance label. |
paymentTyperequired | PaymentType |
|
lastDocumentNumberrequired | 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}$ |
lastDocumentTimerequired | date-time | Issue date of that document; must precede the request. |
staterequired | string |
|
advanceSalesrequired | array<FiscalDocument> | |
idrequired | uuid | |
taxpayerIdrequired | uuid | |
businessPremiseIdrequired | uuid | |
idempotencyKeyrequired | string | |
clientReferencerequired | string | |
invoiceTyperequired | InvoiceType |
|
transactionTyperequired | TransactionType |
|
cashierIdrequired | string | |
buyerIdoptional | string| null (nullable) | |
buyerDetailsoptional | 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. |
legalNamerequired | string | max 350 |
taxIdentifierrequired | string | pattern ^[0-9]{9}$ |
registrationNumberoptional | string| null (nullable) | pattern ^[0-9]{8}$ |
addressoptional | string| null (nullable) | max 300 |
cityoptional | string| null (nullable) | max 100 |
sourcerequired | string |
|
resolvedAtrequired | date-time | |
statusrequired | FiscalDocumentStatus |
|
fiscalizedrequired | boolean | |
failureCodeoptional | string| null (nullable) | |
pfrRejectionoptional | 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. |
itemsrequired | array<object> | max 10 items |
retryablerequired | boolean | |
pfroptional | PfrResult| null (nullable) | |
invoiceNumberrequired | string | |
sdcTimerequired | date-time | |
requestedByrequired | string | |
signedByrequired | string | |
transactionTypeCounteroptional | 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. |
totalCounteroptional | 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. |
invoiceCounterExtensionoptional | string| null (nullable) | Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter. |
totalAmountrequired | number | |
totalTaxoptional | 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. |
verificationUrlrequired | uri | |
journalrequired | string | |
receiptoptional | ReceiptRepresentations| null (nullable) | |
textUrlrequired | uri-reference | |
jsonUrlrequired | uri-reference | |
pdfA4Urlrequired | uri-reference | |
pdf80mmUrlrequired | uri-reference | |
pdf58mmUrlrequired | uri-reference | |
previewImageUrlrequired | uri-reference | |
qrImageUrlrequired | uri-reference | |
verificationUrlrequired | uri | |
preferredPaperFormatrequired | string | Immutable preferred print/PDF format captured when this fiscal operation was reserved.
|
referenceoptional | ResolvedReference | |
fiscalDocumentIdoptional | uuid | |
pfrNumberrequired | string | |
pfrTimerequired | date-time | |
createdAtrequired | date-time | |
updatedAtrequired | date-time | |
cancellationsrequired | array<FiscalDocument> | Standalone Advance Refunds that cancelled an erroneous Advance Sale of this case, in issue order. |
idrequired | uuid | |
taxpayerIdrequired | uuid | |
businessPremiseIdrequired | uuid | |
idempotencyKeyrequired | string | |
clientReferencerequired | string | |
invoiceTyperequired | InvoiceType |
|
transactionTyperequired | TransactionType |
|
cashierIdrequired | string | |
buyerIdoptional | string| null (nullable) | |
buyerDetailsoptional | 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. |
legalNamerequired | string | max 350 |
taxIdentifierrequired | string | pattern ^[0-9]{9}$ |
registrationNumberoptional | string| null (nullable) | pattern ^[0-9]{8}$ |
addressoptional | string| null (nullable) | max 300 |
cityoptional | string| null (nullable) | max 100 |
sourcerequired | string |
|
resolvedAtrequired | date-time | |
statusrequired | FiscalDocumentStatus |
|
fiscalizedrequired | boolean | |
failureCodeoptional | string| null (nullable) | |
pfrRejectionoptional | 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. |
itemsrequired | array<object> | max 10 items |
retryablerequired | boolean | |
pfroptional | PfrResult| null (nullable) | |
invoiceNumberrequired | string | |
sdcTimerequired | date-time | |
requestedByrequired | string | |
signedByrequired | string | |
transactionTypeCounteroptional | 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. |
totalCounteroptional | 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. |
invoiceCounterExtensionoptional | string| null (nullable) | Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter. |
totalAmountrequired | number | |
totalTaxoptional | 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. |
verificationUrlrequired | uri | |
journalrequired | string | |
receiptoptional | ReceiptRepresentations| null (nullable) | |
textUrlrequired | uri-reference | |
jsonUrlrequired | uri-reference | |
pdfA4Urlrequired | uri-reference | |
pdf80mmUrlrequired | uri-reference | |
pdf58mmUrlrequired | uri-reference | |
previewImageUrlrequired | uri-reference | |
qrImageUrlrequired | uri-reference | |
verificationUrlrequired | uri | |
preferredPaperFormatrequired | string | Immutable preferred print/PDF format captured when this fiscal operation was reserved.
|
referenceoptional | ResolvedReference | |
fiscalDocumentIdoptional | uuid | |
pfrNumberrequired | string | |
pfrTimerequired | date-time | |
createdAtrequired | date-time | |
updatedAtrequired | date-time | |
cancelledAdvanceSaleIdsrequired | 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. |
advanceRefundoptional | FiscalDocument| null (nullable) | |
idrequired | uuid | |
taxpayerIdrequired | uuid | |
businessPremiseIdrequired | uuid | |
idempotencyKeyrequired | string | |
clientReferencerequired | string | |
invoiceTyperequired | InvoiceType |
|
transactionTyperequired | TransactionType |
|
cashierIdrequired | string | |
buyerIdoptional | string| null (nullable) | |
buyerDetailsoptional | 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. |
legalNamerequired | string | max 350 |
taxIdentifierrequired | string | pattern ^[0-9]{9}$ |
registrationNumberoptional | string| null (nullable) | pattern ^[0-9]{8}$ |
addressoptional | string| null (nullable) | max 300 |
cityoptional | string| null (nullable) | max 100 |
sourcerequired | string |
|
resolvedAtrequired | date-time | |
statusrequired | FiscalDocumentStatus |
|
fiscalizedrequired | boolean | |
failureCodeoptional | string| null (nullable) | |
pfrRejectionoptional | 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. |
itemsrequired | array<object> | max 10 items |
retryablerequired | boolean | |
pfroptional | PfrResult| null (nullable) | |
invoiceNumberrequired | string | |
sdcTimerequired | date-time | |
requestedByrequired | string | |
signedByrequired | string | |
transactionTypeCounteroptional | 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. |
totalCounteroptional | 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. |
invoiceCounterExtensionoptional | string| null (nullable) | Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter. |
totalAmountrequired | number | |
totalTaxoptional | 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. |
verificationUrlrequired | uri | |
journalrequired | string | |
receiptoptional | ReceiptRepresentations| null (nullable) | |
textUrlrequired | uri-reference | |
jsonUrlrequired | uri-reference | |
pdfA4Urlrequired | uri-reference | |
pdf80mmUrlrequired | uri-reference | |
pdf58mmUrlrequired | uri-reference | |
previewImageUrlrequired | uri-reference | |
qrImageUrlrequired | uri-reference | |
verificationUrlrequired | uri | |
preferredPaperFormatrequired | string | Immutable preferred print/PDF format captured when this fiscal operation was reserved.
|
referenceoptional | ResolvedReference | |
fiscalDocumentIdoptional | uuid | |
pfrNumberrequired | string | |
pfrTimerequired | date-time | |
createdAtrequired | date-time | |
updatedAtrequired | date-time | |
finalSaleoptional | FiscalDocument| null (nullable) | |
idrequired | uuid | |
taxpayerIdrequired | uuid | |
businessPremiseIdrequired | uuid | |
idempotencyKeyrequired | string | |
clientReferencerequired | string | |
invoiceTyperequired | InvoiceType |
|
transactionTyperequired | TransactionType |
|
cashierIdrequired | string | |
buyerIdoptional | string| null (nullable) | |
buyerDetailsoptional | 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. |
legalNamerequired | string | max 350 |
taxIdentifierrequired | string | pattern ^[0-9]{9}$ |
registrationNumberoptional | string| null (nullable) | pattern ^[0-9]{8}$ |
addressoptional | string| null (nullable) | max 300 |
cityoptional | string| null (nullable) | max 100 |
sourcerequired | string |
|
resolvedAtrequired | date-time | |
statusrequired | FiscalDocumentStatus |
|
fiscalizedrequired | boolean | |
failureCodeoptional | string| null (nullable) | |
pfrRejectionoptional | 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. |
itemsrequired | array<object> | max 10 items |
retryablerequired | boolean | |
pfroptional | PfrResult| null (nullable) | |
invoiceNumberrequired | string | |
sdcTimerequired | date-time | |
requestedByrequired | string | |
signedByrequired | string | |
transactionTypeCounteroptional | 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. |
totalCounteroptional | 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. |
invoiceCounterExtensionoptional | string| null (nullable) | Official Cyrillic invoice/transaction type pair printed after the counter (ПП, ПР, АП, АР, КП, КР, ОП, ОР, РП, РР). Null under the same condition as transactionTypeCounter. |
totalAmountrequired | number | |
totalTaxoptional | 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. |
verificationUrlrequired | uri | |
journalrequired | string | |
receiptoptional | ReceiptRepresentations| null (nullable) | |
textUrlrequired | uri-reference | |
jsonUrlrequired | uri-reference | |
pdfA4Urlrequired | uri-reference | |
pdf80mmUrlrequired | uri-reference | |
pdf58mmUrlrequired | uri-reference | |
previewImageUrlrequired | uri-reference | |
qrImageUrlrequired | uri-reference | |
verificationUrlrequired | uri | |
preferredPaperFormatrequired | string | Immutable preferred print/PDF format captured when this fiscal operation was reserved.
|
referenceoptional | ResolvedReference | |
fiscalDocumentIdoptional | uuid | |
pfrNumberrequired | string | |
pfrTimerequired | date-time | |
createdAtrequired | date-time | |
updatedAtrequired | date-time | |
failureCodeoptional | string| null (nullable) | |
createdAtrequired | date-time | |
updatedAtrequired | date-time |