This endpoint retrieves the available subscription packages based on the selected TV bundle. It allows users to view different package options, including pricing and features, before making a selection.
{{base_url}}
/vas/tv/select-packages
Parameter | Type | Details |
---|---|---|
serviceCategoryId | string | id_ of the Provider selected |
Request Example (guzzle)
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', '{{base_url}}/vas/tv/select-packages', [
'json' => [
'serviceCategoryId' => 'xxxxxxxxxxx',
],
'headers' => [
'Authorization' => 'Bearer {{access_token}}',
'client-id' => 'sdaH23sE5Th4*******dDF4df',
'accept' => 'application/json',
'content-type' => 'application/json',
],
]);
echo $response->getBody();
**Response: SUCCESS (200 OK)**
{
"statusCode": 200,
"message": "Request successful"
"data": [
{
"name": "GOtv Supa Plus - Annual",
"bundleCode": "ng_gotv_gosupapltw",
"amount": "126000",
"isAmountFixed": "true",
},
{
"name": "GOtv Supa Plus Bouquet",
"bundleCode": "ng_gotv_gotvsupaplus",
"amount": "15700",
"isAmountFixed": "true",
},
]
}
**Response: ERROR (403 FAILED)**
{
"message": {
"code": 403,
"error": [
"Requested with invalid token!"
]
},
"data": [],
"type": "error"
}