When a Shopify order has taxesIncluded set to true, its subtotal already contains the tax, so sales read straight from the subtotal are too high by the VAT or GST in it: at 20% VAT, 20% above the real net figure. Check the flag on each order, not once per store. When the Shopify connector is available, etlmcp states sales, discounts and shipping without tax on every order, so its net_sales, shipping and taxes add up to total_sales (duties, tips and fees aside) whether the prices included tax or not.
What the flag changes on the Order object
The Admin GraphQL reference describes Order.taxesIncluded as whether the order's subtotal price includes taxes. When it is true, these amounts hold tax as well as the goods or the delivery:
subtotalPriceSet, the line items after discounts and before returns;currentShippingPriceSet, shipping after refunds and discounts;- the shipping line's
originalPriceSetanddiscountedPriceSet.
When it is false, those same fields are pre-tax and the tax sits only in the tax fields. The order totals, totalPriceSet and currentTotalPriceSet, include tax in both cases.
The tax fields are not all the same scope. Shopify documents totalTaxSet as the order's total tax before returns, while taxLines and currentTotalTaxSet are both documented as the tax on line items. The shipping line carries tax lines of its own. If you rebuild sales by hand, subtract only the goods tax from the subtotal. The subtotal is the line items alone, so if you take the whole order's tax off it, you also take off any tax charged on shipping and understate sales.
Why one store can mix both kinds of order
Shopify's help center puts the setting in Settings > Taxes and duties, where it covers both product prices and shipping rates, and sets tax inclusion separately for each market. So one store can include tax in its prices for one market and add it at checkout for another, which is why the flag belongs to the order. The same help page gives the formula for the tax inside an inclusive price: the rate times the price, divided by one plus the rate. A $100 price at 10% holds $9.09 of tax.
Shopify's shipping tax page adds that in Australia, Canada, the EU, New Zealand, Norway, Switzerland, the UK and the US, shipping is taxed where applicable whatever the store's shipping tax setting says. So on a taxed order in those places that pays for shipping, part of the tax total can belong to shipping.
How etlmcp states each column
When the connector is available, etlmcp reads taxesIncluded and the tax amounts of each order it counts (test and cancelled orders are left out):
- Goods tax and shipping tax are kept apart. The shipping tax comes from the shipping line's tax lines, scaled to what is left of the shipping price after refunds. Before returns, the goods tax is the order's total tax less that shipping tax. After returns, it is the current tax total, less the current shipping tax when that total includes it.
net_salesis the current subtotal less the goods tax inside it, andshippingis the current shipping price less its tax, but only when the order's prices include tax. On other orders those amounts are already pre-tax and are used as they are.taxesis the goods tax plus the shipping tax, after returns and refunds.discountsis stated without tax. The tax inside a discount is taken out at the order's own average rate, the goods tax as a share of the subtotal. An order discounted to nothing keeps its discount as Shopify states it, since no tax is left to work out a rate from.total_salesiscurrentTotalPriceSetas Shopify gives it, tax included.
A worked order
A UK order with 20% VAT and inclusive prices: one item listed at 120, a 12 discount, so a subtotal of 108, plus 6 of shipping. The goods tax is 18 and the shipping tax is 1, so the total is 114.
| Column | Value | How |
|---|---|---|
discounts |
10 | 12 less its share of the goods tax, 2 |
gross_sales |
100 | 108 less 18 of tax, plus the 10 discount |
net_sales |
90 | 108 less 18 of tax |
shipping |
5 | 6 less 1 of tax |
taxes |
19 | 18 on goods, 1 on shipping |
total_sales |
114 | the order total |
90 plus 5 plus 19 is 114. Read from the subtotal, the same order would report 108 of sales.
Checking your figures
- For any day, subtract
net_sales,shippingandtaxesfromtotal_sales. Without duties, tips or fees, the result is near zero. - To compare with a report that counts sales with tax, add the goods tax back yourself;
gross_salesandnet_salesnever include it, andtaxesalso holds the shipping tax. - Refunds made later change tax and sales for the order's day. When the connector is available, each routine sync pulls the last 58 days again, so later refunds within that window reach your table.
Which Shopify amount feeds each column is set out in Shopify order totals, and the column list is on the Shopify connector page.