Skip to content

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.

FieldDescription
idThe network id. It is the {carrier} in the voucher endpoints.
nameEconet, NetOne or Telecel. Compare names without regard to capitals.
commissionThe standard commission rate, as a percentage.
has_direct_airtimeWhether direct airtime can be sent to numbers on this network.
has_voucherWhether airtime vouchers are sold for this network.
has_bundleWhether data bundles are sold for this network.
has_vendor_voucher, vendor_voucher_commissionWhether the network's own printed vouchers are sold from Xash stock, and their commission rate. See Buy airtime vouchers.
ussd_code, vendor_ussd_codeWhat 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.