Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to DiscountCodeBxgyInput

DiscountCodeBxgyInput

input_object

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

Anchor to appliesOncePerCustomerappliesOncePerCustomer
•

Whether a customer can only use the discount once.

•

The code that customers use to apply the discount.

•

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

•

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

•

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

•

The customers that can use the discount.

•

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

•

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

•

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

•

The maximum number of times that a customer can use the discount. For discounts with unlimited usage, specify null.

•

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


Was this section helpful?