Trigger Test Webhook
Fires a real signed webhook to the business’s configured callback URL using a real entity (customer, payment method, transaction, or checkout session) as the payload. Useful for testing webhook handlers in sandbox without manufacturing the underlying activity. This endpoint is only available in the sandbox/staging environment and will return a 403 Forbidden response in production.
403 Forbidden response in production.How it works
- Create or look up an existing entity in sandbox.
- Call this endpoint with the matching
eventname and the entity’s ID. - Afriex delivers a real, signed webhook to your configured callback URL using that entity as the payload.
What to pass as entityId
| Event family | entityId |
|---|---|
CUSTOMER.* | The customer ID |
PAYMENT_METHOD.* | The payment method ID |
TRANSACTION.* | The transaction ID |
CHECKOUT_SESSION.* | The checkout session ID |
Authorizations
Static business API key issued from the dashboard. A business can provision multiple API keys, each scoped to a configurable set of permissions (e.g. read transactions, create deposits, etc). Permissions are chosen per key at creation time in the dashboard and may be revoked by deleting the key. Requests made with a key that does not include the permission required by the target endpoint will be rejected with a 403 Forbidden response; an unrecognised, malformed or revoked key returns 401 Unauthorized. Manage your keys and their permissions under Developer → API keys in the dashboard.
Headers
API version in ISO 8601 format (e.g. 2025-12-28). Defaults to latest stable.
Body
The webhook event identifier.
CUSTOMER.CREATED, CUSTOMER.UPDATED, CUSTOMER.DELETED, PAYMENT_METHOD.CREATED, PAYMENT_METHOD.UPDATED, PAYMENT_METHOD.DELETED, TRANSACTION.CREATED, TRANSACTION.UPDATED, CHECKOUT_SESSION.CREATED The identifier of the entity to send in the webhook payload. Must be a UUID v4 when event is CHECKOUT_SESSION.CREATED; otherwise must be the 24-character hexadecimal id of the relevant customer, payment method, or transaction (the id returned when it was created).
"69528240ba52c13b669fb239"
Response
Webhook triggered successfully.
Details of the queued webhook delivery.
