Webhooks
We also provide webhooks that help to give you real-time notifications on customer spend, providing you with even more tools at your disposal to create seamless flows for your users.
All webhook event notification payloads have the same high-level structure. Top-level properties are common to all events. The data
property is an object that can contain various properties. The exact properties that the data
object contains depends on the event type and schema version of the event.
Event type- and schema version-specific details
ID of the webhook subscription that triggered the event notification
Event type (what event happened in our system)
Schema version (what notification structure is being used to model the event)
When the event notification was sent from our system
{"data": {},"subscription_id": "01234567-89ab-cdef-0123-456789abcdef","event_type": "event#type","schema_version": "2.0.0","sent_at": "2020-01-01T12:34:56Z"}
- Event type:
cards#transaction-state-change
- Profile level subscriptions: Not Supported
- Application level subscriptions: Supported
This event will be triggered every time a new card transaction is made or the transaction state changes.
ID of the profile that owns the card
Your api_client_id
Unique identifier of the card
Last 4 digits of the card
Resource type (always card
)
ID of the transaction
Type of the transaction
Code of the decline reason if applicable
The current state of the transaction
Transaction amount
Currency code
Fee amount
Currency code
Fee type
Transaction amount including fees
Currency code
Authorisation method
Associated balance transaction id if applicable
Balance id
Amount taken from the balance
Currency code
Amount converted to
Currency code
Exchange rate
Conversion fee amount
Currency code
When transaction or transaction state change occurred
Table of available transaction state and descriptions
Code | Description |
---|---|
IN_PROGRESS | The transaction is still in progress |
COMPLETED | The transaction is completed |
DECLINED | The transaction has been declined |
UNKNOWN | Default fallback status |
Table of available fee type and descriptions
Code | Description |
---|---|
ATM_WITHDRAWAL | Fee charged by Wise |
ATM_MACHINE | Fee charged by the ATM owner |
{"data": {"resource": {"profile_id": 123456,"client_id": "your-bank","card_token": "ABCD-1234-ABCD-1234-ABCD","card_last_digits": "1234","type": "card"},"transaction_id": 12345,"transaction_type": "CASH_WITHDRAWAL","decline_reason": null,"transaction_state": "IN_PROGRESS","transaction_amount": {"value": 100.00,"currency": "EUR"},"fees": [{"amount": 1.00,"currency": "EUR","fee_type": "ATM_WITHDRAWAL"}],"transaction_amount_with_fees": {"value": 101.00,"currency": "EUR"},"authorisation_method": "CHIP_AND_PIN","balance_transaction_id": 12345,"debits": [{"balance_id": 123,"debited_amount": {"value": 165.96,"currency": "AUD"},"for_amount": {"value": 101.00,"currency": "EUR"},"rate": 0.61223252,"fee": {"value": 0.99,"currency": "AUD"}}],"occurred_at": "2022-08-15T11:10:41Z"},"subscription_id": "ABCD-1234-ABCD-1234-ABCD","event_type": "cards#transaction-state-change","schema_version": "2.0.0","sent_at": "2022-08-22T07:59:50Z"}
New balance webhook is released The new webhook is triggered every time a multi-currency account is credited or debited . For more information: Balance update event
- Event type:
balances#credit
- Profile level subscriptions: Supported
- Application level subscriptions: Not Supported
This event will be triggered every time a multi-currency account is credited.
If you would like to subscribe to balance credit events, please use balances#credit
when creating your subscription.
Resource type (always balance-account
)
ID of the account
ID of the profile that owns the account
Always credit
Deposited amount
Currency code
Balance after the credit was applied
When the credit occurred
{"data":{"resource":{"type":"balance-account","id":111,"profile_id":222},"transaction_type":"credit","amount":1.23,"currency":"EUR","post_transaction_balance_amount":2.34,"occurred_at":"2020-01-01T12:34:56Z"},"subscription_id":"01234567-89ab-cdef-0123-456789abcdef","event_type":"balances#credit","schema_version":"2.0.0","sent_at":"2020-01-01T12:34:56Z"}
- Event type:
balances#update
- Profile level subscriptions: Supported
- Application level subscriptions: Supported
This event will be triggered every time a multi-currency account is credited or debited.
If you would like to subscribe to balance update events, please use balances#update
when creating your subscription.
{"data": {"resource": {"id": 2,"profile_id": 2,"type": "balance-account"},"amount": 70,"currency": "GBP","transaction_type": "credit","occurred_at": "2023-03-08T14:55:38Z","transfer_reference": "BNK-1234567","channel_name": "TRANSFER"},"subscription_id": "f2264fe5-a0f5-4dab-a1b4-6faa87761425","event_type": "balances#update","schema_version": "2.1.0","sent_at": "2023-03-08T14:55:39Z"}
{"data": {"resource": {"id": 2,"profile_id": 2,"type": "balance-account"},"amount": 9.6,"currency": "GBP","transaction_type": "debit","occurred_at": "2023-03-08T15:26:07Z","transfer_reference": "47500002","channel_name": "TRANSFER"},"subscription_id": "f2264fe5-a0f5-4dab-a1b4-6faa87761425","event_type": "balances#update","schema_version": "2.1.0","sent_at": "2023-03-08T15:26:07Z"}