GET /reports/consumption
Read Cost of goods reports in batches. The technical API path uses consumption. Repeat the request with the returned cursor until no cursor is returned.
Parameters
All query parameters are optional.
division: Filter by division ID.area: Filter by area ID.fromandto: Start and end of the report creation period, as millisecond timestamps. Provide both to apply the date range; a single bound is not applied by this endpoint.cursor: Creation timestamp from the previous response for the next batch.
Status codes
200on success400on invalid request parameters
Response properties
entries: Array of up to 25 report summaries. Each entry includescreated,start,area_id,itemsandvalue. It may also includeinspection_report,nameandvat_rate.cursor: Creation timestamp for the next batch. (optional)
Use created as the report ID for GET /reports/consumption/:id.