Hello,
I have tried the following to get the correct Shipping and Discount metric values:
1] Fetching discounts from totalDiscounts variable and shipping cost from totalShippingPrice using Shopify GraphQL 2023-01
2] Fetching discounts from currentCartDiscountAmountSet, cartDiscountAmount, currentTotalDiscountsSet variables, and shipping cost from currentSubtotalPriceSet using Shopify GraphQL 2023-01
3] Doing 1,2 using Shopify GraphQL 2023-04
4] Fetching discounts from order[‘total_discounts’] variable and shipping cost from order[‘total_shipping_price_set’][‘shop_money’][‘amount’] using Shopify Rest API 2023-01
5] Doing 4 using Shopify Rest API 2023-04
The total_sales, taxes, etc. all match on an Order level but I see discrepancies on all entries for both discounts and shipping.
Could you advise what the best approach to get the correct metric values for the above is?
Thanks, Martin