Skip to main content
Anchor to DiscountAutomaticBasicCreatePayload

DiscountAutomaticBasicCreatePayload

payload

Return type for discountAutomaticBasicCreate mutation.

Anchor to automaticDiscountNodeautomaticDiscountNode
•DiscountAutomaticNode

The automatic discount that was created.

•[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Creates an amount off discount that's automatically applied on a cart and at checkout.


Note

To create code discounts, use the discountCodeBasicCreate mutation.


Arguments

Anchor to automaticBasicDiscountautomaticBasicDiscount
•DiscountAutomaticBasicInput!
required

The input data used to create the automatic amount off discount.



Was this section helpful?