I know this must exist, but I just can’t find it. I have applied a discount code op to my checkouts using the graphql mutation checkoutDiscountCodeApply
mutation checkoutDiscountCodeApply($discountCode: String!, $checkoutId: ID!) {
checkoutDiscountCodeApply(discountCode: $discountCode, checkoutId: $checkoutId) {
userErrors {
field
message
}
checkout {
id
}
}
}
This works fine in that the price updates. What I’m looking for is the discounts applied, and hopefully a 'before / after" prices from the discounts, but I can’t seem to find this in the specs. Any ideas?