List Mobile Data Plans

Get a list of bill subcategories from a bill category Terraswitch supports

POST {{BASE_URL}}/terra/v1/corporate/mobile-data-plans

Body 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)
})

Last updated