ETLMCPData Conveyance Works
Log in Start free
Glossary

Shopify sales columns: gross, discounts, refunds, net, shipping, taxes, total

What each Shopify money column etlmcp delivers holds, how net_sales, shipping and taxes add up to total_sales, and what units counts.

A Shopify row from etlmcp carries eight sales columns in extra: gross_sales, discounts, refunds, net_sales, shipping, taxes, total_sales and units. For each order, net_sales plus shipping plus taxes equals total_sales, apart from duties, tips and fees. Every money column is in the store's own currency, only taxes, refunds and total_sales contain tax, and units counts items, not money or orders.

How a row is built

etlmcp reads the store's orders through Shopify's Admin GraphQL API and writes one row for each day in the store's time zone that has at least one counted order. An order counts on the day it was placed. Test orders and cancelled orders are left out, using the order's test flag and its cancelledAt time. Amounts come from the shop-currency side of each Shopify money field, so a store that sells in several presentment currencies still gets one currency per row.

Several columns rest on Shopify's "current" totals, which Shopify describes as amounts after returns and refunds. When a past day is pulled again, those figures can change, so expect recent days to be restated.

The columns

Column What it holds Shopify field it starts from
gross_sales Product sales before discounts and returns, without tax or shipping subtotalPriceSet plus the discounts
discounts Order-level and line-level discounts, before returns, without tax totalDiscountsSet
refunds All money given back on the day's orders: goods, shipping and tax totalRefundedSet
net_sales Product sales after discounts and returns, without tax or shipping currentSubtotalPriceSet
shipping Shipping charged after refunds and discounts, without tax currentShippingPriceSet
taxes Tax left after returns and refunds, on goods and on shipping the order's tax totals and tax lines
total_sales The order's total price after returns, with tax, shipping and discounts currentTotalPriceSet
units Items ordered, before returns, without gift cards and tips subtotalLineItemsQuantity

revenue is also delivered and holds the same figure as net_sales.

How the columns relate

gross_sales and discounts describe the order as it was placed. net_sales, shipping, taxes and total_sales describe the order as it stands now. Do not expect gross_sales minus discounts minus refunds to equal net_sales. refunds is the cash returned, and it includes refunded shipping and tax, so it is not the gap between gross and net.

Stores whose prices include tax

Shopify's subtotal and shipping prices contain tax when the order's taxesIncluded flag is true. etlmcp takes that tax back out, so gross_sales, discounts, net_sales and shipping mean the same thing whether or not your store shows tax-inclusive prices. The tax inside a discount is removed at the order's own average tax rate. Shipping tax is separated from goods tax using the shipping line's tax lines, so it lands in taxes, not in shipping.

What units counts

units sums item quantities on the lines that make up the subtotal. Shopify leaves tips, shipping and gift cards out of that count. It is taken before returns, so a returned item still counts in units while its value leaves net_sales. Divide net_sales by units for an average selling price, and use orders for a count of orders.

Adding days together

All eight columns are additive: you can sum them across days and across stores that share a currency. A ratio such as average order value should be computed from the sums, not averaged across rows.

Related

Sources

  1. Order - GraphQL Admin — shopify.dev, checked