Skip to main content
POST
Payer une facture / Recharger

Pay a Bill / Top-up

Settles a bill (SenEau, Senelec) or performs a prepaid top-up (Woyofal). The amount is debited from your account balance (bill amount + your service FEE).
The debit only happens after the provider accepts the operation. On failure, no debit is applied (or an automatic refund is issued for asynchronous top-ups).

Endpoint

Headers

Request Body

Parameters

Amount: for SenEau and Senelec the amount is imposed by the bill (amount is ignored). For Woyofal (prepaid top-up) the customer chooses the amount via amount.

Response

Bill paid (SenEau / Senelec — synchronous)

Top-up successful (Woyofal — immediate token)

token = recharge code to enter on the meter. Present only for prepaid top-ups (Woyofal).

Top-up processing (Woyofal — asynchronous)

If the provider does not confirm immediately, the transaction goes to PROCESSING. The token is delivered once resolved (available via webhook / transaction history).
For a PROCESSING top-up that ultimately fails, the debited amount (amount + fee) is automatically refunded to your balance and a FAILED callback is sent.

Error Response

Error Codes

Request Examples

Pay a Senelec bill

Top up a Woyofal meter

Notification Webhook

As with regular transactions, a webhook is sent to callBackURL on status change (SUCCESS / FAILED):

Authorizations

Authorization
string
header
required

Entrez votre clé API comme: Bearer <API_KEY>

Body

application/json

Détails du paiement

serviceCode
enum<string>
required

Code du biller

Available options:
SENEAU_SN_BILL,
SENELEC_SN_BILL,
WOYOFAL_SN_BILL
Example:

"SENELEC_SN_BILL"

reference_client
string
required

Numéro de compteur / police / référence client

Example:

"210278816"

amount
number

Montant à recharger. Requis pour Woyofal ; ignoré pour SenEau/Senelec (montant imposé).

Example:

104500

reference_facture
string

Optionnel : cible une facture précise. Sinon la 1re impayée est réglée.

externalTransactionId
string

Optionnel : votre référence unique (idempotence)

Example:

"INV-001"

callBackURL
string

Optionnel : URL de notification webhook

customData
string

Optionnel

Response

Paiement effectué (ou recharge en cours)

message
string
Example:

"Bill paid successfully"

transaction
object