Anchor to discountAutomaticBxgyCreatediscount
mutationdiscount Automatic Bxgy Create
Requires Apps must have access scope.
Creates a buy X get Y discount (BXGY) that's automatically applied on a cart and at checkout.
Note: To create code discounts, use the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountCodeBxgyCreate"><code><span class="PreventFireFoxApplyingGapToWBR">discount<wbr/>Code<wbr/>Bxgy<wbr/>Create</span></code></a> mutation.
Anchor to Arguments
Arguments
- automaticBxgyDiscount (DiscountAutomaticBxgyInput!)
- Anchor to automaticBxgyDiscountautomatic•Discount
Bxgy Discount Automatic Bxgy Input! required The input data used to create the automatic BXGY discount.
Was this section helpful?
- automaticDiscountNode (DiscountAutomaticNode)
- userErrors ([DiscountUserError!]!)
- Anchor to automaticDiscountNodeautomatic•Discount
Discount Node Automatic Node The automatic 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?