The input data used to create the code discount.
Fields
combinesWith ● DiscountCombinesWithInput
Determines which discount classes the discount can combine with.
More
customerGets ● DiscountCustomerGetsInput
Eligible items for the discount, the quantity of each item, and the total value of the discount
More
title ● String
The title of the discount.
customerSelection ● DiscountCustomerSelectionInput
Customers eligible for the discount
More
startsAt ● Date
The date and time when the discount starts.
customerBuys ● DiscountCustomerBuysInput
Eligible items for the discount and the quantity of each item that customers must purchase
More
endsAt ● Date
The date and time when the discount ends. For open-ended discounts, use null.
usageLimit ● Int
Maximum number of times the discount can be used. For unlimited discounts, use null.
usesPerOrderLimit ● Int
Maximum number of times the discount can be applied to an order
appliesTimesPerCustomer ● Int
Whether the discount can be applied only once per customer.
code ● String
The code to use the discount.
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?