Skip to main content
Anchor to DiscountCodeAppUpdatePayload

DiscountCodeAppUpdatePayload

payload

Return type for discountCodeAppUpdate mutation.

•DiscountCodeApp

The updated discount that the app provides.

Show fields
•[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

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.


Show payload

Arguments

•DiscountCodeAppInput!
required

The input fields required to update the discount.

Show input fields
•ID!
required

The ID of the discount to update.



Was this section helpful?