Hi Hassain,
Ah okay! I see it in the order.line_items.discount_allocations. This is a bit confusing as the documentation does not mention this and I know in the past line item discounts were added to the order.line_items.total_discounts. Maybe it’s something that can be updated on the Order Api docs?
It sounds as if the order.line_items.total_discounts can not be populated via the Order API. Is that correct? If not, what is this field used for and how does it get populated? Again there is very little information in the documentation about this.
Also, is there a way to display the line item discount on the Order admin? I know this is something that’s bringing up confusion for us, so I suspect merchants are going to wonder why the discount does not show up on the line item after they’ve created the order with our app. Any insights you can provide here would be great.
Thanks for your help! I’m looking forward to hearing back from you.
Ralph