Appearance
Transaction history
Lists the transactions of one wallet, newest first: purchases, deposits and transfers. Commission entries are not included; see Commission overview.
GET /api/v1/reports/history/{currency}
Query
| Parameter | Description |
|---|---|
from_date | Only transactions on or after this date, for example 2026-11-01. |
to_date | Only transactions on or before this date. |
types | One or more transaction types, comma-separated. See the list below. type is accepted as another name. |
names | One or more words to match against the transaction name, comma-separated, for example econet. name is accepted as another name. |
search | All or part of a Xash transaction id. |
include_pending | 1 to also return purchases whose outcome is not final. Default: successful transactions only. |
per_page | Rows per page. Default 15. |
page | Page number, from 1. |
Types
The common ones are direct_airtime, voucher (airtime vouchers), direct_bundle, voucher_bundle, electricity, dstv, equal_voucher (WiFi), transfer, deposit and innbucks_deposit. A value that is not a transaction type answers 422.
Example
bash
curl "https://app.xash.co.zw/api/v1/reports/history/USD?from_date=2026-11-19&types=direct_airtime,electricity&per_page=50" \
-H "Authorization: Bearer YOUR_SERVER_TOKEN"Response 200
json
{
"success": true,
"message": "Transactions retrieved successfully",
"data": [
{
"type": "direct_airtime",
"name": "Econet airtime",
"id": "00000000-0000-4000-8000-00000000a001",
"reference": "00000000A001",
"amount": "1.00",
"status": "success",
"success": true,
"created_at": "2026-11-19T08:15:00.000000Z",
"commission": "USD0.06",
"receipt_footer": "Get airtime/bundle on your change from as little as 10 cents.",
"currency": "USD",
"attributes": {
"name": "Econet airtime",
"type": "direct_airtime",
"id": "00000000-0000-4000-8000-00000000a001",
"reference": "00000000A001",
"amount": "1",
"currency": "USD",
"mobile_phone": "+263770000001",
"status": "success",
"balance": {
"currency": "USD",
"name": "US Dollar",
"profit_on_hold": "0.230",
"balance": "43.50"
},
"commission": "USD0.06",
"receipt_footer": "Get airtime/bundle on your change from as little as 10 cents.",
"created_at": "2026-11-19T08:15:00.000000Z"
}
}
],
"meta": {
"total": 5,
"per_page": 50,
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 5
}
}Row fields
| Field | Description |
|---|---|
id | The Xash transaction id. The same value as transaction_id in a purchase response. |
reference | A short receipt code made from the id. It is not your caller reference. |
type | The transaction type. |
name | A display name. |
amount, currency | The amount, as a string with two decimals. |
status | success, or with include_pending also pending, on_hold or in_progress. |
success | true when status is success. |
commission | What you earned, for example "USD0.06". "0.000" when none. |
created_at | When it happened. |
attributes | The receipt of the transaction, in the same shape as the data of the purchase that created it: voucher PINs, electricity tokens, transfer direction and so on. |
attributes.balance is your balance now, not the balance at the time of the transaction.
Paging
meta tells you where you are: total rows, per_page, current_page, last_page, and the row numbers from and to on this page. Ask for page=2, page=3 and so on until current_page equals last_page.
Purchases that are not final
With include_pending=1 the list also contains purchases that are held: money taken, outcome not yet known. They have "success": false and a status of on_hold, pending or in_progress.
For these rows attributes is reduced to name, type, id, reference, amount, currency, status, receiver (the phone, meter or smartcard) and created_at. Electricity and DStv rows keep their receipt layout, with placeholder values where the token or account is not known yet.
This is how you find a purchase that answered OUTCOME_UNKNOWN when you did not send a reference.
Errors
| Status | When |
|---|---|
422 | A date is not a date, or a type is not in the list. |