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

Customer engagement

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 Customer engagement

Customer Engagement APIs let eligible apps create TikTok Shop IM engagement tasks, send task-based messages to eligible buyers, and read task performance.

#

§2 Before you start

Customer Engagement APIs are opened on an as-needed basis. Start with the self-service scope path, then use your TikTok Shop contact or support only when the scope is not available or the application needs manual review.

StepWhat to do
1. Prepare the appCreate or select the TikTok Shop app that will call Customer Engagement APIs. The app must already support shop authorization and token refresh.
2. Apply for scopesIn Partner Center > App & Service > select the app or service > Manage API, search for and apply for the Customer Engagement scope packages, such as Customer Engagement - Read and Customer Engagement - Write.
3. Reauthorize the sellerAfter new scopes are approved or enabled, ask the seller to authorize or reauthorize the app so the access token includes the new scopes.
4. Check shop eligibilityCall Get Feature Permissions for each shop. FUNDAMENTAL=true is required to use Customer Engagement APIs. CUSTOM_MSG=true is required before using custom-message tasks.
5. Contact TikTok Shop if blockedIf the Customer Engagement scope package is not visible, or if the scope application requires manual approval, provide your app key, target markets, integration path, expected message scenarios, expected send volume, and seller-facing UX screenshots to your TikTok Shop representative or support channel.
#

§3 Choose an integration path

There are two supported integration patterns. Keep the requirements separate, because Shopify Marketing App use cases are not required for a direct TikTok Shop integration.

AreaTikTok Shop direct integrationShopify Marketing App integration
Best fitApps that build their own TikTok Shop customer engagement UI and send messages directly through TikTok Shop APIs.Partners that already run a Shopify Marketing App and want sellers to manage TikTok Shop campaigns or automations inside Shopify.
Shop connectionRequired. Connect, manage, disconnect, and reauthorize TikTok Shop shops through the normal shop authorization lifecycle.Required. The Shopify app still needs TikTok Shop shop authorization before it can call TikTok Shop APIs.
Customer sourceUse TikTok Shop order APIs. buyer_email from Get Order Detail is the anonymized buyer email used by Customer Engagement APIs.Use Shopify customer or segment APIs when the seller manages audiences in Shopify, or use TikTok Shop order APIs when the app builds TikTok Shop audiences directly.
ContentUse TikTok Shop message templates, products, and coupons; optionally use custom messages if CUSTOM_MSG is authorized.Use Shopify campaign or automation UI, then create the corresponding TikTok Shop engagement task and send through TikTok Shop APIs.
Campaign and automation managementImplement in your own app if needed. Shopify-native campaign or automation use cases do not apply.Required if the seller manages campaigns or automations from Shopify. The Shopify workflow should create the corresponding TikTok Shop engagement task.
Performance monitoringRead TikTok Shop task performance and display it in your app.Read TikTok Shop task performance and display or sync it back to the Shopify marketing experience.
#

§4 Integration flow

  1. Apply for Customer Engagement API scopes and complete seller authorization.
  2. Call Get Feature Permissions to confirm the shop can use Customer Engagement features.
  3. Build the target customer list. For direct TikTok Shop integrations, retrieve buyer_email from Get Order Detail. When sending messages, pass the values as buyer_emails in Send Engagement Message.
  4. Retrieve templates from Get Message Templates, then choose eligible product and coupon cards based on the template rules.
  5. Create a task with Create Engagement Task, or use Create Custom Engagement Task when CUSTOM_MSG is authorized.
  6. Send messages through Send Engagement Message.
  7. Monitor delivery and conversion metrics with Get Task Performances.
#

§5 Shopify Marketing App flow

The following screenshots illustrate the Shopify Marketing App experience. Use them only for the Shopify path; they are not required screens for a direct TikTok Shop integration. Campaign creation example: sellers create or select a campaign in the Shopify Marketing App, choose TikTok Shop IM as the message channel, define the audience, and schedule the campaign. The integration should create the corresponding TikTok Shop engagement task after campaign setup. Image Automation example: sellers configure a Shopify automation with TikTok Shop customer behavior as the trigger or condition. When automation is activated, the integration should map the automation to a TikTok Shop engagement task and send messages through TikTok Shop APIs. Image

#

§6 TikTok Shop direct platform flow

The following screenshot illustrates a direct Customer Engagement Platform flow. In this path, the app owns the seller-facing customer segmentation, content editing, task creation, message sending, and performance display. Image

#

§7 Message sending limits

Treat these rules as implementation requirements, not as side notes in a use-case table.

RuleRequirement
Shop eligibilityCall GetFeaturePermissions before enabling the feature for a shop. FUNDAMENTAL is the prerequisite for Customer Engagement APIs. CUSTOM_MSG is required for custom-message tasks.
Recipient eligibilitySendEngagementMessage uses buyer_emails, which are anonymized buyer email values retrieved from TikTok Shop order APIs. You can only send messages to buyers who have placed at least one order with the shop in the past 365 days.
Frequency limitA buyer can receive one message per week from a specific shop and up to three messages per week across TikTok Shop. Additional messages can be rejected or discarded.
Task end timeEvery engagement task has a mandatory end_time. Once the task expires, related messages are rejected. Create a new task and link future messages to the new task.
DND periodIf a message is sent during a system Do Not Disturb period, it is suspended until the DND period ends.
Template rulesFollow product_card_rules and coupon_card_rules from GetMessageTemplates. Template rules determine how many product or coupon cards can be inserted.
Product cardsUse product IDs from Search Products. Custom-message tasks support up to four product cards.
Coupon cardsUse coupon IDs from Search Coupons or Get Coupon. For custom-message tasks, only one coupon card is supported, and the coupon must match the allowed coupon properties.
Performance dataTask performance data is delayed by two days, or T+2. Do not present it as real-time reporting.
IdempotencyCreateEngagementTask and CreateCustomEngagementTask require idempotency_key. Use a unique key, such as a v4 UUID, for each create request.
#

