Home Introduction Airtime Api Data Api Internet Api Cable Api Electricity Api Balance Check
Cable - EasyPoint9ja Api Documentation

Cable Api

The easypoint9ja Cable API is a RESTful interface that enables you to seamlessly integrate a range of services from the easypoint9ja platform into your web or mobile application.

Hero Image

POST /api/Cable

This endpoint allows you to recharge a DSTV decoder afresh / change the existing bouquet of a DSTV decoder using its smartcard number.

Parameters

Parameter Type Required Description
api_key string R Your API key.
request_id string R Request Id (for custom tracking).
serviceID string R Service ID as specified by Easypoint9ja. In this case, it is dstv.
billersCode string R The smart card number you wish to make the Subscription payment on.
variation_code string R The code of the variation of the product.
amount Number O Amount is determine from the variation code provided.
phone Number R The phone number of the customer or recipient of this service.

Endpoint Url

Live: https://easypoint9ja.com/api/cabletv/

Sandbox: https://sandbox.easypoint9ja.com/api/cabletv/

Sample Request


$url = "https://easypoint9ja.com/api/cabletv/";

$data = [
    "api_key" => "YOUR_API_KEY",
    "request_id" => 63634570027309,
    "serviceID" => "dstv",
    "billersCode" => "8075654578",
    "variation_code" => "dstv-access-1",
    "phone" => 09011111111
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json"
]);

$response = curl_exec($ch);
curl_close($ch);
      

VERIFY SMARTCARD NUMBER

This endpoint allows you to verify the Smartcard number before attempting to make payment.

Parameters

Parameter Type Required Description
api_key string R Your API key
BillersCode Number R The smart card number you wish to make the Subscription payment on.
serviceID string R Service ID as specified by Easypoint9ja. In this case, it is dstv.

Endpoint Url

Live: https://easypoint9ja.com/api/cable-merchant-verify/

Sandbox: https://sandbox.easypoint9ja.com/api/cable-merchant-verify/

Sample Request


$url = "https://easypoint9ja.com/api/cable-merchant-verify/";

$data = [
    "api_key" => "YOUR_API_KEY",
    "billersCode" => "1212121212",
    "serviceID" => "dstv"
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json"
]);

$response = curl_exec($ch);
curl_close($ch);