快工助手跨境电商知识与商机助手

Update Global Inventory

TikTok Shop 官方资料 · TikTok Shop Partner Center 开发者文档 · 适合开发者

stable本次发布有变化全部展示

来自 TikTok Shop 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
TikTok Shop / profile.tiktok.docs_api
语言
en-US
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/tiktok_shopaudience/developercategory/api_doctopic/compliancetopic/developer

资料正文

§1 Path: /product/202309/global_products/{global_product_id}/inventory/update

#

§2 Method: [POST]

#

§3 Function Description

Update the inventory of unpublished global products if you have access to the Multi-Warehouse feature. The inventory of published global products will not be affected by this update operation.


#

§4 Common Parameters

For common parameters, refer to How to call TikTok Shop APIs - Common Parameters

Properties Location Type Require Sample Properties description
content-typeheaderstringYapplication/jsonAllowed type: application/json
#

§5 Request Path Parameters

Properties Type Require Sample Properties description
global_product_idstringY1729592969712207013The global product ID to be updated.
#

§6 Request Query Parameters

Properties Type Require Sample Properties description
app_keystringY38abcdEvery single app will have a unique key. Please use the specific key assigned to your app.
signstringY5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8cSignature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders.
timestampintY1623812664Unix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time.
#

§7 Request Body Parameters

Properties Type Require Sample Properties description
global_skus[]objectYThe list of global SKUs that need to be updated.
^idstringY1729592969712207013The global SKU ID in TikTok Shop.
^inventory[]objectYGlobal SKU inventory information.
^^global_warehouse_idstringY7068517275539719942The ID of the global warehouse where the SKU is stored. Retrieve this value from Get Global Product or Get Global Seller Warehouse.
^^quantityintY999The updated SKU quantity.
#

§8 Request Sample

Query

https://open-api.tiktokglobalshop.com/product/202309/global_products/1729592969712207013/inventory/update?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c&timestamp=1625484268

Body

{"global_skus":[{"id":"1729592969712207013","inventory":[{"global_warehouse_id":"7068517275539719942","quantity":999}]}]}
#

§9 Response Parameters

Properties Type Sample Properties description
codeint0The success or failure status code returned in API response.
messagestringSuccessThe success or failure messages returned in API response. Reasons of failure will be described in the message.
request_idstring202203070749000101890810281E8C70B7Request log
dataobjectSpecific return information
#

§10 Response Sample

{"code":0,"data":{},"message":"Success","request_id":"202203070749000101890810281E8C70B7"}
#

§11 Error Code

For common error codes, refer to How to call TikTok Shop APIs - Common Error Code

Code Message
36009003Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support.
12019113product status is invalid
12019114Seller has no permission
12019117Missing variations (sales attributes). When there are multiple SKUs in a product, each SKU must include variation (sales attribute) details that explain how it is different from other SKUs in the product.
12019150The product ID does not exist.
12052048You cannot edit the specified product(s) as it isn't listed in your account or shop.
12052055The SKU inventory quantity for the warehouse must be within allowed limits.
12052094No multiple warehouse permission
12052142no permission of multi global warehouse
12052143sku warehouse must equal
12052145activity warehouse not allowed to be deleted
12052146The specified inventory quantity is too low. It must be greater than the locked quantity (e.g. for committed orders, campaigns, creators) to ensure a non-negative available stock.
12052260The product ID does not exist
12052379the cover region of share warehouse can not cover the the product region
12052447You still have stock reserved for campaigns in your Chinese warehouse(s), so you cannot add an overseas warehouse yet. If you have an overseas warehouse, you must use it to fulfill orders for your {{country}} shop.
12052448Local fulfillment is required for {{country}} shop. You must have at least one {{country}} overseas warehouse for it.
12052530The warehouse ' {{warehouse ID}} ' does not belong to this shop/seller.
12052531The warehouse is disabled.
12052533Removal, addition, and change of warehouses are not permitted. Please specify the original warehouses for the SKUs.
12052556The SKU id not exist.
12052700The seller is inactive.
12052902The SKU list is empty. Either omit the list entirely, or provide all required details.
#