Discount Code Bxgy Input
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.
When creating, required fields are:
codecontext(or deprecated)title
Anchor to FieldsFields
- appliesOncePerCustomer (Boolean)
- code (String)
- combinesWith (DiscountCombinesWithInput)
- context (DiscountContextInput)
- customerBuys (DiscountCustomerBuysInput)
- customerGets (DiscountCustomerGetsInput)
- endsAt (DateTime)
- startsAt (DateTime)
- title (String)
- usageLimit (Int)
- usesPerOrderLimit (Int)
- customerSelection (DiscountCustomerSelectionInput): deprecated
- Anchor to appliesOncePerCustomerapplies•Boolean
Once Per Customer Whether a customer can only use the discount once.
- Anchor to codecode•String
The code that customers use to apply the discount.
- Anchor to combinesWithcombines•Discount
With Combines With Input The discount class that you can use in combination with Shopify discount types.
Show input fields
- Anchor to contextcontext•Discount
Context Input The context defining which buyers can use the discount. You can target specific customer IDs, customer segments, or make the discount available to all buyers.
Show input fields
- Anchor to customerBuyscustomer•Discount
Buys Customer Buys Input The items eligible for the discount and the required quantity of each to receive the discount.
Show input fields
- Anchor to customerGetscustomer•Discount
Gets Customer Gets Input The items in the order that qualify for the discount, their quantities, and the total value of the discount.
Show input fields
- Anchor to endsAtends•Date
At Time The date and time when the discount expires and is no longer available to customers. For discounts without a fixed expiration date, specify
null.- Anchor to startsAtstarts•Date
At Time The date and time when the discount becomes active and is available to customers.
- Anchor to titletitle•String
The discount's name that displays to merchants in the Shopify admin and to customers.
- Anchor to usageLimitusage•Int
Limit The maximum number of times the discount can be redeemed. For unlimited usage, specify
null.- Anchor to usesPerOrderLimituses•Int
Per Order Limit The maximum number of times that the discount can be applied to an order.
- Anchor to customerSelectioncustomer•Discount
Selection Customer Selection Input Deprecated Show input fields