TikTok Shop icon

TikTok Shop

Handle TikTok Shop token exchanges, seller insights, order management, finance reconciliation, product catalog queries, and logistics lookups

Overview

This node handles TikTok Shop API interactions, focusing on token management for authentication. Specifically, the 'Access Token' operation exchanges an authorization code for access and refresh tokens or refreshes the access token using an existing refresh token. This is essential for authenticating subsequent API requests to TikTok Shop services such as seller insights, product management, orders, finances, logistics, and fulfillments. Practical use cases include automating token refresh workflows and securely managing API access tokens for TikTok Shop integrations.

Use Case Examples

  1. Automate the exchange of an OAuth authorization code for access and refresh tokens to enable API access.
  2. Refresh an expired access token using a stored refresh token to maintain uninterrupted API connectivity.

Properties

Name Meaning
Group Selects the API group to interact with; for this operation, it is 'token'.
Operation Specifies the token operation to perform; for this resource, 'Access Token' exchanges an authorization code for tokens.
App Key The application key required for authenticating with TikTok Shop API.
App Secret The application secret key used alongside the app key for authentication.
Proxy Optional proxy URL to route the API requests through, overriding credential settings.
Refresh Token The refresh token used to obtain a new access token during the access token operation.

Output

JSON

  • json
    • access_token - The access token obtained from the token exchange, used for authenticating API requests.
    • refresh_token - The refresh token obtained or used to refresh the access token.
    • expires_in - The duration in seconds before the access token expires.

Dependencies

  • Requires TikTok Shop API credentials: App Key and App Secret.

Troubleshooting

  • Ensure that the App Key and App Secret are correctly provided and not empty; missing these will cause errors.
  • The refresh token must be provided and valid when performing the access token operation; otherwise, an error is thrown.
  • Authorization code is required and must be valid when performing the refresh token operation.
  • Proxy URL, if used, must be correctly formatted; invalid proxy settings may cause connection failures.

Links

Discussion