Skip to main content
Connecting Airwallex lets End Close read your account’s financial transactions every hour and write each settled one as a record in an 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.succeeded
  • refund.settled
  • payment_dispute.requires_response
  • payment_dispute.won
  • payment_dispute.reversed
  • payment_dispute.lost
  • payment_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.
The card shows Add webhook secret until the secret is saved, because End Close rejects every webhook delivery it can’t verify. It then shows Waiting for first event, and Connected once a delivery arrives. The card also shows when the last event was received, so a webhook deleted in Airwallex shows up as a feed that has gone quiet.

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 key airwallex, 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

End Close only writes a transaction once Airwallex settles it with its batch. Pending transactions are read again every hour until they settle.
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.
Yes. Choose Demo (api-demo.airwallex.com) under Environment when you connect.

Records

The fields every record carries.

How connections work

Streams, environments and who can connect.