ETLMCPData Conveyance Works
Log in Start free
Docs

Shopify connector: what is synced and how

What a Shopify sync pulls: daily order totals for one store, why only the last 60 days of orders are reachable, and why a store belongs to one organization.

Coming This connector is coming.

When the connector is available, a Shopify sync writes one row per day for the store you connected, with that day's order totals: order count, sales, discounts, refunds, shipping, taxes and units. You connect a store by typing its address, the one that ends in .myshopify.com, and etlmcp asks Shopify for a single permission, read_orders. That permission only reaches orders created in the last 60 days, so a sync cannot pull older orders. A routine sync pulls the last 58 days again each time, and a store can have a working connection in only one organization at a time.

Each column's type and definition is on the generated Shopify connector page.

What one row holds

Shopify is a store, not an ad platform, so a row has no campaign, ad group or ad: those IDs are empty, and account_id is the store's address. The common ad columns cost, impressions, clicks, conversions and conversion_value stay empty too. Everything Shopify gives is stored as extras: orders, gross_sales, discounts, refunds, net_sales, shipping, taxes, total_sales, units and revenue.

A few rules decide what lands in those columns:

  • The day is the day the order was placed, in the store's own time zone, not the day it was paid, shipped or refunded.
  • Test orders and cancelled orders are left out of every column, the order count included.
  • Money is in the store's currency, in major units: dollars rather than cents for a store that sells in dollars. If the store's currency changes in the middle of a day, the sync stops rather than add two currencies together.
  • revenue is the same number as net_sales. It exists so a Shopify source lines up with GA4's revenue column; for one store, compare the two but never add them.
  • refunds is not the gap between gross and net sales. It is all the money handed back on that day's orders, goods, shipping and tax together, even when the refund came later, provided the order's day is pulled again after it.
  • For each order, net sales plus shipping plus taxes comes to total sales, setting duties, tips and fees aside, whether or not your prices include tax.
  • A day with no counted orders gets no row at all, rather than a row of zeros.

etlmcp asks Shopify for order amounts only. It requests nothing about your customers, and only daily totals are kept.

Why only about 60 days of orders

The read_orders scope covers orders created in the last 60 days. Older orders need a second scope, read_all_orders, which an app built under a Partner organization must ask Shopify to approve. etlmcp requests only read_orders, so its view of your store is that recent window.

Here is how etlmcp handles the window:

  • A run whose date range starts before the oldest day Shopify serves is moved up to that day. The earlier days are neither asked for nor replaced in your destination.
  • A run whose whole range is older than that is refused with {…} only provides data from {…}, naming the platform and the first date it serves.
  • If a day slips out of the window while a long run is reading it, the run fails with Shopify shares only the last 60 days of orders unless the app is approved for all orders. Run it again with a later start date.

If you need a longer Shopify history in your tables, start syncing early and keep syncing: a day already delivered stays in your destination after it leaves Shopify's window, because a sync replaces only the days it pulls.

Which days each sync re-pulls

Refunds, returns, order edits and cancellations all change the figures of the day the order was placed. To catch those, every routine sync, scheduled or "Run now", pulls the last 58 days and replaces them in your destination. That window is capped by your plan's history: on Free, which keeps 30 days, a routine sync reaches back no further than those 30 days. See the trailing window and backfills.

One store, one organization

A store counts as one source toward your plan. Within your organization, a store can sit in one workspace only: connecting it in a second workspace is refused, and you have to disconnect it in the first. Across organizations, Shopify holds a single current token for each app and store: a new grant retires the old token, which stops working once it expires. etlmcp therefore refuses to connect a store that another organization already has working, with That store is already connected by another organization. It has to be disconnected there first.

If someone uninstalls the app from the store, Shopify tells etlmcp, the connection is marked as needing a reconnect, and the owners are told. Rows already delivered stay in your destination, and the store has to be connected again before its syncs can resume.

Related

Sources

  1. Shopify API access scopes — shopify.dev, checked
  2. Access tokens — shopify.dev, checked