Airwallex logo
Airwallex logo

Payload examples

The webhook payload is sent as JSON in the POST request body. The full event details are included and can be used directly after parsing the JSON into an Event object.

This Event object contains:

  • id: A unique identifier of the event.

  • name: The type of event, for example, payment_attempt.authorized.

  • account_id: A unique identifier of the account this event belongs to. It's nullable and only applicable to account-level events.

  • org_id: A unique identifier of the organization this event belongs to. It's nullable and only applicable to organization-level events.

  • data: This object contains business information that varies for each case. Please refer to the samples of each event type in the sub-pages.

  • created_at: The time the event was created.

  • version: The customer's preferred API version for webhook subscriptions, which determines the content within the data object.

JSON
1{
2 "id": "evt_100_2019102201540902013102020043_8321220011893766",
3 "name": "payment_attempt.authorized",
4 "account_id": "19621303213",
5 "data": {...},
6 "created_at": "2019-10-22T01:54:09+0000",
7 "version": "2024-02-22"
8}
Was this page helpful?