discountAutomaticBxgyUpdate mutation

Version 2020-01 (Release candidate)

Updates a BXGY automatic discount using its ID and input.

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

automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to update the discount.

id ( ID! ) required

The ID of the discount to update.

DiscountAutomaticBxgyInput fields

customerBuys (DiscountCustomerBuysInput)

The qualifying items and the quantity of each one that the customer has to buy to be eligible for the discount.

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.

startsAt (DateTime)

The date and time when the discount starts.

title (String)

The title of the discount.

usesPerOrderLimit (UnsignedInt64)

The maximum number of times that the discount can be applied to an order.

Return fields

automaticDiscountNode (DiscountAutomaticNode)

The updated discount.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Version 2019-10 (Latest)

Updates a BXGY automatic discount using its ID and input.

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

automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to update the discount.

id ( ID! ) required

The ID of the discount to update.

DiscountAutomaticBxgyInput fields

customerBuys (DiscountCustomerBuysInput)

The qualifying items and the quantity of each one that the customer has to buy to be eligible for the discount.

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.

startsAt (DateTime)

The date and time when the discount starts.

title (String)

The title of the discount.

usesPerOrderLimit (UnsignedInt64)

The maximum number of times that the discount can be applied to an order.

Return fields

automaticDiscountNode (DiscountAutomaticNode)

The updated discount.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Version 2019-07

Updates a BXGY automatic discount using its ID and input.

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

automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to update the discount.

id ( ID! ) required

The ID of the discount to update.

DiscountAutomaticBxgyInput fields

customerBuys (DiscountCustomerBuysInput)

The qualifying items and the quantity of each one that the customer has to buy to be eligible for the discount.

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.

startsAt (DateTime)

The date and time when the discount starts.

title (String)

The title of the discount.

usesPerOrderLimit (UnsignedInt64)

The maximum number of times that the discount can be applied to an order.

Return fields

automaticDiscountNode (DiscountAutomaticNode)

The updated discount.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Version 2019-04

Updates a BXGY automatic discount using its ID and input.

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

automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to update the discount.

id ( ID! ) required

The ID of the discount to update.

DiscountAutomaticBxgyInput fields

customerBuys (DiscountCustomerBuysInput)

The qualifying items and the quantity of each one that the customer has to buy to be eligible for the discount.

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.

startsAt (DateTime)

The date and time when the discount starts.

title (String)

The title of the discount.

usesPerOrderLimit (UnsignedInt64)

The maximum number of times that the discount can be applied to an order.

Return fields

automaticDiscountNode (DiscountAutomaticNode)

The updated discount.

userErrors ([DiscountUserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up