Cable TV API Integration
Cable TV API Integration
This section contains your RESTful API for Cable TV API integration..
Cable TV API Integration
Cable TV API Integration
This section contains your RESTful API for Cable TV API integration..
The VTU Africa API uses API Key for Authentication.
Please use your APIKEY for authentication
Live URL: https://vtuafrica.com.ng/portal/api/paytv/
Sandbox: https://vtuafrica.com.ng/portal/api-test/paytv/
Parameters: as specified in the parameters below:
PARAMETERS | Required/Optional | TYPE | DESCRIPTION |
apikey | R | String | The reseller gateway API key created at vtuafrica.com.ng . Example kDe5dbBw3AeyxnxFCCJA9c9Agl2kxxt8pCB174AC472r38BCM |
service | R | String | Service as specified. These includes, dstv, gotv, startimes, showmax |
smartNo | R | Number | The smartcard or IUC number to make the subscription on |
variation | R | String | This is the variation code of the Subscription Plan. Example: startimes_nova, gotv_jinja, dstv_padi, etc. Click Here To View All. |
amount | O | Number | The amount of the Plan you want to subscribe and it is optional. |
ref | R | String | This is a unique reference with which you can use to execute and query the transaction. |
SAMPLE CODE
$sandbox = "https://vtuafrica.com.ng/portal/api-text/paytv/?apikey=1234&service=gotv&smartNo=100221233&variation=gotv_jinja&amount=3900&ref=8282234"; $host = "https://vtuafrica.com.ng/portal/api/paytv/?apikey=1234&service=gotv&smartNo=100221233&variation=gotv_jinja&amount=3900&ref=8284666332234"; //Initialize cURL. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $data = curl_exec($ch); //Close the cURL handle. curl_close($ch); $response = json_decode($data);
EXPECTED RESPONSE
{"code":101,
"description":{"Status":"Completed",ProductName":"GoTV MAX","SmartNo":"100221233", "Amount_Charged":"3500","Previous_Balance":"4000","Current_Balance":"500", "ReferenceID":"8284666332234","message":"Subscription Successful"}}
Click Here To View All the Subscription Plans and Prices.