Skip to main content
Anchor to discountAutomaticBasicCreate

discountAutomaticBasicCreate

mutation

Requires Apps must have write_discounts access scope.

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


Note

To create code discounts, use the discountCodeBasicCreate mutation.


Anchor to automaticBasicDiscountautomaticBasicDiscount
•DiscountAutomaticBasicInput!
required

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

Show input fields

Was this section helpful?

Anchor to DiscountAutomaticBasicCreatePayload returnsDiscountAutomaticBasicCreatePayload returns

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?