Need to Add Discount to actual Order in Line Itemsvia APIs

Hi,

Need urgent help please!

I need to add discount to line items while creating Orders via API, but no option is letting me add discount to line items. This is easily done in Draft Orders but it is not happening in actual Orders. Even after setting discount_allocations to the line item, and discount_applications to the order.

Please guide.

Thank you.