List Bill Sub-Categories
Get a list of bill subcategories from a bill category Terraswitch supports
POST {{BASE_URL}}/v1/corporate/bill-sub-categories
Body Parameters
Property
Data Type
Description
Example
Required
categoryId
string or number
The bill category id
4
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": [
{
"label": "cable",
"category": {
"categoryId": 4,
"name": "Cable TV Subscription",
"subCategory": "GOTv (MultiChoice) Subscription Payment",
"mainCategory": ""
},
"validation": {
"customer": true,
"amount": true,
"hasBillerDetails": true,
"select": false
},
"billerId": "1465",
"billerItem": {
"name": "GOtv Max -#4150",
"itemId": 1465,
"amount": "4150.00"
},
"countryCode": "NG",
"currency": "NGN",
"itemId": 1465
},
{
"label": "cable",
"category": {
"categoryId": 4,
"name": "Cable TV Subscription",
"subCategory": "GOTv (MultiChoice) Subscription Payment",
"mainCategory": ""
},
"validation": {
"customer": true,
"amount": true,
"hasBillerDetails": true,
"select": false
},
"billerId": "1466",
"billerItem": {
"name": "GOtv Jolli Bouquet -#2800",
"itemId": 1466,
"amount": "2800.00"
},
"countryCode": "NG",
"currency": "NGN",
"itemId": 1466
}
],
"message": "successful",
"status": 200
}
Last updated