Appearance
Voucher values
Lists the voucher values you can buy for a network.
GET /api/v1/airtime/voucher/{carrier}/values
GET /api/v1/airtime/direct/{carrier}/values is the same endpoint under an older path.
carrier is the network id from the network list.
bash
curl https://app.xash.co.zw/api/v1/airtime/voucher/1/values \
-H "Authorization: Bearer YOUR_SERVER_TOKEN"Response 200
json
{
"success": true,
"message": "Econet airtime values",
"allow_custom_amount": false,
"data": ["0.50", "1.00", "2.00", "3.00", "5.00", "7.00", "10.00", "15.00", "20.00", "50.00"],
"vendor_voucher_values": []
}| Field | Description |
|---|---|
data | The values on sale, lowest first, as strings with two decimals. |
allow_custom_amount | When false, the amount of a voucher purchase must be one of the values in data. When true, any amount from 0.1 is accepted. |
vendor_voucher_values | The values of the network's own vouchers that Xash has in stock right now. See Two kinds of voucher. |
An unknown carrier answers 404.