What goes into calculating the totalSales field for DiscountCodeBasic?

michaelg47
Shopify Partner
7 0 3

I'm trying to find the total sales associated with a given discount code so I can display it on the UI of my admin app. I want the total sales number to reflect refunds/cancelled orders. Are these factors included in the calculation for the totalSales field on DiscountCodeBasic?

Replies 0 (0)