Appearance
What you can sell
| Product | What the customer gets | Safe to retry with a reference | Page |
|---|---|---|---|
| Direct airtime | Airtime loaded straight onto a phone. | Yes, reference | Airtime |
| Airtime vouchers | Recharge PINs to print or send. | Yes, reference | Airtime vouchers |
| Data bundles | A bundle loaded onto a phone, or a bundle voucher. | Yes, reference | Data bundles |
| ZESA electricity | A prepaid electricity token for a meter. | Yes, reference | ZESA electricity |
| DStv | A payment onto a DStv smartcard account. | Yes, reference | DStv |
| WiFi vouchers | Equal WiFi voucher PINs. | Yes, client_reference | WiFi vouchers |
"Safe to retry" means you can send your own reference with the purchase, and a repeat of that reference never buys twice. The reference is optional on every product: a purchase sent without one is answered as it always was, and a repeat of it is a second purchase. Read References and safe retries before you build.
Every purchase is paid from your wallet. Prices are in the currency of the wallet you pay from, normally USD.
Xash can set spending limits on what your server tokens may spend per purchase and per day. Many accounts have none. GET /api/v1/limits shows yours.
Your services
Returns the services your account is set up for.
GET /api/v1/services
bash
curl https://app.xash.co.zw/api/v1/services \
-H "Authorization: Bearer YOUR_SERVER_TOKEN"json
{
"message": "User Services retrieved successfully",
"success": true,
"data": [
{ "name": "Airtime Voucher", "slug": "airtime_voucher", "order_by": 1 },
{ "name": "Direct Airtime", "slug": "direct_airtime", "order_by": 2 },
{ "name": "Data", "slug": "data", "order_by": 3 },
{ "name": "Electricity", "slug": "electricity", "order_by": 4 },
{ "name": "DSTV", "slug": "dstv", "order_by": 5 },
{ "name": "Xash Transfer", "slug": "xash_transfer", "order_by": 7 },
{ "name": "Receive Funds", "slug": "receive_funds", "order_by": 8 },
{ "name": "Reports", "slug": "reports", "order_by": 9 }
]
}| Field | Description |
|---|---|
name | A display name. |
slug | A stable identifier. Use this in your code. |
order_by | The order the Xash app shows the services in. |
A new account gets the default set shown above. wifi_voucher is not in the default set; Xash adds it per account. dstv is left out of the list while DStv payments are switched off for everyone.
The Xash app uses this list to decide which products to show. Use it the same way: offer a product only when its slug is in the list.
Availability changes
A product can be paused by Xash, or be unavailable at the network or utility, at any time. Your integration should expect a purchase to fail with SERVICE_UNAVAILABLE or a similar code and show a clear message. See Outcomes and error codes.