API version: unstable
API version: 2021-07 Release candidate
API version: 2021-04 Latest
API version: 2021-01
API version: 2020-10
API version: 2020-07
API version: 2020-04 Unsupported
API version: 2020-01 Unsupported

discountAutomaticBxgyCreate mutation

Version unstable

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2021-07 (Release candidate)

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2021-04 (Latest)

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2021-01

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2020-10

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2020-07

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2020-04 (Unsupported)

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2020-01 (Unsupported)

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2019-10 (Unsupported)

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2019-07 (Unsupported)

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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

Version 2019-04 (Unsupported)

Creates a BXGY automatic discount.

Required access

Apps must have write_discounts access scope.

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

Argument Description
automaticBxgyDiscount ( DiscountAutomaticBxgyInput! ) required

The input data used to create the automatic discount.

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