Product totals
/ admin/ v1/ stores/ {store_id}/ products/ totals- products:read
Add up every product matching the list's filters: how many, the units they sold in 30 days and what is available of those that track stock. The sort and page are ignored.
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
qstringSearch title, handle, vendor, type, or an exact SKU.
statusenumWhether a product can be sold.
- draft
- active
- archived
vendorstringAny of these vendors, comma-separated; quote a value that has a comma (
"Smith, Jones",Acme).product_typestringAny of these product types, comma-separated (quoted like
vendor).tagstringProducts with any of these tags, comma-separated (quoted like
vendor).category_idintegerProducts in this Google product category or any under it.
shipping_profilestringProducts of one shipping profile, by ID, or
general.collection_idstringProducts in any of these collections (comma-separated IDs): a manual one's members, or what a smart one's rules match.
channelstringProducts sold on any of these channels, comma-separated:
online_store,pos, …issuestringProducts with any of these health issues, comma-separated:
low_stock,out_of_stock,missing_translation,no_photo.sortstringcreated_at,updated_atortitle, prefixed-for descending;-units_sold(most sold in 30 days first) oravailable(fewest units first). Default-created_at.limitinteger1–250, default 50.
cursorstringpage.next_cursorfrom the previous page.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 What the matching products add up to.
Errors
- 400
bad_requestMalformed query. - 403
forbiddenMissing permission.