Available Methods
The Inventory client provides the following methods:BatchChangeInventory- Apply physical counts or adjustments to inventoryBatchGetInventoryCounts- Retrieve current inventory countsBatchRetrieveInventoryChanges- Retrieve historical inventory changesGetInventoryCount- Get inventory count for a specific catalog objectGetInventoryChanges- Get inventory changes for a catalog objectGetInventoryAdjustment- Retrieve a specific inventory adjustmentGetInventoryPhysicalCount- Retrieve a specific physical countGetInventoryTransfer- Retrieve a specific inventory transfer
Batch Change Inventory
Applies adjustments and counts to the inventory of one or more catalog objects at one or more locations. This is the primary method for updating inventory.Parameters
A client-supplied, universally unique identifier (UUID) for the request. See Idempotency for more information.
The set of physical counts and inventory adjustments to be made. Changes are applied based on the client-supplied timestamp and may be sent out of order.
Indicates whether the current physical count should be ignored if the quantity is unchanged since the last physical count. Default: true
Response
The current counts for all objects referenced in the request
Changes created for the request
Any errors that occurred during the request
Batch Get Inventory Counts
Returns current counts for the provided catalog objects at the requested locations. Results are eventually consistent.Parameters
The filter to return results by CatalogObject ID. The filter is applicable only when set. The default is null.
The filter to return results by Location ID. This filter is applicable only when set. The default is null.
The filter to return results with their calculated_at value after the given time as specified in an RFC 3339 timestamp. The default value is the UNIX epoch of 1970-01-01T00:00:00Z.
A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query.
The filter to return results by InventoryState. The filter is only applicable when set. Ignored are untracked states of NONE, SOLD, and UNLINKED_RETURN.
The number of records to return. Default and maximum: 1000
Response
The current calculated inventory counts for the requested objects and locations
The pagination cursor to be used in a subsequent request. If unset, this is the final response.
Any errors that occurred during the request
Batch Retrieve Inventory Changes
Returns historical physical counts and inventory adjustments based on the provided filter criteria. Results are sorted in ascending order by occurred_at.Parameters
The filter to return results by CatalogObject ID. The filter is only applicable when set.
The filter to return results by Location ID. The filter is only applicable when set.
The filter to return results by InventoryChangeType values other than TRANSFER. The default value is [PHYSICAL_COUNT, ADJUSTMENT].
The filter to return ADJUSTMENT query results by InventoryState. This filter is only applied when set.
The filter to return results with their calculated_at value after the given time as specified in an RFC 3339 timestamp.
The filter to return results with their created_at or calculated_at value strictly before the given time as specified in an RFC 3339 timestamp.
A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results.
The number of records to return. Default and maximum: 1000
Response
The current calculated inventory changes for the requested objects and locations
The pagination cursor to be used in a subsequent request
Any errors that occurred during the request
Get Inventory Count
Retrieves the current calculated stock count for a catalog object at one or more locations.Parameters
ID of the CatalogObject to retrieve
The Location IDs to look up as a comma-separated list. An empty list queries all locations.
A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results.
Response
The current calculated inventory counts for the requested object and locations
The pagination cursor to be used in a subsequent request
Any errors that occurred during the request
Get Inventory Changes
Returns a set of physical counts and inventory adjustments for the provided catalog object at the requested locations.Parameters
ID of the CatalogObject to retrieve
The Location IDs to look up as a comma-separated list. An empty list queries all locations.
A pagination cursor returned by a previous call to this endpoint
Response
The set of inventory changes for the requested object and locations
The pagination cursor to be used in a subsequent request
Any errors that occurred during the request
Get Inventory Adjustment
Retrieves a specific inventory adjustment by its ID.Parameters
ID of the InventoryAdjustment to retrieve
Response
The requested InventoryAdjustment
Any errors that occurred during the request
