Preview: the API is being built and these endpoints may change
POST/api/v1/bills/electricity
Pay electricity
Pay a prepaid or postpaid meter and get the token back.
Pays a meter through your own vendor accounts, in the fallback order you set for the plan. Check the meter first to show the customer's name before they pay.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
network | string | yes | The disco: ikedc, ekedc, aedc, ibedc, eedc, phed, kedco or bedc. biller is an alias |
meter_number | string | yes | account_number and destination are aliases |
amount | number | yes | Naira, at least 1000.00 |
meter_type | string | no | prepaid or postpaid. prepaid when left out |
product_code | string | no | A plan's code, such as IKEDC-PREPAID, or a vendor: code. Left out, the plan follows the disco and meter type |
phone_number | string | no | The customer's number. Some vendors need it, and the sale fails at those vendors without it, so send it every time |
client_reference | string | no | Your own reference, 1 to 128 characters, unique per mode |
metadata | object | no | String values only, at most 20 keys |
Send an Idempotency-Key header with every request. The call waits for the final state; add ?wait=0 to get 202 at once.
Request
bash
curl https://api.simconnectng.com/api/v1/bills/electricity \
-H "Authorization: Bearer $SIMCONNECT_KEY" \
-H "Idempotency-Key: order_1045" \
-H "Content-Type: application/json" \
-d '{ "network": "ikedc", "meter_number": "45031234567", "meter_type": "prepaid", "amount": 5000, "phone_number": "08012345678", "client_reference": "order_1045" }'Response
json
{
"success": true,
"data": {
"reference": "txn_0192f4c6d1e24a7b8c3d5e6f7a8b9c0d",
"client_reference": "order_1045",
"mode": "live",
"status": "successful",
"product_code": "IKEDC-PREPAID",
"network": "ikedc",
"service": "electricity",
"destination": "450******67",
"amount": 5000.00,
"price": 20.00,
"sold_as": "plan",
"channel": "vendor",
"metadata": { "token": "1234-5678-9012-3456-7890", "units": "42.5" },
"created_at": "2026-11-05T12:06:38Z",
"completed_at": "2026-11-05T12:06:44Z"
},
"message": "Transaction successful",
"code": "OK"
}A successful sale has the token in metadata, with units or receipt_number when the vendor gives them. Show them on your receipt. The figures shown here are placeholders.
Error
json
{ "success": false, "data": null, "message": "Insufficient wallet balance", "code": "WALLET_INSUFFICIENT_FUNDS" }Give this to your coding agent
prompt
Read https://simconnectng.com/docs/api/pay-electricity.md and implement "Pay electricity" (POST /api/v1/bills/electricity) in this project.
Read the API key from the SIMCONNECT_KEY environment variable.
Send an Idempotency-Key derived from our own order id.
Every response is { success, data, message, code }; on an error data is null (or carries data.errors), so branch on code.