Skip to content

Stock totals

GET/admin/v1/stores/{store_id}/inventory/totals
  • inventory:read

Add up every variant matching the list's filters: how many, and the committed, available and on-hand units of those that track stock, at the location or in total. The page is ignored.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Query parameters

  • qstring

    Search product title, variant title or SKU.

  • location_idstring

    Count stock at this location only.

  • low_stockinteger

    Only tracked variants low on stock: available at or below their own threshold, or this number for variants without one.

  • sold_outboolean

    Only tracked variants with nothing available.

  • incomingboolean

    Only variants with units on their way in a shipped transfer or an ordered purchase order, to location_id when given.

  • limitinteger

    1–250, default 50.

  • cursorstring

    page.next_cursor from the previous page.

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Returns

200 What the matching variants add up to.

Errors

  • 400bad_requestMalformed query.
  • 403forbiddenMissing permission.