Appearance
Available bundles
GET /api/v1/bundles
Query
| Parameter | Required | Description |
|---|---|---|
network | No | Only bundles of this network, for example Econet. Must match the network value exactly. |
currency | No | Only bundles priced in this currency, for example USD. |
bash
curl "https://app.xash.co.zw/api/v1/bundles?network=Econet¤cy=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"
}
]
}| Field | Description |
|---|---|
id | The bundle id. It is the {bundle} in the purchase endpoints. |
name | The name to show. |
price, currency | What you are charged for one. |
description, valid_for | What the bundle contains and how long it lasts. |
network | The network it belongs to. |
type | A 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.