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.
200Balances 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"
}
}
}
}
403Missing 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."
}
429Rate 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.
Paramètres
Nom
Type
Description
page query
integer
Page number (1-based). Out-of-range values return the last page; invalid values the first page.
400A 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."
]
}
}
403Missing 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."
}
429Rate 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.
Corps de la requête
Nom
Type
Description
amount requis
integer
Amount in whole XOF. · Min: 100 · Max: 1000000
currency
"XOF"
Default: "XOF"
payment_method
"mobile_money"
Default: "mobile_money"
ext_id
string | null
Your identifier
payment_method_details requis
object
—
payment_method_details.phone requis
string
Payer's local number, digits only. 8 digits in Burkina Faso, 10 in Benin.
200The 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.",
"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
}
}
400Validation 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."
]
}
}
}
403Either 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"
}
429Rate 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.
Corps de la requête
Nom
Type
Description
otp requis
string
OTP given by the customer (2–10 digits after sanitising).
"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."
]
}
}
403Missing 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."
}
404No 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"
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}
500Unexpected 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.
403Missing 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."
}
404Not found
{
"status": false,
"message": "Charge not found"
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}
500Unexpected 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.
Paramètres
Nom
Type
Description
page query
integer
Page number (1-based). Out-of-range values return the last page; invalid values the first page.
400A 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."
]
}
}
403Missing 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."
}
429Rate 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).
Corps de la requête
Nom
Type
Description
email
string (email)
Customer email address (optional).
amount requis
integer
Amount in whole XOF. · Min: 100
success_url requis
string (uri)
Where the customer is sent after a successful payment.
"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."
]
}
}
403Missing 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."
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}
500Checkout 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.
403Missing 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."
}
404Not found
{
"status": false,
"message": "Checkout not found"
}
429Rate 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).
Paramètres
Nom
Type
Description
page query
integer
Page number (1-based). Out-of-range values return the last page; invalid values the first page.
400A 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."
]
}
}
403Missing 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."
}
429Rate 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.
"message": "Invalid data provided. Please check the input and try again.",
"error_code": "INVALID_DATA",
"errors": {
"charge": [
"Only successful charges can be refunded."
]
}
}
403Missing 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."
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
403Missing 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."
}
404Not found
{
"status": false,
"message": "Refund with reference re_000 not found",
"error_code": "TRANSACTION_NOT_FOUND"
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
}
500Unexpected 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.
Paramètres
Nom
Type
Description
page query
integer
Page number (1-based). Out-of-range values return the last page; invalid values the first page.
400A 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."
]
}
}
403Missing 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."
}
429Rate 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).
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 403MERCHANT_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.
Corps de la requête
Nom
Type
Description
amount requis
integer
Amount the recipient receives · Min: 100 · Max: 1000000
recipient_phone requis
string
Local number, digits only. 8 digits (Burkina Faso) or 10 digits starting with 01 (Benin).
403Insufficient 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"
}
429Rate 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).
400Empty 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"
}
403Missing 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."
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
403Missing 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."
}
404Not found
{
"status": false,
"message": "Transfer with reference TR000 not found",
"error_code": "TRANSACTION_NOT_FOUND"
}
429Rate 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.
Paramètres
Nom
Type
Description
page query
integer
Page number (1-based). Out-of-range values return the last page; invalid values the first page.
400A 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."
]
}
}
403Missing 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."
}
429Rate 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.
400No 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": ""
}
403Missing 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."
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
403Missing 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."
}
404No settlement with this reference in the key's mode (no error_code).
{
"status": false,
"message": "Settlement does not exist with this reference."
}
429Rate 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.
400Not cancellable in its current status (no error_code).
{
"status": false,
"message": "['Settlement can only be cancelled if it's in 'processing' status.']"
}
403The settlement belongs to another merchant (Not Authorized), or missing/invalid API key.
{
"status": false,
"message": "Not Authorized"
}
404No settlement with this reference in the key's mode (no error_code).
{
"status": false,
"message": "Settlement does not exist with this reference."
}
429Rate 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.
403Missing 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."
}
429Rate 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.
400A 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": ""
}
403Missing 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."
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."
403The object belongs to another merchant (Not Authorized, no error_code), or missing/invalid API key.
{
"status": false,
"message": "Not Authorized"
}
404No payment account with this reference (no error_code).
{
"status": false,
"message": "PaymentAccount does not exist with this reference."
}
429Rate 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.
403The object belongs to another merchant (Not Authorized, no error_code), or missing/invalid API key.
{
"status": false,
"message": "Not Authorized"
}
404No payment account with this reference (no error_code).
{
"status": false,
"message": "PaymentAccount does not exist with this reference."
}
429Rate 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.
204Payment account deleted403The object belongs to another merchant (Not Authorized, no error_code), or missing/invalid API key.
{
"status": false,
"message": "Not Authorized"
}
404No payment account with this reference (no error_code).
{
"status": false,
"message": "PaymentAccount does not exist with this reference."
}
429Rate 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.
Requête
Fenêtre de terminal
curlhttps://api.senfenico.com/v1/user_profile/\
-H"X-API-KEY: sk_test_..."
Réponses
200Profile retrieved
{
"status": true,
"message": "User profile retrieved",
"data": {
"available_balance": 245310.5,
"business_name": "Boutique Example",
"pending_balance": 0
}
}
403Missing 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."
}
404Profile not found
{
"status": false,
"message": "User profile not found"
}
429Rate limit exceeded. The body uses the framework's detail format (no envelope).
{
"detail": "Request was throttled. Expected available in 42 seconds."