Anchor to DiscountAutomaticBasicUpdatePayloadDiscount
payloadDiscount Automatic Basic Update Payload
Return type for mutation.
Anchor to FieldsFields
- 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?
Anchor to Mutations with this payloadMutations with this payload
- discountAutomaticBasicUpdate (DiscountAutomaticBasicUpdatePayload)
- •mutation
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.
- •ID!required
The ID of the automatic amount off discount to update.
- Anchor to automaticBasicDiscountautomatic•Discount
Basic Discount Automatic Basic Input! required The input data used to update the automatic amount off discount.
Arguments
- •ID!
Was this section helpful?