Inventory
List inventory
Retrieves real-time stock information for all product variants. Stock information is stored in an InventoryItem for each product variant. The response contains up to 50 InventoryItems and supports dynamic cursors for pagination.
query Parameters
cursorIdentifies where the next page of results should begin. Should be the value of pagination.nextPageCursor from a previous response. If not present or empty, the endpoint returns up to 50 InventoryItems.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
List inventory › Responses
OK
Array of InventoryItem resources. If the merchant site doesn't have any physical or service product variants, this array is empty.
Adjust stock quantities
Adjusts stock quantities for product variants. Stock quantities can be added or subtracted, set with a given number, or marked as "unlimited". All quantity information is stored in InventoryItems.
Headers
Idempotency-KeyRequired for idempotent requests. Refer to the idempotency key guide for requirements.
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
Adjust stock quantities › Request Body
Optional; array of objects. Subtracts stock quantity for InventoryItems.
Optional; array of objects. Increments stock quantity for InventoryItems.
Optional; array of objects. Sets the exact stock quantity for InventoryItems.
setUnlimitedOperationsOptional; array of InventoryItem ids. Marks stock quantity as "unlimited" for the given InventoryItems.
Adjust stock quantities › Responses
No content. The request was successful. If this is a request with a previously used Idempotency-Key, the previous operation was successful and no new changes were made.
Get inventory
Retrieves real-time stock information for specific product variants. Stock information is stored in an InventoryItem and up to 50 InventoryItems can be retrieved per request.
path Parameters
variantIdCsvsSpecifies the InventoryItems to retrieve. Multiple InventoryItems can be retrieved by providing a comma-separated list: {id1},{id2}..., though the same sequence is not guaranteed in the response.
Headers
AuthorizationAPI key or OAuth access token
User-AgentUser Agent
Get inventory › Responses
OK
Array of InventoryItem resources. If the merchant site doesn't have any physical or service products, this array is empty.