Expenses
Webhook įvykis
expense.updated
Sent when an expense is replaced or its file is swapped.
2XXReturn any 2xx status to acknowledge the delivery. Any other status or a timeout schedules a retry.
- Bandymas 1: Dabar
- Bandymas 2: +10 s
- Bandymas 3: +100 s
Po 3 nesėkmių pranešimas nebesiunčiamas. Pristatymai gali kartotis ir atkeliauti ne iš eilės. Padarykite savo apdorojimo funkciją idempotentišką.
Lowercase hex HMAC-SHA256 of the raw request body, keyed with the webhook subscription's signing secret (whsec_…). Recompute it over the exact bytes received and compare with a constant-time function before trusting the payload. No timestamp or event-id header is sent.
Turinio laukai
{ event, data } · 9 laukai
eventstringVisada"expense.updated"dataExpenseidstring (uuid)pvz.,"d2b6f1a4-7c8e-4f90-a1b2-c3d4e5f6a7b8"datestring (date)gali būti nullpvz.,"2026-03-04"Document date,
Y-m-d.totalnumberpvz.,60.5Amount including VAT.
currencystringpvz.,"EUR"sellerstringpvz.,"Tiekėjas, UAB"created_atintegerpvz.,1772713800Unix timestamp, seconds.
updated_atintegerpvz.,1772713800Unix timestamp, seconds.
Susiję
- Pakartotiniai siuntimaiPristatymai gali atkeliauti daugiau nei vieną kartą ir ne iš eilės; padarykite apdorojimo funkciją idempotentišką.
- Patikrinkite parašąPrieš pasitikėdami turiniu, patikrinkite antraštę
Signaturepagal neapdorotą užklausos turinį. - GET/expenses/{expense}Gaukite dabartinę būseną
- EVENTexpense.createdSent when an expense is created through the API or the app.
- EVENTexpense.deletedSent when an expense is deleted through the API or the app.
- Webhook pranešimų gidasPrenumerata, parašo tikrinimas, pakartotiniai siuntimai
expense.created Webhook
Sent when an expense is created through the API or the app. Each event is attempted up to 3 times: the first delivery, then retries after 10 s and 100 s; only a 2xx response counts as success. The request times out after 10 seconds.
expense.deleted Webhook
Sent when an expense is deleted through the API or the app. The payload contains only the id of the deleted expense. Each event is attempted up to 3 times: the first delivery, then retries after 10 s and 100 s; only a 2xx response counts as success. The request times out after 10 seconds.