Download one Z report for a till
Downloads one Z report as a file, stored or generated. Accept: application/pdf gives the PDF, text/html the HTML, and anything else gives JSON with the file base64 encoded.
A stored report is rendered from what was saved when it was made. A generated one is rendered by the date-based generator, as xzreport/download.
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. x is not valid here; the X report is fetched from xreport.
Based on the Accept header the response will be base64 json encoded or a raw file. application/octet-stream will return a binary file application/json will return a json with the file content base64 encoded.
base64 encoded
mime type
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}/download HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"content": "text",
"contentType": "text",
"filename": "text"
}Last updated
Was this helpful?

