Skip to main content

Subscribe to Cable TV via the Parent Account

POST /v2/bill/cabletv

Request body

string
The productId of the plan, from Fetch Cable TV Plans. When sent, that plan is bought at its price and amount is ignored. Always send it for plans that share a price with another plan. A productId is unique only within its cableTvType, so send it with the same cableTvType the plans were fetched for
integer
The price of the plan. Required when productId is not sent; the plan is then chosen by this amount. If more than one plan costs this amount the request is rejected and nothing is charged
string
required
The cable tv provider name id usually dstv or gotv
string
required
Merchant Transaction Reference (a unique reference to identify this transaction on your system)
string
required
The name of the person to be attached to this transaction
string
required
An unique id to identify the customer to which this payment belongs

Response body

string
required
Response code
string
required
Response description
object

Errors

The request is rejected with HTTP 400 and nothing is charged when:
  • Bad request: no subscription matches the provided productId OR invalid cableTvType — the productId is not a plan of that cableTvType, or the cableTvType is invalid
  • Bad request: no subscription matches the provided amount OR invalid cableTvType — no plan of that cableTvType costs amount, or the cableTvType is invalid
  • Bad request: more than one subscription costs this amount. Provide the productId of the plan — several plans cost amount; send productId instead