ETLMCPData Conveyance Works
Log in Start free
Guides

Shopify's 60-day order window

Why an app with read_orders sees only the last 60 days of Shopify orders, what that means for LTV and cohort work, and how to get older history.

Coming This connector is coming.

An app that holds Shopify's read_orders permission can read only the orders created in the last 60 days. Reaching older orders takes a second scope, read_all_orders, which Shopify must approve for apps built under a Partner organization. etlmcp asks for read_orders alone, so when the Shopify connector is available it reaches about the last 60 days of a store's orders and no further. If you need lifetime value or cohorts that span months or years, the history has to come from somewhere else, or be built up over time.

What the two scopes allow

  • read_orders gives read access, and write_orders read and write access, to orders created within the last 60 days.
  • read_all_orders does nothing by itself. An app declares it next to read_orders or write_orders, and it stretches that scope to older orders. It never adds write access.
  • It is one of the scopes with its own request path. An app owned by a Partner organization must get Shopify's approval before declaring it: in the Dev Dashboard, under the app's settings and its access requests, it describes the app and why it is applying. Once approved, the app declares the scope and deploys the change.
  • An app made in the Dev Dashboard under a merchant's own organization does not need that approval. Legacy private or unpublished apps get no new scopes at all.

Two gaps for LTV and cohort analysis

Depth. When the Shopify connector is available, etlmcp counts back from tomorrow in UTC and starts a run no earlier than the oldest day still whole in the store's time zone, so a run never asks for a partly visible day. A date range that reaches further back is moved up to that day; a range you start by hand that lies entirely before it is refused, naming the first date Shopify serves. If a day leaves the window while a long run is still reading it, the run fails with Shopify shares only the last 60 days of orders unless the app is approved for all orders, and you run it again from a later date.

Grain. When the connector is available, etlmcp writes one row per store and per local day that has orders: order count, units and money totals such as gross_sales, net_sales and refunds. It keeps no customer and no order ID. That supports a daily sales trend set against ad spend, but not a cohort table, which needs each customer's first order date, or per-customer lifetime value. Those need order-level or customer-level data from Shopify itself.

Building history forward with etlmcp

Daily totals accumulate. When the connector is available, a day once delivered stays in a destination that receives only the dates each run pulled, such as a PostgreSQL table, after Shopify stops serving it. Each routine sync pulls the last 58 days again, or fewer when your plan keeps less history, because refunds, returns and edits change the figures of the day an order was placed.

Your plan's history window still applies to etlmcp's own storage. A daily cleanup deletes stored rows older than the window: Free keeps 30 days, fewer than Shopify serves, and Starter keeps 365. What query_data and each new CSV export return shrinks with it, while rows already in your own database stay. See the history window and backfills.

Getting the older orders

For history before the window, export it from the Shopify admin. On the Orders page, choose Export, pick orders by date with a start and end date, and export the orders. An export by date arrives by email, to you and the store owner, rather than as a download. The help center gives no cap on the number of orders, but a large export can take hours.

When you combine that file with etlmcp's rows:

  • The export writes one row per line item. An order with several items fills several rows, and many order-level fields are blank on the extra ones, so group by order before you add up totals.
  • The export's columns are not etlmcp's. Before you append old days to a daily table, check how each figure is defined, and count each order on the day it was placed in the store's time zone. The guides on money fields and order dates cover etlmcp's side.

Related

Sources

  1. Shopify API access scopes — shopify.dev, checked
  2. Exporting orders — help.shopify.com, checked