Chuyển tới nội dung chính

POST Cập nhật tồn kho toàn cầu

Cập nhật tồn kho toàn cầu Seller Scope yêu cầu: seller.global_product.write Cập nhật tồn kho của các sản phẩm toàn cầu chưa được đăng nếu bạn có quyền truy cập tính năng Multi-Warehouse. Tồn kho của các sản phẩm toàn cầu đã được đăng sẽ không bị ảnh hưởng bởi thao tác cập nhật này. Phiên bản 202309

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

Request

Path

PropertiesTypeDescription
global_product_id RequiredstringID sản phẩm toàn cầu cần được cập nhật.

Header

PropertiesTypeDescription
content-type RequiredstringLoại cho phép: application/json
x-tts-access-token RequiredstringGiá trị access_token của seller từ Get Access Token, khi user_type = 0. Làm theo hướng dẫn này để lấy access_token của seller.

Query

PropertiesTypeDescription
app_key RequiredstringMỗi app sẽ có một key duy nhất. Vui lòng sử dụng key cụ thể được gán cho app của bạn.
sign RequiredstringChữ ký được tạo bởi thuật toán gen. Khi bạn gửi các yêu cầu API tới TTS, bạn phải ký chúng để TTS có thể nhận dạng người gửi.
timestamp RequiredintUnix timestamp GMT (UTC+00:00). Timestamp này được sử dụng trên tất cả các yêu cầu API. Nhà phát triển có thể dùng giá trị này để chuyển đổi sang giờ địa phương.

Body

PropertiesTypeDescription
global_skus Required[]objectDanh sách các global SKU cần được cập nhật.

Example

CurlGoNode.jsJavaEnable word wrap

Response Parameters

PropertiesTypeDescription
codeintMã trạng thái thành công hoặc thất bại được trả về trong phản hồi API.
messagestringThông báo thành công hoặc thất bại được trả về trong phản hồi API. Lý do thất bại sẽ được mô tả trong thông báo.
request_idstringNhật ký yêu cầu
dataobjectThông tin trả về cụ thể

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. |

Nội dung này có hữu ích không?Hữu ích

Không hữu ích

PreviousNext