Skip to main content
Anchor to DiscountCustomerSelectionInput

DiscountCustomerSelectionInput

input_object

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

•Boolean

Whether all customers can use 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 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?