An edited Shopify order changes a past day's revenue. An edit can add or remove items, discounts and shipping after the order is placed, and Shopify then reports new current totals while the order's creation date stays the same. Daily sales are counted on the day an order was placed, so an edit made today moves that earlier day. When the Shopify connector is available, every routine etlmcp sync pulls the last 58 days of orders again and replaces those days in your destination, so edits inside that window show up on the order's own day.
What an order edit can change
Shopify's guide to editing orders lists what an edit can do through the Admin API:
- add a product variant or a custom item;
- change the quantity of a line item, or set it to zero to remove the item;
- add, update or remove a discount on a line item;
- add, update or remove a shipping line.
Shopify's guide says "You can edit only unfulfilled line items." Once an item has been fulfilled, an edit can no longer change it. Edits are also limited to orders in the store's currency, placed after January 1, 2019, and not archived.
An edit is staged first and changes the order only when it is committed.
How Shopify records an edit
The Order object in the Admin GraphQL API shows an edit in three ways:
editedis true once any edit has been applied to the order.originalTotalPriceSetkeeps the order's total as it was at creation. Shopify describes it as the figure to compare with the current total after edits, returns or refunds.- The
current…fields hold the order as it is now.currentSubtotalLineItemsQuantity, for one, is described as the item count after returns, refunds, edits and cancellations.
The field descriptions differ: currentTotalPriceSet mentions only returns and currentSubtotalPriceSet returns and refunds, while originalTotalPriceSet names edits among the changes that move the current total. createdAt, the time checkout was completed, never changes, which is why an edit lands on the original day rather than the day of the edit.
If you listen to Shopify's orders/edited webhook in your own systems, its payload describes the change, not the result. It carries additions and removals for line items, discounts and shipping lines, with line item quantities as positive deltas whose direction comes from the list they appear in. To get the order's totals after the edit, query the order itself by its ID.
What etlmcp does with edited orders
When the connector is available, etlmcp does not listen to orders/edited; its Shopify webhooks cover app removal and privacy requests only. Instead it reads each day's orders again, asking Shopify for every order created on that day in the store's time zone, leaves out test and cancelled orders, and sums the rest into one row for the day.
These columns come from Shopify's current fields, so they reflect an edit once the order's day is pulled again:
net_salesandrevenue(the same figure), from the current subtotal;shipping, from the current shipping price;taxes, from the current tax;total_sales, from the current total price.
gross_sales and discounts come from fields Shopify describes as before returns, and units from subtotalLineItemsQuantity, whose description mentions neither returns nor edits (unlike its current… counterpart). The documentation does not say whether an edit changes these three. To measure the effect of edits, compare net_sales or total_sales over time rather than gross_sales. etlmcp does not request edited or originalTotalPriceSet, so your table cannot tell you which orders were edited; check those fields in Shopify when you need an audit. The full column list is on the Shopify connector page.
Keeping edited days current
The connector asks for a 58-day window because refunds, returns, edits and cancellations all go on changing the day an order was placed. Every routine sync, the daily schedule or Run now, covers that window. PostgreSQL deletes the pipeline's rows for those dates and inserts the new ones, as PostgreSQL row replacement explains; a webhook destination receives the days again, so your receiver should replace by date (the webhook payload).
Three cases fall outside a routine sync:
- Your plan's history is shorter than the window. A routine sync never reaches back further than your plan keeps. On Free that is 30 days, so an edit to an order older than that is not picked up. See the plans.
- The order is older than the trailing window but still within Shopify's reach. The Order reference says that by default an app can read only the last 60 days of orders. etlmcp asks for
read_ordersalone, notread_all_orders, so it can reach that recent window and no further. To pick up an edit in the gap, start a backfill for those dates, as long as they fall within your plan's history: from the dashboard's Backfill… form, with Start a run or with run_pipeline. - The order is older than 60 days. etlmcp cannot read it. A run whose whole range is older is refused, and one that only starts there skips the older days, neither asking for them nor replacing them. Your table keeps the figures from the last time that day was pulled, so a later edit is not reflected. Record such changes outside the pipeline if you need them.
Close a month in your reports only after the trailing window has passed over all of it. How a Shopify sync works and the trailing window give the rest of the detail.