Skip to main content
Anchor to DiscountAutomaticBxgyInput

DiscountAutomaticBxgyInput

input_object

The input fields for creating or updating a buy X get Y discount (BXGY) that's automatically applied on a cart and at checkout.

•DiscountCombinesWithInput

The discount class that you can use in combination with Shopify discount types.

•DiscountCustomerBuysInput

The items eligible for the discount and the required quantity of each to receive the discount.

•DiscountCustomerGetsInput

The items in the order that qualify for the discount, their quantities, and the total value of the discount.

•DateTime

The date and time when the discount expires and is no longer available to customers. For discounts without a fixed expiration date, specify null.

•DateTime

The date and time when the discount becomes active and is available to customers.

•String

The discount's name that displays to merchants in the Shopify admin and to customers.

•UnsignedInt64

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


Was this section helpful?