Reports

Queue an export of the revenue by sales channel report

Queues a CSV export of the revenue by sales channel report to be generated asynchronously. Prefer this endpoint over the synchronous variant for date ranges that span more than a couple of months — for shorter ranges, see /shop/reports/revenue-by-sales-channel.

get/shop/reports/revenue-by-sales-channel/queue

Query parameters

site_idstring uuid

Restrict the report to baskets at the given site.

revenue_date_fromstring date
Example:2026-06-01

Restrict to baskets with a revenue date on or after this date.

revenue_date_tostring date
Example:2026-06-30

Restrict to baskets with a revenue date on or before this date.

submitted_at_fromstring date

Restrict to baskets submitted on or after this date.

submitted_at_tostring date

Restrict to baskets submitted on or before this date.

item_date_fromstring date

Restrict to baskets containing items dated on or after this date.

item_date_tostring date

Restrict to baskets containing items dated on or before this date.

sales_channelstring[]

A comma-separated list of sales channel IDs to filter on.

revenue_centrestring[]

A comma-separated list of revenue centre keys or IDs to filter on.

emailboolean

If true, email the completed CSV to the authenticated user when the background job finishes. Defaults to false, in which case the queued job's output URL must be polled via the queued-jobs endpoint.

Response

The job was successfully queued

Example response

{
  "data": {
    "created_at": "2023-11-07T00:00:00+00:00",
    "updated_at": "2023-11-07T01:00:00+00:00"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.