UpsertCodeDiscountInput
The 'kind' field is required and will define which kind of discount will be applied. The 'amountOffCents' and 'percentageOff' fields are mutually exclusive.
input UpsertCodeDiscountInput {
kind: DiscountKindEnum!
amountOffCents: Int
percentageOff: Float
}
Fields
UpsertCodeDiscountInput.kind
● DiscountKindEnum!
non-null enum
UpsertCodeDiscountInput.amountOffCents
● Int
scalar
Deduct amount from the total price in cents
UpsertCodeDiscountInput.percentageOff
● Float
scalar
Decrease the total price by a percentage
Member Of
CreateCodeInput
input ● UpdateCodeInput
input