Home > @infiniteobjects/shopify-data-manager > AdminTypes > DiscountAutomaticBxgyInput
The input fields to create or update an automatic Buy X, Get Y (BXGY) discount.
Signature:
export interface DiscountAutomaticBxgyInput
| Property | Modifiers | Type | Description |
|---|---|---|---|
| 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 in an order, the quantity of each one, and the total value of 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. | |
| usesPerOrderLimit? | InputMaybe<Scalars[‘UnsignedInt64’][‘input’]> | (Optional) The maximum number of times that the discount can be applied to an order. |