Run custom report
GET
/ admin/ v1/ stores/ {store_id}/ analytics/ custom-reports/ {report_id}/ reportA custom report's answer over a period of store-local days, with the report.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.report_idstringrequiredThe custom report's ID, like
crpt_01k8qs5s….
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 and its answer.
Errors
- 404
not_foundNo such report. - 422
validation_failedInvalid dates or range.