Reports

Queue an export of the order items report

This endpoint queues an export of the order items report to be generated asynchronously.

get/shop/reports/order-items/queue

Query parameters

site_idstring uuid

Restrict the report to order items belonging to the given site. Omit to include items from every site the caller's API key can access; the response groups them under their own site_id field.

order_labelstring[]

A comma-separated list of order labels IDs to filter on.

order_label_idsstring[]

A comma-separated list of order labels IDs to filter on.

sales_channel_idstring[]

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

sales_channel_idsstring[]

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

offering_idstring[]

A comma-separated list of offering IDs to filter on.

offering_idsstring[]

A comma-separated list of offering IDs to filter on.

offering_typestring[]

A comma-separated list of item types to filter on.

offering_typesstring[]

A comma-separated list of item types to filter on.

offering_categorystring

Filter by the offering's category.

offering_category_idsstring[]

A comma-separated list of offering category ids to filter on.

statusstring

Filter by the status of the item.

statusesstring[]

A comma-separated list of statuses to filter on.

order_statusstring[]

A comma-separated list of order statuses to filter on.

order_statusesstring[]

A comma-separated list of order statuses to filter on.

revenue_date_fromstring date

Filter on items with an order revenue date on or after this date.

revenue_date_tostring date

Filter on items with an order revenue date on or before this date.

date_fromstring date-time

Filter on items with a start time on or after this date.

date_tostring date-time

Filter on items with a start time on or before this date.

order_submitted_at_fromstring date-time

Filter on orders with a submitted date on or after this time.

order_submitted_at_tostring date-time

Filter on orders with a submitted date before this time.

item_date_fromstring date

Filter on items which are booked in for on or after this date.

item_date_tostring date

Filter on items which are booked in for before this date.

category_idstring[]

A comma-separated list of category IDs to filter on.

category_idsstring[]

A comma-separated list of stock category IDs to filter on.

brand_idsstring[]

A comma-separated list of stock brand IDs to filter on.

revenue_centresstring[]

A comma-separated list of revenue centre names to filter on.

sold_by_idstring[]

A comma-separated list of user IDs to filter for items sold by that user.

sold_by_idsstring[]

A comma-separated list of user IDs to filter for items sold by that user.

practitioner_idstring[]

A comma-separated list of practitioner IDs to filter on.

practitioner_idsstring[]

A comma-separated list of practitioner IDs to filter on.

shop_category_idsstring[]

A comma-separated list of shop category ids to filter on (includes offering and voucher categories).

room_idstring[]

A comma-separated list of room IDs to filter on.

room_idsstring[]

A comma-separated list of room IDs to filter on.

zone_idstring[]

A comma-separated list of zone IDs to filter on.

zone_idsstring[]

A comma-separated list of zone IDs to filter on.

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.