Webhook events
The webhook_event object
One delivery of an event to one of your webhook endpoints, with its delivery status. An event sent to several endpoints has one delivery per endpoint, all naming the same event_id.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
application_country_idstringRequiredID of your account's country configuration the delivery belongs to.
event_idstringRequiredID of the event delivered (
evt_…), theida webhook body carries. Retrieve it withGET /events/{id}.job_idstringRequiredIdentifier of this delivery. It is sent as the
Idempotency-Keyheader on every attempt, so your endpoint can ignore repeats.eventstringRequiredType of the event, e.g.
invoice.paid.endpoint_idstringRequiredID of the webhook endpoint the event is sent to.
dataobjectRequiredThe event payload sent to your endpoint: the object the event is about, such as the invoice for an invoice event.
statusenumRequiredDelivery state of the event.
pendingWaiting to be delivered or retried. Failed attempts are retried with growing delays, by default after 5 minutes, 30 minutes, 2 hours and 24 hours.
deliveredYour endpoint answered with a 2xx status.
failedDelivery gave up: every attempt failed, or the endpoint was disabled or removed.
attemptsintegerRequiredNumber of delivery attempts that have failed.
0when the first attempt succeeded or none has run yet.timestamptimestampRequiredUnix timestamp in seconds.
last_response_codeintegerRequiredNullableHTTP status code your endpoint returned on the final failed attempt, set when delivery gives up.
nullotherwise, or when the endpoint could not be reached.last_errorstringRequiredNullableError from the final failed attempt, set when delivery gives up.
nullotherwise.failed_attimestampRequiredNullableUnix timestamp in seconds.