Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

    Inventory

  • List inventory adjustment reasons

  • Create inventory adjustment reason

  • Delete inventory adjustment reason

  • Restore inventory adjustment reason

  • Retrieve inventory adjustment reason

  • Update inventory adjustment reason

  • Update inventory adjustment

  • Retrieve inventory adjustment

  • Batch change inventory

  • Batch retrieve inventory changes

  • Batch retrieve inventory counts

  • Retrieve inventory physical count

  • Retrieve inventory count

  • Webhooks

  • inventory.count.updated

<- Inventory API

Inventory API

All versions ->

Retrieve inventory count

GET

 /v2/inventory/{catalog_object_id}

Retrieves the current calculated stock count for a given CatalogObject at a given set of Locations.

Responses are paginated and unsorted. For more sophisticated queries, use a batch endpoint.

Permissions:INVENTORY_READ

Guide

Retrieve IN_STOCK Quantities

Try in API Explorer
Link to section

Path parameters

Example code

Link to section

catalog_object_id

string

Required

ID of the CatalogObject to retrieve.

Link to section

Query parameters

Link to section

location_ids

string

The Location IDs to look up as a comma-separated list. An empty list queries all locations.

Link to section

cursor

string

A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query.

See the Pagination guide for more information.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

counts

The current calculated inventory counts for the requested object and locations.

Link to section

cursor

string

The pagination cursor to be used in a subsequent request. If unset, this is the final response.

See the Pagination guide for more information.

Link to section

Examples

All versions ->

GET /v2/inventory/{catalog_object_id}
curl https://connect.squareup.com/v2/inventory/catalog_object_id0?location_ids=C6W5YS5QM06F5 \ -H 'Square-Version: 2026-11-18' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json'

Response JSON

{ "errors": [], "counts": [ { "catalog_object_id": "W62UWFY35CWMYGVWK6TWJDNI", "catalog_object_type": "ITEM_VARIATION", "state": "IN_STOCK", "location_id": "C6W5YS5QM06F5", "quantity": "22", "calculated_at": "2016-11-16T22:28:01.223Z" } ] }