Home > @infiniteobjects/shopify-data-manager > AdminTypes > DiscountCodeBxgyInput
The input fields to create or update a BXGY code discount.
Signature:
export interface DiscountCodeBxgyInput
| Property | Modifiers | Type | Description |
|---|---|---|---|
| appliesOncePerCustomer? | InputMaybe<Scalars[‘Boolean’][‘input’]> | (Optional) Whether the discount can be applied only once per customer. | |
| code? | InputMaybe<Scalars[‘String’][‘input’]> | (Optional) The code to use the discount. | |
| combinesWith? | InputMaybe<DiscountCombinesWithInput> | (Optional) Determines which discount classes the discount can combine with. | |
| customerBuys? | InputMaybe<DiscountCustomerBuysInput> | (Optional) The qualifying items and the quantity of each one that the customer has to buy to be eligible for the discount. | |
| customerGets? | InputMaybe<DiscountCustomerGetsInput> | (Optional) The qualifying items that will be discounted, the quantity of each one, and the total value of the discount. | |
| customerSelection? | InputMaybe<DiscountCustomerSelectionInput> | (Optional) The customers that are eligible to use the discount. | |
| endsAt? | InputMaybe<Scalars[‘DateTime’][‘input’]> | (Optional) The date and time when the discount ends. For open-ended discounts, use null. |
|
| startsAt? | InputMaybe<Scalars[‘DateTime’][‘input’]> | (Optional) The date and time when the discount starts. | |
| title? | InputMaybe<Scalars[‘String’][‘input’]> | (Optional) The title of the discount. | |
| usageLimit? | InputMaybe<Scalars[‘Int’][‘input’]> | (Optional) The maximum number of times that the discount can be used. For open-ended discounts, use null. |
|
| usesPerOrderLimit? | InputMaybe<Scalars[‘Int’][‘input’]> | (Optional) The maximum number of times that the discount can be applied to an order. |