For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hello!
I'm looking for a way to access to discounts which will be applied to a line item using Cart Transform.
I'm using the following RunInput, but, unlike Cart & Checkout Validation, the amounts do not vary when the user enters discount coupons. Which does not allow me to detect if they are applying discounts at checkout or not.
query RunInput {
cart {
lines {
id
quantity
cost {
amountPerQuantity {
amount
currencyCode
}
compareAtAmountPerQuantity {
amount
currencyCode
}
subtotalAmount {
amount
currencyCode
}
totalAmount {
amount
currencyCode
}
}
merchandise {
... on ProductVariant {
id
}
}
}
}
}