Skip to main content
Afriex sends real-time webhook notifications to your configured URL whenever a transaction is created or updated.

Security

See Webhooks Introduction for setup, signature validation, and retry behavior.

Event Types

  • TRANSACTION.CREATED - A new transaction has been initiated
  • TRANSACTION.UPDATED - Transaction status or fields have changed

Sample Payloads

Transaction Created

Transaction Updated

Transaction Failed

When status transitions to FAILED or REJECTED, the payload’s meta.failureReason describes why using a stable AFX_* code and a customer-safe message. See Failure reasons for the full code list.
The event field will be TRANSACTION.CREATED or TRANSACTION.UPDATED depending on the action that triggered the notification. Cross-currency transactions also carry a rate field alongside the amounts, holding the realized source-to-destination exchange rate. See Transaction for the full field list.
TRANSACTION.UPDATED is not a terminal-status-only signal. It fires on every status change Afriex considers worth reporting, including intermediate ones such as PROCESSING and CUSTOMER_ACTION_REQUIRED, so a single transaction can produce several. Always branch on the payload’s status field rather than treating any delivery as final.

Response

Return 200 (or another 2xx) after successful validation and processing.