stable本次发布有变化全部展示
来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 Path: /fbt/202603/goods/update_goods_sku_relation
#§2 Method: [POST]
#§3 Function Description
Bind or unbind TikTok Shop SKUs to FBT goods.
§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 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. |
§6 Request Body Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| operate_goods_sku_relation_list | []object | Y | List of goods and SKU relations to bind or unbind. | |
| ^tts_goods_id | string | Y | 334556677 | Identifier for goods generated by Fulfilled by TikTok system |
| ^tts_sku_ids | []string | Y | ["723456789012345678"] | Identifier for SKU generated by TikTok Shop system |
| operation_type | string | Y | BIND | Operation type for the goods-SKU relation. Possible values: BIND (bind the listed SKUs to the goods); UN_BIND (unbind the listed SKUs from the goods). |
§7 Request Sample
Query
https://open-api.tiktokglobalshop.com/fbt/202603/goods/update_goods_sku_relation?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c×tamp=1625484268&shop_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY
Body
{"operate_goods_sku_relation_list":[{"tts_goods_id":"334556677","tts_sku_ids":["723456789012345678"]}],"operation_type":"BIND"}
§8 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 | |
| ^operate_goods_sku_relation_info | object | operation result | |
| ^^operate_result_list | []object | operation result | |
| ^^^tts_goods_id | string | 9988776655 | Identifier for goods generated by Fulfilled by TikTok system |
| ^^^tts_sku_id | string | 723456789012345678 | Identifier for SKU generated by TikTok Shop system |
| ^^^is_success | bool | false | Whether the goods-SKU relation operation succeeded. |
| ^^^fail_reason | string | SKU does not exist. | Reason the goods-SKU relation operation failed. |
§9 Response Sample
{"code":0,"data":{"operate_goods_sku_relation_info":{"operate_result_list":[{"tts_goods_id":"9988776655","tts_sku_id":"723456789012345678","is_success":false,"fail_reason":"SKU does not exist."}]}},"message":"Success","request_id":"202203070749000101890810281E8C70B7"}
§10 Error Code
For common error codes, refer to How to call TikTok Shop APIs - Common Error Code
| Code | Message |
|---|
