Preview: the API is being built and these endpoints may change
POST/api/v1/bills/cable
Pay cable TV
Renew a DStv, GOtv, StarTimes or Showmax subscription.
Pays a bouquet through your own vendor accounts, in the fallback order you set for the plan. Check the smartcard first to show the customer's name and package.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
product_code | string | yes | The bouquet, such as DSTV-PADI, or a vendor: code. See List plans with service=cable_tv. serviceid and service_id are aliases |
smartcard_number | string | yes | account_number and destination are aliases |
network | string | no | The provider: dstv, gotv, startimes or showmax. biller is an alias |
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/cable \
-H "Authorization: Bearer $SIMCONNECT_KEY" \
-H "Idempotency-Key: order_1046" \
-H "Content-Type: application/json" \
-d '{ "product_code": "DSTV-PADI", "smartcard_number": "7027914329", "phone_number": "08012345678", "client_reference": "order_1046" }'Response
The same sale as Pay electricity, with service as cable_tv and network as the provider.
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-cable.md and implement "Pay cable TV" (POST /api/v1/bills/cable) 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.