Sales of a period of store-local days
GET
/ admin/ v1/ stores/ {store_id}/ analytics/ sales- analytics:read
Sales of a period of store-local days, compared with the period before: totals, a daily series, best sellers and the orders waiting on the merchant.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Query parameters
fromstringrequiredFirst store-local day,
YYYY-MM-DD.tostringrequiredLast store-local day (included),
YYYY-MM-DD. At most 366 days afterfrom.
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. - 422
validation_failedInvalid dates or range.