Generate sales by items report
GET/api/organizations/:organization_id/items/reports
Streams a CSV of sales aggregated by item over the requested period, ordered by item name. The response is streamed and is not wrapped in the standard { code, message, data } envelope.
Request
Responses
200 Item sales report
Response Headers
Content-Type
Example:
text/csvContent-Disposition
Example:
attachment; filename=item_sales_report.csvBoth from and to must be supplied; the report is not generated for an open-ended period.
Authentication failed. The bearer token is missing or invalid, or the API key and secret pair could not be verified.
The caller is authenticated but is not allowed to perform this action on this resource.
The report could not be produced.