Tok događaja
get/v1/
Scopewebhooks:read
Isti događaji koje webhook obaveštenja guraju, najstariji prvi, za poslednjih 30 dana. Sačuvajte `nextCursor` i pošaljite ga kao `after` sledeći put; kada nema novih događaja, vraća se isti kursor.
Beleške iz ugovora (OpenAPI, engleski)
Keep `nextCursor` and send it as `after` on the next call; with nothing new the same cursor comes back. Events appear a moment after they commit and stay for 30 days. Test events never appear. Scoped to the caller's environment like every other read.
Parametri
| Polje | Opis |
|---|---|
afteropcionoGde: queryTip: string | Opaque cursor from a previous page. pattern ^[0-9]{1,19}$ |
typesopcionoGde: queryTip: string | Comma-separated event types to include. |
limitopcionoGde: queryTip: integer | >= 1<= 200default 100 |
Odgovori
| 200OK | Page of eventsWebhookEventPage |
|---|---|
| 422Unprocessable Content | The command violates a Boka or fiscal ruleErrorCode |
Odgovor: WebhookEventPage
Opisi polja su preuzeti iz OpenAPI ugovora i na engleskom su; nazivi polja i vrednosti su isti u oba jezika.
| Polje | Opis |
|---|---|
itemsobaveznoTip: array<WebhookEvent> | |
idobaveznoTip: uuid | |
typeobaveznoTip: string | A WebhookEventType, or webhook-endpoint.test on a pushed test event. |
timestampobaveznoTip: date-time | When the change happened, not when it was delivered. |
environmentobaveznoTip: string | Vrednosti |
dataobaveznoTip: WebhookFiscalDocumentData | WebhookReceiptDeliveryData | WebhookSecurityElementData | WebhookLicenseData | WebhookTestData | Jedna od varijanti: WebhookFiscalDocumentData | WebhookReceiptDeliveryData | WebhookSecurityElementData | WebhookLicenseData | WebhookTestData |
| WebhookFiscalDocumentData | |
fiscalDocumentIdobaveznoTip: uuid | |
taxpayerIdobaveznoTip: uuid | |
businessPremiseIdobaveznoTip: uuid | |
statusobaveznoTip: string | Vrednosti |
invoiceTypeobaveznoTip: InvoiceType | Vrednosti |
transactionTypeobaveznoTip: TransactionType | Vrednosti |
clientReferenceobaveznoTip: string | null (može biti null) | |
idempotencyKeyobaveznoTip: string | |
pfrInvoiceNumberobaveznoTip: string | null (može biti null) | |
pfrSdcTimeobaveznoTip: date-time | null (može biti null) | |
totalAmountobaveznoTip: number | null (može biti null) | |
verificationUrlobaveznoTip: uri | null (može biti null) | |
failureCodeobaveznoTip: string | null (može biti null) | |
| WebhookReceiptDeliveryData | |
receiptDeliveryIdobaveznoTip: uuid | |
fiscalDocumentIdobaveznoTip: uuid | |
taxpayerIdobaveznoTip: uuid | |
businessPremiseIdobaveznoTip: uuid | |
channelobaveznoTip: const "EMAIL" | |
statusobaveznoTip: string | Vrednosti |
attemptsobaveznoTip: integer | >= 1 |
deliveredAtobaveznoTip: date-time | null (može biti null) | |
failureCodeobaveznoTip: string | null (može biti null) | |
| WebhookSecurityElementData | |
securityElementIdobaveznoTip: uuid | |
taxpayerIdobaveznoTip: uuid | |
businessPremiseIdobaveznoTip: uuid | |
jidobaveznoTip: string | |
statusobaveznoTip: string | Vrednosti |
certificateNotAfterobaveznoTip: date-time | |
expiryStatusopcionoTip: string | Only on security-element.expiring. Vrednosti |
daysRemainingopcionoTip: integer | Whole days until the certificate expires; only on security-element.expiring. >= 0 |
| WebhookLicenseData | |
statusobaveznoTip: string | Vrednosti |
startsOnobaveznoTip: date | |
endsOnobaveznoTip: date | null (može biti null) | |
advanceModuleEnabledobaveznoTip: boolean | |
emailModuleEnabledobaveznoTip: boolean | |
| WebhookTestData | |
webhookEndpointIdobaveznoTip: uuid | |
nextCursorobaveznoTip: string | null (može biti null) | Send as after next time; null only before the first event. |
hasMoreobaveznoTip: boolean | |