Hi, I would like to know when will a discounted_price (under shipping lines) has value and has'nt? Because based on my understanding it will have a value when a shipping discount is applied. But checking on our dev store. There are orders that has free shipping. But the discounted_price is zero. And I also check a order that does'nt have free shipping but its discounted_price has value. Im a bit confused.
Hey @Glenn08 !
Regarding: "There are orders that has free shipping. But the discounted_price is zero" - That is the expected outcome. The discounted_price parameter reflects the cost of shipping post-discount application, so it would return $0 because that is the cost of shipping after code application. If the default shipping cost is $97 and no discounts have been applied, then discounted_price would return the whole value without any deductions.