Anchor to discountCodeBxgyCreatediscount
mutationdiscount Code Bxgy Create
Requires Apps must have access scope.
Creates a buy X get Y discount (BXGY) that's applied on a cart and at checkout when a customer enters a code.
Note: To create discounts that are automatically applied on a cart and at checkout, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticBxgyCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Automatic<wbr/>Bxgy<wbr/>Create</span></code></a> mutation.
Anchor to Arguments
Arguments
- bxgyCodeDiscount (DiscountCodeBxgyInput!)
- Anchor to bxgyCodeDiscountbxgy•Discount
Code Discount Code Bxgy Input! required The input data used to create the BXGY code discount.
Was this section helpful?
- codeDiscountNode (DiscountCodeNode)
- userErrors ([DiscountUserError!]!)
- Anchor to codeDiscountNodecode•Discount
Discount Node Code Node The code discount that was created.
- Anchor to userErrorsuser•[Discount
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?