ETLMCPData Conveyance Works
Log in Start free
Guides

Gift cards, tips and duties in Shopify revenue

Shopify counts a gift card as a sale when it is redeemed, not when it is sold, and keeps tips and duties apart. How each one reaches your etlmcp columns.

Coming This connector is coming.

Shopify does not count the sale of a gift card as a sale: the money is a liability until the card is spent, and the goods bought with it count as sales on redemption. Shopify's total sales formula has no place for tips, and duties have totals of their own on the order. When the Shopify connector is available, etlmcp's units column leaves out gift cards and tips, and its total_sales column is the order's total price, which etlmcp does not split into duties, tips and fees.

Gift cards

Shopify's finance reports treat a gift card in two steps. When a customer buys a card, nothing is added to sales, because the store now owes that value. When the card is later used to pay for an order, the full value of the items in that order counts as a sale. Cards you issue from the Shopify admin are never sales at all. The balance still owed on cards appears in the finance reports as an outstanding gift card balance, not in any sales total.

In the Admin API, each line item of an order carries isGiftCard, which is true when the line is the purchase of a gift card.

What this means for your etlmcp rows when the connector is available:

  • Redemptions count normally. etlmcp reads no payment details from an order, so an order paid with a gift card counts on the day it was placed, with the same gross_sales, net_sales and total_sales as one paid by card or cash. That matches Shopify's rule that the value counts on redemption.
  • Units skip gift cards. units is Shopify's subtotalLineItemsQuantity, which Shopify defines as the quantity of items that count toward the subtotal, leaving out items such as gift cards and tips.
  • Orders still count. orders counts every order that is neither a test nor cancelled. An order that holds nothing but a gift card adds one to orders and nothing to units.
  • No line items. etlmcp asks Shopify for order totals only, never for line items, so its rows carry no isGiftCard flag and no separate gift card amount.

Shopify's description of subtotalLineItemsQuantity groups gift cards with items that do not affect the subtotal, but the reference for the subtotal price itself does not say whether a card sold in an order is part of it. If your store sells many gift cards, compare one day's net_sales with the finance reports for the same day before you rely on it. If they differ by the gift cards sold that day, take the cards sold that day out of the figure in your report.

Tips

Shopify's total sales formula is gross sales, less discounts and sales reversals, plus taxes, shipping and fees. Tips are not in it. Shopify reports them on their own, in the Tips over time and Tips by staff member reports. On the Order object, totalTipReceivedSet holds the sum of an order's tips, and a tip line counts among the line items that cannot be fulfilled.

In etlmcp, tips are left out of units. They are not requested as a column of their own.

Duties

The Order object keeps duties apart from tax: originalTotalDutiesSet is what was charged when the order was created, and currentTotalDutiesSet is what is left after returns and edits. Each line item lists its own duties. The order's dutiesIncluded flag says whether duties are inside the subtotal price.

etlmcp does not request either duties total or dutiesIncluded, so its rows have no duties column.

Duties, tips and fees beside total_sales

etlmcp builds net_sales, shipping and taxes from the order's current subtotal, shipping and tax, and has no column for duties, tips or fees. total_sales is Shopify's currentTotalPriceSet, the order's total price after returns. Shopify's reference says that price includes taxes and discounts, and does not say whether tips, duties or other fees are in it. When dutiesIncluded is true, Shopify puts duties inside the subtotal price, which is where net_sales comes from.

To check this, in your destination subtract net_sales, shipping and taxes from total_sales for each day. If the result is not near zero, something outside those three columns is in the total price, and Shopify's Tips over time report and the orders' duties and additional fees totals are where to look for it.

Keeping AOV clean

Average order value goes wrong in two ways:

  1. Dividing total sales by orders. total_sales includes tax and shipping, and may carry other charges, none of which is product revenue. Divide net_sales (or revenue, which is the same figure) by orders instead.
  2. Gift-card-only orders. Each one raises orders without adding product sales to the day, which pulls the average down. If your store sells a lot of cards, count those orders in Shopify and take them out of the divisor.

For units per order, divide units by orders: tips and gift cards are already outside units, so only gift-card-only orders need the same care as above.

When the connector is available, a routine sync pulls the last 58 days again, so a return or refund on a recent order changes that past day's current totals on the next sync. See the Shopify connector for the columns and the trailing window for how past days are restated.

Related

Sources

  1. Finance reports — help.shopify.com, checked
  2. LineItem - GraphQL Admin — shopify.dev, checked
  3. Order - GraphQL Admin — shopify.dev, checked