# How to register an OAuth app to connect to the Tiktok-shop API

Apideck enables you to build a native integration with Tiktok-shop. This guide explains how to configure the Tiktok connector.

## Before you start, you'll need Tiktok-shop partner account

To create your Tiktok shop Partner account, follow the steps mentioned below:

1. Navigate to [Tiktok-shop](https://partner.tiktokshop.com/account/sign-up)
2. Sign up on the portal by providing the details mentioned there.
3. When sign up is complete, login to the partner account and follow the [doc](https://partner.tiktokshop.com/docv2/page/64f1993d9495ef0281851694) for onboarding as a developer. Make sure to register as an APP developer.
4. After registering as a developer, navigate to the `App & Service` section from the left menu of the partner account.

![App & Service](https://res.cloudinary.com/apideck/image/upload/v1724413201/docs/connectors/tiktok/apideck-tiktok-create-app.png)

5. There will be an option to choose between `Custom App` and `Public App`. It is recommended to select `Public App`, but you can also choose `Custom App` and convert it to `Public App` later if needed.

![App Type](https://res.cloudinary.com/apideck/image/upload/v1724414807/docs/connectors/tiktok/apideck-tiktok-app-details.png)

6. Make sure to `Enable API` and keep `https://unify.apideck.com/vault/callback` as the redirect URL.

![App Details](https://res.cloudinary.com/apideck/image/upload/v1724415115/docs/connectors/tiktok/apideck-tiktok-redirect-url.png)

7. Click on `Create App` button after filling out the details.

8. After creating the app, the page will be redirected to the app details page where you can find the `App Key`, `App Secret` and `Service Id`.

![App Details](https://res.cloudinary.com/apideck/image/upload/v1724416514/docs/connectors/tiktok/apideck-tiktok-app-key-secret.png)

9. Scroll below the credentials section then there will be `Basic Info` section. Click on the `Manage API` button.

10. Enable the following APIs using search bar:

- Shop Authorized Information
- Product Basic
- Order Information

11. Add the `App Key`, `App Secret` and `Service Id` to the vault.

## How to retrieve customer details, if they are hidden in the order response

1. Go to your [TikTok Shop seller center](https://seller-us.tiktok.com/homepage)
2. On the left menu, click on `Orders` -> `Shipping Templates`. Create a shipping template.
3. Go to `Orders` -> `Shipping Options` and select `Seller Shipping`.

![Seller Shipping](https://res.cloudinary.com/apideck/image/upload/v1725347489/docs/connectors/tiktok/apideck-tiktok-seller-shipping.png)

4. Orders after the updated settings will have customer details in the response.
