Bills PaymentsTVTV Provider Packages

Get TV Packages for a Provider

This Endpoint Fetches the available TV subscription packages for a given TV provider by specifying the provider name in the URL.

Endpoint

GET https://backendapi.sayswitchgroup.com/api/v1/tv/packages/{providerName}

Replace providerName with the name of the TV provider, e.g. DSTV, GOTV, etc.

cURL Request

curl --request GET \
  --url https://backendapi.sayswitchgroup.com/api/v1/tv/packages/DSTV \
  --header "Authorization: Bearer YOUR_SECRET_KEY"

Response Example

{
  "success": true,
  "code": "00000",
  "message": "CableTv Packages Fetched successfully",
  "data": [
    {
      "id": 1,
      "name": "DStv Padi N4,400",
      "code": "dstv-padi",
      "amount": "4400.00"
    },
    {
      "id": 2,
      "name": "DStv Yanga N6,000",
      "code": "dstv-yanga",
      "amount": "6000.00"
    }
    // ... more packages
  ]
}

Response Fields

FieldTypeDescription
successbooleanIndicates if the request was successful
codestringResponse status code
messagestringDescriptive message about the response
dataarrayList of TV packages

Each object inside the data array contains:

FieldTypeDescription
idnumberUnique identifier of the package
namestringName and price of the package
codestringUnique package code
amountstringPrice of the package as a string