Get bundles for selected Network.
{{base_url}}
/vas/mobile-data/network-bundle
Parameter | Type | Details |
---|---|---|
serviceCategoryId | string | This is the id_ returned from getting the network here |
Request Example (guzzle)
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', '{{base_url}}/vas/mobile-data/network-bundle', [
'json' => [
'serviceCategoryId' => 'xxxxxxxxxxxx',
],
'headers' => [
'Authorization' => 'Bearer {{access_token}}',
'client-id' => 'sdaH23sE5Th4*******dDF4df',
'accept' => 'application/json',
'content-type' => 'application/json',
],
]);
echo $response->getBody();
**Response: SUCCESS (200 OK)**
{
"message": {
"success": [
"Data Bundle Successfully Fetched"
]
},
"data": [
{
"validity": "1 month",
"bundleCode": "MTN-3GB",
"amount": "2400.00",
"isAmountFixed": "true",
},
{
"validity": "1 month",
"bundleCode": "MTN-2GB",
"amount": "1600.00",
"isAmountFixed": "true",
},
]
}
**Response: ERROR (403 FAILED)**
{
"message": {
"code": 403,
"error": [
"Requested with invalid token!"
]
},
"data": [],
"type": "error"
}