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 |
Provider codes
Section titled “Provider codes”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.
Burkina Faso: Orange and Moov prefixes
Section titled “Burkina Faso: Orange and Moov prefixes”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.
Benin: MTN and Moov
Section titled “Benin: MTN and Moov”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.
How the operator is chosen
Section titled “How the operator is chosen”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:
- If you pass it, the number must match (Orange or Moov prefix above).
- If you omit it, an 8-digit number whose 2nd digit is
0–3goes to Moov,4–7to Orange. Any other number is rejected. - For Sank Money and Benin, always pass
recipient_wallet.
USSD codes and customer confirmation
Section titled “USSD codes and customer confirmation”| 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.
Normalize user input
Section titled “Normalize user input”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.
<?phpfunction 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;}import re
def normalize_bf(raw: str) -> str | None: n = re.sub(r"\D", "", raw) # digits only n = re.sub(r"^(00)?226", "", n) # drop country code return n if len(n) == 8 else Nonefunction normalizeBf(raw) { let n = raw.replace(/\D/g, ''); // digits only n = n.replace(/^(00)?226/, ''); // drop country code return n.length === 8 ? n : null;}For Benin, replace 226 with 229 and 8 with 10.
Validation error messages
Section titled “Validation error messages”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 |