GET endpoints. Use them to update your internal records when payins, payouts, or transfers complete or fail.
Configure your webhook
In the merchant dashboard you configure:- URL: HTTPS endpoint on your backend, for example
https://api.yourapp.com/webhooks/bumxpress - Signing secret: Shared secret used to verify signatures
Verify the signature
Signatures use an HMAC over the timestamp and raw request body:Rotate the signing secret
In the merchant dashboard, open the webhook and choose Rotate signing key. A new secret is issued immediately and is used forX-Bumxpress-Signature. For the next 24 hours, each delivery also carries X-Bumxpress-Signature-Previous, signed with the old secret over the same timestamp and body.
To rotate without dropping events:
- Rotate the key in the dashboard and copy the new secret.
- During the 24 hours, accept a delivery if either header verifies against your old or new secret.
- Deploy the new secret, then stop accepting the old one.
Event types
Bumxpress emits a small set of payment events. Use theevent and data.type fields to route handling logic.
- payin.completed / payin.failed (
data.type: "payin") - payin.action_required (
data.type: "payin"): the customer must do something before the payin can complete. See Customer action events. - payout.submitted (
data.type: "payout"): the provider accepted the payout and the final result is pending. Not sent when the provider returns a final result immediately. - payout.completed / payout.failed (
data.type: "payout") - transfer.payin.completed / transfer.payin.failed (
data.type: "transfer") - transfer.payin.action_required (
data.type: "transfer"): the collection leg is waiting for the customer. - transfer.payout.completed / transfer.payout.failed (
data.type: "transfer") - transfer.completed / transfer.failed (
data.type: "transfer")
data.object field contains a snapshot of the resource at event time, including amounts, status, operator, wallet impact, and timestamps, plus the merchant_reference and merchant_metadata you sent when creating the payin, payout, or transfer.
Events can arrive more than once and out of order. Only move a payment forward: ignore a payout.submitted that arrives after payout.completed.
Customer action events
payin.action_required and transfer.payin.action_required are sent once per payin or transfer, when the provider accepted the request and the customer now has to act: open a link, dial a USSD code, or enter a code. They are not sent for routes where the customer only approves a prompt on their phone.
You can subscribe to them explicitly. They are also delivered to any endpoint subscribed to the same flow’s outcome: payin.action_required to endpoints subscribed to payin.completed or payin.failed, and transfer.payin.action_required to endpoints subscribed to transfer.payin.completed, transfer.payin.failed, transfer.completed or transfer.failed. Ignore event types you do not handle.
The object carries the action in provider_action (payins) or payin_action (transfers):
submit_otp, send the code to POST /payins/{payin_id}/authorize, or for transfer.payin.action_required to POST /transfers/{transfer_id}/authorize. The final result still arrives as payin.completed / payin.failed (or transfer.payin.completed / transfer.payin.failed). You can also poll the resource instead of using this event.
Example payloads
Payin webhookPayouts from a bulk batch
Payouts sent from a bulk payout batch in the merchant dashboard use the samepayout.* events as any other payout. Two extra fields in data.object tell you which batch a payout belongs to:
- batch_id: the batch’s ID, or
nullfor a payout created through the API. - batch_reference: the batch number shown in the dashboard, for example
PB-2026-000123, ornull.
id and the same batch_id. The earlier failed payout keeps its own events.
Bulk batches are created and confirmed from the merchant dashboard only. There is no API endpoint to upload or start a batch.
Delivery and retries
Return any 2xx status code to acknowledge receipt. If your endpoint returns a non-2xx or times out, Bumxpress retries with exponential backoff:
After the seventh failed attempt, delivery is marked failed.
Recommended handler pattern
Implement your webhook handler with these rules:- Verify the HMAC signature.
- Deduplicate using
X-Bumxpress-Webhook-Idor eventid. - Update your local record using
data.idanddata.type. - Acknowledge with
200 OKonly after the update succeeds. - Fallback to
GET /payins/{id},GET /payouts/{id}, orGET /transfers/{id}when you need to recover from missed events.