Skip to content

Available bundles ​

GET /api/v1/bundles

Query ​

ParameterRequiredDescription
networkNoOnly bundles of this network, for example Econet. Must match the network value exactly.
currencyNoOnly bundles priced in this currency, for example USD.
bash
curl "https://app.xash.co.zw/api/v1/bundles?network=Econet&currency=USD" \
  -H "Authorization: Bearer YOUR_SERVER_TOKEN"

Response 200 ​

json
{
  "success": true,
  "message": "Available bundles",
  "data": [
    {
      "id": 101,
      "name": "Example 1GB Daily",
      "price": "1.00",
      "description": "1GB of data",
      "network": "Econet",
      "valid_for": "24 hours",
      "currency": "USD",
      "type": "Data"
    }
  ]
}
FieldDescription
idThe bundle id. It is the {bundle} in the purchase endpoints.
nameThe name to show.
price, currencyWhat you are charged for one.
description, valid_forWhat the bundle contains and how long it lasts.
networkThe network it belongs to.
typeA grouping for menus: Data, Whatsapp, Social Media, Private WiFi or Voice and SMS.

The list is not paged. An empty data means nothing matches your filters. Bundle ids and prices change; fetch the list regularly instead of hard-coding it.