Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Buy cable TV

/bills/buy_cablePOST
Pays for a cable TV package on a smartcard. The amount is the plan price from List TV plans.
Authorization
bearerAuth *Bearer <token>
Your API token from the SendCheap business dashboard.
Request Bodyapplication/jsonrequired
tv_id *1 | 2 | 3
TV provider: 1 GOtv, 2 DStv, 3 StarTimes.
Example: 1
code *string
Plan code from List TV plans.
Example: "1472"
smart_card_no *string
Smartcard / IUC number, at least 8 characters.
Example: "7023456789"Min length: 8
tranx_id *string
Your unique reference for this request, at least 10 characters. A reference can only be used once; reusing it returns "duplicate transaction detected". Store it so you can verify the transaction later.
Example: "ACME-20261121-000184"Min length: 10
Response
200 · Delivered or queued
status *"success" | "failed"
success when the request did what you asked.
message *string
Human-readable result.
data *object
The result. Shape depends on the endpoint; null on most errors.
400 · Missing or invalid field
status *"success" | "failed"
success when the request did what you asked.
message *string
Human-readable result.
data *object
The result. Shape depends on the endpoint; null on most errors.
401 · Outcome unknown
status *"success" | "failed"
success when the request did what you asked.
message *string
Human-readable result.
data *object
The result. Shape depends on the endpoint; null on most errors.
406 · Missing or invalid API token
status *"success" | "failed"
success when the request did what you asked.
message *string
Human-readable result.
data *object
The result. Shape depends on the endpoint; null on most errors.
417 · Rejected
status *"success" | "failed"
success when the request did what you asked.
message *string
Human-readable result.
data *object
The result. Shape depends on the endpoint; null on most errors.
Request example
curl -X POST "https://api.sendcheap.us/apps/business/bills/buy_cable" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "tv_id": 1, "code": "1472", "smart_card_no": "7023456789", "tranx_id": "ACME-20261121-000187" }'
Response example
{ "status": "success", "message": "Your Cable Purchase To 7023456789 Was Successful... Thank You", "data": { "id": 81234, "tranx_status": 1, "order_id": "ACME-20261121-000184", "tranx_type": 23, "network": "GOtv Smallie", "amount": "1900.00", "charge": "0.00", "phone": "7023456789", "balance_state": "{\"balance_before\":\"250,000.0000\",\"balance_after\":\"248,100.0000\"}", "created_at": "2026-11-21 10:15:02", "updated_at": "2026-11-21 10:15:02", "percent": "0", "channel": "APP", "app_meta_data": null } }