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.
Before you start
Section titled “Before you start”- 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 tocontact@senfenico.comto enable it. - Use a server-side API key, ideally restricted to your IP addresses, since it can send money.
Operators and phone number format
Section titled “Operators and phone number format”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 withoutrecipient_walletis therefore refused (it is treated as an 8-digit Burkina number). - For
orange_bfandmoov_bf, the 2nd digit must match the chosen operator.
Create a transfer
Section titled “Create a transfer”/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. |
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" }'$client = new \GuzzleHttp\Client([ 'base_uri' => 'https://api.senfenico.com/v1/payment/', 'headers' => ['X-API-KEY' => getenv('SENFENICO_KEY')], 'http_errors' => false, 'timeout' => 30,]);
$res = $client->post('transfers/', ['json' => [ 'amount' => 5000, 'recipient_phone' => '76000000', 'recipient_wallet' => 'orange_bf', 'ext_id' => 'courier-payout-1042',]]);$body = json_decode($res->getBody(), true);
if ($res->getStatusCode() === 201 && $body['status']) { $reference = $body['data']['reference']; // Store $reference next to your ext_id}import osimport requests
res = requests.post( "https://api.senfenico.com/v1/payment/transfers/", headers={"X-API-KEY": os.environ["SENFENICO_KEY"]}, json={ "amount": 5000, "recipient_phone": "76000000", "recipient_wallet": "orange_bf", "ext_id": "courier-payout-1042", }, timeout=30,)body = res.json()
if res.status_code == 201 and body["status"]: reference = body["data"]["reference"] # Store reference next to your ext_idconst res = await fetch( 'https://api.senfenico.com/v1/payment/transfers/', { method: 'POST', headers: { 'X-API-KEY': process.env.SENFENICO_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ amount: 5000, recipient_phone: '76000000', recipient_wallet: 'orange_bf', ext_id: 'courier-payout-1042', }), },);const body = await res.json();
if (res.status === 201 && body.status) { const { reference } = body.data; // Store reference next to your ext_id}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.
Transfer fields
Section titled “Transfer fields”| 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. |
Transfer fees
Section titled “Transfer fees”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.
Transfer lifecycle
Section titled “Transfer lifecycle”pendingaccepted, queuedin_transitsent in a batch, no webhooksuccesspaid, finalfailednot paid, balance returned
| 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.
Retrieve a transfer
Section titled “Retrieve a transfer”/v1/payment/transfers/{reference}/curl https://api.senfenico.com/v1/payment/transfers/TR261126-101502-ORANGE_BF-3f9c2a7b1d/ \ -H "X-API-KEY: sk_test_..."$ref = 'TR261126-101502-ORANGE_BF-3f9c2a7b1d';$res = $client->get("transfers/{$ref}/");$body = json_decode($res->getBody(), true);echo $body['data']['status'];ref = "TR261126-101502-ORANGE_BF-3f9c2a7b1d"res = requests.get( f"https://api.senfenico.com/v1/payment/transfers/{ref}/", headers={"X-API-KEY": os.environ["SENFENICO_KEY"]}, timeout=30,)print(res.json()["data"]["status"])const ref = 'TR261126-101502-ORANGE_BF-3f9c2a7b1d';const res = await fetch( `https://api.senfenico.com/v1/payment/transfers/${ref}/`, { headers: { 'X-API-KEY': process.env.SENFENICO_KEY } },);const { data } = await res.json();console.log(data.status);{ "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".
List transfers
Section titled “List transfers”/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. |
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.
Avoid paying twice
Section titled “Avoid paying twice”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.
curl "https://api.senfenico.com/v1/payment/transfers/?ext_id=courier-payout-1042" \ -H "X-API-KEY: sk_test_..."function transferInProgress($client, string $extId): bool{ $res = $client->get('transfers/', [ 'query' => ['ext_id' => $extId], ]); $body = json_decode($res->getBody(), true); if ($res->getStatusCode() !== 200 || !$body['status']) { throw new RuntimeException('Check failed'); } foreach ($body['data'] as $t) { if ($t['status'] !== 'failed') { return true; // already paid or in progress } } return false;}def transfer_in_progress(ext_id: str) -> bool: res = requests.get( "https://api.senfenico.com/v1/payment/transfers/", headers={"X-API-KEY": os.environ["SENFENICO_KEY"]}, params={"ext_id": ext_id}, timeout=30, ) res.raise_for_status() body = res.json() if not body["status"]: raise RuntimeError("Check failed") # already paid or in progress? return any(t["status"] != "failed" for t in body["data"])async function transferInProgress(extId) { const url = new URL( 'https://api.senfenico.com/v1/payment/transfers/', ); url.searchParams.set('ext_id', extId); const res = await fetch(url, { headers: { 'X-API-KEY': process.env.SENFENICO_KEY }, }); const body = await res.json(); if (!res.ok || !body.status) { throw new Error('Check failed'); } // already paid or in progress? return body.data.some((t) => t.status !== 'failed');}Errors
Section titled “Errors”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.
Limits
Section titled “Limits”- 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.