Appearance
Mini statement
A summary of one wallet for a period: opening and closing balance, sales by product, and totals in and out.
GET /api/v1/reports/mini/{currency}/{range}
| Path part | Description |
|---|---|
currency | The wallet, for example USD. |
range | today, yesterday, this_month, or a month such as october or 2026-10. A month gives that whole calendar month. A month that has not happened yet this year gives the same month last year. |
bash
curl https://app.xash.co.zw/api/v1/reports/mini/USD/today \
-H "Authorization: Bearer YOUR_SERVER_TOKEN"Response 200
json
{
"success": true,
"message": "Mini-statement for Today (November 19, 2026) fetched successfully",
"data": {
"currency": "USD",
"start": "2026-11-19 00:00:00",
"end": "2026-11-19 10:16:53",
"opening_balance": "0.00",
"closing_balance": "43.50",
"sales": [
{ "name": "Direct Airtime", "total": "2.00", "profit": "0.000", "count": "2" },
{ "name": "Voucher", "total": "2.00", "profit": "0.000", "count": "1" }
],
"transactions": [
{ "name": "Sales", "in_total": "0.000", "out_total": "4.000", "count": "3" },
{ "name": "Deposit", "in_total": "50.000", "out_total": "0.000", "count": "1" },
{ "name": "Transfer", "in_total": "0.000", "out_total": "2.500", "count": "1" }
],
"debit_total": "6.50",
"credit_total": "50.00",
"profit_total": "0.000",
"transactions_count": "5",
"period": "Today (November 19, 2026)"
}
}| Field | Description |
|---|---|
start, end | The period covered, in Zimbabwe time. |
opening_balance, closing_balance | Taken from the first and last successful transactions in the period. |
sales | One row per product: total sold, profit (commission already released for those sales) and count. |
transactions | One row per kind of movement: Sales, Deposit, Transfer, Commission Pay Out, with totals in and out. |
debit_total | Purchases plus transfers you sent. |
credit_total | Deposits plus transfers you received. |
profit_total | Commission released in the period. |
All amounts are strings. Only successful transactions are counted. profit stays 0.000 for a sale until its commission is released; see Commission overview.
The result is cached for 5 minutes, so a sale made a moment ago may not show yet.
Errors
| Status | When | message |
|---|---|---|
404 | No successful transactions in the period. | No transactions found for ... |
400 | range could not be understood. | Invalid period provided |