For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

get
/tenants/{tenantUid}/stores/{storeUid}/tills/{tillUid}/zreports/{zreportId}
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
storeUidstringRequired

Reference to a Store.

Pattern: ^[A-Za-z0-9-_]+
tillUidstringRequired

Reference to a till.

Pattern: ^[A-Za-z0-9-_]+
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
zreportIdstringRequired

The id from the list. A sequence number for a stored report, a date (YYYY-MM-DD) for a generated one.

Responses
200

The Z report.

application/json

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.

idstringRequired

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.

tillUidstringRequired

The till this Z report belongs to. Sequence numbers are per till, so this identifies the report together with id.

sourcestring · enumRequired

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.

Possible values:
sequenceNumberinteger · nullableRequired

Per till, without gaps. Null for GENERATED.

datestring · date · nullableRequired

The date a GENERATED report covers. Null for STORED.

periodFromstring · date-time · nullableRequired
periodTostring · date-time · nullableRequired
producedAtstring · date-time · nullableRequired
producedBystring · enum · nullableRequiredPossible values:
receiptCountintegerRequired
totalSalesintegerRequired
returnCountintegerRequired
returnAmountintegerRequired
grandTotalSalesintegerRequired
grandTotalReturnintegerRequired
grandTotalNetintegerRequired
contentVersioninteger · nullableRequired

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.

countryCodestring · nullableRequired
companyNamestringRequired
organizationNumberstring · nullableRequired
registerDesignationstring · nullableRequired
grandTotalSeededFromstring · enum · nullableRequiredPossible values:
discountCountintegerRequired

Number of sold lines that carry a discount; discounts is the amount. 0 for GENERATED reports and for stored reports written before contentVersion 2.

goodsCountintegerRequired
servicesCountintegerRequired
drawerOpeningsintegerRequired
discountsintegerRequired
changeAmountintegerRequired
get/tenants/{tenantUid}/stores/{storeUid}/tills/{tillUid}/zreports/{zreportId}
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?