Cost of goods reports

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.
  • from and to: 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

  • 200 on success
  • 400 on invalid request parameters

Response properties

  • entries: Array of up to 25 report summaries. Each entry includes created, start, area_id, items and value. It may also include inspection_report, name and vat_rate.
  • cursor: Creation timestamp for the next batch. (optional)

Use created as the report ID for GET /reports/consumption/:id.