applyDiscountToCart
Apply discount Code to the cart
This page contains
Arguments
input ApplyDiscountInput! PREVIEW |
ApplyDiscountInput fields
cartId ID! | Represents the ID of the cart |
discountCode String! | Represents the Discount Code of the cart |
Return Fields
cart Cart PREVIEW | Represent updated cart after applying the discount |
userErrors [ApplyDiscountError!] PREVIEW | Represent errors if any |
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.