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

Update 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 What this page covers

Use this page when you have already integrated a TikTok Shop SDK and need to refresh it because your app, API access scopes, API versions, or the SDK framework has changed. For the first-time SDK download flow, go to Download SDK. To reduce duplicated instructions, keep the split as follows:

PageUse it for
Download SDKFind the SDK download page, select a language, and download the SDK for first-time integration.
Update SDKUnderstand when a newer SDK appears, how to trigger an update check, what compatibility means, and how to migrate your existing project.
#

§2 When an SDK update is generated

The SDK package shown for your app can change when any of the following changes apply to your effective app:

  • API access scopes are added to or removed from your app.
  • APIs are added, removed, upgraded, or sunset within your app's API access scope collection.
  • The SDK framework is upgraded.
  • Supported language versions are upgraded.

TikTok Shop sends SDK update notifications through TikTok Shop Message Center. Image: TikTok Shop Message Center SDK update notification

#

§3 Find the update entry

To check for an updated SDK, open the same SDK download page you used for the original SDK:

  1. Go to Partner Center.
  2. Open the console page for the app whose SDK you want to update.
  3. Open the SDK download page described in Download SDK.
  4. Check the SDK generation time, SDK version, supported language, and available API scope/API set.
  5. If you need the latest generated package, download the SDK again from this page.

The check for updates button is on the SDK download page. Use it when you have just changed scopes, app configuration, API access, or language requirements and do not want to wait for the next scheduled SDK generation. Image: Check for updates button on the SDK download page

#

§4 Daily generation and manual check

SDKs are generated on a daily basis. The manual check for updates button requests an earlier refresh for the app and language shown on the download page. After clicking check for updates:

  • Wait for the SDK page to show an updated generation time, package version, or download package.
  • If there are no effective changes to scopes, API access, API versions, SDK framework, or supported language versions, the generated SDK may stay the same.
  • If generation is still in progress, refresh the SDK download page later or check Message Center for update notifications.
  • The version or generated time shown on the download page is the source of truth for the package you should download.
#

§5 Compatibility and API retirement

TikTok Shop aims to keep new SDK versions backward compatible, but compatibility depends on the API versions and scopes your app uses. Use the following rules when assessing an SDK update:

Change typeWhat to expectWhat you should do
Non-breaking SDK or API changeExisting SDK calls usually continue to work. New methods or fields may be added.Update the SDK, run build/tests, and smoke test critical flows.
New API version with breaking changesBreaking API changes are introduced through a new API version. Older versions may remain available for a limited period.Read the API reference and API versioning notes before changing your code to a newer API version.
API version retirementA prior API version remains available for at least 2 months after a new version is released. Retirement is announced in the changelog at least 2 months before permanent retirement.Plan migration before the retirement date. If you call a retired or invalid API version, the API can return 36009014 with a message that the version name is invalid.
Scope or app access changeSDK methods can appear or disappear based on the effective app scope/API set.Confirm your app scopes, update seller authorization if new scopes require reauthorization, then download the regenerated SDK.

Before updating production traffic, review:

  • Changelog for release, breaking change, and retirement notices.
  • API versioning for version naming, selection, and retirement behavior.
  • The API reference page for each endpoint you call, including the version dropdown and migration notes.
#

§6 Migration steps

Follow these steps whenever you download a newer SDK package:

  1. Review the SDK download page and changelog. Confirm what changed: scope set, API version, SDK framework, or language support.
  2. Download the SDK package for the same language used by your project.
  3. Create a separate branch and replace the generated SDK folder, local module, or package in that branch.
  4. Update dependency references to the new SDK package or local module path.
  5. Reinstall or rebuild dependencies for your language.
  6. Compile the project and fix import, package, class, or method changes.
  7. Run unit tests and integration tests for the API domains your app uses.
  8. Smoke test authorization, token refresh, request signing, and one core API call per updated API domain.
  9. Deploy gradually and monitor API errors, especially invalid version, permission, scope, and signature errors.
#

§7 Language-specific update notes

LanguageTypical update action
JavaReplace the generated SDK module or JAR, update the dependency version or local path, then run mvn clean test, mvn install, or your Gradle build command.
GoReplace the generated SDK module, update the module path or version if needed, then run go mod tidy, go test ./..., and go build ./....
Node.jsReplace the generated SDK folder or package, keep your application code and config files, then run npm install, yarn install, or pnpm install, followed by your TypeScript build and tests.

If your language-specific integration guide still shows a placeholder version such as 1.0.0, do not assume it is the latest SDK version. Use the version or generated timestamp shown on the SDK download page for your app.

#

§8 Scope and authorization checks

An SDK update does not automatically grant new API permissions. If the update includes new scopes or APIs:

  • Confirm the app has the required API access scopes in Partner Center.
  • If new seller permissions are required, ask sellers to authorize or reauthorize the app as needed.
  • Confirm that the regenerated SDK contains the API methods you expect.
  • Test with a development shop or sandbox flow before using the updated SDK in production.
#