Release Status Released Supported By Stitch
Availability Free Status Page Shopify Status Page
Default Historical Sync 1 year Default Replication Frequency 30 minutes
Whitelisting Unsupported Destination Incompatibilities None

Connecting Shopify

Connecting your Shopify data to Stitch is a four-step process:

  1. Add Shopify as a Stitch data source
  2. Define the Historical Sync
  3. Define the Replication Frequency
  4. Authorizing Stitch to access Shopify

Add Shopify as a Stitch Data Source

  1. Sign into your Stitch account.
  2. On the Stitch Dashboard page, click the Add Integration button.

  3. Click the Shopify icon.

  4. Enter a name for the integration. This is the name that will display on the Stitch Dashboard for the integration; it’ll also be used to create the schema in your destination.

    For example, the name “Stitch Shopify” would create a schema called stitch_shopify in the destination. Note: Schema names cannot be changed after you save the integration.

  5. In the Shop Name field, enter the name of your shop. For example, if your store was stitch.shopify.com, stitchwould be entered in this field.

Define the Historical Sync

The Sync Historical Data setting will define the starting date for your Shopify integration. This means that:

  • For tables using Incremental Replication, data equal to or newer than this date will be replicated to your data warehouse.
  • For tables using Full Table Replication, all data - including records that are older, equal to, or newer than this date - will be replicated to your data warehouse.

Change this setting if you want to replicate data beyond Shopify’s default setting of 1 year. For a detailed look at historical replication jobs, check out the Syncing Historical SaaS Data guide.

Create a replication schedule

In the Replication Frequency section, you’ll create the integration’s replication schedule. An integration’s replication schedule determines how often Stitch runs a replication job, and the time that job begins.

Stitch offers two methods of creating a replication schedule:

  • Replication Frequency: This method requires selecting the interval you want replication to run for the integration. Start times of replication jobs are based on the start time and duration of the previous job. Refer to the Replication Frequency documentation for more information and examples.
  • Anchor scheduling: Based on the Replication Frequency, or interval, you select, this method “anchors” the start times of this integration’s replication jobs to a time you select to create a predictable schedule. Anchor scheduling is a combination of the Anchor Time and Replication Frequency settings, which must both be defined to use this method. Additionally, note that:

    • A Replication Frequency of at least one hour is required to use anchor scheduling.
    • An initial replication job may not begin immediately after saving the integration, depending on the selected Replication Frequency and Anchor Time. Refer to the Anchor Scheduling documentation for more information.

To help prevent overages, consider setting the integration to replicate less frequently. See the Understanding and Reducing Your Row Usage guide for tips on reducing your usage.

Authorizing Stitch to Access Shopify

Lastly, you’ll be directed to Shopify’s website to complete the setup.

  1. Enter your Shopify credentials and click Login.
  2. A screen asking for authorization to Shopify will display. Note that Stitch will only ever read your data.
  3. Click Install App.
  4. After the authorization process successfully completes, you’ll be redirected back to Stitch.
  5. Click All Done.

Initial and historical replication jobs

After you finish setting up Shopify, its Sync Status may show as Pending on either the Stitch Dashboard or in the Integration Details page.

For a new integration, a Pending status indicates that Stitch is in the process of scheduling the initial replication job for the integration. This may take some time to complete.

Free historical data loads

The first seven days of replication, beginning when data is first replicated, are free. Rows replicated from the new integration during this time won’t count towards your quota. Stitch offers this as a way of testing new integrations, measuring usage, and ensuring historical data volumes don’t quickly consume your quota.


Shopify Schema

Stitch's Shopify integration includes these tables:


checkouts

Replication Method: Key-based Incremental
Primary Key: id
Contains Nested Structures?: Yes

The checkouts table contains info about abandoned checkouts. Abandoned checkouts are defined as checkouts where the customer has entered their billing and shipping information, but not completed the ordering process.

Table Info & Attributes

checkouts & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

checkouts Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Checkout ID (id)

  • abandoned_checkout_url

  • billing_address__address1

  • billing_address__address2

  • billing_address__city

  • billing_address__company

  • billing_address__country

  • billing_address__firstname

  • billing_address__id

  • billing_address__lastname

  • billing_address__phone

  • billing_address__province

  • billing_address__zip

  • billing_address__name

  • billing_address__province_code

  • billing_address__country_code

  • billing_address__default

  • buyer_accepts_marketing

  • cancel_reason

  • cart_token

  • closed_at

  • completed_at

  • created_at

  • currency

  • customer__accepts_marketing

  • customer__created_at

  • customer__email

  • customer__first_name

  • customer__id

  • customer__last_name

  • customer__note

  • customer__orders_count

  • customer__state

  • customer__total_spent

  • customer__updated_at

  • customer__tags

  • discount_codes*

  • email

  • gateway

  • landing_site

  • line_items__fulfillment_service

  • line_items__grams

  • line_items__price

  • line_items__product_id

  • line_items__quantity

  • line_items__requires_shipping

  • line_items__sku

  • line_items__title

  • line_items__variant_id

  • line_items__variant_title

  • line_items__vendor

  • note

  • referring_site

  • shipping_address__address1

  • shipping_address__address2

  • shipping_address__city

  • shipping_address__company

  • shipping_address__country

  • shipping_address__firstname

  • shipping_address__latitude

  • shipping_address__longitude

  • shipping_address__lastname

  • shipping_address__phone

  • shipping_address__province

  • shipping_address__zip

  • shipping_address__name

  • shipping_address__province_code

  • shipping_address__country_code

  • shipping_lines*

  • source_name

  • subtotal_price

  • tax_lines*

  • taxes_included

  • token

  • total_discounts

  • total_line_items_price

  • total_price

  • total_tax

  • total_weight

  • updated_at

