Is the field “promotion_discount” under a retun line_item object a unit value (per qty unit)? Or is this the total extended discount for the LineItem (qty * unit discount)?
Hi @bbarrett
That field should not be per-unit, is per SKU.
You can check this by using for example:
query {
order(id: "171636185") {
request_id
complexity
data {
total_discounts
line_items(first: 5) {
edges {
node {
promotion_discount
}
}
}
}
}
}
Should match: Σ promotion_discount = total_discounts
Let me know if there is anything else we could help you with!
Thanks in advance
Tom