ETLMCPData Conveyance Works
Log in Start free
Guides

Shopify stores with tax-inclusive prices (VAT/GST)

When a Shopify order's prices include VAT or GST, its subtotal carries the tax. How to spot those orders and how etlmcp takes the tax out of sales.

Coming This connector is coming.

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 originalPriceSet and discountedPriceSet.

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_sales is the current subtotal less the goods tax inside it, and shipping is 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.
  • taxes is the goods tax plus the shipping tax, after returns and refunds.
  • discounts is 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_sales is currentTotalPriceSet as 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

  1. For any day, subtract net_sales, shipping and taxes from total_sales. Without duties, tips or fees, the result is near zero.
  2. To compare with a report that counts sales with tax, add the goods tax back yourself; gross_sales and net_sales never include it, and taxes also holds the shipping tax.
  3. 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.

Related

Sources

  1. Order - GraphQL Admin — shopify.dev, checked
  2. ShippingLine - GraphQL Admin — shopify.dev, checked
  3. Including taxes in product prices — help.shopify.com, checked
  4. Shipping tax — help.shopify.com, checked