Pretraži dnevnik
get/v1/
Scopefiscal:read
Elektronski dnevnik organizacije: svaki pokušaj izdavanja, uključujući odbijene i one sa nepoznatim ishodom. Filtrira se po obvezniku, prodajnom mestu, statusu, vrsti, vremenu, referenci, PFR broju, kasiru i kupcu; stranice se nižu preko cursor-a.
Beleške iz ugovora (OpenAPI, engleski)
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.
Parametri
| Polje | Opis |
|---|---|
taxpayerIdopcionoGde: queryTip: uuid | |
businessPremiseIdopcionoGde: queryTip: uuid | |
fiscalDocumentIdopcionoGde: queryTip: uuid | |
statusopcionoGde: queryTip: FiscalDocumentStatus | Vrednosti |
invoiceTypeopcionoGde: queryTip: InvoiceType | Vrednosti |
transactionTypeopcionoGde: queryTip: TransactionType | Vrednosti |
createdFromopcionoGde: queryTip: 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. |
createdToopcionoGde: queryTip: date-time | Exclusive upper bound for durable operation creation time. Any RFC 3339 offset is accepted and compared as an instant. |
pfrFromopcionoGde: queryTip: 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. |
pfrToopcionoGde: queryTip: 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. |
idempotencyKeyopcionoGde: queryTip: string | max 200 |
clientReferenceopcionoGde: queryTip: string | max 200 |
pfrNumberopcionoGde: queryTip: string | max 500 |
cashierIdopcionoGde: queryTip: string | max 500 |
buyerIdopcionoGde: queryTip: string | max 500 |
searchopcionoGde: queryTip: string | Case-insensitive contains search across safe identifiers only; raw PFR payload, journal, metadata, and secrets are excluded. max 200 |
cursoropcionoGde: queryTip: string | Opaque keyset cursor returned by the preceding journal page. max 200 |
pageSizeopcionoGde: queryTip: integer | >= 1<= 200default 50 |
Odgovori
| 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 |
Odgovor: FiscalDocumentPage
Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.
| Polje | Opis |
|---|---|
itemsobaveznoTip: 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 |
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: 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 | |
nextCursorobaveznoTip: string | null (može biti null) |