> For the complete documentation index, see [llms.txt](https://www.analytics-docs.laplacetec.com/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.analytics-docs.laplacetec.com/guide/en/startguide/connect/mall/shopline.md).

# Connect SHOPLINE

{% hint style="info" %}
To connect SHOPLINE, all you need is **one API key (Access Token)** issued in the SHOPLINE admin. Sales in foreign currencies can be converted to Korean won (KRW) with the **Data management** › **Exchange rates** setting, so you can view them alongside your other channels.
{% endhint %}

## How to connect SHOPLINE

1. Log in to the SHOPLINE admin and go to **Settings > Permission & Security**. Depending on the admin version, it may appear as **Staff Settings**. Click **Add** to add a new staff member.

   ![Adding a staff member in the SHOPLINE admin](https://616205588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqr1veGyUqCNwQBBmk3yt%2Fuploads%2Fgit-blob-cd1d204e8156f8dd048a26061cd2a8913587f1d3%2Fstartguide__connect__mall__shopline__01.png?alt=media)
2. Enter an email address to add the staff member, then select the **API Auth** tab. Check **Give Full Access** and scroll down.

   ![Granting API Auth permissions in the SHOPLINE admin](https://616205588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqr1veGyUqCNwQBBmk3yt%2Fuploads%2Fgit-blob-27b0761e698d34f11805ba322abb59d28dd92d70%2Fstartguide__connect__mall__shopline__02.png?alt=media)

{% hint style="warning" %}
If you don't see the **API Auth** tab, first ask your SHOPLINE representative for OpenAPI access.
{% endhint %}

3. Click **Generate** at the bottom of the screen to issue a token (Access Token), then copy it.

   ![Issuing an Access Token in the SHOPLINE admin](https://616205588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqr1veGyUqCNwQBBmk3yt%2Fuploads%2Fgit-blob-7edab0b99fcdf854d0c192ae13a445f81bc8507a%2Fstartguide__connect__mall__shopline__03.png?alt=media)

{% hint style="danger" %}

* Leave the expiry date (**Expired At**) blank. A blank expiry date means the token never expires. If you enter a date, data collection stops on that day.
* Leave the **IP whitelist** that appears after the token is issued blank. Adding entries blocks Laplace's collection servers.
  {% endhint %}

4. Back in Laplace, click **Data Connect** on the left rail, then type SHOPLINE in **Search connectors** in the navigation panel, or click **SHOPLINE Connect** in the **Connect To Global Shopping Mall** category.

   ![SHOPLINE connector screen](https://616205588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqr1veGyUqCNwQBBmk3yt%2Fuploads%2Fgit-blob-dc8ac8b024cad20902f1b8a0cffbd5e007529e18%2Fstartguide__connect__mall__shopline__04.png?alt=media)
5. On the **SHOPLINE Connect** screen, click **Data Connect** on the right of the header to open the connection window. **How to connect** at the top of the window shows which step you're on. In **Enter API key**, paste the copied token into **API key** and click **Connect SHOPLINE account**.

   ![Entering the API key in the SHOPLINE connection window](https://616205588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqr1veGyUqCNwQBBmk3yt%2Fuploads%2Fgit-blob-d487865fef8b2a0c32a4188dd76c718612901980%2Fstartguide__connect__mall__shopline__05.png?alt=media)

{% hint style="info" %}
If you haven't connected an account yet, the connector screen shows **What you can analyze once connected**. Click **View sample** to preview, with sample data, the screens you'll see after connecting. Also check **How to connect** and **Before you start** at the bottom of the screen for the connection steps and what to prepare.
{% endhint %}

* Connected accounts appear in the connection table on the connector screen. Use ⋯ (**More actions**) on the right of a row to **Refresh** or **Renew Authentication**.
* Laplace imports all data since the store opened, so **with a large amount of data it can take more than an hour**.

{% hint style="info" %}
**Why does the data sync take so long?**

👉 Laplace doesn't just import your SHOPLINE data: it also cleans the imported data and builds charts from it. The more data you have, the longer this can take.

💬 You can track progress in **Jobs & data status** on the right of the top bar, and we'll also email you when the sync is complete. Collection continues even if you close Laplace, so feel free to close it.
{% endhint %}

## When SHOPLINE can't be connected

{% hint style="warning" %}
**The API key is invalid or expired. Please reissue it in the SHOPLINE admin and try again.** appears.

* The token may have expired or been copied incorrectly.

👉 Issue a new key in the SHOPLINE admin and enter it. Leave the expiry date (Expired At) blank.
{% endhint %}

{% hint style="warning" %}
**This SHOPLINE store is already connected.** appears.

* The same store is already connected to this project.

👉 Check the existing connection in the connection table on the **SHOPLINE Connect** screen.
{% endhint %}

## Ask your dedicated manager

Having trouble connecting your SHOPLINE data?

Contact us through the inquiry page below. Your manager will help you.

> 💬 [Contact us on our website](https://www.analytics.laplacetec.com/contact)

**Email:** [**product@laplacetec.com**](mailto:product@laplacetec.com)
