Input fields for creating or updating a basic discount code
Fields
code ● String!non-null
The code to use the discount.
usageLimit ● Int
Maximum number of times the discount can be used. For unlimited discounts, use null.
minimumRequirement ● DiscountMinimumRequirementInput
Minimum subtotal or quantity required to apply the discount
More
title ● String
The title of the discount.
combinesWith ● DiscountCombinesWithInput
Determine which discount levels can be combined with this discount
More
customerGets ● DiscountCustomerGetsInput
Eligible items in the order, the quantity of each item, and the total discount value
More
startsAt ● Date
Start date and time of the discount
appliesTimesPerCustomer ● Int
Use times limit for per customer.
endsAt ● Date
End date and time of the discount. For indefinite discounts, use null.
customerSelection ● DiscountCustomerSelectionInput
The customers that can use the discount.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?