discountAutomaticBasicCreate mutation

Version 2020-01 (Release candidate)

Creates a basic automatic discount.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to create the discount.

DiscountAutomaticBasicInput fields

customerGets (DiscountCustomerGetsInput)

The qualifying items in an order, the quantity of each one, and the total value of the discount.

endsAt (DateTime)

The date and time when the discount ends. For open-ended discounts, use null.

minimumRequirement (DiscountMinimumRequirementInput)

The minimum subtotal or quantity that's required for the discount to be applied.

startsAt (DateTime)

The date and time when the discount starts.

title (String)

The title of the discount.

Return fields

automaticDiscountNode (DiscountAutomaticNode)

The created discount.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Version 2019-10 (Latest)

Creates a basic automatic discount.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to create the discount.

DiscountAutomaticBasicInput fields

customerGets (DiscountCustomerGetsInput)

The qualifying items in an order, the quantity of each one, and the total value of the discount.

endsAt (DateTime)

The date and time when the discount ends. For open-ended discounts, use null.

minimumRequirement (DiscountMinimumRequirementInput)

The minimum subtotal or quantity that's required for the discount to be applied.

startsAt (DateTime)

The date and time when the discount starts.

title (String)

The title of the discount.

Return fields

automaticDiscountNode (DiscountAutomaticNode)

The created discount.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Version 2019-07

Creates a basic automatic discount.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to create the discount.

DiscountAutomaticBasicInput fields

customerGets (DiscountCustomerGetsInput)

The qualifying items in an order, the quantity of each one, and the total value of the discount.

endsAt (DateTime)

The date and time when the discount ends. For open-ended discounts, use null.

minimumRequirement (DiscountMinimumRequirementInput)

The minimum subtotal or quantity that's required for the discount to be applied.

startsAt (DateTime)

The date and time when the discount starts.

title (String)

The title of the discount.

Return fields

automaticDiscountNode (DiscountAutomaticNode)

The created discount.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Version 2019-04

Creates a basic automatic discount.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to create the discount.

DiscountAutomaticBasicInput fields

customerGets (DiscountCustomerGetsInput)

The qualifying items in an order, the quantity of each one, and the total value of the discount.

endsAt (DateTime)

The date and time when the discount ends. For open-ended discounts, use null.

minimumRequirement (DiscountMinimumRequirementInput)

The minimum subtotal or quantity that's required for the discount to be applied.

startsAt (DateTime)

The date and time when the discount starts.

title (String)

The title of the discount.

Return fields

automaticDiscountNode (DiscountAutomaticNode)

The created discount.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up