<- Inventory API

Inventory API

Retrieve inventory count

GET

 /v2/inventory/{catalog_object_id}

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

Permissions:INVENTORY_READ
Try in API Explorer
Link to section

Path parameters

Example code

Link to section

catalog_object_id

string

Required

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.