本ページでは、Shopifyに接続するための設定(接続情報)について説明します。
転送に関する設定については、転送元 - Shopifyを参照ください。
Shopify側で必要な作業
APIアクセストークンの取得
Shopify側でカスタムアプリを作成する必要があります。
以下でカスタムアプリの作成手順を説明します。
-
Shopifyの管理画面にログインします。
-
アプリ > アプリと販売チャネルの設定をクリックします。

-
アプリを開発をクリックします。
なお、本画面上にドメイン名が表示されているので、メモしてください。
ドメイン名は接続情報を作成する際に必要となります。

「アプリを開発」ボタンが表示されない場合
アプリを開発する権限を持っていない場合、ボタンが表示されません。
アプリ開発の権限を持っているユーザーアカウントを利用するか、Shopifyアカウントを管理するユーザーに権限の付与を依頼してください。
アプリ開発の権限について、詳しくはShopify公式ドキュメント - カスタムアプリのAPIスコープ権限を参照ください。
-
アプリを作成をクリックし、アプリを作成します。

-
Admin APIスコープを設定するをクリックし、必要となるスコープを追加して保存します。
ターゲットごとに必要となるスコープは異なります。詳しくは、後述のスコープの付与を参照ください。 -
アプリをインストールをクリックし、アプリをインストールします。

-
Admin APIのアクセストークンをメモします。

スコープの付与
ターゲットごとに必要となるスコープは異なります。
| 取得対象 | 必要となるスコープ | 補足 |
|---|---|---|
abandoned_checkouts |
read_orders |
|
collections |
read_products, read_publications, read_product_listings |
|
customers |
read_customers, read_orders |
|
disputes |
read_shopify_payments_disputes |
|
draft_orders |
read_draft_orders, read_payment_terms, read_customers, read_orders |
|
fulfillment_line_items |
read_orders |
|
fulfillment_orders |
read_assigned_fulfillment_orders |
|
fulfillments |
read_orders |
|
inventory_item_country_harmonized_system_codes |
read_inventory |
|
inventory_items |
read_inventory, read_products |
|
locations |
read_locations |
|
metafields |
read_orders, read_products, read_customers |
|
order_agreements |
read_orders |
|
order_line_items |
read_orders, read_products |
|
order_refunds |
read_orders |
|
order_risks |
read_orders |
|
order_transactions |
read_orders |
|
orders |
read_orders, read_customers, read_locations, read_payment_terms, read_shopify_payments_accounts |
StaffMemberのidを取得データに含める場合は、以下の条件を両方満たす必要があります。
|
product_variants |
read_products, read_shipping, read_locations |
|
products |
read_products, read_publications, read_product_listings |
|
refund_line_items |
read_orders |