Skip to main content
Anchor to DiscountAutomaticBxgyCreatePayload

DiscountAutomaticBxgyCreatePayload

payload

Return type for discountAutomaticBxgyCreate mutation.

Anchor to automaticDiscountNodeautomaticDiscountNode
•DiscountAutomaticNode

The automatic discount that was created.

Show fields
•[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

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 discountCodeBxgyCreate mutation.


Show payload

Arguments

Anchor to automaticBxgyDiscountautomaticBxgyDiscount
•DiscountAutomaticBxgyInput!
required

The input data used to create the automatic BXGY discount.

Show input fields


Was this section helpful?