Skip to main content

Get Sales by Size Report

GET 

/api/reports/size-sales

Units and revenue sold, pivoted by vendor → silhouette (rows) × size (columns). Sizes come back in natural size-run order; sizes arrays in every row and size_totals are aligned with the top-level sizes list.

Required scope: reports:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Counts lines on non-draft, non-cancelled sales orders by order date. Units are ordered less cancelled quantity; revenue is line revenue after discounts and credits. A variant without its own silhouette, category, brand or supplier inherits its parent's. Products with no size attribute fall in the — column.

vendor_options, silhouette_options and category_options list every value sold in the date range and channel, ignoring the vendor/silhouette/category/warehouse filters.

Requires access to the Sales by Size report and the reports scope.

Request​

Responses​

OK

Response Headers
    Content-Type