Skip to main content
Anchor to DiscountAutomaticAppUpdatePayload

DiscountAutomaticAppUpdatePayload

payload

Return type for discountAutomaticAppUpdate mutation.

Anchor to automaticAppDiscountautomaticAppDiscount
•DiscountAutomaticApp

The updated automatic 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 an existing automatic discount that's managed by an app using Shopify Functions. Use this mutation when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.

For example, use this mutation to update a new "Volume" discount type that applies a percentage off when customers purchase more than the minimum quantity of a product. For an example implementation, refer to our tutorial.


Note

To update code discounts with custom logic, use the discountCodeAppUpdate mutation instead.


Show payload

Arguments

Anchor to automaticAppDiscountautomaticAppDiscount
•DiscountAutomaticAppInput!
required

The input fields required to update the automatic discount.

Show input fields
•ID!
required

The ID of the automatic discount to update.



Was this section helpful?