Introduction

This page contains guide for all cable plans on vtupal.com.

Pay CableTV

This page contains guide to Pay CableTV data on vtupal.com.

vtupal.com/api/cable/

ENDPOINT -- URL

Pay CableTV

Send a post request to the below endpoint, You can use the PHP integration code below....

$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => '/api/cable/', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'
{
"cable" : "1",
"iuc" : "123456767889",
"cable_plan" : "123",
"request-id" : "123434",
"bypass" : false
}',
CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: Token {{Access Code}}' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;

REQUEST TYPE -- POST

Send a post request to the below endpoint.


Expected response:

{
"status" = "success",
"cable" = "DSTV",
"plan_name": "DSTV Jinga",
"amount": "500",
"Amount" = 300",
"oldbal": "1500",
"newbal": "1000",
"discount/charges": "15",
"request-id": "1234567890-"
}

REQUEST TYPE -- POST