I have this as part of my cart-transform input
query RunInput {
cart {
lines {
id
quantity
merchandise {
… on ProductVariant {
product {
id
}
id
}
}
cost {
amountPerQuantity {
amount
}
totalAmount {
amount
}
}
}
}
}
However, I am trying to retrieve the line item post product level discount. I am referring to this part of the docs and don’t see any option to detect if a line item has a discount applied.
My goal is to only group products that have the same final price (post-discount).
Please do advise how can I achieve this.