Events and payloads
Every webhook request body is a JSON object with the same envelope, in the Standard Webhooks payload format. The type field tells you which event occurred and determines the shape of data. The unique message identifier is in the webhook-id request header.
Event envelope
The event type, for example transaction.status_changed.
When the event occurred, in ISO 8601 format (UTC). It stays the same when a delivery is retried, so it can be earlier than the delivery time.
The resource associated with the event. Its shape depends on type.
Event types
transaction.status_changed
Sent when the status of a transaction changes. data contains the transaction in its current state. You receive one event for each status a transaction reaches:
Transaction object
Optional fields are left out of the payload when they have no value.
Unique identifier for the transaction (UUID).
The kind of transaction. One of:
TRANSFER: money sent to or received from another account.FEE: a fee that wamo charged.
Whether money is entering or leaving the account. One of:
INBOUND: money entering the account.OUTBOUND: money leaving the account.
The current status of the transaction. One of:
PENDING: the transaction is being processed.COMPLETED: the transaction is complete.FAILED: the transaction failed.
The transaction amount in major currency units, for example 1250.0.
ISO 4217 currency code, for example EUR.
The amount after currency conversion, in convertedCurrency. Only present when the transaction includes a currency conversion.
ISO 4217 code of the converted amount, for example USD. Only present when the transaction includes a currency conversion.
Description or reference for the transaction.
When the transaction was created, in ISO 8601 format (UTC).
Identifier of the ledger the transaction belongs to (UUID).
Identifier of the beneficiary of the transaction (UUID). Only present for an outgoing transfer.
Identifier of the transaction that a fee was charged for (UUID). Only present for a fee that was charged for a specific transaction.