Anchor to discountCodeBxgyUpdatediscount
mutationdiscount Code Bxgy Update
Requires Apps must have access scope.
Updates a buy X get Y discount (BXGY) that's applied on a cart and at checkout when a customer enters a code.
Note: To update discounts that are automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticBxgyUpdate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Bxgy<wbr/>Update</span></code></a> mutation.
Anchor to Arguments
Arguments
- bxgyCodeDiscount (DiscountCodeBxgyInput!)
- id (ID!)
- Anchor to bxgyCodeDiscountbxgy•Discount
Code Discount Code Bxgy Input! required The input data used to update the BXGY code discount.
- •ID!required
The ID of the BXGY code discount to update.
Was this section helpful?
- codeDiscountNode (DiscountCodeNode)
- userErrors ([DiscountUserError!]!)
- Anchor to codeDiscountNodecode•Discount
Discount Node Code Node The code 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?