Appearance
Networks
Lists the mobile networks and what each one offers.
GET /api/v1/airtime/carriers
bash
curl https://app.xash.co.zw/api/v1/airtime/carriers \
-H "Authorization: Bearer YOUR_SERVER_TOKEN"Response 200
json
{
"message": "Supported carriers",
"success": true,
"data": [
{
"id": 1,
"name": "Econet",
"commission": "6.00",
"has_direct_airtime": true,
"has_voucher": true,
"ussd_code": "*440*112#",
"vendor_ussd_code": "*121*PIN#",
"has_bundle": true,
"has_vendor_voucher": false,
"vendor_voucher_commission": "0.00"
},
{
"id": 2,
"name": "Telecel",
"commission": "5.00",
"has_direct_airtime": true,
"has_voucher": false,
"ussd_code": "",
"vendor_ussd_code": "",
"has_bundle": false,
"has_vendor_voucher": false,
"vendor_voucher_commission": "0.00"
}
]
}The values above are examples. Read the live list; it changes when Xash turns a product on or off for a network.
| Field | Description |
|---|---|
id | The network id. It is the {carrier} in the voucher endpoints. |
name | Econet, NetOne or Telecel. Compare names without regard to capitals. |
commission | The standard commission rate, as a percentage. |
has_direct_airtime | Whether direct airtime can be sent to numbers on this network. |
has_voucher | Whether airtime vouchers are sold for this network. |
has_bundle | Whether data bundles are sold for this network. |
has_vendor_voucher, vendor_voucher_commission | Whether the network's own printed vouchers are sold from Xash stock, and their commission rate. See Buy airtime vouchers. |
ussd_code, vendor_ussd_code | What the customer dials to load a voucher: ussd_code for a Xash voucher, vendor_ussd_code for a network voucher. PIN stands for the voucher PIN. |