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/merchant-verify/
Sandbox: https://vtuafrica.com.ng/portal/api-test/merchant-verify/
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 |
serviceName | R | String | This is the Name of the service you are verifiying. In this case it is: CableTV |
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. |
SAMPLE CODE
$sandbox = "https://vtuafrica.com.ng/portal/api-test/merchant-verify/?apikey=1234&serviceName=CableTV&service=gotv&smartNo=8072499034&variation=gotv_jinja"; $host = "https://vtuafrica.com.ng/portal/api/merchant-verify/?apikey=1234&serviceName=CableTV&service=gotv&smartNo=8072499034&variation=gotv_jinja"; //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.