Skip to content

Coris Money and Sank Money

Coris Money is Coris Bank’s mobile wallet, and Sank Money is another mobile wallet in Burkina Faso. With both, the customer receives an OTP by SMS as soon as you create the charge, and enters it in your app.

Coris Money Sank Money
provider code coris_bf sank_bf
Country Burkina Faso (XOF) Burkina Faso (XOF)
Number format 8 digits, no +226 8 digits, no +226 (Senfenico adds the country code)
Confirmation OTP sent by SMS (send_otp) OTP sent by SMS (send_otp)
Hosted page Yes, if Coris Money is enabled on your account Yes, if Sank Money is enabled on your account
Test mode Yes Yes

The number is the one tied to the customer’s Coris Money or Sank Money account, as 8 digits in local format, with no country code. Unlike Orange and Moov, the API enforces no prefix. An Orange or Moov number is therefore accepted if it is linked to a Coris Money or Sank Money account.

  1. You create a coris_bf or sank_bf charge. Senfenico asks the operator to send an OTP to the customer.
  2. The customer receives the code by SMS.
  3. They enter it in your app, and you send it to POST /v1/payment/charges/submit (no trailing /).
  1. send_otpOTP received by SMS
  2. success
    failed
Coris Money and Sank Money charge lifecycle

The example uses Coris Money. For Sank Money, replace coris_bf with sank_bf.

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/charges/ \
-H "X-API-KEY: $SENFENICO_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 1000, "ext_id": "ORD-42",
"payment_method_details":
{"provider": "coris_bf", "phone": "72000000"}}'
{
"status": true,
"message": "Charge attempted",
"data": {
"reference": "CH261126-101431-CORIS_BF-2d3e4f5a6b",
"status": "send_otp",
"display_text": "Veuillez entrer le code OTP reçu sur votre téléphone pour finaliser la transaction.",
"live_mode": false
}
}

Then submit the OTP:

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/charges/submit \
-H "X-API-KEY: $SENFENICO_KEY" \
-H "Content-Type: application/json" \
-d '{"charge_reference": "CH261126-101431-CORIS_BF-2d3e4f5a6b",
"otp": "123456"}'

If the OTP is rejected, the charge stays send_otp, and the customer can re-enter the code. Full code and the detailed response are on Direct charges.

Operator Response What to do
Coris Money If Coris refuses to send the OTP, creation returns 200 with status: false and EXTERNAL_API_ERROR. Don’t use that reference. Create a new charge.
Sank Money If Sank rejects the request at creation (unknown account, insufficient balance), the response is 200 with status: false, and the charge becomes failed. Create a new charge once the problem is fixed.

With an sk_test_ key, use one of these numbers with its amount, then submit 123456.

Coris Money:

Sank Money:

The Coris and Sank test numbers are the same, and 72000000 also exists for Moov with a different amount. Double-check the provider and the amount.

Base your logic on error_code, not on message, whose format can vary. Except INVALID_DATA, these errors come with HTTP 200 and status: false. The messages to show the customer are in Error codes.

error_code When What to do
INVALID_DATA (HTTP 400) Number not 8 digits, or amount out of range. Fix the input.
EXTERNAL_API_ERROR Coris could not send the OTP. Try again later with a new charge.
OTP_INVALID OTP rejected by Coris. Ask the customer to re-enter the code.
TRANSACTION_NOT_FOUND The approval could not be matched to the request. Don’t create a new charge right away, because the customer may have been debited. Email contact@senfenico.com with the reference.
INTERNAL_ERROR Technical error. Re-read the charge, then retry if it is not success.
error_code When What to do
INVALID_DATA (HTTP 400) Number not 8 digits, or amount out of range. Fix the input.
INVALID_ACCOUNT No Sank Money account for this number. Offer another payment method.
INSUFFICIENT_FUNDS Sank Money balance too low. Tell the customer.
OTP_INVALID OTP rejected. Ask the customer to re-enter the code.
TRANSACTION_NOT_FOUND Sank cannot find the request linked to the OTP. Create a new charge.
NETWORK_ERROR Sank unreachable at submit time. Re-read the charge, then submit again if it is still send_otp.
INTERNAL_ERROR, UNKNOWN_ERROR Technical error. Re-read the charge before any new attempt.