API Docs

Verify Cable Subscription

Verify a cable TV smart card number.

Endpoint

URL: /api/verify-cable

Methods: POST

Description

This API endpoint allows users to verify a cable TV smart card number before subscribing.

Authentication

To access this endpoint, users must include their API key and secret key in the request headers.

Request Headers

  • api-key (string, required): The API key of the user.
  • secret-key (string, required): The secret key of the user.

Request Body (POST)

  • number (string, required): The smart card number to verify.
  • firstLevel (string, required): The name of the subscription.

Usage Example

POST request to verify smart card number:

Content-Type: application/json
api-key: your-api-key
secret-key: your-secret-key

{
"number": "0000000000",
"firstLevel": "DSTV", // value of this key can either be firstLevel or fId, e.g. "dstv" fId is more accurate
}

Response:

{
  "message": {
    "Customer_Name": "IAB CODES LTD",
    "Current_Bouquet": "Dstv Confam N5,300 + DStv Movie Bundle Add-on E36 - N2,500"
  }
}

Failed Response Format

{
    "error": "Please check the number and try again"
}
IABCONCEPT