Skip to main content
Anchor to DiscountCustomerBuysInput

DiscountCustomerBuysInput

input_object

The input fields for prerequisite items and quantity for the discount.

•Boolean
Default:true

If the discount is applicable when a customer buys a one-time purchase.

•Boolean
Default:false

If the discount is applicable when a customer buys a subscription purchase.

•DiscountItemsInput

The IDs of items that the customer buys. The items can be either collections or products.

•DiscountCustomerBuysValueInput

The quantity of prerequisite items.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

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

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


Was this section helpful?