airwallex data stream. Each record carries the net amount the transaction moved your balance, with the gross amount and fee kept alongside.
At a glance
Prerequisites
- An End Close admin.
- Access to the Airwallex web app with permission to create API keys and webhooks.
Connect Airwallex
1
Create an API key in Airwallex
In Airwallex, go to Developer → API keys and create a key. Copy the client ID and the API key.
2
Enter the credentials in End Close
Go to Settings → Integrations, choose Airwallex, then Connect. Fill in the dialog and choose Connect.
End Close checks the key with Airwallex before saving it. If Airwallex refuses it, the dialog says why and nothing is saved.
3
Create the webhook in Airwallex
The Airwallex card now shows a webhook URL. Copy it. In Airwallex, go to Developer → Webhooks → Add webhook, paste the URL, and subscribe to these events:
payment_intent.succeededrefund.settledpayment_dispute.requires_responsepayment_dispute.wonpayment_dispute.reversedpayment_dispute.lostpayment_dispute.accepted
4
Add the webhook secret
Copy the webhook’s signing secret from Airwallex. In End Close, choose Update credentials, paste it into Webhook secret, and choose Update. Leave API key blank to keep the one you saved.
What End Close reads
Every hour, End Close reads the account’s financial transactions: the lines Airwallex adds to your balance for each payment, refund, dispute and fee. The first read covers the last 30 days. The first time it reads the account, End Close creates a stream with the keyairwallex, named Airwallex payments.
Only settled transactions are written. A transaction is pending from capture until its settlement batch, which can take hours or days, and End Close reads it again each hour until it settles. A transaction already in the stream isn’t written twice.
Webhook deliveries don’t create records. End Close keeps them as events and uses them to show whether the webhook is alive. The money comes from the hourly read, because only the financial transactions show what each payment moved net of fees.
Disconnect Airwallex
In Settings → Integrations → Airwallex, choose Disconnect. End Close removes the credentials and the webhook URL. Records and events already received stay. Delete the webhook in Airwallex as well, or Airwallex keeps retrying deliveries that now fail.FAQ
Why is a payment from this morning missing?
Why is a payment from this morning missing?
End Close only writes a transaction once Airwallex settles it with its batch. Pending transactions are read again every hour until they settle.
Why does the record amount differ from the payment amount?
Why does the record amount differ from the payment amount?
The record holds the net amount the transaction moved your balance, after fees. The gross amount and the fee are in the record’s
metadata as gross_amount and fee_amount.Can I connect the Airwallex demo environment?
Can I connect the Airwallex demo environment?
Yes. Choose Demo (api-demo.airwallex.com) under Environment when you connect.
Related
Records
The fields every record carries.
How connections work
Streams, environments and who can connect.