Pređi na sadržaj
Referenca

Dostava računa e-poštom

Slanje fiskalizovanog računa kupcu sa platforme, sa verifikacionim linkom i PDF prilozima (modul E-mail).

3 operacija

Lista dostava jednog računa

get/v1/receipt-deliveries

Scopefiscal:read

Sve e-mail dostave jednog fiskalnog dokumenta sa statusom i brojem pokušaja.

Parametri

listReceiptDeliveries: Parametri
PoljeOpis
fiscalDocumentIdobaveznoGde: queryTip: uuid

Odgovori

listReceiptDeliveries: Odgovori
200OKDeliveries in creation order (at most 100)
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
Odgovor:

Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.

listReceiptDeliveries: Odgovor
PoljeOpis
itemsobaveznoTip: array<ReceiptDelivery>
idobaveznoTip: uuid
fiscalDocumentIdobaveznoTip: uuid
channelobaveznoTip: const "EMAIL"
recipientobaveznoTip: string
languageobaveznoTip: ReceiptDeliveryLanguageLanguage of the message; the receipt itself is the official journal rendered into the attached PDFs.

Vrednostisr-Cyrlsr-Latnen

attachmentsobaveznoTip: ReceiptDeliveryAttachmentsReturned in canonical order (a4, 80mm, 58mm, png). An empty list sends the link only.

Vrednostia480mm58mmpngmax 4 itemsunique

statusobaveznoTip: string

VrednostiQUEUEDSENDINGDELIVEREDFAILED

attemptsobaveznoTip: integer

>= 0

failureCodeobaveznoTip: string | null (može biti null)
createdAtobaveznoTip: date-time
deliveredAtobaveznoTip: date-time | null (može biti null)
updatedAtobaveznoTip: date-time

Pošalji račun e-poštom

post/v1/receipt-deliveries

Scopefiscal:writeZahteva Idempotency-Key

Stavlja u red jednu poruku sa verifikacionim linkom i izabranim PDF prilozima, na jeziku obveznika. Radi samo za fiskalizovan dokument i samo ako je obveznik uključio dostavu u podešavanjima; u produkciji traži modul E-mail. Status dostave nikad nije dokaz fiskalizacije.

Beleške iz ugovora (OpenAPI, engleski)

Queues one email delivery of one fiscalized document from the platform mailbox, in the taxpayer's chosen language, with the official verification URL as an active link and the A4 PDF attached. Delivery is queued only after the signed result is durably stored, only when the taxpayer enabled email delivery in its settings (422 RECEIPT_DELIVERY_DISABLED otherwise; the taxpayer then delivers through its own system), and only while the platform transport is configured (503 RECEIPT_DELIVERY_UNAVAILABLE otherwise). An advance refund, and a copy of one, are refused with 422 RECEIPT_DELIVERY_DOCUMENT_NOT_ISSUED_TO_BUYER: the official guideline never issues that document to the buyer, so send the final receipt of the advance case instead. Every other kind is delivered. A delivery outcome is never evidence of fiscalization. Tenant branding stays outside the fiscal receipt boundary.

Telo zahtevaapplication/json

createReceiptDelivery: Telo zahteva
PoljeOpis
fiscalDocumentIdobaveznoTip: uuid
channelobaveznoTip: const "EMAIL"
recipientobaveznoTip: email

max 320

languageopcionoTip: ReceiptDeliveryLanguage | null (može biti null)Defaults to the taxpayer's setting.

Vrednostisr-Cyrlsr-Latnen

attachmentsopcionoTip: ReceiptDeliveryAttachments | null (može biti null)Defaults to the taxpayer's setting.

Vrednostia480mm58mmpng

Odgovori

createReceiptDelivery: Odgovori
200OKIdempotent replayReceiptDelivery
202AcceptedDelivery queuedReceiptDelivery

Zaglavlja odgovora: Location

404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
409ConflictThe key was already used with different canonical contentIdempotencyConflict
422Unprocessable ContentThe command violates a Boka or fiscal ruleErrorCode
503Service UnavailableThe platform mail transport is not configured
Odgovor: ReceiptDelivery

Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.

createReceiptDelivery: Odgovor
PoljeOpis
idobaveznoTip: uuid
fiscalDocumentIdobaveznoTip: uuid
channelobaveznoTip: const "EMAIL"
recipientobaveznoTip: string
languageobaveznoTip: ReceiptDeliveryLanguageLanguage of the message; the receipt itself is the official journal rendered into the attached PDFs.

Vrednostisr-Cyrlsr-Latnen

attachmentsobaveznoTip: ReceiptDeliveryAttachmentsReturned in canonical order (a4, 80mm, 58mm, png). An empty list sends the link only.

Vrednostia480mm58mmpngmax 4 itemsunique

statusobaveznoTip: string

VrednostiQUEUEDSENDINGDELIVEREDFAILED

attemptsobaveznoTip: integer

>= 0

failureCodeobaveznoTip: string | null (može biti null)
createdAtobaveznoTip: date-time
deliveredAtobaveznoTip: date-time | null (može biti null)
updatedAtobaveznoTip: date-time

Pročitaj dostavu

get/v1/receipt-deliveries/{receiptDeliveryId}

Scopefiscal:read

Stanje jedne dostave: QUEUED, SENDING, DELIVERED ili FAILED sa šifrom.

Parametri

getReceiptDelivery: Parametri
PoljeOpis
receiptDeliveryIdobaveznoGde: pathTip: uuid

Odgovori

getReceiptDelivery: Odgovori
200OKDeliveryReceiptDelivery
404Not FoundResource does not exist within the authenticated tenant scopeErrorCode
Odgovor: ReceiptDelivery

Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.

getReceiptDelivery: Odgovor
PoljeOpis
idobaveznoTip: uuid
fiscalDocumentIdobaveznoTip: uuid
channelobaveznoTip: const "EMAIL"
recipientobaveznoTip: string
languageobaveznoTip: ReceiptDeliveryLanguageLanguage of the message; the receipt itself is the official journal rendered into the attached PDFs.

Vrednostisr-Cyrlsr-Latnen

attachmentsobaveznoTip: ReceiptDeliveryAttachmentsReturned in canonical order (a4, 80mm, 58mm, png). An empty list sends the link only.

Vrednostia480mm58mmpngmax 4 itemsunique

statusobaveznoTip: string

VrednostiQUEUEDSENDINGDELIVEREDFAILED

attemptsobaveznoTip: integer

>= 0

failureCodeobaveznoTip: string | null (može biti null)
createdAtobaveznoTip: date-time
deliveredAtobaveznoTip: date-time | null (može biti null)
updatedAtobaveznoTip: date-time