Search the journal
get/v1/
Scopefiscal:read
The organization's electronic journal: every issuance attempt, including rejected ones and unknown outcomes. Filter by taxpayer, premise, status, type, time, reference, PFR number, cashier and buyer; pages continue through the cursor.
Contract notes (OpenAPI)
Returns durable fiscal-operation state ordered by createdAt and id, both descending. createdFrom and pfrFrom are inclusive; createdTo and pfrTo are exclusive. The opaque cursor continues the same ordering. A journal entry whose fiscalized value is false is not a fiscal receipt. Scoped to the caller's environment: a machine credential never sees documents of the other environment, and fetching one by id is 404.
Parameters
| Field | Description |
|---|---|
taxpayerIdoptionalIn: queryType: uuid | |
businessPremiseIdoptionalIn: queryType: uuid | |
fiscalDocumentIdoptionalIn: queryType: uuid | |
statusoptionalIn: queryType: FiscalDocumentStatus | Values |
invoiceTypeoptionalIn: queryType: InvoiceType | Values |
transactionTypeoptionalIn: queryType: TransactionType | Values |
createdFromoptionalIn: queryType: date-time | Inclusive lower bound for durable operation creation time. Any RFC 3339 offset is accepted (Z, +00:00, +02:00) and compared as an instant. |
createdTooptionalIn: queryType: date-time | Exclusive upper bound for durable operation creation time. Any RFC 3339 offset is accepted and compared as an instant. |
pfrFromoptionalIn: queryType: date-time | Inclusive lower bound for authoritative PFR signing time; excludes entries with no PFR receipt. Any RFC 3339 offset is accepted and compared as an instant. |
pfrTooptionalIn: queryType: date-time | Exclusive upper bound for authoritative PFR signing time; excludes entries with no PFR receipt. Any RFC 3339 offset is accepted and compared as an instant. |
idempotencyKeyoptionalIn: queryType: string | max 200 |
clientReferenceoptionalIn: queryType: string | max 200 |
pfrNumberoptionalIn: queryType: string | max 500 |
cashierIdoptionalIn: queryType: string | max 500 |
buyerIdoptionalIn: queryType: string | max 500 |
searchoptionalIn: queryType: string | Case-insensitive contains search across safe identifiers only; raw PFR payload, journal, metadata, and secrets are excluded. max 200 |
cursoroptionalIn: queryType: string | Opaque keyset cursor returned by the preceding journal page. max 200 |
pageSizeoptionalIn: queryType: integer | >= 1<= 200default 50 |
Responses
| 200OK | Page of fiscal documentsFiscalDocumentPage |
|---|---|
| 400Bad Request | The command violates a Boka or fiscal ruleErrorCode |
| 422Unprocessable Content | The command violates a Boka or fiscal ruleErrorCode |
Response: FiscalDocumentPage
Field descriptions come from the OpenAPI contract; field names and values are identical in both languages.
| Field | Description |
|---|---|
itemsrequiredType: 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 |
propertyrequiredType: string | max 120 |
codesrequiredType: array<string> | max 5 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 | |
nextCursorrequiredType: string | null (nullable) |