Skip to content

Start a count at one location

POST/admin/v1/stores/{store_id}/inventory/counts
  • Idempotency-Key supported

Start a count at one location: of everything there (every counted variant gets a line, up to 10,000) or of items added while counting. One count is open at a location at a time.

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.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

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

Body

  • location_idstringrequired

    An active location; one count is open there at a time.

  • scopeenumrequired

    all: every counted variant (up to 10,000); some: items added while counting.

    • all
    • some
  • namestring · or null

    Up to 100 characters, such as "Year end 2026".

Returns

201 The count.

Errors

  • 403forbiddenMissing permission, or a location you don't work at.
  • 409A count is open there already, or there are more than 10,000 items.
  • 422validation_failedAn unknown or inactive location, or a bad name.