Retrieve inventory information for multiple products or SKUs. Note:
- If both
sku_idsandproduct_idsare passed,sku_idstakes precedence andproduct_idsis ignored. - Passing product IDs returns the inventory information of all SKUs under the specified products.
- Passing SKU IDs returns the inventory information for the specified SKUs.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Request Body
Section titled “Request Body”object
A list of product IDs used to search for inventory information. Max IDs: 100
A list of SKU IDs used to search for inventory information. Max IDs: 600
Note: If both sku_ids and product_ids are passed, sku_ids will take precedence.
Example
{ "product_ids": [ "1729592969712207008" ], "sku_ids": [ "1729388324987897824" ]}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Inventory information for the requested products or SKUs.
object
The ID of the requested product.
The list of requested SKUs.
object
The SKU ID generated by TikTok Shop.
An internal code/name for managing SKUs, not visible to buyers.
The total number of units available for ordering across all warehouses.
It is the sum of the warehouse_inventory.available_quantity values in all warehouses.
The total number of units reserved by existing customer orders across all warehouses (and therefore not available for ordering).
It is the sum of the warehouse_inventory.committed_quantity values in all warehouses.
SKU warehouse inventory information.
object
The ID of the warehouse where the SKU is stored. Retrieve details of the warehouse from the Get Warehouse List API.
The total number of units available for ordering in this warehouse.
This is equivalent to the inventory.quantity value returned in the Get Product API.
The total number of units reserved by existing customer orders in this warehouse (and therefore not available for ordering).
The distribution of the total available inventory for the SKU across different channels.
object
Inventory that is allocated to a specific campaign.
object
The number of units allocated.
The name of the associated campaign.
Inventory that is allocated to TikTok creators.
object
The number of units allocated.
The name of the associated TikTok creator.
The remaining inventory available for the shop after deducting those allocated for campaigns and creators.
object
The number of units allocated.
Example
{ "code": 0, "data": { "inventory": [ { "product_id": "1729592969712207008", "skus": [ { "id": "1729388324987897824", "seller_sku": "Color-Red-XM01", "total_available_quantity": 100, "total_committed_quantity": 10, "warehouse_inventory": [ { "warehouse_id": "7054915283043174149", "available_quantity": 100, "committed_quantity": 10 } ], "total_available_inventory_distribution": { "campaign_inventory": [ { "quantity": 30, "campaign_name": "Big Sale" } ], "creator_inventory": [ { "quantity": 20, "creator_name": "py001" } ], "in_shop_inventory": { "quantity": 50 } } } ] } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}