Skip to main content
Webhooks let Bumxpress push status changes to your backend instead of relying only on polling 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
All webhook requests use:

Verify the signature

Signatures use an HMAC over the timestamp and raw request body:
Verify signatures before parsing JSON or applying side effects.
Always verify X-Bumxpress-Signature using the raw request body. Reject requests when verification fails.

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 for X-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:
  1. Rotate the key in the dashboard and copy the new secret.
  2. During the 24 hours, accept a delivery if either header verifies against your old or new secret.
  3. Deploy the new secret, then stop accepting the old one.

Event types

Bumxpress emits a small set of payment events. Use the event and data.type fields to route handling logic.
Supported events:
  • 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")
Transfer leg events are sent as each leg reaches a terminal state. Aggregate transfer events are still sent when the full transfer reaches a final state. The 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):
For 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 webhook
Payout webhook

Payouts from a bulk batch

Payouts sent from a bulk payout batch in the merchant dashboard use the same payout.* 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 null for a payout created through the API.
  • batch_reference: the batch number shown in the dashboard, for example PB-2026-000123, or null.
A batch sends one payout per row, so expect one event per row, not one per batch. When you relaunch a failed row from the dashboard, Bumxpress creates a new payout with a new 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.
Transfer webhook
Transfer payin leg webhook
Transfer payout leg webhook

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. Implement your webhook handler with these rules:
  1. Verify the HMAC signature.
  2. Deduplicate using X-Bumxpress-Webhook-Id or event id.
  3. Update your local record using data.id and data.type.
  4. Acknowledge with 200 OK only after the update succeeds.
  5. Fallback to GET /payins/{id}, GET /payouts/{id}, or GET /transfers/{id} when you need to recover from missed events.
Last modified on October 30, 2026