Get lineitem discounted unit price

SBD_
Shopify Staff
Shopify Staff
1097 147 206

Pricing team have so far been unable to prioritise a fix. Although they did say "It is recommended to use discountAllocations moving forward".

Let you know as I hear more.

0 Likes
Claire222
Shopify Partner
95 2 10

Is this fixed now? It's been a few months!

0 Likes
SBD_
Shopify Staff
Shopify Staff
1097 147 206

There's been some further discussion clarifying the confusion:

discountedUnitPrice(Set) is the unit price of the LineItem after line item level discount, but without Order level discount. The field name could be misleading. Since we can't easily change the field name in a public API, I've updated the documentation for the field discountedUnitPriceSet to explicitly call out the fact that it does not include any Order level discounts.

And if merchants want to know the line item after order discount unit price, without intending to use that value to refund the customer, then discountAllocations is the way to go. However, merchants still should not use that to issue refunds, as that does not take into consideration any taxes. To refund, use Order.suggestedRefund.

 

0 Likes