Anchor to discountCodeAppUpdatediscount
mutationdiscount Code App Update
Requires 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.
Anchor to Arguments
Arguments
- Anchor to codeAppDiscountcode•Discount
App Discount Code App Input! required The input fields required to update the discount.
- •ID!required
The ID of the discount to update.
Was this section helpful?
- Anchor to codeAppDiscountcode•Discount
App Discount Code App The updated discount that the app provides.
- Anchor to userErrorsuser•[Discount
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?