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

DiscountCodeBxgyInput input object

Version unstable

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2021-04 (Release candidate)

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2021-01 (Latest)

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2020-10

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2020-07

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2020-04

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2020-01 (Unsupported)

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2019-10 (Unsupported)

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2019-07 (Unsupported)

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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

Version 2019-04 (Unsupported)

Specifies input field to create or update a BXGY code discount.

Input fields

  • appliesOncePerCustomer (Boolean)

    Whether the discount can be applied only once per customer.

  • code (String)

    The code to use the discount.

  • 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.

  • customerSelection (DiscountCustomerSelectionInput)

    The customers that can use 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.

  • usageLimit (Int)

    The maximum number of times that the discount can be used. For open-ended discounts, use null.

  • usesPerOrderLimit (Int)

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