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

Authorization via App Store

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 Authorization via App Store

Important: Authorizing via the Seller Center App Store only applies to public apps. Public apps must meet specific criteria and pass TikTok Shop's app review process. For more information on developing a public app, please visit our app development overview.

#

§2 App installation authorization

Step 1 — Open the App Store. Before the seller begins, your app must already be a reviewed public app with a valid Redirect URL and the required scopes enabled in Partner Center. In Seller Center, the seller opens the left-hand menu and goes to Growth > App store, where they see the full list of apps available to install and authorize: Image Step 2 — Start installation. The seller locates your app and clicks to install it, then is prompted to review the app and the permissions (scopes) it requests: Image Step 3 — Confirm and authorize. After the seller fills in the required information and confirms the requested permissions, they reach the authorization step and click Authorize to grant your app access to their shop: Image Step 4 — Land on your Redirect URL and sign in to your app. Once the seller authorizes, TikTok Shop redirects them to your configured Redirect URL with a short-lived authorization code appended as a query parameter (for example {your_redirect_url}?code={auth_code}). Here "log in to your app" means the seller signs in to your application (the developer-built product), not to TikTok — this lets your app bind the authorization to the seller account in your own system and finish onboarding: Image

#

§3 After the redirect: exchange the code for tokens

After the redirect: exchange the code for tokens

The authorization code in the Redirect URL is short-lived and single-use. On your server, read the code query parameter and exchange it for an access_token and a refresh_token by calling the Get Access Token API (GET https://auth.tiktok-shops.com/api/v2/token/get) with grant_type=authorized_code, following the standard OAuth authorization-code flow. Store the tokens against the seller account in your app, and use the access_token to call the authorized Shop APIs. Refresh the token with the refresh_token (via GET https://auth.tiktok-shops.com/api/v2/token/refresh with grant_type=refresh_token) before it expires. Related: This Seller Center App Store path is the same authorization described in the seller authorization guide under "Authorization from seller app store". That guide covers the seller-facing walkthrough; this page focuses on the developer side of installing and authorizing a public app.

#