Get one Z report for a till
Gets one Z report, stored or generated. The same shape either way; source says which.
Required permissions: TILL_OPERATION
Access token recevied after user login with a deviceToken
Reference to a Store.
^[A-Za-z0-9-_]+Reference to a till.
^[A-Za-z0-9-_]+Reference to a tenant.
^[A-Za-z0-9-_]+The id from the list. A sequence number for a stored report, a date (YYYY-MM-DD) for a generated one.
The Z report.
One Z report in a list, or the Z report a close made. A GENERATED list row has only id, tillUid, source and date set; the figures on it (counts and amounts) are 0, which for GENERATED means not calculated here, not that nothing was sold. Open the report to see them. sequenceNumber, the times and producedBy are null for it.
Pass this to the Z report get operation. The sequence number for STORED, the date (YYYY-MM-DD) for GENERATED. For LIVE it is x, which only names the response of the xreport operation and is not an id the Z report get operation accepts. Treat it as opaque.
The till this Z report belongs to. Sequence numbers are per till, so this identifies the report together with id.
STORED is a Z report made when a till was closed after stored Z reports were switched on. GENERATED is calculated on request for a date before that, or when stored Z reports are off. LIVE is an X report: everything the till has sold since its last stored Z report, calculated on request and never stored.
Per till, without gaps. Null for GENERATED.
The date a GENERATED report covers. Null for STORED.
How the report was written. A stored report carries the version it was written with, the live X report the current version (2). 1: mainGroups, vat and payments are net of returns, and mainGroupSales, discountCount and paymentsByOperator are empty or 0. 2: those three are sales only (returns are in returnAmount and returnCount) and the three new fields are filled. Null for GENERATED reports.
Number of sold lines that carry a discount; discounts is the amount. 0 for GENERATED reports and for stored reports written before contentVersion 2.
Linking failed. Ther error message will have information about what failed.
Linking failed. Ther error message will have information about what failed.
GET /v2/tenants/{tenantUid}/stores/{storeUid}/tills/{tillUid}/zreports/{zreportId} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"tillUid": "text",
"source": "STORED",
"sequenceNumber": 1,
"date": "2026-01-01",
"periodFrom": "2026-01-01T00:00:00.000Z",
"periodTo": "2026-01-01T00:00:00.000Z",
"producedAt": "2026-01-01T00:00:00.000Z",
"producedBy": "TILL_CLOSE",
"receiptCount": 1,
"totalSales": 1,
"returnCount": 1,
"returnAmount": 1,
"grandTotalSales": 1,
"grandTotalReturn": 1,
"grandTotalNet": 1,
"contentVersion": 1,
"countryCode": "text",
"companyName": "text",
"organizationNumber": "text",
"registerDesignation": "text",
"grandTotalSeededFrom": "HISTORY",
"vat": [
{
"rate": 1,
"name": "text",
"amount": 1,
"vat": 1
}
],
"payments": [
{
"method": "text",
"issuer": "text",
"count": 1,
"amount": 1
}
],
"mainGroups": [
{
"amount": 1,
"count": 1,
"name": "text"
}
],
"mainGroupSales": [
{
"amount": 1,
"count": 1,
"name": "text"
}
],
"discountCount": 1,
"paymentsByOperator": [
{
"operator": "text",
"method": "text",
"issuer": "text",
"count": 1,
"amount": 1
}
],
"priceLookups": [
{
"amount": 1,
"count": 1,
"name": "text"
}
],
"lineCorrections": [
{
"amount": 1,
"count": 1,
"name": "text"
}
],
"goodsCount": 1,
"servicesCount": 1,
"drawerOpenings": 1,
"receiptCopies": {
"amount": 1,
"count": 1
},
"training": {
"amount": 1,
"count": 1
},
"discounts": 1,
"otherReductions": {
"amount": 1,
"count": 1
},
"incompleteSales": {
"amount": 1,
"count": 1
},
"abortedSales": {
"amount": 1,
"count": 1
},
"cashMovements": [
{
"amount": 1,
"count": 1,
"name": "text"
}
],
"changeAmount": 1,
"messages": [
{
"code": "text",
"severity": "INFO",
"text": "text",
"orders": [
{
"orderUid": "text",
"orderNumber": "text"
}
]
}
]
}Last updated
Was this helpful?

