applyDiscountToCart

Applies a discount code to the cart

This page contains

    Arguments

    input ApplyDiscountInput!

    ApplyDiscountInput fields

    cartId ID!

    Unique identifier of the cart

    discountCode String!

    Discount code to be applied to the cart

    Return Fields

    cart Cart

    Updated cart after applying the discount

    userErrors [ApplyDiscountError!]

    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.