stable本次发布有变化全部展示
来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 Path: /affiliate_seller/202512/sample_applications/deeplink
#§2 Method: [GET]
#§3 Function Description
Use this API to get a TikTok deeplink, use this deeplink to launch the TikTok app and land the user on the sample request page.
- The seller can encode the deeplink into an QR code and send it to a creator via email.
§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. |
| product_id | string | Y | 123456 | Product id |
| sku_id | string | Y | 123456 | Sku id |
| campaign_id | string | N | 3939495 | If the product belongs to a TAP campaign, a campaign_id is required. |
| only support campaign type : |
- MY_CAMPAIGNS
- SELLER_CAMPAIGNS | collaboration_id |string |N |710240393 |If the product belongs to a seller collaboration, a collaboration_id is required. | valid_days |int |N |14 |7 days by default. 14 days maximum. 1 day minimum. |
§6 Request Sample
Query
https://open-api.tiktokglobalshop.com/affiliate_seller/202512/sample_applications/deeplink?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c×tamp=1625484268&shop_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY&product_id=123456&sku_id=123456&campaign_id=3939495&collaboration_id=710240393&valid_days=14
§7 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 | |
| ^deeplink | string | snssdk1180://roma_redirect/?pia=1&app_key=aaaa&callback_dp_key=f3318dbad42e495eaa12f3b9bec5af92&enter_from=deeplink&product_id=1729504817131129797&roma_group_key=spark_page_seller_free_sample_apply&roma_page_key=p&sample_apply_source=1&sku_id=1729504817131195333&spark_page=seller_free_sample_apply&track_data=%7B%22is_from_selection_scenarios%22%3A%221%22%2C%22selection_channel%22%3A%22deeplink%22%7D | Use this deeplink to invoke TikTok: |
§8 Response Sample
{"code":0,"data":{"deeplink":"snssdk1180://roma_redirect/?_pia_=1\u0026app_key=aaaa\u0026callback_dp_key=f3318dbad42e495eaa12f3b9bec5af92\u0026enter_from=deeplink\u0026product_id=1729504817131129797\u0026roma_group_key=spark_page_seller_free_sample_apply\u0026roma_page_key=p\u0026sample_apply_source=1\u0026sku_id=1729504817131195333\u0026spark_page=seller_free_sample_apply\u0026track_data=%7B%22is_from_selection_scenarios%22%3A%221%22%2C%22selection_channel%22%3A%22deeplink%22%7D"},"message":"Success","request_id":"202203070749000101890810281E8C70B7"}
§9 Error Code
For common error codes, refer to How to call TikTok Shop APIs - Common Error Code
| Code | Message |
|---|
