Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to discountCodeAppUpdate

discountCodeAppUpdate

mutation

Requires write_discounts access scope.

Updates a code discount, where the discount type is provided by an app extension that uses Shopify Functions. Use this mutation when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.


Note

To update automatic discounts, use discountAutomaticAppUpdate.


The input fields required to update the discount.

ID!required

The ID of the discount to update.


Was this section helpful?

Anchor to DiscountCodeAppUpdatePayload returnsDiscountCodeAppUpdatePayload returns

The updated discount that the app provides.

The list of errors that occurred from executing the mutation.


Was this section helpful?