Bills — TV
Get TV Packages for a Provider
GET
https://backendapi.sayswitchgroup.com/api/v1/tv/packages/{providerName}This Endpoint Fetches the available TV subscription packages for a given TV provider by specifying the provider name in the URL.
Replace providerName with the name of the TV provider, e.g. DSTV, GOTV, etc.
cURL Request
cURL
curl --request GET \
--url https://backendapi.sayswitchgroup.com/api/v1/tv/packages/DSTV \
--header "Authorization: Bearer YOUR_SECRET_KEY"Response Example
JSON
{
"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
Each object inside the data array contains: