来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 Path: /product/202309/products/{product_id}/prices/update
#§2 Method: [POST]
#§3 Function Description
Update the price of multiple SKUs belonging to a product in the ACTIVATE status and not included in any ongoing promotions.
Note: The data response field is always empty as there is no additional response data.
§4 Common Parameters
For common parameters, refer to How to call TikTok Shop APIs - Common Parameters
| Properties | Location | Type | Require | Sample | Properties description |
|---|---|---|---|---|---|
| shop_cipher | query | string | Y | GCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3 | Use this property to pass shop information in requesting the API. Failure in passing the correct value when requesting the API for cross-border shops will return incorrect response. |
| Get by API Get Authorization Shop | |||||
| content-type | header | string | Y | application/json | Allowed type: application/json |
§5 Request Path Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| product_id | string | Y | 1729592969712207008 | The product ID generated by TikTok Shop. |
§6 Request Query Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| app_key | string | Y | 38abcd | Every single app will have a unique key. Please use the specific key assigned to your app. |
| sign | string | Y | 5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c | Signature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders. |
| timestamp | int | Y | 1623812664 | Unix 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 |
|---|---|---|---|---|
| skus | []object | Y | A list of Stock Keeping Units (SKUs) used to identify distinct variants of the product. | |
| ^id | string | Y | 1729592969712207013 | The SKU ID generated by TikTok Shop. One product can contain multiple SKU IDs. |
Note:
- The SKU ID must belong to a product with the
ACTIVATEstatus. - If you are updating multiple SKUs, all the SKU IDs must belong to the same product. | ^price |object |Y | |SKU pricing information. | ^^amount |string |N |1.32 |Local sellers/Intra-EU sellers The SKU's local display price shown on the product page before any discounts. Refer to Product Pricing for the allowed price ranges in each market.
Global sellers The SKU's local pre-tax price. This excludes any applicable charges such as cross-border shipping costs, taxes, and other fees, and therefore does not appear on the product page. Refer to Product Pricing for the allowed price ranges in each market.
- Note: Not applicable for JP and US shops using China warehouses, please use
price.sale_priceinstead. | ^^currency |string |Y |USD |The currency. Possible values based on the region: - BRL: Brazil
- CZK: Czech Republic
- EUR: France, Germany, Ireland, Italy, Spain, Netherlands, Belgium, Austria, Greece, Portugal
- GBP: United Kingdom
- HUF: Hungary
- IDR: Indonesia
- JPY: Japan
- MXN: Mexico
- MYR: Malaysia
- PHP: Philippines
- PLN: Poland
- SGD: Singapore
- THB: Thailand
- USD: United States
- VND: Vietnam | ^^sale_price |string |N |1.32 |Global sellers The SKU's local display price shown on the product page before any discounts. Refer to Product Pricing for the allowed price ranges in each market.
Note:
- Applicable only for global sellers.
- Required for the JP and US shops using China warehouses, optional for others.
- This is the definitive final price shown on the product page, all other prices will be ignored. | ^list_price |object |N | |The SKU's list price information. This is equivalent to the manufacturer's suggested retail price (MSRP), or the recommended retail price (RRP). Applicable only for the US market.
Note: This value may appear as the strikethrough price on the product page. However, whether the strikethrough price is shown and the amount shown are subject to the audit team's review and decision based on various pricing information. | ^^amount |string |Y |1 |The price amount. Valid range: [0.01, 7600] Note:
- The value must be equal to or greater than
skus.price.amount. Otherwise, it will be discarded. - If the value is verified to be legitimate by the audit team, it will be stored and returned in the Get Product API. | ^^currency |string |Y |USD |The currency. Possible values: USD | ^external_list_prices |[]object |N | |The SKU list price (e.g. MSRP, RRP) or original price information on external ecommerce platforms. Applicable only for selected sellers in the US market.
Note: This value may appear as the strikethrough price on the product page. However, whether the strikethrough price is shown and the amount shown are subject to the audit team's review and decision based on various pricing information. | ^^source |string |Y |SHOPIFY_COMPARE_AT_PRICE |The external ecommerce platform from which the price is sourced. Possible values:
- SHOPIFY_COMPARE_AT_PRICE: The compare_at_price in Shopify. | ^^amount |string |Y |1 |The price amount. Valid range: [0.01, 7600] | ^^currency |string |Y |USD |The currency. Possible values: USD |
§8 Request Sample
Query
https://open-api.tiktokglobalshop.com/product/202309/products/1729592969712207008/prices/update?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c×tamp=1625484268&shop_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY
Body
{"skus":[{"id":"1729592969712207013","price":{"amount":"1.32","currency":"USD","sale_price":"1.32"},"list_price":{"amount":"1","currency":"USD"},"external_list_prices":[{"source":"SHOPIFY_COMPARE_AT_PRICE","amount":"1","currency":"USD"}]}]}
§9 Response Parameters
| Properties | Type | Sample | Properties description |
|---|---|---|---|
| code | int | 0 | The success or failure status code returned in API response. |
| message | string | Success | The success or failure messages returned in API response. Reasons of failure will be described in the message. |
| request_id | string | 202203070749000101890810281E8C70B7 | Request log |
| data | object | Specific 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 |
|---|---|
| 12019022 | SKU must contain a valid warehouse. |
| 12019045 | price is locked |
| 12019059 | seller sku is invalid |
| 12019113 | product status is invalid |
| 12052012 | Incorrect price format |
| 12052023 | Category does not exist |
| 12052032 | The product does not exist |
| 12052038 | Product price locked due to ongoing promotion. |
| 12052048 | You cannot edit the specified product(s) as it isn't listed in your account or shop. |
| 12052073 | The product price is invalid |
| 12052084 | The provided currency is not available for this shop/region. |
| 12052092 | product sale price is invalid |
| 12052096 | Unable to update the price for SKUs with no warehouse. Assign a warehouse and try again. |
| 12052097 | The warehouse does not exist |
| 12052163 | The gift product are not allowed to be edited |
| 12052260 | The product ID does not exist |
| 12052308 | There's an ongoing appeal. If you wish to edit product details, please revoke the appeal first. |
| 12052371 | Auction product is bidding when it is not supported to change product info |
| 12052376 | list price not support |
| 12052383 | product list price exceed limit |
| 12052424 | Missing 'sale price' value |
| 12052531 | The warehouse is disabled. |
| 12052553 | Sku id duplicate |
| 12052557 | The SKU ID does not belong to the product. |
| 12052570 | product price exceed limit |
| 12052572 | the sale price is invalid |
| 12052700 | The seller is inactive. |
| 12052703 | Invalid seller tax number |
| 12052704 | seller id not exist |
| 12052861 | The price of combined SKU cannot exceed the sum of the prices of the sub-SKUs. |
| 12052881 | identity internal error |
| 36009003 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. |
| 12052901 | The product in its current status is not available for this operation. Change the product status and try again. |
| 12052902 | The SKU list is empty. Either omit the list entirely, or provide all required details. |
| 12052910 | Invalid input parameters. Refer to the API documentation for details. |
