Skip to main content

POST Update Global Inventory

Update Global Inventory Seller Required scope: seller.global_product.write 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. Version 202309

POST/product/202309/global_products/{global_product_id}/inventory/update

Request

Path

PropertiesTypeDescription
global_product_id RequiredstringThe global product ID to be updated.

Header

PropertiesTypeDescription
content-type RequiredstringAllowed type: application/json
x-tts-access-token RequiredstringThe seller access_token value from Get Access Token, when user_type = 0. Follow this guide to get seller access_token.

Query

PropertiesTypeDescription
app_key RequiredstringEvery single app will have a unique key. Please use the specific key assigned to your app.
sign RequiredstringSignature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders.
timestamp RequiredintUnix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time.

Body

PropertiesTypeDescription
global_skus Required[]objectThe list of global SKUs that need to be updated.

Example

CurlGoNode.jsJavaEnable word wrap

Response Parameters

PropertiesTypeDescription
codeintThe success or failure status code returned in API response.
messagestringThe success or failure messages returned in API response. Reasons of failure will be described in the message.
request_idstringRequest log
dataobjectSpecific return information

Example

JSONEnable word wrap

Error Code

View common error codes

| Code | Message | | --- | --- | | 36009003 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. | | 12019113 | product status is invalid | | 12019114 | Seller has no permission | | 12019117 | Missing 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. | | 12019150 | The product ID does not exist. | | 12052048 | You cannot edit the specified product(s) as it isn't listed in your account or shop. | | 12052055 | The SKU inventory quantity for the warehouse must be within allowed limits. | | 12052094 | No multiple warehouse permission | | 12052142 | no permission of multi global warehouse | | 12052143 | sku warehouse must equal | | 12052145 | activity warehouse not allowed to be deleted | | 12052146 | The 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. | | 12052260 | The product ID does not exist | | 12052379 | the cover region of share warehouse can not cover the the product region | | 12052447 | You 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. | | 12052448 | Local fulfillment is required for {{country}} shop. You must have at least one {{country}} overseas warehouse for it. | | 12052530 | The warehouse ' {{warehouse ID}} ' does not belong to this shop/seller. | | 12052531 | The warehouse is disabled. | | 12052533 | Removal, addition, and change of warehouses are not permitted. Please specify the original warehouses for the SKUs. | | 12052556 | The SKU id not exist. | | 12052700 | The seller is inactive. | | 12052902 | The SKU list is empty. Either omit the list entirely, or provide all required details. |

Is this content helpful?Helpful

Not Helpful

PreviousNext