type
is mandatory; the
properties amount
and priceBookId
are
used only in association with specific types. Some examples: percentage
with percentage
15.00
: a 15% discount was applied.amount
with amount 5.99
: a
discount was applied to reduce the (unit) price by 5.99.fixed_price
with amount
49.99
: a discount was applied to reduce the price to
49.99.free
: a discount was applied to reduce the
price to zero.price_book_price
with price_book_id
MyPriceBook
: a discount was applied to set the price
to that defined in MyPriceBook.Property | Type | Constraints | Description |
---|---|---|---|
amount
|
Decimal | The amount that is used with the amount and fixed price types. | |
percentage
|
Decimal | The percentage that is used with percentage types. | |
price_book_id
|
String | The price book id that is used with some types. | |
type
|
Enum {percentage, fixed_price, amount, free, price_book_price, bonus, total_fixed_price, bonus_choice, percentage_off_options} | mandatory=true, nullable=false | The type of discount. |