Sign inGet Started

List operator networks

GET
/v1/billing/operator-networks
const networks = await bird.billingRates.operatorNetworks();
console.log(networks.data);
响应200
{
  "data": [
    {
      "mcc_mnc": "310016",
      "operator": "at-t",
      "name": "AT&T"
    }
  ]
}

Returns which operator each mobile network is grouped under, so the network rows of the SMS and MMS rate cards can be shown by operator. Each row has the network's mcc_mnc, the same as on the rate rows, the operator slug and the operator's display name, ordered by mcc_mnc. The list holds no prices and is the same for every caller. A network that is not listed belongs to no listed operator. Charging and the rates never depend on it. The whole list is returned in one response. Requires the rates permission in the workspace, or the organization's org:billing permission, with which the workspace can be left out. A request without a credential is served; a credential that does not authenticate returns 401, never the list.

响应载荷

data
array of object
必填
显示子属性
data.mcc_mnc
string
必填

The mobile network, as its MCC and MNC digits, the same as on the SMS and MMS rate rows.

data.operator
string
必填

The slug of the operator the network is grouped under.

data.name
string
必填

The operator's display name. Every network of one operator carries the same name.