Skip to main content
Anchor to DiscountCustomerGetsInput

DiscountCustomerGetsInput

input_object

Specifies the items that will be discounted, the quantity of items that will be discounted, and the value of discount.

Anchor to appliesOnOneTimePurchaseappliesOnOneTimePurchase
•Boolean

Whether the discount applies on regular one-time-purchase items.

Anchor to appliesOnSubscriptionappliesOnSubscription
•Boolean

Whether the discount applies on subscription items. Subscriptions enable customers to purchase products on a recurring basis.

•DiscountItemsInput

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

•DiscountCustomerGetsValueInput

The quantity of items discounted and the discount value.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

The input fields for creating or updating an amount off discount 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 automatically applied on a cart and at checkout.

•INPUT OBJECT

The input fields for creating or updating an amount off discount that's applied on a cart and at checkout when a customer enters a code. Amount off discounts can be a percentage off or a fixed amount off.

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