§8 Use case matrix

Use caseDirect TikTok Shop integrationShopify Marketing App integrationImplementation notes
SHOP-CONN-SINGLE, SHOP-CONN-MULTIRequiredRequiredConnect one platform store to one or more TikTok Shop shops, depending on the app model.
SHOP-DISCON-SINGLE, SHOP-MAN-MULTI, SHOP-MAN-WHOOKRequiredRequiredSupport disconnect, connection management, and authorization-expiration handling.
CSENG-CUSMAN-GETPERMSRequiredRequiredUse Get Feature Permissions.
CSENG-CUSMAN-GETNATIVERequiredOptionalUse buyer_email from Get Order Detail as the anonymized buyer email source.
CSENG-CUSMAN-GETSHOPIFYNot applicableRequired when audiences are managed in ShopifyUse the Shopify Customer API, or use TikTok Shop order APIs when the app builds TikTok Shop audiences directly.
CSENG-CUSMAN-SEGTNATIVERequired if the app offers segmentationOptionalSegment customers by TikTok Shop order behavior, such as purchase, cancellation, return, product purchased, order count, or spend.
CSENG-CUSTMAN-SEGSHOPIFYNot applicableRequired when using Shopify segmentsUse Shopify-native customer segmentation and retrieve segment members through customerSegmentMembers when the seller manages audiences in Shopify.
CSENG-CONTMAN-TMPLT, CSENG-CONTMAN-EDIT, CSENG-CONTMAN-PREVIEWRequiredRequiredRetrieve TikTok Shop message templates and provide an editing and preview experience.
CSENG-CONTMAN-PRODUCT, CSENG-CONTMAN-COUPONSRequired when product or coupon cards are supportedRequired when product or coupon cards are supportedUse Search Products, Search Coupons, and template card rules.
CSENG-ENGMSG-CREATE, CSENG-ENGMSG-CUSTOM, CSENG-ENGMSG-SEND, CSENG-ENGMSG-PREVIEWRequiredRequiredCreate a task, optionally create a custom-message task, preview content, then send by buyer_emails.
CSENG-ENGMSG-SHPAUTO, CSENG-ENGMSG-SHPCMPGN, CSENG-ENGMSG-ACTDACTNot applicable unless the app builds equivalent features itselfRequired for Shopify campaign or automation workflowsShopify activation/deactivation is Shopify-native, but TikTok Shop message sending still goes through Customer Engagement APIs.
CSENG-TASKPRF-DISPLAY, CSENG-TASKPRF-COMPARERequired for reportingRequired for reportingUse Get Task Performances. Remember the T+2 delay.
#

§9 API quick reference

APIMethod and pathUse it forScope
Get Feature PermissionsGET /customer_engagement/202502/permissionsCheck whether the shop can use Customer Engagement features.Customer Engagement - Read
Get Customer Tab VisibilityGET /customer_engagement/202501/customer_tab/visibilityCheck whether the Customer tab is visible for the shop.Customer Engagement - Read
Get Message TemplatesGET /customer_engagement/202412/message_templatesRetrieve predefined message templates and product or coupon card rules.Customer Engagement - Read
Create Engagement TaskPOST /customer_engagement/202412/engagement_tasksCreate a task based on a TikTok Shop predefined template.Customer Engagement - Write
Create Custom Engagement TaskPOST /customer_engagement/202502/engagement_tasks/customCreate a task with a custom message. Requires CUSTOM_MSG=true.Customer Engagement - Write
Send Engagement MessagePOST /customer_engagement/202412/messagesSend messages to one or more buyer_emails through an active task.Customer Engagement - Write
Get Task PerformancesPOST /customer_engagement/202412/performancesRetrieve task performance metrics, such as sent recipients, reads, orders, GMV, and claimed coupons.Customer Engagement - Read
Get Order DetailGET /order/202309/ordersRetrieve buyer_email, the anonymized buyer email used as the Customer Engagement recipient identifier.Order scopes
Search ProductsPOST /product/202502/products/searchRetrieve product IDs for product cards.Product scopes
Search CouponsPOST /promotion/202406/coupons/searchRetrieve coupon IDs and coupon properties for coupon cards.Promotion scopes
Get CouponGET /promotion/202406/coupons/{coupon_id}Retrieve details for one coupon.Promotion scopes
#

§10 Key field terminology

FieldWhere it appearsMeaning
buyer_emailOrder APIs, such as Get Order DetailThe anonymized buyer email returned by TikTok Shop. It is not a normal contact email for direct external emailing. For Customer Engagement, use it as the buyer identifier.
buyer_emailsSend Engagement Message request bodyThe list of anonymized buyer email values that should receive the message.
task_idReturned by task creation APIs and used by Send Engagement MessageThe engagement task that groups related messages and performance. The task must still be active.
template_idReturned by Get Message Templates and used by Create Engagement TaskThe TikTok Shop predefined message template selected for the task.
end_timeTask creation APIsUnix timestamp in seconds. After this time, the task cannot send more messages.
#