Skip to content

Phone number formats: Orange, Moov, Coris, Sank, MTN

Always send the number in local format, digits only, with no country code, spaces or +. Senfenico adds the country code itself when an operator needs it.

Country Length Valid example Rejected
Burkina Faso 8 digits 76000000 +22676000000, 76 00 00 00
Benin 10 digits 0196000000 +2290196000000

The same code is used to collect (payment_method_details.provider) and to send (recipient_wallet), where the operation exists.

Code Operator Collect Send
orange_bf Orange Money Burkina yes yes
moov_bf Moov Money Burkina yes yes
coris_bf Coris Money yes no
sank_bf Sank Money yes yes
mtn_bj MTN Mobile Money Benin yes yes
moov_bj Moov Money Benin yes yes

Each operator must be enabled on your account, otherwise the request is rejected with INVALID_DATA. The orange_ml code exists in the API but is not documented here; to use it, email contact@senfenico.com.

Senfenico tells Orange and Moov apart by the second digit of the number.

2nd digit Operator Examples
0, 1, 2, 3 Moov (moov_bf) 70…, 71…, 51…, 60…
4, 5, 6, 7 Orange (orange_bf) 76…, 77…, 65…, 54…
8, 9 neither Orange nor Moov rejected for both

For Coris Money and Sank Money, Senfenico only checks the length (8 digits). The number must be registered with the operator’s service. Otherwise, Sank Money returns INVALID_ACCOUNT and Coris Money returns EXTERNAL_API_ERROR when the charge is initialized.

To collect a payment, the number must have 10 digits, with no other check. For a transfer, it must have 10 digits and start with 01 (Benin’s 10-digit numbering).

Senfenico does not infer the operator from the number: always pass mtn_bj or moov_bj.

For a charge, the operator is never guessed and provider is required. Senfenico only checks that the number is consistent with Orange or Moov Burkina.

For a transfer, recipient_wallet is optional in Burkina:

  1. If you pass it, the number must match (Orange or Moov prefix above).
  2. If you omit it, an 8-digit number whose 2nd digit is 0–3 goes to Moov, 4–7 to Orange. Any other number is rejected.
  3. For Sank Money and Benin, always pass recipient_wallet.
Operator How the customer confirms Charge status
Orange Money Dials *144*4*6*amount# to get an OTP, then gives it to you send_otp
Moov Money, OTP mode Receives an OTP by SMS send_otp
Moov Money, USSD mode Dials *555*6# and approves on the phone pay_offline
Coris Money Receives an OTP on the phone send_otp
Sank Money Receives an OTP on the phone send_otp
MTN Mobile Money and Moov Benin Approves the request on the phone pay_offline

The exact text to show the customer is returned in data.display_text when the charge is created (in French). Choose the Moov mode with payment_method_details.confirmation_method (otp by default, or ussd). See Charges.

Before calling the API, remove spaces, dashes and the country code from the number. The Python example uses the str | None syntax of Python 3.10 and later.

<?php
function normalize_bf(string $raw): ?string {
$n = preg_replace('/\D/', '', $raw); // digits only
$n = preg_replace('/^(00)?226/', '', $n); // drop country code
return strlen($n) === 8 ? $n : null;
}

For Benin, replace 226 with 229 and 8 with 10.

These texts appear in errors, with INVALID_DATA and HTTP 400.

Message Cause
Phone number must be digits only. Spaces, + or letters
Phone number must be 8 digits long. Burkina number of wrong length
Invalid phone number for Orange BF. 2nd digit not 4–7
Invalid phone number for Moov BF. 2nd digit not 0–3
Phone number must be 10 digits long. Benin number of wrong length
Burkina Faso phone numbers must be 8 digits long. Burkina transfer
Benin phone numbers must start with '01'. Benin transfer
Invalid phone number for the available wallets. Transfer without recipient_wallet, number is neither Orange nor Moov
This phone number is not allowed to make payments. Number blocked by Senfenico