TikTok Shop Setup Guide
Prerequisites
A TikTok Shop Partner Center account.
A developer application.
For more details, refer to the TikTok Shop API documentation.
Create a TikTok Shop App
- In TikTok Shop Partner Center, create your app.
- Set the Redirect URL to any HTTPS URL you own, for example
https://www.matia.io/. Matia doesn't require a specific redirect URL. The page only needs to receive the authorization code after you approve access. Nothing has to run on that page, and it's fine if it shows an error. - Copy the App Key and App Secret. You'll need them in the next steps.
Authorize Your Shop
-
Open the app's authorization link and approve access for your shop.
-
TikTok redirects your browser to an address like this:
https://www.matia.io/?code=ROW_abc123XYZ...&state=... -
Copy the
codevalue: everything aftercode=and before the next&(for example,ROW_abc123XYZ...). The code expires within a few minutes, so go straight to the next step.
Get a Refresh Token
-
Paste this URL into your browser, replacing the three placeholders with your App Key, App Secret, and the code from the previous step:
https://auth.tiktok-shops.com/api/v2/token/get?app_key=<APP_KEY>&app_secret=<APP_SECRET>&auth_code=<CODE>&grant_type=authorized_code -
The response is JSON. Copy the value of
refresh_token, notaccess_token.
Setup Guide
- Enter your App Key for the connector.
- Enter your App Secret for the connector.
- Enter your Refresh Token for the connector.
- Enter a Name for the connector.
- (Optional) Enter a Description for the connector.
- Select the Owner of the connector.
- (Optional) Verify that your TikTok account is successfully connected by clicking on Test Connection.
- Click Connect.
Matia refreshes the token automatically after that, so you only need to do this once.