Skip to content

Transfers: send money by mobile money

A transfer sends money from your Senfenico account to a person’s mobile money account, for example to pay a courier, pay out a customer’s winnings or refund outside a charge. Processing is asynchronous. The API accepts the request, then tells you the outcome by webhook.

  • You need enough transfer balance for the target operator, fees included. Each operator has its own balance, credited by top-ups (see Balances).
  • The operator must be enabled on your account, otherwise the request is refused (400). Write to contact@senfenico.com to enable it.
  • Use a server-side API key, ideally restricted to your IP addresses, since it can send money.
recipient_wallet Country recipient_phone format Guessed if omitted?
orange_bf Burkina Faso 8 digits, 2nd digit 4 to 7 (e.g. 76000000) Yes
moov_bf Burkina Faso 8 digits, 2nd digit 0 to 3 (e.g. 70000000) Yes
sank_bf Burkina Faso 8 digits No, must be set
moov_bj Benin 10 digits starting with 01 No, must be set
mtn_bj Benin 10 digits starting with 01 No, must be set
  • Write numbers in local format, digits only, with no +226, +229, spaces or dashes.
  • If you omit recipient_wallet, Senfenico guesses it from the 2nd digit and only picks between Orange BF and Moov BF. A Benin number without recipient_wallet is therefore refused (it is treated as an 8-digit Burkina number).
  • For orange_bf and moov_bf, the 2nd digit must match the chosen operator.
POST/v1/payment/transfers/
Parameter Type Required Description
amount integer yes Amount received by the recipient, in XOF. From 100 to 1,000,000. Fees are added on top.
recipient_phone string yes Recipient’s number (see the table above).
recipient_wallet string no orange_bf, moov_bf, sank_bf, moov_bj or mtn_bj. Required for Sank and Benin.
ext_id string no Your own reference (max 200 characters), for example the payment ID in your database. Strongly recommended, because it is your only way to find a transfer after a network failure.
Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/transfers/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"amount": 5000,
"recipient_phone": "76000000",
"recipient_wallet": "orange_bf",
"ext_id": "courier-payout-1042"
}'

A 201 response means the transfer is accepted and queued. It has not been paid yet.

{
"status": true,
"message": "Transfer has been queued",
"data": {
"reference": "TR261126-101502-ORANGE_BF-3f9c2a7b1d",
"amount": 5000,
"fees": 1.5,
"recipient_phone": "76000000",
"currency": "XOF",
"ip_address": "203.0.113.10",
"status": "pending",
"live_mode": false,
"recipient_wallet": "orange_bf",
"ext_id": "courier-payout-1042",
"created_at": "2026-11-26T10:15:02.481203Z"
}
}

Wait for the transfer.success or transfer.failed event before treating the payment as done.

Field Type Description
reference string Senfenico ID of the transfer, for example TR261126-101502-ORANGE_BF-3f9c2a7b1d.
amount integer Amount sent to the recipient, in XOF.
fees decimal Fee rate applied, as a percentage (1.5 = 1.5%). It is not an amount. A number in the create response, a 3-decimal string ("1.500") in retrievals and lists.
currency string Always XOF.
ip_address string IP address that called the API.
status string pending, in_transit, success or failed.
live_mode boolean false with an sk_test_ key, true with an sk_live_ key.
recipient_wallet string Recipient’s operator (provided or guessed).
recipient_phone string Recipient’s number.
ext_id string or null Your reference.
created_at ISO 8601 date (UTC) Creation date.

Fees are a percentage of the amount, set for your account and for each operator. They are added to the amount instead of being taken from what the recipient receives:

debit on the transfer balance = amount × (1 + fees / 100)

With a 1.5% rate, a 5,000 XOF transfer debits 5,075 XOF and the recipient receives 5,000 XOF. If the transfer fails, the 5,075 XOF are returned. Your rate is shown in the fees field of each transfer. To negotiate it, write to contact@senfenico.com.

  1. pendingaccepted, queued
  2. in_transitsent in a batch, no webhook
  3. successpaid, final
    failednot paid, balance returned
Transfer status lifecycle
Status Meaning Webhook
pending Transfer accepted, amount and fees reserved on your balance. transfer.pending
in_transit Some transfers go through this step when they are handed to the operator in a batch. The amount stays reserved. none
success The recipient has been paid. Final status. transfer.success
failed The payment did not go through. Amount and fees are returned to your balance. transfer.failed

