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

Download SDK

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 Overview

Use this page when you need to download a TikTok Shop Open API SDK for the first time. TikTok Shop SDK packages are generated from the effective apps and API access scopes available to your Partner Center account. The SDK package can differ by app, language, API version, and scope set. Always confirm the app list, scope list, language, SDK version, and generation time on the SDK download page before adding the SDK to your project.

#

§2 Before you download

Follow this sequence for a first-time integration:

StepRequired before download?Required before making SDK API calls?What to do
Create a TikTok Shop appYesYesCreate the app and configure basic app information. See Create your App or Create a TikTok Shop app OAuth client.
Configure API scopesYes, if the SDK should include those API domainsYesIn App & Service > Manage > Manage API, enable or apply for the API scopes required by your integration.
Download SDKYesYesDownload the generated SDK package for your selected language from the SDK download page.
Create a test seller account or use an authorized sellerNoYesFor test calls, create a test seller account or use an eligible seller account. See Create a test seller account.
Obtain an access tokenNoYesComplete seller authorization and exchange the authorization code for an access_token. See Generate a test access token.

The difference is intentional: app creation and scope configuration are required to generate a useful SDK package; a test seller account and access token are required when you actually run SDK calls that access seller or shop data.

#

§3 SDK download entry

Open the SDK download page from Partner Center:

Entry typePath or URL
Partner Center pathPartner Center Console > Development Kits > API SDK or the equivalent SDK download entry shown in your Partner Center navigation.
Direct URLhttps://partner.tiktokshop.com/openlearn/api-sdk

If your Partner Center UI uses a slightly different label, search for API SDK or SDK under Development Kits. Avoid mixing this entry with App & Service > Manage API, which is used to configure API scopes rather than download SDK packages.

#

§4 Download steps

  1. Sign in to Partner Center with the developer account that owns or manages the app.
  2. Open Development Kits > API SDK.
  3. Review the effective apps shown on the page.
  4. Review the combined API access scopes included in the generated SDK.
  5. Select the SDK language you plan to integrate, such as Java, Go, or Node.js if those options are available on the page.
  6. Check the SDK version and generation time shown for that language.
  7. Download the SDK package.
  8. Store the downloaded package version, generation time, app key, language, and scope set in your project release notes so future SDK updates are traceable.
#

§5 Screenshot reference

The screenshot below is retained from the source guide. Use it together with the text steps above.

ScreenshotWhat to look forAction
SDK download pageEffective apps, combined API access scopes, language selector or language tabs, SDK version/generation time, and download button.Confirm the SDK includes the APIs and scopes you need, then download the package for your project language.

Image

#

§6 Language and version selection

The SDK download page is the source of truth for the currently available SDK languages and package versions. The language-specific integration guides currently cover:

LanguageMinimum environment from the integration guideVersion guidance
JavaJava 1.8+; Maven 3.8.3+ or Gradle 7.2+Replace placeholder versions such as 1.0.0 with the SDK version shown on the download page.
GoGo 1.18+Use the module path and version generated in the downloaded SDK package.
Node.jsUse a supported Node.js LTS release for new integrations.Use the generated package or folder from the download page. Do not assume examples with placeholder versions are the latest package.

There may not be a single global "latest SDK version" for all developers. SDK packages are generated based on your effective app, language, API scopes, and API versions. If the SDK page shows a version number or generation timestamp, use that value for your project records.

#

§7 Scope coverage

The SDK includes APIs from the combined API access scopes of your effective apps. Before downloading, confirm that the scopes shown on the page match the APIs your integration needs.

Scope typeMeaningWhat to check
Public API scopeA standard API scope available to eligible developers after app setup and seller authorization.Enable or apply for it in App & Service > Manage > Manage API, then confirm it appears in the SDK scope list.
Private API scopeA restricted scope granted only after TikTok Shop approval, invitation, market/category enablement, or partner-specific access. It may not be visible to all developers.If your integration requires a private scope, follow the application path shown in Partner Center or contact your Partner Center support/partner manager. After approval, confirm the private scope appears in the effective scope list before downloading the SDK.

Adding a new scope after the SDK is downloaded does not update your existing local SDK automatically. Confirm the new scope is approved, ask sellers to reauthorize if the new permission requires seller consent, then download the regenerated SDK.

#

§8 Download vs update

This page covers first-time SDK download. Use Update SDK when you already have an SDK integrated and need to refresh it.

PageUse it for
Download SDKFind the SDK page, confirm effective apps and scopes, select a language, and download the SDK package for the first integration.
Update SDKUnderstand when SDKs are regenerated, when to click check for updates, how daily generation works, and how to migrate an existing project.
#

§9 Troubleshooting

SymptomLikely causeWhat to do
Expected API is missing from the SDKThe required API scope is not enabled or approved for the effective app.Check App & Service > Manage > Manage API and compare it with the SDK scope list.
Newly approved scope is not in the downloaded SDKThe SDK package has not been regenerated yet.Wait for daily generation or use check for updates on the SDK page if available.
Seller API call fails even though the SDK contains the methodThe seller has not authorized the required scope, or the token does not include it.Complete seller authorization or reauthorization and check granted_scopes in the token response.
Language version in the example does not match your packageThe example uses a placeholder or older version.Use the SDK version and package structure shown in the downloaded package.
#

§11 Prerequisites

Prerequisites

If you are a developer who has developed Apps for TikTok Shop, you can download TikTok Shop API SDK on the TikTok Shop Partner Center console. If you are a developer new to TikTok Shop, you must create a TikTok Shop App before downloading the SDK on the console.

#

§12 Download SDK

Download SDK

The SDK includes APIs of the combined collection of access scopes corresponding to your effective apps. The effective apps and combined access scopes, private API scopes included, are listed on the page. Confirm the API access scopes included in the SDK before downloading the SDK. Image

#