Discussing APIs and development related to customers, discounts, and order management.
Order shippingLines discountedPriceSet is wrong. Per the documentation this field "discountedPriceSet" should be "The pre-tax shipping price with discounts applied."
We have an order with a free shipping discount code applied. The amount of the shipping is $5, and the discount code is for free shipping. The "discountedPriceSet" says $5 - shouldn't it be $0?
Which API version are you using to make this query? Also, could you double-check how the discount is being applied in your Shopify admin? Sometimes, the way discounts are set up can affect how they are applied and reflected in the API responses.
Liam | Developer Advocate @ Shopify - Was my reply helpful? Click Like to let me know! - Was your question answered? Mark it as an Accepted Solution - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hello - the discount is set up as a shipping discount.