Authorize payin
curl --request POST \
--url https://api.business.bumxpress.com/payins/{payin_id}/authorize \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--data '
{
"otp_code": "654321"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_reference": "<string>",
"merchant_metadata": {},
"send_amount": "10000",
"send_currency": "XAF",
"receive_amount": "10000",
"receive_currency": "XAF",
"country_code": "CM",
"rail_type": "mobile_money",
"operator_code": "<string>",
"provider_reference": "<string>",
"wallet_impact": {},
"pricing": {},
"history": [
{
"status": "<string>",
"reason": "The phone number is invalid or not registered for mobile money. Check the number and try again.",
"created_at": "2023-11-07T05:31:56Z"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "created",
"source": {
"country_code": "CM",
"rail_type": "mobile_money",
"phone": "+237670000000",
"operator_code": "CM_MTN_MOMO",
"bank_name": "<string>",
"bank_code": "<string>",
"account_name": "<string>",
"account_number": "<string>"
},
"provider_action": {
"type": "redirect",
"redirect_url": "<string>",
"app_links": {},
"ussd_code": "<string>",
"message": "<string>",
"next_action": "<string>",
"otp_required": true
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}Payins
Authorize payin
Send the code the customer received after submission.
POST
/
payins
/
{payin_id}
/
authorize
Authorize payin
curl --request POST \
--url https://api.business.bumxpress.com/payins/{payin_id}/authorize \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--data '
{
"otp_code": "654321"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_reference": "<string>",
"merchant_metadata": {},
"send_amount": "10000",
"send_currency": "XAF",
"receive_amount": "10000",
"receive_currency": "XAF",
"country_code": "CM",
"rail_type": "mobile_money",
"operator_code": "<string>",
"provider_reference": "<string>",
"wallet_impact": {},
"pricing": {},
"history": [
{
"status": "<string>",
"reason": "The phone number is invalid or not registered for mobile money. Check the number and try again.",
"created_at": "2023-11-07T05:31:56Z"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "created",
"source": {
"country_code": "CM",
"rail_type": "mobile_money",
"phone": "+237670000000",
"operator_code": "CM_MTN_MOMO",
"bank_name": "<string>",
"bank_code": "<string>",
"account_name": "<string>",
"account_number": "<string>"
},
"provider_action": {
"type": "redirect",
"redirect_url": "<string>",
"app_links": {},
"ussd_code": "<string>",
"message": "<string>",
"next_action": "<string>",
"otp_required": true
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}{
"error": {
"code": "bad_request",
"reason": "missing_field",
"message": "quote_id is required",
"retryable": false,
"param": "quote_id"
}
}Use this endpoint only when a payin’s
provider_action.type is submit_otp. The customer has received a code from the operator; send it here. See Customer actions for the full flow.
- The payin stays
pending. Its final status arrives by webhook orGET /payins/{payin_id}, as for any payin. - No
Idempotency-Keyis needed. A payin accepts one code; sending another after it was accepted returns409. - A wrong code returns
422and leaves the payin waiting, so the customer can try again. 503with reasonprovider_outcome_unknownmeans the provider did not confirm the code. Fetch the payin before retrying: ifprovider_actionis gone, the code was accepted.
Authorizations
Body
application/json
Response
The payin, still pending, with provider_action removed once the code is accepted.
Which merchant wallet this payment books against and by how much. currency is the wallet in the
transaction currency when you hold one, otherwise your default settlement wallet. For transfers,
collection_wallet_currency is present when the collection leg credits a different wallet.
Last modified on October 24, 2026