Subscribe to events in the dashboard and verify their signature. See Webhooks.

GET/v1/payment/transfers/{reference}/
Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/transfers/TR261126-101502-ORANGE_BF-3f9c2a7b1d/ \
-H "X-API-KEY: sk_test_..."
{
"status": true,
"message": "Transfer details retrieved",
"data": {
"reference": "TR261126-101502-ORANGE_BF-3f9c2a7b1d",
"amount": 5000,
"fees": "1.500",
"currency": "XOF",
"ip_address": "203.0.113.10",
"status": "success",
"live_mode": false,
"recipient_wallet": "orange_bf",
"recipient_phone": "76000000",
"ext_id": "courier-payout-1042",
"created_at": "2026-11-26T10:15:02.481203Z"
}
}

An unknown transfer, or one created in the other mode (test/live), returns 404 with error_code: "TRANSACTION_NOT_FOUND".

GET/v1/payment/transfers/

10 transfers per page, newest first by default.

Parameter Description
page Page number (starting at 1). A page past the end returns the last page, so stop when has_next is false.
status pending, in_transit, success or failed.
ext_id Exact match on your reference.
reference Contains this text.
recipient_wallet One of the operators above.
recipient_phone Exact number.
date_from, date_to YYYY-MM-DD dates (UTC), inclusive.
amount_min, amount_max Amount bounds, inclusive.
order_by created_at, -created_at, amount, -amount, status, -status.
Fenêtre de terminal
curl "https://api.senfenico.com/v1/payment/transfers/?status=failed&date_from=2026-11-01" \
-H "X-API-KEY: sk_test_..."
{
"status": true,
"message": "Transfer list retrieved",
"data": [
{
"reference": "TR261125-183011-MOOV_BF-9a01be44c2",
"amount": 2500,
"fees": "1.500",
"currency": "XOF",
"ip_address": "203.0.113.10",
"status": "failed",
"live_mode": false,
"recipient_wallet": "moov_bf",
"recipient_phone": "70000000",
"ext_id": "courier-payout-1038",
"created_at": "2026-11-25T18:30:11.204551Z"
}
],
"pagination": {
"count": 1,
"total_pages": 1,
"current_page": 1,
"page_size": 10,
"has_next": false,
"has_previous": false
}
}

An invalid filter (badly formatted date, unknown status) returns 400 with error_code: "INVALID_DATA" and details in errors.

Before any new attempt, search for the transfer by ext_id. The function below returns true if a transfer for this payment is already in progress or paid. If the check itself fails, send nothing and retry the check later. The full procedure, including the new ext_id after a failed, is in Search before recreating.

Fenêtre de terminal
curl "https://api.senfenico.com/v1/payment/transfers/?ext_id=courier-payout-1042" \
-H "X-API-KEY: sk_test_..."

Always check the HTTP code and the status field.

HTTP error_code Cause What to do
400 INVALID_DATA Invalid field: amount out of range, malformed number, number not matching the operator, unknown or disabled operator, blocked recipient. Details in errors. Fix the request. Nothing was created.
403 MERCHANT_INSUFFICIENT_FUNDS The operator’s transfer balance does not cover amount + fees. Top up the balance. Nothing was created.
404 TRANSACTION_NOT_FOUND Unknown reference, or a transfer from the other mode. Check the reference and the key used.

Example of a refusal for insufficient balance:

{
"status": false,
"message": "Insufficient balance for Orange BF transfer including fees.",
"error_code": "MERCHANT_INSUFFICIENT_FUNDS"
}

Example of a failed validation:

{
"status": false,
"message": "Invalid data was sent",
"error_code": "INVALID_DATA",
"errors": {
"non_field_errors": ["Invalid phone number for Orange BF transfer."]
}
}

Authentication errors and the full list of codes are in Error codes.

  • A transfer ranges from 100 to 1,000,000 XOF.
  • Bulk transfers send up to 100 transfers per call.
  • Transfers to Coris Money are not available.

With an sk_test_ key, the transfer is sent to no operator. It is simulated and moves to success shortly after creation, with operator_trans_id: "TEST_MODE" in the webhook. It still requires enough test transfer balance, otherwise you get MERCHANT_INSUFFICIENT_FUNDS (see Test mode balances). Any correctly formatted number is accepted, without the payment test numbers.

Test mode does not produce a failed status. To simulate a failure, send an invalid request, for example a Moov number with recipient_wallet: "orange_bf" or an amount of 50.