--- title: DiscountCustomerSelectionInput - GraphQL Admin description: The input fields for the customers who can use this discount. api_version: 2025-10 api_name: admin type: input-object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/input-objects/discountcustomerselectioninput md: https://shopify.dev/docs/api/admin-graphql/latest/input-objects/discountcustomerselectioninput.md --- # Discount​Customer​Selection​Input input\_object The input fields for the customers who can use this discount. ## Fields * all [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) Whether all customers can use this discount. * customers [Discount​Customers​Input](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCustomersInput) The list of customer IDs to add or remove from the list of customers. * customer​Segments [Discount​Customer​Segments​Input](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCustomerSegmentsInput) The list of customer segment IDs to add or remove from the list of customer segments. *** ## Input objects using this input * [Discount​Code​App​Input.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCodeAppInput#fields-customerSelection) 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](https://shopify.dev/docs/apps/build/functions). Use these input fields when you need advanced or custom discount capabilities that aren't supported by [Shopify's native discount types](https://help.shopify.com/manual/discounts/discount-types). * [Discount​Code​Basic​Input.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCodeBasicInput#fields-customerSelection) INPUT OBJECT The input fields for creating or updating an [amount off discount](https://help.shopify.com/manual/discounts/discount-types/percentage-fixed-amount) 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. * [Discount​Code​Bxgy​Input.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCodeBxgyInput#fields-customerSelection) INPUT OBJECT The input fields for creating or updating a [buy X get Y discount (BXGY)](https://help.shopify.com/manual/discounts/discount-types/buy-x-get-y) that's applied on a cart and at checkout when a customer enters a code. * [Discount​Code​Free​Shipping​Input.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCodeFreeShippingInput#fields-customerSelection) INPUT OBJECT The input fields for creating or updating a [free shipping discount](https://help.shopify.com/manual/discounts/discount-types/free-shipping) that's applied on a cart and at checkout when a customer enters a code. *** ## Map ### Input objects using this input * [Discount​Code​App​Input.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCodeAppInput#fields-customerSelection) * [Discount​Code​Basic​Input.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCodeBasicInput#fields-customerSelection) * [Discount​Code​Bxgy​Input.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCodeBxgyInput#fields-customerSelection) * [Discount​Code​Free​Shipping​Input.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/DiscountCodeFreeShippingInput#fields-customerSelection)