List Mobile Data Plans
Get a list of bill subcategories from a bill category Terraswitch supports
POST {{BASE_URL}}/terra/v1/corporate/mobile-data-plansBody Parameters
Property
Data Type
Description
Example
Required
networkName
string
The label of the network you get from calling the List Mobile Networks endpoint.
"mtn"
Yes
phoneNumber
string
The 11-digit phone number of the data recipient.
"08137031202"
Yes
import Axios from 'axios';
// set the api url
const API_URL = `${BASE_URL}/v1/corporate/bill-sub-categories`;
// make request using axios
Axios({
method: "GET",
url: `${API_URL}`,
headers: {
lg: 'en',
ch: 'web'
Authorization: `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
}
}).then((resp) => {
console.log(resp)
}).catch((err) => {
console.log(err)
}){
"error": false,
"errors": [],
"data": [
{
"dataBundle": {
"bundle": "100MB Daily for Daily - Daily",
"amount": "100.00",
"validity": "Daily",
"currency": "NGN",
"network": "mtn",
"dataId": 1400
},
"vasCode": "VF01",
"countryCode": "NG"
},
{
"dataBundle": {
"bundle": "200MB 3Day Plan for Daily - Daily",
"amount": "200.00",
"validity": "Daily",
"currency": "NGN",
"network": "mtn",
"dataId": 1401
},
"vasCode": "VF01",
"countryCode": "NG"
},
],
"message": "successful",
"status": 200
}
Last updated