Every webhook event for a resource is wrapped in the following structure:
Copy
Ask AI
{ "apiVersion": "2024-08-01", // The API version of the webhook event payload. "event": { "id": "<webhook-event-id>", // The unique ID for the event; remains the same during reties. "name": "<webhook-event-name", // The name of the event in the format <resource-type>.<event_name>, eg. payment_code.expired. "timestamp": "1725018144" // The timestamp in Unix seconds when the event was fired. }, "object": { "id": "<resource-id>", // The id of the resource for which the event was triggered "type": "<resource-type>" // The unique string representing the resource }, "data": {} // Resource definition. (The payment code object)}
Every webhook event for a resource is wrapped in the following structure:
Copy
Ask AI
{ "apiVersion": "2024-08-01", // The API version of the webhook event payload. "event": { "id": "<webhook-event-id>", // The unique ID for the event; remains the same during reties. "name": "<webhook-event-name", // The name of the event in the format <resource-type>.<event_name>, eg. payment_code.expired. "timestamp": "1725018144" // The timestamp in Unix seconds when the event was fired. }, "object": { "id": "<resource-id>", // The id of the resource for which the event was triggered "type": "<resource-type>" // The unique string representing the resource }, "data": {} // Resource definition. (The payment code object)}