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

Overview

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 Widget overview

TikTok Shop widgets are frontend components provided through the Widget SDK. A widget combines TikTok Shop-hosted user interface and platform capabilities for a specific seller workflow, such as warehouse settings, shipping template setup, product optimization, or order fulfillment. Widgets do not replace TikTok Shop Open APIs. They are useful when you want to embed a TikTok Shop-managed UI into your app, while still keeping authorization, token exchange, and integration control in your own backend.

#

§2 API vs widget

AreaTikTok Shop Open APITikTok Shop Widget
Integration modelBackend-to-backend REST API integration.Frontend SDK integration with TikTok Shop-hosted UI.
UI ownershipYou design and maintain the seller-facing UI in your app.TikTok Shop provides the widget UI for the supported workflow.
Backend workRequired for API signing, access token storage, retries, data mapping, and error handling.Still required for authorization, access token storage, widget token generation, and backend security.
Frontend workOptional, depending on your own product UI.Required. Your frontend initializes the SDK, loads the widget, and passes a getToken callback.
FlexibilityHighest flexibility because you own the full user experience.Faster to integrate for supported scenarios, but the widget UI itself is not customizable.
Best forFull custom workflows, backend automation, and data sync.Embedding supported TikTok Shop workflows with lower UI build effort.

Visual reference from the source guide: Image

#

§3 Benefits

Widgets can help developers:

  • reduce frontend build effort for supported seller workflows;
  • provide a TikTok Shop-consistent workflow inside a third-party app;
  • reduce errors caused by missing seller-side setup, such as warehouse or shipping template configuration;
  • let sellers complete selected operational steps without switching back to Seller Center.
#

§4 Integration flow

Use this flow when integrating a widget:

StepWhat to doMain entry or owner
1. Browse widgetsReview available widget options and read the detail page for each widget.Partner Center Console > Development Kits > Widget
2. Confirm availabilityConfirm that the widget supports your app type, seller market, seller type, and use case.Widget detail page and Partner Center UI
3. Configure widgetSelect the app and configure widget settings.Development Kits > Widget > Configure, or the app detail page
4. Allowlist domainsAdd the root frontend domains where the widget will be embedded.Widget configuration page
5. Build token flowUse a seller access_token on your backend to call Get Widget Token, then return the short-lived widget token to the frontend.Your backend and Get Widget Token
6. Initialize SDKPass the widget config and getToken callback to the Widget SDK.Widget SDK user guide
7. Test and launchTest the widget with the correct app key, shop, market, domain, and widget name before release.Partner Center, your staging environment, and support if needed

Visual reference from the source guide: Image

#

§5 Token flow

The frontend must not call TikTok Shop Open APIs directly. Use this token chain:

StepToken or callDescription
1Seller authorizationThe seller authorizes your app and your backend obtains a seller access_token.
2GET /authorization/202401/widget_tokenYour backend calls Get Widget Token with the seller access_token in the x-tts-access-token header.
3widget_tokenTikTok Shop returns a short-lived widget token, usually valid for about 5 minutes.
4SDK getToken callbackYour frontend calls your backend token endpoint and returns { token, expire_at } to the Widget SDK.

Keep the App Secret, signing logic, and seller access_token on your backend. Only the short-lived widget token should be handed to the frontend SDK.

#

§6 Before you begin

Before integrating a widget, confirm:

  • the app has been created in Partner Center;
  • the seller has authorized the app and the app has the required scopes;
  • the widget is enabled or available for your app and use case;
  • your frontend domain is ready for widget allowlisting;
  • your backend can generate signed TikTok Shop Open API requests;
  • your frontend can install and initialize the Widget SDK package.
#

§7 Step 1: Browse widget options

Use Partner Center Console > Development Kits > Widget to browse available widgets. If an older screenshot uses Development kits > Widget, treat it as the same Widget entry under Development Kits. For each widget, click Learn more or open the widget detail page to check the latest description, prerequisites, market availability, and integration guide.

ScreenshotWhat it showsHow to use it
Widget tab entryThe Development Kits > Widget tab where available widgets are listed.Open this page to browse widget options and compare scenarios.
Widget detail entryThe widget card or detail entry with a learn-more action.Click the detail entry to review widget prerequisites and integration instructions.

Image Image

#

§8 Step 2: Configure widget settings

In Development Kits > Widget, check the app list and whether widget settings are enabled for each app. Click Configure for the target app to open the app details or widget configuration page. You can also start widget pre-configuration from the app detail page when creating or editing an app.

ScreenshotWhat it showsHow to use it
App list and widget statusA list of apps and whether each app has enabled widgets.Select the target app and click Configure.
Configure actionThe configure button or entry point for widget settings.Use this button to jump to the app detail or widget configuration page.
App detail widget settingWidget pre-setting configuration on the app detail page.Use this when you are creating or editing the app and need to configure widget options.

Image Image Image

#

§9 Step 3: Configure domain allowlist

Add the frontend root domain where your app will embed the widget. Rules:

  • Use your own production or staging frontend domain. Do not use placeholder domains from examples.
  • Include the scheme and host, for example https://app.example.com.
  • Do not include paths such as /settings/widgets.
  • Configure every frontend root domain that will load the widget.
  • The source guide states that up to 10 URLs can be added. If Partner Center shows a different limit, follow the live UI.
ScreenshotWhat it showsHow to use it
Domain allowlist pageWidget domain URL configuration.Add the root frontend domains that will host the widget and save the configuration.

Image

#

§10 Step 4: Integrate and test

After widget configuration is complete:

  1. Follow the widget-specific integration guide.
  2. Install the Widget SDK package.
  3. Implement a backend token endpoint that calls Get Widget Token.
  4. Initialize the SDK with app key, shop ID, seller region, widget name, and getToken.
  5. Test in a staging environment whose domain is already allowlisted.
  6. Verify that browser errors are not caused by domain mismatch, expired widget token, app key mismatch, shop mismatch, or region mismatch.
#

§11 Widget scenarios

Widget availability can change by market, app type, seller type, and TikTok Shop enablement status. Do not rely on a copied market list such as "US" or "US and UK" as the source of truth. Confirm the current market availability in Development Kits > Widget, the widget detail page, or the integration material provided for your app.

WidgetUse caseMarket availabilityIntegration guide
Warehouse widgetLets sellers enter or update delivery warehouse and return warehouse information, including contact, address, and sales range. This can reduce product listing failures caused by missing warehouse setup.Confirm in Partner Center.Warehouse widget guide
Shipping template widgetLets sellers set shipping templates required for seller-fulfilled listings, especially for 3PL workflows.Confirm in Partner Center.Shipping template widget guide
Product optimizer widgetProvides recommendations to improve product information quality and product performance after product sync.Confirm in Partner Center.Product optimizer widget guide
Orders by TikTok Shipping widgetHelps sellers using TikTok Shipping process orders, create labels, print labels, and process shipments from the third-party app.Confirm in Partner Center.Orders by TikTok Shipping widget guide
#

§12 Widget demo screenshots

The screenshots below are retained from the source guide as visual examples. Use the live widget detail page to confirm current UI and supported markets.

WidgetScreenshot
Warehouse widgetImage
Shipping template widgetImage
Product optimizer widgetImage Image
Orders by TikTok Shipping widgetImage
#