DiscountRequest
Request that represents a discount to be applied to a custom price adjustment.
type
string
enum
Required
The type of discount.
amount
describes a (unit) price discount, and its corresponding value (positive) defines the amount each unit is to be reduced by. Example: For a $10 discount, settype
toamount
andvalue
to10.00
.percentage
describes a percentage discount, and its corresponding value (positive) defines the percentage reduction. Example: For a 5% discount, settype
topercentage
andvalue
to5.00
.fixed_price
describes a fixed price discount, and its corresponding value (positive) defines the resulting fixed price for the item. Only onefixed_price
discount can be set for each item. Example: To set a fixed price of $15, settype
tofixed_price
andvalue
to15.00
. Important: Settingtype
tofixed_price
is not supported whenlevel
is set toorder
.
Enum values:
- percentage
- fixed_price
- amount
percentage
value
double
Required
The amount of the discount.
20