# Shopee

## Overview

You can create a Shopee Connector to read from your Shopee account API.\
The schema for this Source Connector is defined by the selected columns from the query.

## Prerequisites

Required information:

* Shopee App ID
* Shopee Secret
* GraphQL Query

## Creating a Shopee Source Connector

**Step 1:** After selecting **+ New Connector**, under the **System** prompt, click **Shopee**

<figure><img src="https://353417064-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYrsDW6vGBTygB1qqSE%2Fuploads%2FJXz8Se24QY8sZelfXyZO%2FScreen%20Shot%202022-10-31%20at%201.27.31%20PM.png?alt=media&#x26;token=22703669-82e3-401c-974c-12a0f5150fe8" alt=""><figcaption></figcaption></figure>

**Step 2:** Enter a **Connector Name**&#x20;

**Step 3:** Select **Source Connector**

### Steps 4 & 5: Authentication

#### **App ID & Secret**

**1:** To find the App ID, first Go to your Shopee Affiliate Homepage, click "Open API".

<figure><img src="https://353417064-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYrsDW6vGBTygB1qqSE%2Fuploads%2FfMhZQcshxvenCBxR2Mn6%2Fshopee-1.webp?alt=media&#x26;token=1b9cb4b4-806b-4a54-9288-21f694e7aeb7" alt=""><figcaption></figcaption></figure>

**2:** Copy your App ID and secret.

<figure><img src="https://353417064-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYrsDW6vGBTygB1qqSE%2Fuploads%2FNkZKPTupRGsKrivDCa8L%2Fshopee-2.webp?alt=media&#x26;token=b4fc1a0e-e7b0-49b2-aeef-e6edd20099f6" alt=""><figcaption></figcaption></figure>

### Step 6: GraphQL Query

Provide a query to access the data through the Shopee API.&#x20;

{% hint style="info" %}
**Note:** the schema for this source Connector is defined by the selected columns from the query.&#x20;
{% endhint %}

## Advanced Options

**Header Normalization**

The source file may have characters at the start or end that includes spaces, tabs, carriage returns and line endings.  You can choose to keep all characters from the source or remove all whitespace.  **Select one of the options:**

1. **Don't normalize headers. Use headers exactly as they appear in the source:** If this option is selected, we will retain all characters from the source file.
2. **Remove extra whitespace and other common untypable characters from headers:** If this option is selected, we remove all whitespace (spaces, tabs, carriage returns, line endings) at start/end.
