# DiscountCodeBasicInput - admin-graphql - INPUT_OBJECT Version: 2024-10 ## Description 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. ### Access Scopes ## Fields * [appliesOncePerCustomer](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean - Whether a customer can only use the discount once. * [code](/docs/api/admin-graphql/2024-10/scalars/String): String - The code that customers use to apply the discount. * [combinesWith](/docs/api/admin-graphql/2024-10/input-objects/DiscountCombinesWithInput): DiscountCombinesWithInput - The [discount class](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) that you can use in combination with [Shopify discount types](https://help.shopify.com/manual/discounts/discount-types). * [customerGets](/docs/api/admin-graphql/2024-10/input-objects/DiscountCustomerGetsInput): DiscountCustomerGetsInput - The items in the order that qualify for the discount, their quantities, and the total value of the discount. * [customerSelection](/docs/api/admin-graphql/2024-10/input-objects/DiscountCustomerSelectionInput): DiscountCustomerSelectionInput - The customers that can use the discount. You can target specific customer IDs or make the discount available to all customers. * [endsAt](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime - The date and time when the discount expires and is no longer available to customers. For discounts without a fixed expiration date, specify `null`. * [minimumRequirement](/docs/api/admin-graphql/2024-10/input-objects/DiscountMinimumRequirementInput): DiscountMinimumRequirementInput - The minimum subtotal or quantity of items that are required for the discount to be applied. * [recurringCycleLimit](/docs/api/admin-graphql/2024-10/scalars/Int): Int - The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts. For example, if you set this field to `3`, then the discount only applies to the first three billing cycles of a subscription. If you specify `0`, then the discount applies indefinitely. * [startsAt](/docs/api/admin-graphql/2024-10/scalars/DateTime): DateTime - The date and time when the discount becomes active and is available to customers. * [title](/docs/api/admin-graphql/2024-10/scalars/String): String - The discount's name that displays to merchants in the Shopify admin and to customers. * [usageLimit](/docs/api/admin-graphql/2024-10/scalars/Int): Int - The maximum number of times that the discount can be used. For discounts with no usage limit, specify `null`. ## Input objects with this input object * [discountCodeBasicCreate](/docs/api/admin-graphql/2024-10/mutations/discountCodeBasicCreate) * [discountCodeBasicUpdate](/docs/api/admin-graphql/2024-10/mutations/discountCodeBasicUpdate) ## Examples