applyDiscountToCart
Applies a discount code to the cart
This page contains
Arguments
input ApplyDiscountInput! PREVIEW |
ApplyDiscountInput fields
cartId ID! | Unique identifier of the cart |
discountCode String! | Discount code to be applied to the cart |
Return Fields
cart Cart PREVIEW | Updated cart after applying the discount |
userErrors [ApplyDiscountError!] PREVIEW | List of errors that occurred during the operation |
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.