Preview: the API is being built and these endpoints may change

POST/api/v1/bills/verify

Check a meter or smartcard

Look up the customer behind a meter or smartcard before they pay.

Moves no money and needs no Idempotency-Key. In live mode it asks your own vendor first, your oldest active account with a plan for that biller, and tries the next one if a vendor cannot be reached.

MSORG sites give no check, so a business on MSORG alone cannot check before paying.

Body

FieldTypeRequiredNotes
servicestringyeselectricity or cable_tv
billerstringyesThe disco or provider, such as ikedc or dstv. network is an alias
account_numberstringyes10 to 16 digits. meter_number and smartcard_number are aliases
meter_typestringnoprepaid or postpaid, for electricity

Request

bash
curl https://api.simconnectng.com/api/v1/bills/verify \
  -H "Authorization: Bearer $SIMCONNECT_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "service": "electricity", "biller": "ikedc", "account_number": "45031234567", "meter_type": "prepaid" }'

Response

json
{
  "success": true,
  "data": {
    "customer_name": "ADEWALE BABATUNDE",
    "customer_address": "14 ADEOLA ODEKU STREET, LAGOS",
    "account_number": "45031234567",
    "biller": "ikedc",
    "service": "electricity",
    "meter_type": "prepaid"
  },
  "message": "Account verified successfully",
  "code": "OK"
}

customer_name is always there. customer_address, meter_type, outstanding_amount, minimum_amount, current_package and due_date appear only when the vendor gives them. The figures shown here are placeholders.

Error

json
{
  "success": false,
  "data": { "errors": [{ "field": "account_number", "message": "the biller did not recognise this account" }] },
  "message": "Invalid request",
  "code": "VALIDATION_FAILED"
}

With no vendor plan for that biller, the error is on biller: "no provider supports verification for this biller".

Give this to your coding agent

prompt
Read https://simconnectng.com/docs/api/verify-bill.md and implement "Check a meter or smartcard" (POST /api/v1/bills/verify) 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.