Anchor to discountAutomaticBxgyUpdatediscount
mutationdiscount Automatic Bxgy Update
Requires Apps must have access scope.
Updates an existing buy X get Y discount (BXGY) 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/discountCodeBxgyUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>Bxgy<wbr/>Update</span></code></a> mutation instead.
Anchor to Arguments
Arguments
- automaticBxgyDiscount (DiscountAutomaticBxgyInput!)
- id (ID!)
- Anchor to automaticBxgyDiscountautomatic•Discount
Bxgy Discount Automatic Bxgy Input! required The input data used to update the automatic BXGY discount.
- •ID!required
The ID of the automatic BXGY 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?