Skip to content

API reference

Every endpoint of the Senfenico API, generated from the OpenAPI specification.

Base URLhttps://api.senfenico.com/v1
Authenticationheader X-API-KEY with your sk_test_… or sk_live_… key. See Authentication.
Download the OpenAPI specLoads the interactive console (~1 MB). Use a test key.

Balances

Your balances per region / operator. Deposit balances hold the money collected by charges (net of fees) and are what settlements are paid from. Transfer balances are per payout wallet and are what transfers are debited from (top them up from the dashboard).

Retrieve balances

GET/v1/payment/balances/

Returns deposit balances (bf, moov_bj, mtn_bj) and transfer balances (one per payout wallet) for the mode of the key used. Values are JSON numbers in XOF and can have decimals, because deposit balances are net of the percentage charge fees.

available is what you can spend now; pending is what is reserved by operations in progress. Known quirk: in test mode deposit_balances.bf.pending currently repeats the available value.

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/balances/ \
-H "X-API-KEY: sk_test_..."

Responses

200 Balances retrieved. If your merchant profile cannot be found the endpoint still answers 200 with status: false and message Could not retrieve balance: user does not exist (no data).
{
"status": true,
"message": "Balance retrieved",
"data": {
"deposit_balances": {
"bf": {
"available": 245310.5,
"pending": 0,
"currency": "XOF"
},
"moov_bj": {
"available": 0,
"pending": 0,
"currency": "XOF"
},
"mtn_bj": {
"available": 12125,
"pending": 0,
"currency": "XOF"
}
},
"transfer_balances": {
"orange_money_bf": {
"available": 150000,
"pending": 5075,
"currency": "XOF"
},
"moov_bf": {
"available": 80000,
"pending": 0,
"currency": "XOF"
},
"sank_money_bf": {
"available": 0,
"pending": 0,
"currency": "XOF"
},
"moov_bj": {
"available": 0,
"pending": 0,
"currency": "XOF"
},
"mtn_bj": {
"available": 0,
"pending": 0,
"currency": "XOF"
}
}
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Charges

Direct mobile money collection from your own UI. Create a charge, then depending on the returned status either collect an OTP from the customer and call Submit OTP (send_otp), or wait for the customer to approve on their phone (pay_offline) and listen for the charge.success webhook. A pay_offline charge is not guaranteed to move to failed: apply your own timeout.

List charges

GET/v1/payment/charges/

Charges of the key's mode, 10 per page, newest first by default. All filters are optional and combined with AND. An unknown order_by silently falls back to -created_at; an out-of-range page returns the last page, a non-numeric one the first page.

Parameters

NameTypeDescription
page
query
integer

Page number (1-based). Out-of-range values return the last page; invalid values the first page.

order_by
query
"created_at" | "-created_at" | "amount" | "-amount" | "status" | "-status"

Sort order. Any other value falls back to -created_at (newest first). Ties are broken by newest record.

reference
query
string

Partial, case-insensitive match on the charge reference.

ext_id
query
string

Exact match on your ext_id.

operator_trans_id
query
string

Exact operator transaction ID.

status
query
"send_otp" | "pay_offline" | "pending" | "success" | "failed" | "canceled"—
provider
query
"orange_bf" | "moov_bf" | "coris_bf" | "sank_bf" | "mtn_bj" | "moov_bj" | "orange_ml"—
phone
query
string

Exact payer phone number.

date_from
query
string (date)

Created on or after this day (inclusive).

date_to
query
string (date)

Created on or before this day (inclusive — the whole day is included).

amount_min
query
number

Minimum amount in XOF (inclusive).

amount_max
query
number

Maximum amount in XOF (inclusive).

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/charges/ \
-H "X-API-KEY: sk_test_..."

Responses

200 Charge list
{
"status": true,
"message": "Charge list retreived",
"data": [
{
"reference": "CH261126-142305-ORANGE_BF-3f9a1c7e2b",
"amount": 1000,
"fees": "2.990",
"currency": "XOF",
"transaction_date": "2026-11-26T14:23:05.412Z",
"ip_address": "41.138.98.12",
"status": "success",
"live_mode": false,
"payment_method": "mobile_money",
"provider": "orange_bf",
"phone": "76000000",
"ext_id": "order-1042",
"operator_trans_id": null,
"cancelled_at": null,
"cancellation_reason": null,
"created_at": "2026-11-26T14:23:05.415Z",
"updated_at": "2026-11-26T14:24:11.020Z",
"confirmation_attempts": [
{
"ip_address": "41.138.98.12",
"attempt_date": "2026-11-26T14:24:10.987Z",
"confirmation_status": "success"
}
]
}
],
"pagination": {
"count": 1,
"total_pages": 1,
"current_page": 1,
"page_size": 10,
"has_next": false,
"has_previous": false
}
}
400 A query parameter is invalid (e.g. unknown status, malformed date).
{
"status": false,
"message": "Invalid filters",
"error_code": "INVALID_DATA",
"errors": {
"date_from": [
"Enter a valid date."
],
"status": [
"Select a valid choice. done is not one of the available choices."
]
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Create a charge

POST/v1/payment/charges/

Starts a mobile money collection. The charge is recorded first, then the operator is contacted.

What happens next depends on data.status:

| Provider | confirmation_method | data.status | Customer action | |---|---|---|---| | orange_bf | any | send_otp | Dials *144*4*6*<amount># (shown in display_text) to get an OTP, gives it to you → Submit OTP | | moov_bf | otp (default) | send_otp | Receives an OTP by SMS → Submit OTP | | moov_bf | ussd | pay_offline | Dials *555*6# and approves → webhook | | coris_bf, sank_bf | any | send_otp | Receives an OTP → Submit OTP | | mtn_bj, moov_bj | any | pay_offline | Approves the prompt on their phone → webhook | | orange_ml | otp / url | send_otp / waiting_webpayment | OTP, or follow the link in display_text |

Depending on Senfenico's routing for your account, moov_bf may answer pay_offline even with otp. A Moov charge can also come back already success (message Successfull charge).

Gotchas - amount is a whole number of XOF between 100 and 1 000 000. - Phone numbers are local, digits only: 8 digits in Burkina Faso (Moov: 2nd digit 0–3, Orange: 2nd digit 4–7), 10 digits in Benin. - If the operator refuses the request, the API answers HTTP 200 with status: false and an error_code (e.g. INVALID_ACCOUNT, INSUFFICIENT_FUNDS, NETWORK_ERROR). No reference is returned in that case. - ext_id is not an idempotency key — retrying creates a second charge. - Test mode: use the test numbers from the docs (e.g. Orange 76000000 / 1000 XOF / OTP 123456). - display_text is in French and meant to be shown to the payer as is.

Request body

NameTypeDescription
amount
required
integer

Amount in whole XOF. · Min: 100 · Max: 1000000

currency"XOF"

Default: "XOF"

payment_method"mobile_money"

Default: "mobile_money"

ext_idstring | null

Your identifier

payment_method_details
required
object—
payment_method_details.phone
required
string

Payer's local number, digits only. 8 digits in Burkina Faso, 10 in Benin.

payment_method_details.provider
required
"orange_bf" | "moov_bf" | "coris_bf" | "sank_bf" | "mtn_bj" | "moov_bj" | "orange_ml"

orange_bf, moov_bf, coris_bf, sank_bf (Burkina Faso) · mtn_bj, moov_bj (Benin) · orange_ml (Mali).

payment_method_details.confirmation_method"otp" | "ussd" | "url"

ussd is used by moov_bf (customer dials *555*6#); url by orange_ml. Ignored by other providers. · Default: "otp"

Request

Fenêtre de terminal
curl -X POST https://api.senfenico.com/v1/payment/charges/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"amount": 1000,
"currency": "XOF",
"payment_method": "mobile_money",
"ext_id": "order-1042",
"payment_method_details": {
"phone": "76000000",
"provider": "orange_bf"
}
}'

Responses

200 The operator refused the request (status is false despite HTTP 200).
{
"status": false,
"message": "Transaction failed. The phone number is not valid or is not associated with an account with operator. Please check the phone number and try again.",
"error_code": "INVALID_ACCOUNT"
}
201 Charge attempted — act on data.status.
{
"status": true,
"message": "Charge attempted",
"data": {
"reference": "CH261126-142305-ORANGE_BF-3f9a1c7e2b",
"status": "send_otp",
"display_text": "Composez *144*4*6*1000# pour obtenir un code OTP, puis entrez-le sur notre plateforme pour finaliser la transaction.",
"live_mode": false
}
}
400 Validation failed (INVALID_DATA).
{
"status": false,
"message": "Invalid data provided. Please check the input and try again.",
"error_code": "INVALID_DATA",
"errors": {
"payment_method_details": {
"phone": [
"Invalid phone number for Orange BF."
]
}
}
}
403 Either the API key is missing/invalid (see AuthError), or (live mode) your account is not enabled for this provider (UNAUTHORIZED_CHARGE_PROVIDER).
{
"status": false,
"message": "Operation failed. You are not authorized to charge this provider. If you think this is an error, please contact Senfenico team.",
"error_code": "UNAUTHORIZED_CHARGE_PROVIDER"
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Submit OTP

POST/v1/payment/charges/submit

Confirms a send_otp charge with the OTP the customer obtained (Orange BF, Moov BF, Coris BF, Sank BF). The path has no trailing slash.

  • The OTP is sanitised (superscript digits converted, non-digits removed) and must be 2–10 digits.
  • A wrong or expired OTP returns HTTP 200 with status: false and error_code such as OTP_INVALID or OTP_EXPIRED. Each submission is recorded in the charge's confirmation_attempts.
  • An already successful charge is reported as not found (404 CHARGE_NOT_FOUND).
  • Providers without an OTP step (mtn_bj, moov_bj, orange_ml) end in a 500 INTERNAL_ERROR.
  • The success payload is a reduced charge: it uses operator_id instead of operator_trans_id, has no phone / created_at / updated_at, and returns fees as a JSON number.
  • Test mode: OTP 123456 with a test number and its matching amount.

Request body

NameTypeDescription
otp
required
string

OTP given by the customer (2–10 digits after sanitising).

charge_reference
required
string

The reference returned by Create a charge.

Request

Fenêtre de terminal
curl -X POST https://api.senfenico.com/v1/payment/charges/submit \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"otp": "123456",
"charge_reference": "CH261126-142305-ORANGE_BF-3f9a1c7e2b"
}'

Responses

200 OTP processed. Check status.
{
"status": true,
"message": "charge completed successfully",
"data": {
"reference": "CH261126-142305-ORANGE_BF-3f9a1c7e2b",
"amount": 1000,
"fees": 2.99,
"currency": "XOF",
"transaction_date": "2026-11-26T14:23:05.412000+00:00",
"ip_address": "41.138.98.12",
"status": "success",
"live_mode": false,
"payment_method": "mobile_money",
"provider": "orange_bf",
"ext_id": "order-1042",
"operator_id": null,
"cancelled_at": null,
"cancellation_reason": null,
"confirmation_attempts": [
{
"ip_address": "41.138.98.12",
"attempt_date": "2026-11-26T14:24:10.987000+00:00",
"confirmation_status": "success"
}
]
}
}
400 Missing field or malformed OTP.
{
"status": false,
"message": "Invalid data provided. Please check the input and try again.",
"error_code": "INVALID_DATA",
"errors": {
"otp": [
"OTP must be between 4 and 8 digits long."
]
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
404 No charge with this reference for your account, or the charge is already successful.
{
"status": false,
"message": "charge operation failed. Charge with the given reference not found.",
"error_code": "CHARGE_NOT_FOUND"
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}
500 Unexpected error (also returned for providers without an OTP step).
{
"status": false,
"message": "charge operation failed. An internal error occurred. Please try again later.",
"error_code": "INTERNAL_ERROR"
}

Retrieve a charge

GET/v1/payment/charges/{charge_reference}/

Returns a charge of the key's mode. Use it to poll a pay_offline charge if you cannot receive webhooks. The 404 response has no error_code.

Parameters

NameTypeDescription
charge_reference
path · required
string—

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/charges/{charge_reference}/ \
-H "X-API-KEY: sk_test_..."

Responses

200 The charge
{
"status": true,
"message": "Charge attempted",
"data": {
"reference": "CH261126-142840-MOOV_BF-a41d09be77",
"amount": 1000,
"fees": "2.990",
"currency": "XOF",
"transaction_date": "2026-11-26T14:28:40.101Z",
"ip_address": "41.138.98.12",
"status": "pay_offline",
"live_mode": false,
"payment_method": "mobile_money",
"provider": "moov_bf",
"phone": "70000000",
"ext_id": "order-1043",
"operator_trans_id": null,
"cancelled_at": null,
"cancellation_reason": null,
"created_at": "2026-11-26T14:28:40.104Z",
"updated_at": "2026-11-26T14:28:40.104Z",
"confirmation_attempts": []
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
404 Not found
{
"status": false,
"message": "Charge not found"
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}
500 Unexpected error
{
"status": true,
"message": "string",
"error_code": "BATCH_SIZE_LIMIT_EXCEEDED",
"errors": null
}

Checkouts

Hosted payment page. Initialize a checkout, redirect the customer to authorization_url; they pick their operator and pay there, then are redirected to your success_url or cancel_url. The underlying charge is linked through charge_reference.

List checkouts

GET/v1/payment/checkouts/

Checkouts of the key's mode, 10 per page, newest first by default.

Parameters

NameTypeDescription
page
query
integer

Page number (1-based). Out-of-range values return the last page; invalid values the first page.

order_by
query
"created_at" | "-created_at" | "amount" | "-amount" | "status" | "-status"

Sort order. Any other value falls back to -created_at (newest first). Ties are broken by newest record.

reference
query
string

Partial, case-insensitive match on the checkout reference.

charge_reference
query
string

Exact reference of the charge created by the checkout.

status
query
"pending" | "success" | "failed"—
provider
query
"orange_bf" | "moov_bf" | "coris_bf" | "sank_bf" | "orange_ml"—
phone
query
string—
email
query
string

Case-insensitive exact match.

date_from
query
string (date)

Created on or after this day (inclusive).

date_to
query
string (date)

Created on or before this day (inclusive — the whole day is included).

amount_min
query
integer

Minimum amount in XOF (inclusive, integer).

amount_max
query
integer

Maximum amount in XOF (inclusive, integer).

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/checkouts/ \
-H "X-API-KEY: sk_test_..."

Responses

200 Checkout list
{
"status": true,
"message": "Checkout list retrieved",
"data": [
{
"email": "customer@example.com",
"reference": "CHK261126-101010--5b7e9d2c4a",
"charge_reference": "CH261126-101233-ORANGE_BF-77ab01c9e4",
"amount": 2500,
"success_url": "https://shop.example.com/success",
"cancel_url": "https://shop.example.com/cancel",
"phone": "76000000",
"provider": "orange_bf",
"live_mode": false,
"created_at": "2026-11-26T10:10:10.120Z",
"updated_at": "2026-11-26T10:13:02.880Z",
"status": "success"
}
],
"pagination": {
"count": 1,
"total_pages": 1,
"current_page": 1,
"page_size": 10,
"has_next": false,
"has_previous": false
}
}
400 A query parameter is invalid (e.g. unknown status, malformed date).
{
"status": false,
"message": "Invalid filters",
"error_code": "INVALID_DATA",
"errors": {
"date_from": [
"Enter a valid date."
],
"status": [
"Select a valid choice. done is not one of the available choices."
]
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Initialize a checkout

POST/v1/payment/checkouts/initialize/

Creates a hosted payment session and returns the authorization_url to redirect the customer to. The customer chooses the operator on the page (Orange BF, Moov BF, Coris BF, Sank BF).

  • amount is a whole number of XOF, minimum 100.
  • The checkout starts pending; phone, provider and charge_reference are empty until the customer pays.
  • Each call creates a new checkout (no idempotency).

Request body

NameTypeDescription
emailstring (email)

Customer email address (optional).

amount
required
integer

Amount in whole XOF. · Min: 100

success_url
required
string (uri)

Where the customer is sent after a successful payment.

cancel_url
required
string (uri)

Where the customer is sent if they cancel.

Request

Fenêtre de terminal
curl -X POST https://api.senfenico.com/v1/payment/checkouts/initialize/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"email": "customer@example.com",
"amount": 2500,
"success_url": "https://shop.example.com/success",
"cancel_url": "https://shop.example.com/cancel"
}'

Responses

201 Checkout initialized
{
"status": true,
"message": "Checkout initialized",
"data": {
"reference": "CHK261126-101010--5b7e9d2c4a",
"authorization_url": "https://api.senfenico.com/v1/checkout_payment/payment_page/CHK261126-101010--5b7e9d2c4a/",
"live_mode": false
}
}
400 Validation failed
{
"status": false,
"message": "Invalid data provided. Please check the input and try again.",
"error_code": "INVALID_DATA",
"errors": {
"amount": [
"Ensure this value is greater than or equal to 100."
],
"success_url": [
"Enter a valid URL."
]
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}
500 Checkout could not be initialized (status: false, message Error initializing checkout).
{
"status": true,
"message": "string",
"error_code": "BATCH_SIZE_LIMIT_EXCEEDED",
"errors": null
}

Retrieve a checkout

GET/v1/payment/checkouts/{checkout_reference}/

Returns a checkout of the key's mode. The 404 response has no error_code.

Parameters

NameTypeDescription
checkout_reference
path · required
string—

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/checkouts/{checkout_reference}/ \
-H "X-API-KEY: sk_test_..."

Responses

200 The checkout
{
"status": true,
"message": "Checkout details retrieved",
"data": {
"email": "customer@example.com",
"reference": "CHK261126-101010--5b7e9d2c4a",
"charge_reference": null,
"amount": 2500,
"success_url": "https://shop.example.com/success",
"cancel_url": "https://shop.example.com/cancel",
"phone": "",
"provider": "",
"live_mode": false,
"created_at": "2026-11-26T10:10:10.120Z",
"updated_at": "2026-11-26T10:10:10.120Z",
"status": "pending"
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
404 Not found
{
"status": false,
"message": "Checkout not found"
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Refunds

Give back all or part of a successful charge. The refund is created pending and processed by Senfenico; follow it with the refund.success / refund.failed webhook or by retrieving it.

List refunds

GET/v1/payment/refunds/

Refunds of the key's mode, newest first by default. Page size is 50 here (10 on the other lists). Note the filter names refund_reference / charge_reference (not reference).

Parameters

NameTypeDescription
page
query
integer

Page number (1-based). Out-of-range values return the last page; invalid values the first page.

order_by
query
"created_at" | "-created_at" | "amount" | "-amount" | "status" | "-status"

Sort order. Any other value falls back to -created_at (newest first). Ties are broken by newest record.

refund_reference
query
string

Partial, case-insensitive match on the refund reference.

charge_reference
query
string

Exact reference of the refunded charge.

ext_id
query
string

Exact match on your ext_id.

status
query
"pending" | "success" | "failed"—
reason
query
"fraudulent" | "requested_by_customer" | "abandoned" | null—
date_from
query
string (date)

Created on or after this day (inclusive).

date_to
query
string (date)

Created on or before this day (inclusive — the whole day is included).

amount_min
query
number

Minimum amount in XOF (inclusive).

amount_max
query
number

Maximum amount in XOF (inclusive).

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/refunds/ \
-H "X-API-KEY: sk_test_..."

Responses

200 Refund list
{
"status": true,
"message": "Refund list retreived",
"data": [
{
"reference": "re_c9f0f895fb98ab9159f51fd0297e236d",
"charge": "CH261126-142305-ORANGE_BF-3f9a1c7e2b",
"amount": 500,
"reason": "requested_by_customer",
"status": "pending",
"live_mode": false,
"note": "Partial refund, item out of stock",
"ext_id": "rfd-88",
"created_at": "2026-11-26T16:02:44.310Z"
}
],
"pagination": {
"count": 1,
"total_pages": 1,
"current_page": 1,
"page_size": 50,
"has_next": false,
"has_previous": false
}
}
400 A query parameter is invalid (e.g. unknown status, malformed date).
{
"status": false,
"message": "Invalid filters",
"error_code": "INVALID_DATA",
"errors": {
"date_from": [
"Enter a valid date."
],
"status": [
"Select a valid choice. done is not one of the available choices."
]
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Create a refund

POST/v1/payment/refunds/

Refunds all or part of a charge.

  • The charge must be yours, in the same mode as the key, and success.
  • amount is required (whole XOF, > 0). The sum of non-failed refunds of a charge cannot exceed the charge amount, so several partial refunds are allowed.
  • The refund is created pending and taken from the balance of the operator that collected the charge.
  • ext_id is not an idempotency key.

Request body

NameTypeDescription
charge
required
string

Reference of the charge to refund.

amount
required
integer

Amount to refund in whole XOF. · Min: 1

reason"fraudulent" | "requested_by_customer" | "abandoned" | null—
notestring | null

Free text for your records.

ext_idstring | null

Your own identifier (not unique).

Request

Fenêtre de terminal
curl -X POST https://api.senfenico.com/v1/payment/refunds/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"charge": "CH261126-142305-ORANGE_BF-3f9a1c7e2b",
"amount": 500,
"reason": "requested_by_customer",
"note": "Partial refund, item out of stock",
"ext_id": "rfd-88"
}'

Responses

201 Refund created (pending)
{
"status": true,
"message": "Refund attempted",
"data": {
"reference": "re_c9f0f895fb98ab9159f51fd0297e236d",
"charge": "CH261126-142305-ORANGE_BF-3f9a1c7e2b",
"amount": 500,
"reason": "requested_by_customer",
"status": "pending",
"live_mode": false,
"note": "Partial refund, item out of stock",
"ext_id": "rfd-88",
"created_at": "2026-11-26T16:02:44.310Z"
}
}
400 Validation failed
{
"status": false,
"message": "Invalid data provided. Please check the input and try again.",
"error_code": "INVALID_DATA",
"errors": {
"charge": [
"Only successful charges can be refunded."
]
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Retrieve a refund

GET/v1/payment/refunds/{refund_reference}/

Parameters

NameTypeDescription
refund_reference
path · required
string—

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/refunds/{refund_reference}/ \
-H "X-API-KEY: sk_test_..."

Responses

200 The refund
{
"status": true,
"message": "Refund with reference re_c9f0f895fb98ab9159f51fd0297e236d retreived",
"data": {
"reference": "re_c9f0f895fb98ab9159f51fd0297e236d",
"charge": "CH261126-142305-ORANGE_BF-3f9a1c7e2b",
"amount": 500,
"reason": "requested_by_customer",
"status": "success",
"live_mode": false,
"note": "Partial refund, item out of stock",
"ext_id": "rfd-88",
"created_at": "2026-11-26T16:02:44.310Z"
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
404 Not found
{
"status": false,
"message": "Refund with reference re_000 not found",
"error_code": "TRANSACTION_NOT_FOUND"
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}
500 Unexpected error (INTERNAL_ERROR)
{
"status": true,
"message": "string",
"error_code": "BATCH_SIZE_LIMIT_EXCEEDED",
"errors": null
}

Transfers

Payouts to mobile money wallets (Orange BF, Moov BF, Sank BF, MTN BJ, Moov BJ). Transfers are queued (pending) and processed asynchronously; the final state arrives by transfer.success / transfer.failed webhook. The amount plus fees is checked against the matching transfer balance.

List transfers

GET/v1/payment/transfers/

Transfers of the key's mode, 10 per page, newest first by default. You can filter on operator_trans_id although the transfer object does not return that field.

Parameters

NameTypeDescription
page
query
integer

Page number (1-based). Out-of-range values return the last page; invalid values the first page.

order_by
query
"created_at" | "-created_at" | "amount" | "-amount" | "status" | "-status"

Sort order. Any other value falls back to -created_at (newest first). Ties are broken by newest record.

reference
query
string

Partial, case-insensitive match on the transfer reference.

ext_id
query
string

Exact match on your ext_id.

operator_trans_id
query
string—
status
query
"pending" | "in_transit" | "success" | "failed"—
recipient_wallet
query
"orange_bf" | "moov_bf" | "sank_bf" | "mtn_bj" | "moov_bj"—
recipient_phone
query
string—
date_from
query
string (date)

Created on or after this day (inclusive).

date_to
query
string (date)

Created on or before this day (inclusive — the whole day is included).

amount_min
query
number

Minimum amount in XOF (inclusive).

amount_max
query
number

Maximum amount in XOF (inclusive).

Request

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

Responses

200 Transfer list
{
"status": true,
"message": "Transfer list retrieved",
"data": [
{
"reference": "TR261126-091512-ORANGE_BF-8c2d4e6f1a",
"amount": 5000,
"fees": "1.500",
"currency": "XOF",
"ip_address": "102.180.4.77",
"status": "success",
"live_mode": true,
"recipient_wallet": "orange_bf",
"recipient_phone": "76123456",
"ext_id": "payout-311",
"created_at": "2026-11-26T09:15:12.004Z"
}
],
"pagination": {
"count": 1,
"total_pages": 1,
"current_page": 1,
"page_size": 10,
"has_next": false,
"has_previous": false
}
}
400 A query parameter is invalid (e.g. unknown status, malformed date).
{
"status": false,
"message": "Invalid filters",
"error_code": "INVALID_DATA",
"errors": {
"date_from": [
"Enter a valid date."
],
"status": [
"Select a valid choice. done is not one of the available choices."
]
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Create a transfer

POST/v1/payment/transfers/

Queues a payout to a mobile money wallet. The response is immediate (pending); the operator call happens in the background and the result comes by webhook (transfer.success / transfer.failed).

  • amount: whole XOF, 100 to 1 000 000.
  • recipient_phone: digits only. Burkina Faso: 8 digits (Moov 2nd digit 0–3, Orange 2nd digit 4–7). Benin: 10 digits starting with 01.
  • recipient_wallet is optional for Burkina Faso: if omitted, Moov BF or Orange BF is picked from the phone number. It is required for sank_bf, mtn_bj and moov_bj.
  • amount + amount × fees / 100 must be available on the matching transfer balance, otherwise 403 MERCHANT_INSUFFICIENT_FUNDS.
  • ext_id is not an idempotency key — retrying sends a second payout. Check with GET /payment/transfers/?ext_id=… before retrying after a timeout.
  • Creation response returns fees as a JSON number (the rate in %), unlike the list/retrieve endpoints.
  • Test mode: no operator is called; the transfer is marked success automatically.

Request body

NameTypeDescription
amount
required
integer

Amount the recipient receives · Min: 100 · Max: 1000000

recipient_phone
required
string

Local number, digits only. 8 digits (Burkina Faso) or 10 digits starting with 01 (Benin).

recipient_wallet"orange_bf" | "moov_bf" | "sank_bf" | "mtn_bj" | "moov_bj"

Optional for Burkina Faso (deduced from the number for Orange/Moov); required otherwise.

ext_idstring | null

Your identifier. Not unique

Request

Fenêtre de terminal
curl -X POST https://api.senfenico.com/v1/payment/transfers/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"amount": 5000,
"recipient_phone": "76123456",
"recipient_wallet": "orange_bf",
"ext_id": "payout-311"
}'

Responses

201 Transfer queued
{
"status": true,
"message": "Transfer has been queued",
"data": {
"reference": "TR261126-091512-ORANGE_BF-8c2d4e6f1a",
"amount": 5000,
"fees": 1.5,
"recipient_phone": "76123456",
"currency": "XOF",
"ip_address": "102.180.4.77",
"status": "pending",
"live_mode": true,
"recipient_wallet": "orange_bf",
"ext_id": "payout-311",
"created_at": "2026-11-26T09:15:12.004213Z"
}
}
400 Validation failed (INVALID_DATA).
{
"status": false,
"message": "Invalid data was sent",
"error_code": "INVALID_DATA",
"errors": {
"non_field_errors": [
"Invalid phone number for Orange BF transfer."
]
}
}
403 Insufficient transfer balance (MERCHANT_INSUFFICIENT_FUNDS), or missing/invalid API key.
{
"status": false,
"message": "Insufficient balance for Orange BF transfer including fees.",
"error_code": "MERCHANT_INSUFFICIENT_FUNDS"
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Create transfers in bulk

POST/v1/payment/transfers/bulk/

Queues up to 100 transfers in one request. Each item is validated exactly like Create a transfer (including the balance check, evaluated item by item).

Gotcha: the endpoint answers 202 with status: true even when some or all items fail. Read message ("<n> transfers queued for processing") and the failed_transfers array. The response does not list the references of queued transfers: set a distinct ext_id on each item and find them with GET /payment/transfers/?ext_id=… or via webhooks. In failed_transfers[].errors, an insufficient balance appears as a non_field_errors validation message (no MERCHANT_INSUFFICIENT_FUNDS code here).

Request body

NameTypeDescription
transfers
required
object[]—

Request

Fenêtre de terminal
curl -X POST https://api.senfenico.com/v1/payment/transfers/bulk/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"transfers": [
{
"amount": 5000,
"recipient_phone": "76123456",
"recipient_wallet": "orange_bf",
"ext_id": "payroll-nov-001"
},
{
"amount": 7500,
"recipient_phone": "70123456",
"recipient_wallet": "moov_bf",
"ext_id": "payroll-nov-002"
}
]
}'

Responses

202 Batch processed — check failed_transfers.
{
"status": true,
"message": "1 transfers queued for processing",
"failed_transfers": [
{
"data": {
"amount": 7500,
"recipient_phone": "74123456",
"recipient_wallet": "moov_bf",
"ext_id": "payroll-nov-002"
},
"errors": {
"non_field_errors": [
"Invalid phone number for Moov BF transfer."
]
}
}
]
}
400 Empty batch (INVALID_DATA) or more than 100 items (BATCH_SIZE_LIMIT_EXCEEDED). Nothing is queued.
{
"status": false,
"message": "Maximum of 100 transfers allowed per request",
"error_code": "BATCH_SIZE_LIMIT_EXCEEDED"
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Retrieve a transfer

GET/v1/payment/transfers/{reference}/

Parameters

NameTypeDescription
reference
path · required
string—

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/transfers/{reference}/ \
-H "X-API-KEY: sk_test_..."

Responses

200 The transfer
{
"status": true,
"message": "Transfer details retrieved",
"data": {
"reference": "TR261126-091512-ORANGE_BF-8c2d4e6f1a",
"amount": 5000,
"fees": "1.500",
"currency": "XOF",
"ip_address": "102.180.4.77",
"status": "success",
"live_mode": true,
"recipient_wallet": "orange_bf",
"recipient_phone": "76123456",
"ext_id": "payout-311",
"created_at": "2026-11-26T09:15:12.004Z"
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
404 Not found
{
"status": false,
"message": "Transfer with reference TR000 not found",
"error_code": "TRANSACTION_NOT_FOUND"
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Settlements

Withdraw your deposit balance to the payment account registered for your business (bank, mobile money or USDT). A settlement starts processing, then moves to in_transit and success; you can cancel it only while it is processing.

List settlements

GET/v1/payment/settlements/

Settlements of the key's mode, 10 per page, newest first by default.

Parameters

NameTypeDescription
page
query
integer

Page number (1-based). Out-of-range values return the last page; invalid values the first page.

order_by
query
"created_at" | "-created_at" | "amount" | "-amount" | "status" | "-status"

Sort order. Any other value falls back to -created_at (newest first). Ties are broken by newest record.

reference
query
string

Partial, case-insensitive match on the settlement reference.

status
query
"processing" | "in_transit" | "success" | "cancelled"—
region_or_mmo
query
"bf" | "moov_bj" | "mtn_bj"—
date_from
query
string (date)

Created on or after this day (inclusive).

date_to
query
string (date)

Created on or before this day (inclusive — the whole day is included).

amount_min
query
integer

Minimum amount in XOF (inclusive, integer).

amount_max
query
integer

Maximum amount in XOF (inclusive, integer).

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/settlements/ \
-H "X-API-KEY: sk_test_..."

Responses

200 Settlement list
{
"status": true,
"message": "settlement list retrieved",
"data": [
{
"reference": "stl_8f14e45fceea167a5a36dedd4bea2543",
"amount": 100000,
"settlement_fees": "0.000",
"currency": "XOF",
"status": "processing",
"live_mode": true,
"created_at": "2026-11-26T08:00:00.000Z",
"updated_at": "2026-11-26T08:00:00.000Z",
"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": "76123456",
"usdt_wallet_address": null
}
],
"pagination": {
"count": 1,
"total_pages": 1,
"current_page": 1,
"page_size": 10,
"has_next": false,
"has_previous": false
}
}
400 A query parameter is invalid (e.g. unknown status, malformed date).
{
"status": false,
"message": "Invalid filters",
"error_code": "INVALID_DATA",
"errors": {
"date_from": [
"Enter a valid date."
],
"status": [
"Select a valid choice. done is not one of the available choices."
]
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Create a settlement

POST/v1/payment/settlements/

Requests a withdrawal of a deposit balance to your payment account.

  • A payment account must exist first (see Payment accounts); its details are copied onto the settlement.
  • amount: whole XOF, minimum 5 000. amount + amount × settlement_fees / 100 must be available on the chosen deposit balance.
  • Always send region_or_mmo (bf, moov_bj or mtn_bj): although it has a default in the database, omitting it is rejected with Invalid data provided for region_or_mmo.
  • Do not send settlement_fees, account_type, iban, provider, phone or usdt_wallet_address: they are rejected. Other bank fields are accepted but overwritten by the payment account.

Request body

NameTypeDescription
amount
required
integer

Amount to withdraw in whole XOF. · Min: 5000

region_or_mmo
required
"bf" | "moov_bj" | "mtn_bj"

Deposit balance to withdraw from.

currency"XOF"

Default: "XOF"

Request

Fenêtre de terminal
curl -X POST https://api.senfenico.com/v1/payment/settlements/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"amount": 100000,
"region_or_mmo": "bf"
}'

Responses

201 Settlement created (processing)
{
"status": true,
"message": "Settlement created",
"data": {
"reference": "stl_8f14e45fceea167a5a36dedd4bea2543",
"amount": 100000,
"settlement_fees": "0.000",
"currency": "XOF",
"status": "processing",
"live_mode": true,
"created_at": "2026-11-26T08:00:00.000Z",
"updated_at": "2026-11-26T08:00:00.000Z",
"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": "76123456",
"usdt_wallet_address": null
}
}
400 No payment account (no error_code, errors is an empty string), or validation failed (INVALID_DATA).
{
"status": false,
"message": "It's impossible to make a settlement without a payment account. You must set up one before proceeding with this action.",
"errors": ""
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Retrieve a settlement

GET/v1/payment/settlements/{reference}/

Parameters

NameTypeDescription
reference
path · required
string—

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/settlements/{reference}/ \
-H "X-API-KEY: sk_test_..."

Responses

200 The settlement
{
"status": true,
"message": "Settlement retrieved",
"data": {
"reference": "stl_8f14e45fceea167a5a36dedd4bea2543",
"amount": 100000,
"settlement_fees": "0.000",
"currency": "XOF",
"status": "processing",
"live_mode": true,
"created_at": "2026-11-26T08:00:00.000Z",
"updated_at": "2026-11-26T08:00:00.000Z",
"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": "76123456",
"usdt_wallet_address": null
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
404 No settlement with this reference in the key's mode (no error_code).
{
"status": false,
"message": "Settlement does not exist with this reference."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Cancel a settlement

GET/v1/payment/settlements/{reference}/cancel/

Cancels a settlement that is still processing. This is a GET request (not POST) — it changes state, so never call it from a prefetching/crawling context.

  • Cancelling an already cancelled settlement succeeds again (idempotent).
  • A settlement that is in_transit or success cannot be cancelled (400).
  • Spelling: settlement status is cancelled (two L), while charges use canceled.

Parameters

NameTypeDescription
reference
path · required
string—

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/settlements/{reference}/cancel/ \
-H "X-API-KEY: sk_test_..."

Responses

200 Settlement cancelled
{
"status": true,
"message": "Settlement cancelled",
"data": {
"reference": "stl_8f14e45fceea167a5a36dedd4bea2543",
"amount": 100000,
"settlement_fees": "0.000",
"currency": "XOF",
"status": "cancelled",
"live_mode": true,
"created_at": "2026-11-26T08:00:00.000Z",
"updated_at": "2026-11-26T08:30:12.551Z",
"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": "76123456",
"usdt_wallet_address": null
}
}
400 Not cancellable in its current status (no error_code).
{
"status": false,
"message": "['Settlement can only be cancelled if it's in 'processing' status.']"
}
403 The settlement belongs to another merchant (Not Authorized), or missing/invalid API key.
{
"status": false,
"message": "Not Authorized"
}
404 No settlement with this reference in the key's mode (no error_code).
{
"status": false,
"message": "Settlement does not exist with this reference."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Payment accounts

The bank account, mobile money account or USDT wallet settlements are paid to. One payment account per merchant (shared by test and live mode). Its details are copied onto each settlement at creation time.

List payment accounts

GET/v1/payment/payment_accounts/

Returns an array with your payment account (0 or 1 item). Not paginated, not mode-specific.

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/payment_accounts/ \
-H "X-API-KEY: sk_test_..."

Responses

200 Payment accounts
{
"status": true,
"message": "PaymentAccount list retrieved",
"data": [
{
"reference": "6f1c2b8e-3d4a-4f5b-9c7d-2e8a1b0c9d3e",
"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": "76123456",
"usdt_wallet_address": null
}
]
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Create the payment account

POST/v1/payment/payment_accounts/

Registers where settlements are paid. Only one payment account is allowed: if one exists, use Update the payment account instead (a second POST returns 400).

Required fields depend on account_type: - bank: iban or rib. With an iban, also bank_name, bank_address, account_holder_name, account_holder_address and swift_bic_code. - mobile: provider and phone. - usdt: usdt_wallet_address.

Request body

NameTypeDescription
account_type
required
"bank" | "mobile" | "usdt"—
ibanstring | null—
ribstring | null—
bank_namestring | null—
bank_addressstring | null—
account_holder_namestring | null—
account_holder_addressstring | null—
swift_bic_codestring | null—
provider"moov_bf" | "orange_bf" | "coris_bf" | null

For mobile accounts.

phonestring | null

For mobile accounts.

usdt_wallet_addressstring | null

For usdt accounts.

Request

Fenêtre de terminal
curl -X POST https://api.senfenico.com/v1/payment/payment_accounts/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"account_type": "mobile",
"provider": "orange_bf",
"phone": "76123456"
}'

Responses

201 Payment account created
{
"status": true,
"message": "PaymentAccount created",
"data": {
"reference": "6f1c2b8e-3d4a-4f5b-9c7d-2e8a1b0c9d3e",
"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": "76123456",
"usdt_wallet_address": null
}
}
400 A payment account already exists (no error_code), or validation failed (INVALID_DATA).
{
"status": false,
"message": "A PaymentAccount already exists. Please use the update endpoint if you want to make changes.",
"errors": ""
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Retrieve the payment account

GET/v1/payment/payment_accounts/{reference}/

Parameters

NameTypeDescription
reference
path · required
string (uuid)

The payment account reference (a UUID).

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/payment/payment_accounts/{reference}/ \
-H "X-API-KEY: sk_test_..."

Responses

200 The payment account
{
"status": true,
"message": "PaymentAccount retrieved",
"data": {
"reference": "6f1c2b8e-3d4a-4f5b-9c7d-2e8a1b0c9d3e",
"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": "76123456",
"usdt_wallet_address": null
}
}
403 The object belongs to another merchant (Not Authorized, no error_code), or missing/invalid API key.
{
"status": false,
"message": "Not Authorized"
}
404 No payment account with this reference (no error_code).
{
"status": false,
"message": "PaymentAccount does not exist with this reference."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Update the payment account

PUT/v1/payment/payment_accounts/{reference}/

PUT only (there is no PATCH). account_type is always required, and the per-type rules of creation are checked against the fields sent in this request — so resend the fields required for the type. Optional fields you omit keep their stored value; send null to clear one. Future settlements use the new details; existing settlements keep their copy.

Parameters

NameTypeDescription
reference
path · required
string (uuid)

The payment account reference (a UUID).

Request body

NameTypeDescription
account_type
required
"bank" | "mobile" | "usdt"—
ibanstring | null—
ribstring | null—
bank_namestring | null—
bank_addressstring | null—
account_holder_namestring | null—
account_holder_addressstring | null—
swift_bic_codestring | null—
provider"moov_bf" | "orange_bf" | "coris_bf" | null

For mobile accounts.

phonestring | null

For mobile accounts.

usdt_wallet_addressstring | null

For usdt accounts.

Request

Fenêtre de terminal
curl -X PUT https://api.senfenico.com/v1/payment/payment_accounts/{reference}/ \
-H "X-API-KEY: sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"account_type": "mobile",
"provider": "moov_bf",
"phone": "70123456"
}'

Responses

200 Payment account updated
{
"status": true,
"message": "PaymentAccount updated",
"data": {
"reference": "6f1c2b8e-3d4a-4f5b-9c7d-2e8a1b0c9d3e",
"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": "moov_bf",
"phone": "70123456",
"usdt_wallet_address": null
}
}
400 Validation failed
{
"status": false,
"message": "Invalid data was sent",
"error_code": "INVALID_DATA",
"errors": {
"account_type": [
"This field is required."
]
}
}
403 The object belongs to another merchant (Not Authorized, no error_code), or missing/invalid API key.
{
"status": false,
"message": "Not Authorized"
}
404 No payment account with this reference (no error_code).
{
"status": false,
"message": "PaymentAccount does not exist with this reference."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

Delete the payment account

DELETE/v1/payment/payment_accounts/{reference}/

Deletes the payment account. You cannot create settlements until a new one is registered. Returns 204; the server also writes {"status": true, "message": "PaymentAccount deleted"} as body, which most HTTP clients ignore for a 204.

Parameters

NameTypeDescription
reference
path · required
string (uuid)

The payment account reference (a UUID).

Request

Fenêtre de terminal
curl -X DELETE https://api.senfenico.com/v1/payment/payment_accounts/{reference}/ \
-H "X-API-KEY: sk_test_..."

Responses

204 Payment account deleted
403 The object belongs to another merchant (Not Authorized, no error_code), or missing/invalid API key.
{
"status": false,
"message": "Not Authorized"
}
404 No payment account with this reference (no error_code).
{
"status": false,
"message": "PaymentAccount does not exist with this reference."
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}

User profile

Legacy endpoint returning your business name and a summary collection balance. Prefer Balances.

Retrieve the user profile

GET/v1/user_profile/

Legacy endpoint (outside /payment/). Returns your business name and a summary collection balance for the key's mode. The balances here are stored counters and may differ from Retrieve balances, which is the reference.

Request

Fenêtre de terminal
curl https://api.senfenico.com/v1/user_profile/ \
-H "X-API-KEY: sk_test_..."

Responses

200 Profile retrieved
{
"status": true,
"message": "User profile retrieved",
"data": {
"available_balance": 245310.5,
"business_name": "Boutique Example",
"pending_balance": 0
}
}
403 Missing or invalid API key, or (live keys) calling IP not in the allowlist. Returned with HTTP 403. Because of how the framework serialises these errors, status arrives as the string "False".
{
"status": "False",
"message": "No API key provided."
}
404 Profile not found
{
"status": false,
"message": "User profile not found"
}
429 Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}