Skip to main content
Anchor to discountCodeBasicUpdate

discountCodeBasicUpdate

mutation

Requires Apps must have write_discounts access scope.

Updates an amount off discount that's applied on a cart and at checkout when a customer enters a code. Amount off discounts can be a percentage off or a fixed amount off.


Note

To update discounts that are automatically applied on a cart and at checkout, use the discountAutomaticBasicUpdate mutation.


•DiscountCodeBasicInput!
required

The input data used to update the discount code.

Show input fields
•ID!
required

The ID of the discount code to update.


Was this section helpful?

Anchor to DiscountCodeBasicUpdatePayload returnsDiscountCodeBasicUpdatePayload returns

•DiscountCodeNode

The discount code that was updated.

Show fields
•[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?