快工助手跨境电商知识与商机助手

Get Open Collaboration Sample Rules

TikTok Shop 官方资料 · TikTok Shop Partner Center 开发者文档 · 适合开发者

stable本次发布有变化全部展示

来自 TikTok Shop 官方资料快照 ·

打开官方原文 ↗
  1. 当前资料结构化阅读页
  2. 固定快照已留存,可追溯
  3. 官方原文可核对
查看技术与溯源信息
平台 / profile
TikTok Shop / profile.tiktok.docs_api
语言
en-US
发布版本
cn-20260909-2
标签
zhuge/sourceplatform/tiktok_shopaudience/developercategory/api_doctopic/compliancetopic/developer

资料正文

§1 Path: /affiliate_seller/202410/open_collaborations/sample_rules

#

§2 Method: [GET]

#

§3 Function Description

Use this API to get the status and the details of the sample rules for products under an open collaboration. With this API, you can efficiently review the sample distribution criteria for products within the open collaboration context.


#

§4 Common Parameters

For common parameters, refer to How to call TikTok Shop APIs - Common Parameters

Properties Location Type Require Sample Properties description
shop_cipherquerystringYGCP_XF90igAAAABh00qsWgtvOiGFNqyubMt3Use 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-typeheaderstringYapplication/jsonAllowed type: application/json
#

§5 Request Query Parameters

Properties Type Require Sample Properties description
app_keystringY38abcdEvery single app will have a unique key. Please use the specific key assigned to your app.
signstringY5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8cSignature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders.
timestampintY1623812664Unix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time.
product_ids[]stringY172979,848746The product IDs to which the sample rules apply.
#

§6 Request Sample

Query

https://open-api.tiktokglobalshop.com/affiliate_seller/202410/open_collaborations/sample_rules?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c&timestamp=1625484268&shop_cipher=ROW_RHkDDABBAAB8tKAVoAqsMTjsQZFLyNfY&product_ids=172979,848746
#

§7 Response Parameters

Properties Type Sample Properties description
codeint0The success or failure status code returned in API response.
messagestringSuccessThe success or failure messages returned in API response. Reasons of failure will be described in the message.
request_idstring202203070749000101890810281E8C70B7Request log
dataobjectSpecific return information
^sample_rules[]objectSample rules
^^product_idstring123456The unique id of product.
^^sample_quotaint100The sample total quantity provided by seller which creators can apply for.
^^is_sample_time_unlimitedbooltrueWhether samples are timely unlimited for request:
  • If true, it means available all the time
  • If false, it means sample only available from begin_time to end_time. | ^^status |string |ONGOING |Free sample rule status:
  • NOT_STARTED. Not yet reached the specified begin_time.
  • ONGOING. The sample rule is effective and the collaboration is ongoing.
  • NO_LEFT_COUNT. sample_quantity_available is 0.
  • PLAN_EXCEPTION. The product commission collaboration status is abnormal
  • EXPIRED. Exceeded the end_time. | ^^available_quantity |int |50 |The quantity of remaining samples available for application. | ^^start_time |int |1728546888 |The start time of the period during which a creator can apply for samples. You must specify start_time and end_time together. | ^^end_time |int |1728546888 |The end time of the period during which a creator can apply for samples. | ^^thresholds |object | |The threshold criteria that a creator must meet to be eligible to apply for the sample. | ^^^minimum_follower_count |int |200 |The creator must have a follower count greater than this value to be eligible to request the sample. | ^^^minimum_gmv |int |1000 |The creator must have the GMV in the past 30 days greater than this value to be eligible to request the sample. | ^^^avg_ec_video_views |int |5 |The creator must have the average views of e-commerce videos in the past 30 days greater than this value to be eligible to request the sample. | ^^^category_ids |[]string |["601152"] |A list of product first-level category IDs. Use this to limit participating creators: for each creator, sort their GMV over the past 30 days by first-level product category. If the GMV of one of the categories is among the top three, the creator is eligible to participate in the event. No restriction by default. For example, if a creator's top three categories are [{Cellphone_ID}, {Furniture_ID}, {Food_ID}], and the value of tehis parameter is [{Food_ID}], the creator is qualified for open collaboration. | ^^^predicted_fulfillment_rank |string |ALL |The creators whose predicted rate of posting a shoppable video or LIVE after receiving a sample.
  • ALL. All creators regardless of the rate.
  • LOW. The creators whose rate is above or equal to low.
  • MEDIUM. The creators whose rate is above or equal to medium.
  • HIGH. The creators whose rate is high. |
#

§8 Response Sample

{"code":0,"data":{"sample_rules":[{"product_id":"123456","sample_quota":100,"is_sample_time_unlimited":true,"status":"ONGOING","available_quantity":50,"start_time":1728546888,"end_time":1728546888,"thresholds":{"minimum_follower_count":200,"minimum_gmv":1000,"avg_ec_video_views":5,"category_ids":["601152"],"predicted_fulfillment_rank":"ALL"}}]},"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
36009003Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support.
#