I calculated “Net sales” until now according to the following formula
“Net sales” = “Number(originalUnitPriceSet.shopMoney.amount) - discounts - taxLines”,
And I was getting the wrong results
I searched and found that I was wrong about the formula
I saw the correct formula here
https://www.shopify.com/retail/net-sales
that to calculate, I need the following fields
Net sales = Gross sales - Discounts - Sales returns - Allowances
I need help. How do I bring them into the API