Get report
/ admin/ v1/ stores/ {store_id}/ analytics/ reports/ {report}- analytics:read
One report over a period of store-local days, as a table of typed columns: sales over time or by product, variant, collection, channel, country or city; new and returning customers; top customers (also requires customers:read); conversion over time. Time series are grouped by group_by and compared with the period before.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.reportenumrequiredWhich report
- sales_over_time
- sales_by_product
- sales_by_variant
- sales_by_collection
- sales_by_channel
- sales_by_country
- sales_by_city
- refusals_by_city
- customers_over_time
- top_customers
- conversion_over_time
- sessions_by_source
- sessions_by_campaign
- sessions_by_device
- sessions_by_landing_page
- sales_by_source
- sales_by_campaign
- profit_over_time
- profit_by_product
- profit_by_variant
- profit_by_order
- profit_by_discount
- online_store_speed
- top_searches
- searches_without_results
- stock_value_over_time
- sell_through
- days_out_of_stock
- abc_by_profit
- unsold_items
- taxes_by_rate
Query parameters
fromstringrequiredFirst store-local day,
YYYY-MM-DD.tostringrequiredLast store-local day (included),
YYYY-MM-DD. At most 366 days fromfrom.group_byenumTime series only:
day,week(from Sunday) ormonth. Default: days up to a month, weeks up to half a year, months beyond.- day
- week
- month
languagestringExports only: the language of the column headings,
enorar(default: the store's).
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 The report.
Errors
- 403
forbiddenMissing permission. - 404
not_foundNo such store or report. - 422
validation_failedInvalid dates or range.