Settlements: withdraw funds to bank or mobile money
A settlement moves your deposit balance, the money collected from your customers, to your own bank, mobile money or USDT account. To pay a third party, use a transfer instead.
Before you start
Section titled “Before you start”- Register a payment account. It is the destination of all your settlements, and without it creation fails.
- Check your deposit balance for the region concerned.
Create a settlement
Section titled “Create a settlement”/v1/payment/settlements/| Parameter | Type | Required | Description |
|---|---|---|---|
amount |
integer | yes | Amount to withdraw, in XOF, at least 5,000. |
region_or_mmo |
string | yes | Deposit balance to debit: bf (Burkina: Orange, Moov, Sank, Coris), moov_bj or mtn_bj. |
The request does not contain the destination, because Senfenico uses your registered payment account. The settlement_fees, account_type, iban, provider, phone and usdt_wallet_address fields are refused if sent.
curl https://api.senfenico.com/v1/payment/settlements/ \ -H "X-API-KEY: sk_test_..." \ -H "Content-Type: application/json" \ -d '{"amount": 50000, "region_or_mmo": "bf"}'$client = new \GuzzleHttp\Client([ 'base_uri' => 'https://api.senfenico.com/v1/payment/', 'headers' => ['X-API-KEY' => getenv('SENFENICO_KEY')], 'http_errors' => false,]);
$res = $client->post('settlements/', ['json' => [ 'amount' => 50000, 'region_or_mmo' => 'bf',]]);$body = json_decode($res->getBody(), true);
if ($res->getStatusCode() === 201 && $body['status']) { $reference = $body['data']['reference'];}import osimport requests
res = requests.post( "https://api.senfenico.com/v1/payment/settlements/", headers={"X-API-KEY": os.environ["SENFENICO_KEY"]}, json={"amount": 50000, "region_or_mmo": "bf"}, timeout=30,)body = res.json()
if res.status_code == 201 and body["status"]: reference = body["data"]["reference"]const res = await fetch( 'https://api.senfenico.com/v1/payment/settlements/', { method: 'POST', headers: { 'X-API-KEY': process.env.SENFENICO_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ amount: 50000, region_or_mmo: 'bf' }), },);const body = await res.json();
if (res.status === 201 && body.status) { const { reference } = body.data;}Response (201):
{ "status": true, "message": "Settlement created", "data": { "reference": "stl_5f0c1d2e3a4b4c5d9e8f7a6b5c4d3e2f", "amount": 50000, "settlement_fees": "0.000", "currency": "XOF", "status": "processing", "live_mode": false, "created_at": "2026-11-26T09:02:44.118020Z", "updated_at": "2026-11-26T09:02:44.118051Z", "region_or_mmo": "bf", "account_type": "mobile", "iban": null, "rib": null, "bank_name": null, "bank_address": null, "account_holder_name": null, "account_holder_address": null, "swift_bic_code": null, "provider": "orange_bf", "phone": "76000000", "usdt_wallet_address": null }}As soon as it is created, the amount is removed from available and shows in pending on your deposit balance.
Settlement fields
Section titled “Settlement fields”| Field | Type | Description |
|---|---|---|
reference |
string | Settlement ID, stl_ prefix. |
amount |
integer | Amount withdrawn, in XOF. |
settlement_fees |
decimal string | Fee rate as a percentage, fixed at creation ("0.000" = no fee). |
currency |
string | Always XOF. |
status |
string | processing, in_transit, success or cancelled. |
live_mode |
boolean | Mode of the key used. |
region_or_mmo |
string | Deposit balance debited: bf, moov_bj or mtn_bj. |
account_type |
string | bank, mobile or usdt. |
iban, rib, bank_name, bank_address, account_holder_name, account_holder_address, swift_bic_code |
string or null |
Bank details (bank account). |
provider, phone |
string or null |
Operator and number (mobile account). |
usdt_wallet_address |
string or null |
Wallet address (usdt account). |
created_at, updated_at |
ISO 8601 date (UTC) | Creation and last update. |
The destination details are copied from your payment account at creation time. Changing the payment account later does not change the destination of a settlement already created. If needed, cancel it and create a new one.
Settlement lifecycle
Section titled “Settlement lifecycle”processingwaiting, can be canceledin_transitpayout under waycancelledcanceled, amount returnedsuccessfunds paid out
| Status | Meaning | Webhook |
|---|---|---|
processing |
Request received, waiting to be processed. The only status that can be canceled. | settlement.processing |
in_transit |
The payout to your account has been started. | settlement.in_transit |
success |
The funds have been paid out. Final status. | settlement.success |
cancelled |
Canceled from processing. The amount goes back to available. Final status. |
settlement.cancelled |
Settlements spell the status cancelled with two Ls, while charges use canceled.
Retrieve a settlement
Section titled “Retrieve a settlement”/v1/payment/settlements/{reference}/curl https://api.senfenico.com/v1/payment/settlements/stl_5f0c1d2e3a4b4c5d9e8f7a6b5c4d3e2f/ \ -H "X-API-KEY: sk_test_..."$ref = 'stl_5f0c1d2e3a4b4c5d9e8f7a6b5c4d3e2f';$res = $client->get("settlements/{$ref}/");$body = json_decode($res->getBody(), true);echo $body['data']['status'];ref = "stl_5f0c1d2e3a4b4c5d9e8f7a6b5c4d3e2f"res = requests.get( f"https://api.senfenico.com/v1/payment/settlements/{ref}/", headers={"X-API-KEY": os.environ["SENFENICO_KEY"]}, timeout=30,)print(res.json()["data"]["status"])const ref = 'stl_5f0c1d2e3a4b4c5d9e8f7a6b5c4d3e2f';const res = await fetch( `https://api.senfenico.com/v1/payment/settlements/${ref}/`, { headers: { 'X-API-KEY': process.env.SENFENICO_KEY } },);const { data } = await res.json();console.log(data.status);The response (200, "message": "Settlement retrieved") contains the full object. An unknown reference, or one from the other mode, returns 404 with "message": "Settlement does not exist with this reference." (no error_code).
List settlements
Section titled “List settlements”/v1/payment/settlements/10 settlements per page, newest first by default. The response contains data (list) and pagination (count, total_pages, current_page, page_size, has_next, has_previous).
| Parameter | Description |
|---|---|
page |
Page number. A page past the end returns the last one, so stop when has_next is false. |
status |
processing, in_transit, success or cancelled. |
region_or_mmo |
bf, moov_bj or mtn_bj. |
reference |
Contains this text. |
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. |
Settlements have no ext_id.
curl "https://api.senfenico.com/v1/payment/settlements/?status=processing" \ -H "X-API-KEY: sk_test_..."Cancel a settlement
Section titled “Cancel a settlement”/v1/payment/settlements/{reference}/cancel/Cancellation uses a GET request, not POST. It only works while the settlement is in processing.
curl https://api.senfenico.com/v1/payment/settlements/stl_5f0c1d2e3a4b4c5d9e8f7a6b5c4d3e2f/cancel/ \ -H "X-API-KEY: sk_test_..."$res = $client->get("settlements/{$ref}/cancel/");$body = json_decode($res->getBody(), true);$cancelled = $res->getStatusCode() === 200 && $body['status'];res = requests.get( f"https://api.senfenico.com/v1/payment/settlements/{ref}/cancel/", headers={"X-API-KEY": os.environ["SENFENICO_KEY"]}, timeout=30,)cancelled = res.status_code == 200 and res.json()["status"]const res = await fetch( `https://api.senfenico.com/v1/payment/settlements/${ref}/cancel/`, { headers: { 'X-API-KEY': process.env.SENFENICO_KEY } },);const body = await res.json();const cancelled = res.status === 200 && body.status;The 200 response contains the object with "status": "cancelled" and "message": "Settlement cancelled". Canceling an already canceled settlement also returns 200. If the settlement is already in_transit or success:
{ "status": false, "message": "['Settlement can only be cancelled if it's in 'processing' status.']"}Fees and minimum amount
Section titled “Fees and minimum amount”- A settlement is at least 5,000 XOF.
- Settlement fees are a percentage specific to your account, fixed in
settlement_feesat creation."0.000"means no fee. - The settlement is only accepted if it is covered, fees included, that is
available ≥ amount × (1 + settlement_fees / 100). - To find out your rate, check your contract or write to
contact@senfenico.com.
Errors
Section titled “Errors”| HTTP | error_code |
Cause | Example detail |
|---|---|---|---|
400 |
none | No payment account registered. | "message": "It's impossible to make a settlement without a payment account. …" |
400 |
INVALID_DATA |
Amount below 5,000. | "amount": ["Ensure this value is greater than or equal to 5000."] |
400 |
INVALID_DATA |
Insufficient deposit balance (fees included). | "amount": ["Insufficient balance for the settlement."] |
400 |
INVALID_DATA |
region_or_mmo missing or invalid. |
"non_field_errors": ["Invalid data provided for region_or_mmo"] |
400 |
INVALID_DATA |
A destination field was sent. | "phone": ["phone is not allowed."] |
400 |
none | Canceling a settlement that is no longer processing. |
see above |
404 |
none | Unknown reference or one from the other mode. | "Settlement does not exist with this reference." |
For INVALID_DATA errors, details are in errors. See also Error codes.