> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shopkits.co/llms.txt
> Use this file to discover all available pages before exploring further.

# 連接 SHOPLINE 商店

> Shopkits 連接 SHOPLINE 商店教學：在 SHOPLINE 後台建立 Open API Key、勾選所需權限，並在 Shopkits 網站貼上 API Key 完成商店連接，含解除連接與連接失效處理。

使用 SHOPLINE 的 API Key 將商店連接到 Shopkits 帳號，連接後可用於：

1. **出貨印單助手**：更穩定地取得 SHOPLINE 訂單。
2. **AI 助理連接（MCP）**：即將推出，讓您在 Claude、ChatGPT 等 AI 助理中查詢訂單與物流標籤，並進行標籤配對。

## 連接步驟

**1. 在 SHOPLINE 後台建立 API Key**

登入 SHOPLINE 商店後台，前往「設定」→「員工設定」，建立供 API 使用的管理員並授予 Open API 權限，再產生 API Key。

詳細操作請參考 SHOPLINE 官方文件 [How to get access\_token](https://open-api.docs.shoplineapp.com/docs/getting-started)。

請勾選以下權限：

| 權限類別 | 勾選項目 |
| :- | :- |
| Merchants | Show |
| Orders | Index、Show、Search、Show Label、Update Status、Execute Shipment |

![SHOPLINE Open API 權限設定：Merchants 勾選 Show](https://mintcdn.com/ryto/gNPbeGD_IbS7SErP/images/connect/shopline-api-permissions-merchants.png?fit=max\&auto=format\&n=gNPbeGD_IbS7SErP\&q=85\&s=75f4bcbb9ef045e357767fe00fcb8fea)

Merchants 權限設定

![SHOPLINE Open API 權限設定：Orders 勾選 Index、Show、Search、Show Label、Update Status、Execute Shipment](https://mintcdn.com/ryto/gNPbeGD_IbS7SErP/images/connect/shopline-api-permissions-orders.png?fit=max\&auto=format\&n=gNPbeGD_IbS7SErP\&q=85\&s=f41c47d7834962425e416a243dc38bcf)

Orders 權限設定

> [!WARNING]
>
> API Key 等同於商店的存取權限，請勿提供給他人，並於產生後立即複製保存。

**2. 開啟「連接商店」**

登入 [Shopkits 網站](https://shopkits.co)，點選右上角頭像，在「管理」區塊點選「連接商店」。

![Shopkits 網站頭像選單中的「連接商店」](https://mintcdn.com/ryto/gNPbeGD_IbS7SErP/images/connect/shopkits-connect-store-menu.png?fit=max\&auto=format\&n=gNPbeGD_IbS7SErP\&q=85\&s=c3ca1e63a94c4cfa13732ab7d2a7740a)

頭像選單：管理 → 連接商店

**3. 貼上 API Key**

在「新增商店」點選 **SHOPLINE**，貼上 API Key 後點選「連接商店」。

![Shopkits 連接 SHOPLINE 商店視窗](https://mintcdn.com/ryto/gNPbeGD_IbS7SErP/images/connect/shopkits-connect-store-dialog.png?fit=max\&auto=format\&n=gNPbeGD_IbS7SErP\&q=85\&s=c24381e97ea4d7cf8dafce8859d34bed)

貼上 SHOPLINE API Key

連接成功後，商店會出現在「已連接的商店」清單。

## 解除連接

在「已連接的商店」中點選該商店的「解除連接」並確認。如需再次使用，請重新連接。

## 連接失效

商店名稱下方顯示「連接失效」，代表 SHOPLINE 不再接受這個 API Key，例如 API Key 已到期、遭刪除或被取消權限。

![Shopkits 已連接的商店顯示「連接失效」](https://mintcdn.com/ryto/gNPbeGD_IbS7SErP/images/connect/shopkits-connect-store-invalid.png?fit=max\&auto=format\&n=gNPbeGD_IbS7SErP\&q=85\&s=c420bd0a82ae8c602d165c39d93d8252)

商店顯示「連接失效」

請在 SHOPLINE 後台重新產生 API Key，再依上述步驟 2、3 重新連接同一間商店，新的 API Key 將取代原有設定。

## 常見問題

> [accordion] 可以連接多間商店嗎？
>
> 可以。每間商店須使用各自的 API Key 連接，所有商店都會列在「已連接的商店」。

> [accordion] 為什麼連接時顯示失敗？
>
> 若顯示「無效的 API Key，請確認後再試一次」，請確認 API Key 完整無誤，且已勾選上述所有權限。若顯示「SHOPLINE 目前沒有回應，請稍後再試」，請於稍後重新嘗試。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.