Anchor to discountAutomaticBasicUpdatediscount
mutationdiscount Automatic Basic Update
Requires Apps must have access scope.
Updates an existing amount off discount that's automatically applied on a cart and at checkout.
Note: To update code discounts, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeBasicUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>Basic<wbr/>Update</span></code></a> mutation instead.
Anchor to Arguments
Arguments
- automaticBasicDiscount (DiscountAutomaticBasicInput!)
- id (ID!)
- Anchor to automaticBasicDiscountautomatic•Discount
Basic Discount Automatic Basic Input! required The input data used to update the automatic amount off discount.
- •ID!required
The ID of the automatic amount off discount to update.
Was this section helpful?
- automaticDiscountNode (DiscountAutomaticNode)
- userErrors ([DiscountUserError!]!)
- Anchor to automaticDiscountNodeautomatic•Discount
Discount Node Automatic Node The automatic discount that was updated.
- Anchor to userErrorsuser•[Discount
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?