Anchor to discountAutomaticAppCreatediscount
mutationdiscount Automatic App Create
Requires access scope.
Creates an automatic discount that's managed by an app. Use this mutation with Shopify Functions 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 create an automatic discount using an app's "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.
Anchor to Arguments
Arguments
- Anchor to automaticAppDiscountautomatic•Discount
App Discount Automatic App Input!required The input data used to create the automatic discount.
Was this section helpful?
- Anchor to automaticAppDiscountautomatic•Discount
App Discount Automatic App The automatic discount that the app manages.
- Anchor to userErrorsuser•[Discount
Errors User Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?