Lista dostava jednog računa
get/v1/receipt-deliveries
Scope fiscal:read
Sve e-mail dostave jednog fiskalnog dokumenta sa statusom i brojem pokušaja.
Parametri
| Polje | Gde | Tip | Opis |
|---|---|---|---|
fiscalDocumentIdobavezno | query | uuid |
Primer
curl -X GET "https://api.bokapos.rs/v1/receipt-deliveries?fiscalDocumentId=9f8e7d6c-5b4a-4321-8765-0fedcba98761" \
-H "Authorization: Bearer $BOKAPOS_TOKEN"Odgovori
| 200 OK | Deliveries in creation order (at most 100) |
|---|---|
| 422 Unprocessable Content | The command violates a Boka or fiscal ruleErrorCode |
{
"items": [
{
"id": "f6a7b8c9-d0e1-4f2a-9b3c-4d5e6f7a8b90",
"fiscalDocumentId": "9f8e7d6c-5b4a-4321-8765-0fedcba98761",
"channel": "EMAIL",
"recipient": "kupac@example.com",
"language": "sr-Latn",
"attachments": [
"a4"
],
"status": "DELIVERED",
"attempts": 1,
"failureCode": null,
"createdAt": "2026-09-01T08:15:40.000Z",
"deliveredAt": "2026-09-01T08:15:52.418Z",
"updatedAt": "2026-09-01T08:15:52.418Z"
}
]
}Odgovor:
Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.
| Polje | Tip | Opis |
|---|---|---|
itemsobavezno | array<ReceiptDelivery> | |
idobavezno | uuid | |
fiscalDocumentIdobavezno | uuid | |
channelobavezno | const "EMAIL" | |
recipientobavezno | string | |
languageobavezno | ReceiptDeliveryLanguage | Language of the message; the receipt itself is the official journal rendered into the attached PDFs.
|
attachmentsobavezno | ReceiptDeliveryAttachments | Returned in canonical order (a4, 80mm, 58mm, png). An empty list sends the link only.
|
statusobavezno | string |
|
attemptsobavezno | integer | >= 0 |
failureCodeobavezno | string| null (može biti null) | |
createdAtobavezno | date-time | |
deliveredAtobavezno | date-time| null (može biti null) | |
updatedAtobavezno | date-time |