Shopify GraphQL connection
The Shopify GraphQL connection enables you to link your Shopify store with Data Integration to access data such as products, orders, customers, and inventory.
Prerequisites
- An active Shopify store.
- Token-based access provided by Shopify through custom apps. To get started, you need an admin account and must enable custom app development. For more information, refer to custom apps.
Token authentication
This method is relevant for stores that you access using custom apps.
- Assign the necessary scopes to the app so that Data Integration can access and pull the required data. Refer to Shopify’s documentation on Admin API access tokens and scopes.
- Add the
read_locationsscope specifically to enable the Test Connection feature.
Authentication Types
The Shopify GraphQL connection supports two authentication types:
- Token: Uses a manually generated access token from a Shopify custom app.
- OAuth2: Authorizes the connection directly through your Shopify account via a secure token exchange.
Creating Shopify GraphQL connection
-
Navigate to the Data Integration Console.
-
From the left-hand menu, click Connections.
-
In the top-right corner, click + New Connection. A list of available sources appears.
-
In the search box, type Shopify GraphQL, and select it.
-
Enter a Connection Name.
-
Select your preferred Credentials Type:
Token uuthentication:
- Enter the Access Token generated in your Shopify custom app.
- Enter the Shop Name.
OAuth2 authentication:
- Click Connect with Shopify. You are redirected to Shopify to authorize the connection.
- Enter the Shop Name.
-
Click Test Connection and save the connection. If successful, the connection is available for use within Data Integration.