Shopify (GraphQL)
This connector captures data from Shopify's GraphQL Admin API into Estuary collections.
Supported data resources
The following data resources are supported through the Shopify API:
- Abandoned Checkouts
- Balance Transactions
- Custom Collections
- Custom Collection Metafields
- Customers
- Customer Metafields
- Disputes
- Fulfillment Orders
- Fulfillments
- Inventory Items
- Inventory Levels
- Locations
- Location Metafields
- Markets
- Orders
- Order Agreements
- Order Metafields
- Order Refunds
- Order Returns
- Order Risks
- Order Shipping Lines
- Order Transactions
- Payouts
- Price Lists
- Price List Prices
- Product Variants
- Product Variant Contextual Pricing
- Products
- Product Media
- Product Metafields
- Smart Collections
- Smart Collection Metafields
- Staff Members
- Subscription Contracts
By default, each resource is mapped to an Estuary collection through a separate binding.
Prerequisites
- One or more Shopify store IDs. Each store ID is the prefix of your admin URL. For example,
https://{store_id}.myshopify.com/admin
You can authenticate each store via OAuth, with a Shopify access token, or with client credentials.
Authentication Methods
Private App Credentials (Access Token)
For existing custom apps with static access tokens (shpat_* tokens). The access token is configured directly in the connector and does not expire.
Shopify has deprecated the creation of legacy custom apps. Existing access tokens continue to work, but new apps must use Client Credentials. See Shopify's custom app documentation for details.
Client Credentials
For custom apps created through the Shopify Dev Dashboard. Uses client_id and client_secret to obtain short-lived access tokens (~24 hours) that auto-refresh at runtime. This is the recommended authentication method for new integrations.
Before you configure the connector, go to the app's Settings page in the Dev Dashboard and, under Access requests:
- Click Enable bulk queries. The connector captures most streams with bulk queries, which Shopify rejects until this is enabled. Shopify turns it off again if the app runs no bulk queries for 31 days. See Shopify's bulk query documentation.
- If the app is installed on a development store, open Protected customer data, select Customer data and the Name, Email, Phone number and Address fields, and save. Without it, Shopify denies the app access to orders and customer data on the development store. See Shopify's protected customer data documentation.
Required Permissions
When authenticating with an access token or client credentials, ensure the following permissions are granted:
read_assigned_fulfillment_ordersread_checkoutsread_customersread_fulfillmentsread_inventoryread_localesread_locationsread_marketing_eventsread_marketplace_fulfillment_ordersread_marketsread_merchant_managed_fulfillment_ordersread_orders- If you want to read orders older than 60 days, extend the
read_ordersscope withread_all_orders
- If you want to read orders older than 60 days, extend the
read_payment_termsread_productsread_publicationsread_returnsread_shopify_payments_accountsread_shopify_payments_disputesread_shopify_payments_payoutsread_third_party_fulfillment_ordersread_users- Shopify grants it only after approval, and only to Shopify Plus or Advanced stores or to finance embedded apps.
- Without it, the
staff_membersstream isn't discovered, andordersandorder_returnsdocuments omitstaffMember. - Even with it, the connector captures
staff_membersandstaffMemberonly on Shopify Plus or Advanced stores and development stores.
read_own_subscription_contracts
The fulfillment_orders stream is discovered with any one of the four *_fulfillment_orders permissions, but it only captures the fulfillment orders that the granted permissions cover. Grant all four to capture every fulfillment order.
If the app also has the optional read_shopify_payments_dispute_evidences permission, disputes documents include disputeEvidence. Shopify grants this permission only to publicly distributed apps built for dispute or chargeback management, after approval through Shopify Support. Don't add it to the app's configuration without that approval: Shopify then fails to create the app version. See Shopify's access scopes documentation.
Bulk Query Operation Limitations
This connector submits and processes the results of bulk query operations to capture data. As of API version 2026-01, Shopify supports up to 5 concurrent bulk query operations. The connector takes advantage of this to run multiple bulk queries in parallel for improved performance.
The limit of 5 applies to each app on each store, so bulk queries submitted through a different app don't compete with the connector. If another system submits bulk queries through the same app as the connector, lower /advanced/max_concurrent_bulk_ops to leave slots free for it. The connector can't count that system's queries, so keep its usage within the slots you leave free, or the connector's bulk queries will be rejected. When a capture starts, it cancels bulk queries still running from its previous session and leaves other systems' bulk queries running. It recognises its own by a # Estuary Flow Managed Bulk Query comment it adds to each one.
Payouts and Balance Transactions
The connector reads new payouts on the binding's interval. Shopify doesn't record when a payout last changed, so its first read each UTC day also re-reads every payout issued in the last 30 days to capture status changes.
A balance transaction is usually captured before it's part of a payout, so its associatedPayout starts out empty. The payouts read fills it in once the payout is created, so the balance_transactions binding requires the payouts binding to be enabled. To get a transaction's payout status, join its associatedPayout.id to id in payouts.
Configuration
You configure connectors either in the Estuary web app, or by directly editing the catalog specification file. See connectors to learn more about using connectors. The values and specification sample below provide configuration details specific to the Shopify source connector.
Properties
Endpoint
The properties in the table below reflect manual authentication using the CLI. In the Estuary web app, you'll sign in directly and won't need the access token.
| Property | Title | Description | Type | Required/Default |
|---|---|---|---|---|
/stores | Shopify Stores | One or more Shopify stores to capture. Each store requires its own credentials. | array | Required |
/stores/[]/store | Store Name | Store name (the prefix of your admin URL, e.g., mystore for mystore.myshopify.com) | string | Required |
/stores/[]/credentials | Authentication | Store credentials. See Authentication Methods. | object | Required |
/start_date | Start Date | UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. Note that the read_all_orders scope is required when reading orders older than 60 days. | string | 30 days before the present date |
/advanced/window_size | Window Size | Window size for incremental streams in ISO 8601 format (e.g., P30D means 30 days, PT6H means 6 hours). | string | P30D |
/advanced/should_use_composite_key | Use Composite Key | Include store identifier (/_meta/store) in collection keys. Enabled by default for new captures. Set to true and backfill all bindings before adding stores to a legacy capture. | boolean | true (new) / false (legacy) |
/advanced/max_concurrent_bulk_ops | Max Concurrent Bulk Operations | Maximum number of bulk query operations the connector runs at the same time for each store, from 1 to 5. Lower it to leave slots free for other systems that submit bulk queries through the same app. See Bulk Query Operation Limitations. | integer | 5 |
/advanced/contextual_pricing_countries | Contextual Pricing Countries | Two-letter country codes, such as GB, to capture each product variant's price and compare-at price in. Listing a country adds the product_variant_contextual_pricing stream. Up to 50 countries. | array | [] |
Credential properties for Private App Credentials:
| Property | Title | Description | Type | Required/Default |
|---|---|---|---|---|
/stores/[]/credentials/credentials_title | Credentials Title | Must be Private App Credentials | string | Required |
/stores/[]/credentials/access_token | Access Token | Shopify access token | string | Required |
Credential properties for Client Credentials:
| Property | Title | Description | Type | Required/Default |
|---|---|---|---|---|
/stores/[]/credentials/credentials_title | Credentials Title | Must be Client Credentials | string | Required |
/stores/[]/credentials/client_id | Client ID | OAuth2 client ID | string | Required |
/stores/[]/credentials/client_secret | Client Secret | OAuth2 client secret | string | Required |
Bindings
| Property | Title | Description | Type | Required/Default |
|---|---|---|---|---|
/name | Data resource | Name of the data resource. | string | Required |
/interval | Interval | Interval between data syncs | string | |
/schedule | Schedule | Schedule to automatically rebackfill this binding. Accepts a cron expression. | string | "" |
Sample
captures:
${PREFIX}/${CAPTURE_NAME}:
endpoint:
connector:
image: ghcr.io/estuary/source-shopify-native:v2
config:
stores:
- store: primary-store
credentials:
credentials_title: Private App Credentials
access_token: <secret>
- store: secondary-store
credentials:
credentials_title: Client Credentials
client_id: <client_id>
client_secret: <secret>
start_date: "2025-01-16T12:00:00Z"
bindings:
- resource:
name: products
target: ${PREFIX}/products
- resource:
name: orders
target: ${PREFIX}/orders
Multi-Store Captures
This connector supports capturing data from multiple Shopify stores in a single capture task. Each store authenticates independently and can use different credential types.
How it works
- Configure multiple stores in the
storesarray, each with its own store name and credentials - All documents include a
/_meta/storefield identifying which store they originated from - Resources from all stores are captured into the same collections
- Collection keys include the store identifier (
/_meta/store) to ensure uniqueness across stores
Adding stores to an existing capture
If you have an existing single-store capture created before multi-store support was added, the should_use_composite_key advanced option will be set to false. To add additional stores:
- Set
/advanced/should_use_composite_keytotrue - Perform a backfill and dataflow reset for all bindings
This is required because the collection key structure must include the store identifier (/_meta/store) to ensure uniqueness between documents.
Limitations with Custom App Access Tokens
If you authenticate using an access token from a custom app on a Shopify plan below the Grow tier, the following streams will not be discovered:
customersfulfillment_ordersorders
This is due to Shopify API restrictions for lower-tier plans.