Skip to main content
A mobile money collection is not complete until your customer approves it. How they approve depends on the operator: some send a prompt to the phone, some need a code or a USSD dial, and some need the customer to open a link. Bumxpress describes all of these with one model, customer actions, so you handle every operator the same way.
Customer actions apply to payins and to the collection leg of transfers. Payouts need nothing from the recipient.

The two moments

When a route has no customer_action, the customer just approves a prompt on their phone and you have nothing to show.

Requirement types

The requirement tells you what to ask for before you call POST /payins. A requirement can also carry ussd_code and bilingual instructions (en, fr) you can show as they are:

Action types

Once the provider accepted the request, the payin carries a provider_action while it waits for the customer.
The action is created after POST /payins returns. The 201 response can still show no provider_action, because the provider call runs in the background and usually finishes within seconds. Wait for the payin.action_required webhook, or poll GET /payins/{payin_id} until provider_action appears. Do not treat a missing action as a failure.
Older fields (next_action, redirect_url, otp_required, ussd_code) can still appear inside provider_action. They keep working for existing integrations; new code should read provider_action.type.

The flow

1

Read the requirement

Call GET /coverage or create the payin quote. If the route has a customer_action, prepare your screen for it.
2

Collect what is needed up front

For otp_before, ask the customer for the code before creating the payin and send it as otp_code. Without it the request fails with 400 and reason otp_required.
3

Create the payin

POST /payins returns pending. Keep the payin id.
4

Show the action

When payin.action_required arrives (or provider_action shows up when you poll), show the link, the USSD code, or the code field.
5

Send the code, if asked

For submit_otp, call POST /payins/{payin_id}/authorize with the customer’s code.
6

Wait for the final status

The payin stays pending until the provider confirms. Use payin.completed or payin.failed, or poll.

Sending a code before: otp_before

The code is single-use and short-lived. Bumxpress keeps it only until the provider call is made, then removes it. It is never returned by the API, written to logs, or sent in webhooks. Ask for the code as late as you can, right before you create the payin.

Sending a code after: otp_after

When provider_action.type is submit_otp, the customer has received a code. Send it:
A successful call returns the payin, still pending, with provider_action removed. The final status arrives like any other payin. A wrong code returns 422 with reason otp_invalid and leaves the payin waiting, so the customer can try again. See POST /payins/{payin_id}/authorize for every response.

Transfers

The collection leg of a transfer follows the same rules, with these differences:
  • Transfer quotes return customer_action for the payer leg, so you can collect an otp_before code before creating the transfer.
  • Send otp_code on POST /transfers for an otp_before route.
  • While the collection waits for the customer, the transfer carries payin_action (same shape as provider_action), and you receive transfer.payin.action_required.
  • For otp_after (payin_action.type is submit_otp), send the customer’s code to POST /transfers/{transfer_id}/authorize. The transfer stays collecting until the provider confirms; a wrong code returns 422 with reason otp_invalid and can be retried.
  • Always wait for transfer.payin.completed or transfer.payin.failed before treating the collection as done.

Show the right screen

Checkout checklist

  • Read customer_action from the quote. For otp_before, show the instructions and collect the code before you create the payin. Codes are short-lived, so create the payin as soon as the customer enters one.
  • After creating the payin, show a waiting screen. Listen for payin.action_required, or poll GET /payins/{payin_id} every few seconds for up to a minute.
  • redirect: open the link in a new tab or the operator’s app. Do not embed it in an iframe. On a phone, prefer an entry from app_links when there is one.
  • dial_ussd: show the code large enough to read, with a copy button.
  • message is the operator’s own text and is often in French. Prefer your own wording based on type.
  • Always wait for payin.completed or payin.failed. Coming back from a redirect, or a successful /authorize, does not mean the money has arrived.
Read the requirement from GET /coverage instead of hard-coding it per operator. Routes can change, and the response always reflects what is enabled for your account.
Last modified on October 30, 2026