Payer une facture / Recharger
Bills & Top-ups
Pay a Bill / Top-up
Pay a bill (SenEau, Senelec) or top up a prepaid meter (Woyofal)
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 serviceFEE).
Endpoint
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer YOUR_API_KEY |
| Content-Type | string | Yes | application/json |
Request Body
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceCode | string | Yes | SENEAU_SN_BILL, SENELEC_SN_BILL or WOYOFAL_SN_BILL |
| reference_client | string | Yes | Meter number / police / customer reference |
| amount | number | Woyofal | Top-up amount. Required for Woyofal; ignored for SenEau/Senelec (bill-imposed) |
| reference_facture | string | No | Target a specific bill. Otherwise the first unpaid bill is settled |
| externalTransactionId | string | No | Your unique identifier (idempotency) |
| callBackURL | string | No | Webhook notification URL |
| customData | string | No | Free data echoed back in the callback |
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 toPROCESSING. The token is delivered once resolved (available via webhook / transaction history).
Error Response
Error Codes
| HTTP Code | Description |
|---|---|
| 400 | Invalid parameters, insufficient balance, bill already paid |
| 401 | Invalid API key |
| 403 | API under maintenance |
| 409 | externalTransactionId already used |
Request Examples
Pay a Senelec bill
Top up a Woyofal meter
Notification Webhook
As with regular transactions, a webhook is sent tocallBackURL on status change (SUCCESS / FAILED):
Authorizations
Entrez votre clé API comme: Bearer <API_KEY>
Body
application/json
Détails du paiement
Code du biller
Available options:
SENEAU_SN_BILL, SENELEC_SN_BILL, WOYOFAL_SN_BILL Example:
"SENELEC_SN_BILL"
Numéro de compteur / police / référence client
Example:
"210278816"
Montant à recharger. Requis pour Woyofal ; ignoré pour SenEau/Senelec (montant imposé).
Example:
104500
Optionnel : cible une facture précise. Sinon la 1re impayée est réglée.
Optionnel : votre référence unique (idempotence)
Example:
"INV-001"
Optionnel : URL de notification webhook
Optionnel