Skip to main content
Anchor to DiscountContextInput

DiscountContextInput

input_object

The input fields for the buyers who can use this discount.

•DiscountBuyerSelection

All buyers are eligible for this discount.

•DiscountCustomersInput

The list of customer IDs to add or remove from the list of customers.

•DiscountCustomerSegmentsInput

The list of customer segment IDs to add or remove from the list of customer segments.


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 automatic discount that's managed by an app.

Use these input fields when you need advanced, custom, or dynamic discount capabilities that aren't supported by Shopify's native discount types.

•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 a free shipping discount that's automatically applied on a cart and at checkout.

•INPUT OBJECT

The input fields for creating or updating a code discount, where the discount type is provided by an app extension that uses Shopify Functions.

Use these input fields when you need advanced or custom discount capabilities that aren't supported by Shopify's native discount types.

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

•INPUT OBJECT

The input fields for creating or updating a free shipping discount that's applied on a cart and at checkout when a customer enters a code.


Was this section helpful?