概要
SHOPLINE ストア (myshopline.com) を Admin REST API 経由で操作します: 注文、出荷と追跡、取引と返金、製品とバリアント、顧客、ロケーション、在庫レベル。プライベートアプリのアクセストークン。
ガイド付きセットアップ
SHOPLINE を Claude、ChatGPT、Copilot に 2 分で接続
AnythingMCP Cloud の無料トライアルを始め、ガイド付きセットアップで SHOPLINE を接続して、MCP URL を AI アシスタントに追加します。コードもサーバーの運用も不要です。
クレジットカード不要 · 7日間の試用 · セルフホストの選択肢あり
こう聞いてみよう
SHOPLINE のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要?cloud.anythingmcp.com に直接アクセスしてください。 サインインして、Connectors → SHOPLINE をクリックし、認証情報を貼り付け、MCP API キーを作成すれば完了です。Docker は不要、
git cloneも不要、ローカルサーバーも必要ありません。
SHOPLINE
SHOPLINE ストア (myshopline.com) を Admin REST API 経由で操作します: 注文、出荷と追跡、取引と返金、製品とバリアント、顧客、ロケーション、在庫レベル。プライベートアプリのアクセストークン。
セットアップ
セットアップには約 5 分かかります。
https://admin.myshopline.comで SHOPLINE Admin にログインし、Apps を開いてから Develop Apps (右上) を選択し、プライベートアプリを作成します。- ツールが必要とするアクセススコープを設定します:
read_orders,write_orders,read_products,write_products,read_customers,read_inventory,write_inventory,read_location,read_assigned_fulfillment_orders,write_assigned_fulfillment_orders(読み取りツールには読み取りスコープだけで十分です)。 - アプリの API 証明書 を開き、アクセストークン を
SHOPLINE_ACCESS_TOKENにコピーします。プライベートアプリのトークンは 3 年間有効で、そこで更新できます; アプリを削除するとトークンは無効になります。 - ストアハンドルを入力します。これは
<handle>.myshopline.comの最初の部分です。SHOPLINE_HANDLEに入力します。
開始する場所: shopline_list_orders を status で任意に指定し (出荷済みの注文を探すときは fulfillment_status を使用)、次に shopline_list_order_fulfillments を使用します。製品については shopline_list_products, shopline_get_product, shopline_list_product_variants を使用します。
注文: shopline_list_orders, shopline_count_orders, shopline_update_order (タグ、連絡先、メモ、配送先住所)、shopline_list_order_transactions, shopline_list_order_refunds。id は注文 ID で、name は顧客が見る注文番号です (1001 以上、オプションのプレフィックス付き)。キャンセルや返金は含まれていません。なぜなら、それらはお金を返すからです。
出荷: shopline_create_fulfillment は追跡番号付きで注文を出荷し、shopline_list_order_fulfillments は出荷をリストし、shopline_update_fulfillment_tracking は 1 つの出荷の追跡リストを置き換えます (すべてのエントリを送信し、残りはクリアされます)。
製品: shopline_list_products, shopline_get_product, shopline_count_products, shopline_update_product (ステータスがアクティブな場合は公開、ドラフトは非表示)、shopline_list_product_variants, shopline_update_variant (価格、比較価格、SKU、バーコード)。タグはリストとして入力され、カンマ区切りの文字列として返されます。製品はバリアントごとに最大 5 つのオプションを持つことができます。
顧客: shopline_list_customers, shopline_get_customer, shopline_search_customers, shopline_list_customer_orders。
在庫: 各バリアントには inventory_item_id があります。shopline_list_locations, shopline_get_inventory_items, shopline_get_inventory_levels を使用し、その後 shopline_set_inventory (絶対値) または shopline_adjust_inventory (デルタ) を使用します。
ページング: リストはカーソルを使用します。別のページがある場合、回答には _pagination.nextUrl が含まれます; 同じ制限でその page_info 値を渡します。最後のページでは _pagination は存在しません。
ID とフォーマット: ID は長い数字の文字列 (26 桁) です: 常にテキストとして渡してください。時間は ISO 8601 形式で、価格はストア通貨の小数文字列です。
レート制限: アプリとストアごとに 1 秒あたり 4 リクエスト、最大 40 件のキューを持つバーストが可能です; それを超えると SHOPLINE は 429 Too many request で応答します。応答は 8 MB に制限されているため、大きなストアでは fields と小さな制限を使用してください。
前提条件: SHOPLINE_HANDLE, SHOPLINE_ACCESS_TOKEN
コネクタをローカルにインストールする
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
http://localhost:3000/connectors/store を開き、SHOPLINE を選択し、前提条件に記載されている環境変数を貼り付けます。
利用可能なツール
| ツール | 機能 |
|---|---|
shopline_list_orders | 注文をリスト: id, name (注文番号、例: 1001), order_at, financial_status, fulfillment_status, status, currency, current_total_price… |
shopline_count_orders | フィルターに一致する注文の数をカウント (status, payment, shipment, dates): カウントで応答します。読み取り専用 |
shopline_update_order | 注文のタグ、購入者のメールまたは電話、商人のメモ (note_attributes) または配送先住所を変更します。指定されたフィールドのみが送信されます; タグ… |
shopline_list_order_fulfillments | 注文の出荷 (出荷) をリスト: id, status, tracking_company, tracking_number, tracking_url, line_items, created_at |
shopline_create_fulfillment | 追跡番号とキャリア付きで注文を出荷します (すべて、または指定されたラインアイテム)。notify_customer は配送メールを送信します。応答… |
shopline_update_fulfillment_tracking | 出荷の追跡情報を置き換えます。リストは保存されているものを置き換えます: 省略された追跡エントリは削除されます |
shopline_list_order_transactions | 注文の支払い取引をリスト: id, kind (販売、返金など), status, amount, currency, gateway, processed_at。読み取り専用 |
shopline_list_order_refunds | 注文の返金をリスト: id, created_at, note, refund_line_items, 取引と金額。読み取り専用 |
shopline_list_products | 製品をリスト: id, title, handle, status (アクティブ、ドラフト、アーカイブ), vendor, tags, product_category, created_at, updated_at, options と… |
shopline_get_product | 1 つの製品を読み取ります: title, body_html, status, vendor, tags, handle, options, images, media, variants と価格、sku、バーコード、重量… |
shopline_count_products | フィルターに一致する製品の数をカウント (status, collection, dates): カウントで応答します。読み取り専用 |
shopline_update_product | 製品を変更します: title, subtitle, description (body_html), status (アクティブは公開、ドラフトは非表示、アーカイブはアーカイブ)、vendor, tags… |
shopline_list_product_variants | 製品のバリアントをリスト: id, sku, barcode, price, compare_at_price, option1 から option5, weight, inventory_quantity, inventory_policy… |
shopline_update_variant | バリアントを変更します: price と compare_at_price (ストア通貨の小数文字列), sku, barcode, weight と weight_unit… |
shopline_list_customers | 顧客をリスト: id, email, phone, first_name, last_name, state, tags, orders_count, total_spent, accepts_marketing, addresses と… |
shopline_get_customer | 1 つの顧客を読み取ります: email, phone, names, state, tags, note, orders_count, total_spent, marketing consent と addresses |
shopline_search_customers | 名前、メール、電話、または住所テキスト (query_param) で顧客を検索するか、タグや orders_count (query) などの正確な基準で検索します。同じ… |
shopline_list_customer_orders | 1 人の顧客の注文をリストし、shopline_list_orders と同じ注文フィールドを持ちます。ページあたり最大 100 件 |
shopline_list_locations | 在庫ロケーション (倉庫と店舗) をリスト: id, name, address, active, それがデフォルトロケーションかどうか |
shopline_get_inventory_items | 在庫アイテムを読み取ります (バリアントごとに 1 つ): id, sku, tracked, cost, origin_country。inventory_item_id はすべてのバリアントにあります |
shopline_get_inventory_levels | 在庫アイテムとロケーションごとの利用可能な在庫を読み取ります: inventory_item_id, location_id, available, updated_at |
shopline_set_inventory | ロケーションの在庫アイテムの利用可能な在庫を絶対数に設定します (現在の数量を置き換えます) |
shopline_adjust_inventory | ロケーションの在庫アイテムの利用可能な在庫をデルタで変更します: 正の値は追加、負の値は削除 |
例文
- "今週、何件の SHOPLINE 注文が入り、未出荷のものは何件ですか?"
- "注文 #1052 の出荷に DHL 追跡番号 1234567890 を追加してください。"
- "主なロケーションに 5 ユニット未満のバリアントはどれですか?"
- "顧客 Anna Berg のすべての注文を表示してください。"
- "先月返金された注文はどれで、金額はいくらですか?"
次のステップ
このガイドは役に立ちましたか?