checkoutDiscountCodeApply

Applies a discount to an existing checkout using a discount code.

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.


Arguments

Argument Type Default Description
checkoutId required ID!

The ID of the checkout.

discountCode required String!

The discount code to apply to the checkout.

Return Fields

checkout   (Checkout!)

The updated checkout object.

userErrors   ([UserError!]!)

List of errors that occurred executing the mutation.