Your etlmcp Shopify sales and Shopify's own reports usually differ because they define a day's sales differently, not because orders are missing. Before you compare them, decide three things: gross sales or sales net of returns, refunds on the order's day or on the refund's day, and what a cancelled order counts for. When the Shopify connector is available, etlmcp writes gross_sales, discounts, refunds, net_sales, shipping, taxes and total_sales for each day. Every one of them belongs to the day the order was placed, with cancelled and test orders left out. Shopify's finance reports book returns and refunds on the day they are processed.
Settle the definitions first
- Gross or net. Gross sales is what the goods sold for before discounts and returns. Net sales is what is left after discounts and returns.
- Refunds by order day or by refund day. Shopify's finance reports put a return on the date it was processed. etlmcp folds it back into the day the order was placed, so a past week can drop in value after customers send things back.
- Cancelled orders. etlmcp leaves a cancelled order out of every column of its day, the order count included. In Shopify's finance reports, a payment that was authorized and then cancelled before capture shows in the sales reports as a positive amount with a matching negative refund, and not at all in the payments reports, because no money was received.
How each column lines up
Shopify's finance reports, whose total sales also appear in the overview on Shopify Home, define their sales lines as below. The right-hand column is what etlmcp writes in its column of the same name when the connector is available.
| Measure | Shopify finance reports | etlmcp column |
|---|---|---|
| Gross sales | Selling price times quantity, before discounts, returns, tax, shipping and fees | gross_sales: product sales before discounts and returns, without tax and shipping |
| Discounts | Negative, on the order date, line discounts plus each product's share of cart discounts | discounts: positive, order and line discounts before returns, without tax |
| Returns | Sales reversals: negative, on the date the return was processed | No column of their own: they lower net_sales on the order's day |
| Net sales | Gross minus discounts minus sales reversals | net_sales: after discounts, returns and order edits, without tax and shipping |
| Shipping | Positive on the order date, negative on the refund date | shipping: what is left after refunds and discounts, without tax |
| Taxes | Positive on the order date, negative on the refund date | taxes: what is left after returns and refunds |
| Total sales | Net sales plus taxes, shipping and fees | total_sales: the order's total price after returns |
| Refunds | In the sales reports, spread over sales reversals, shipping and taxes; the payments reports show the total refunded | refunds: all money given back on the day's orders, goods, shipping and tax together |
etlmcp also writes revenue, the same number as net_sales. The full list of columns and types is on the Shopify connector page.
Do not subtract refunds twice
etlmcp's net_sales, shipping, taxes and total_sales come from Shopify's current order totals, which the Order reference describes, field by field, as amounts after returns, after refunds, or after both. The refunds column is the order's total refunded amount on the same orders. Taking refunds away from total_sales or net_sales removes the same money a second time.
refunds is also not the gap between gross_sales and net_sales: it includes refunded shipping and tax, and the gap includes discounts. Use it to see how much money went back to customers, not to rebuild net sales.
For any order, net_sales plus shipping plus taxes equals total_sales, apart from duties, tips and fees, which the other three leave out. Use that to check that a row was read correctly. See gift cards, tips and duties for where those amounts go.
Why a past day keeps changing
Because etlmcp counts a return on the order's day, last month's net sales falls when a customer returns an item today. When the connector is available, every routine sync pulls the last 58 days again, so returns, refunds, order edits and cancellations within that span reach the right day. A PostgreSQL destination replaces the pipeline's rows for those dates; a CSV destination gives you a new file for each run, so use the latest one. Free keeps only 30 days of history, so on Free the window starts at the oldest day the plan keeps. A change to an order older than the window is not picked up by routine syncs, and the day keeps the figures it had when it was last pulled. See the trailing window for how the window is applied.
Over a long period the two totals converge; day by day they disagree. For the closest match, compare whole months that ended more than 58 days ago.
Reconciling a single day
- Compare the same calendar day in the store's own time zone. etlmcp assigns every order to the day it was placed in the store's time zone.
- Compare
gross_saleswith Shopify's gross sales, anddiscountswith Shopify's discounts with the sign flipped. See Shopify discounts if the discount figures disagree. - Before comparing net sales, shipping and taxes, add Shopify's sales reversals, shipping refunds and tax refunds for that day's orders, wherever they were booked.
- If etlmcp pulled the day again after an order was cancelled, remove that order from Shopify's figures: etlmcp has dropped it.
- Check the currency. etlmcp reads amounts in the store's own currency, never the currency the customer paid in. See Shopify order totals.
Very busy days
Shopify's API limits page says paginated lists stop at 25,000 objects. Because of that cap, etlmcp reads each local day on its own. When a day reaches the cap, the sync fails with this store has too many orders in one day to read rather than returning a partial total, and it is not retried. That day has no etlmcp figure to compare, so take it from Shopify's reports.