collects

Replication Method: Full Table
Primary Key: id
Contains Nested Structures?: No

The collects table contains info about collects, which is the link between products and custom collections.

Table Info & Attributes

collects Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Collect ID (id)

  • collection_id

  • created_at

  • featured

  • position

  • product_id

  • sort_value

  • updated_at

custom_collections

Replication Method: Key-based Incremental
Primary Key: id
Contains Nested Structures?: No

The custom_collections table contains info about your custom collections.

Table Info & Attributes

custom_collections Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Custom Collection ID (id)

  • body_html

  • handle

  • image

  • published

  • published_at

  • published_scope

  • sort_order

  • template_suffix

  • title

  • updated_at

customers

Replication Method: Key-based Incremental
Primary Key: id
Contains Nested Structures?: Yes

The customers table contains info about your shop's customers.

Table Info & Attributes

customers & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

customers Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Customer ID (id)

  • accepts_marketing

  • addresses*

  • created_at

  • default_address*

  • email

  • first_name

  • multipass_identifier

  • last_name

  • last_order_id

  • last_order_name

  • note

  • orders_count

  • state

  • tags

  • tax_exempt

  • total_spent

  • updated_at

  • verified_email

metafields

Replication Method: Key-based Incremental
Primary Key: id
Contains Nested Structures?: No

The metafields table contains metadata for shop and order resources.

Table Info & Attributes

metafields Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Metafield ID (id)

  • created_at

  • description

  • key

  • namespace

  • owner_id

  • owner_resource

  • value

  • value_type

  • updated_at

order_refunds

Replication Method: Full Table
Primary Key: id
Contains Nested Structures?: Yes

The order_refunds table contains info about refunds applied to transactions.

Table Info & Attributes

order_refunds & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

order_refunds Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Order Refund ID (id)

  • created_at

  • note

  • restock

  • refund_line_items*

  • transactions*

  • user_id

orders

Replication Method: Key-based Incremental
Primary Key: id
Contains Nested Structures?: Yes

The orders table contains information about your shop's completed orders.

Table Info & Attributes

orders & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

orders Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Order ID (id)

  • billing_address*

  • browser_ip

  • buyer_accepts_marketing

  • cancel_reason

  • cancelled_at

  • cart_token

  • client_details__accept_language

  • client_details__browser_height

  • client_details__browser_ip

  • client_details__browser_width

  • client_details__session_hash

  • client_details__user_agent

  • closed_at

  • created_at

  • currency

  • customer__accepts_marketing

  • customer__created_at

  • customer__email

  • customer__first_name

  • customer__id

  • customer__last_name

  • customer__note

  • customer__orders_count

  • customer__state

  • customer__total_spent

  • customer__updated_at

  • customer__tags

  • discount_codes*

  • email

  • financial_status

  • fulfillments*

  • fulfillment_status

  • tags*

  • gateway

  • landing_site

  • line_items*

  • location_id

  • name

  • note

  • note_attributes*

  • number

  • order_number

  • payment_gateway_names

  • processed_at

  • processing_method

  • referring_site

  • refunds

  • shipping_address*

  • shipping_lines*

  • source_name

  • subtotal_price

  • tax_lines*

  • taxes_included

  • token

  • total_discounts

  • total_line_items_price

  • total_price

  • total_tax

  • total_weight

  • updated_at

  • user_id

  • order_status_url

products

Replication Method: Key-based Incremental
Primary Key: id
Contains Nested Structures?: Yes

The products table contains info about the products for sale in your shop.

Table Info & Attributes

products & Nested Structures

This table contains nested structures. If you use a data warehouse that doesn't natively support nested structures, some of the attributes listed below may be in a subtable.

These items are marked with a *

products Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Product ID (id)

  • body_html

  • created_at

  • handle

  • images*

  • options*

  • product_type

  • published_at

  • published_scope

  • tags*

  • template_suffix

  • title

  • metafields_global_title_tag

  • metafields_global_description_tag

  • updated_at

  • variants*

  • vendor

transactions

Replication Method: Key-based Incremental
Primary Key: id
Contains Nested Structures?: No

The transactions table contains info about transactions, which are created for every order that results in money exchange. This includes authorizations, sales, captures, voids, and refunds.

Table Info & Attributes

transactions Attributes

While we try to include everything Shopify has here, this may not be a full list of attributes. Refer to Shopify's documentation for a full list and description of each attribute.

  • Transaction ID (id)

  • amount

  • authorization

  • created_at

  • device_id

  • gateway

  • source_name

  • payment_details

  • kind

  • order_id

  • receipt

  • error_code

  • status

  • test

  • user_id

  • currency



Questions? Feedback?

Did this article help? If you have questions or feedback, feel free to submit a pull request with your suggestions, open an issue on GitHub, or reach out to us.