← API Index


Discount (v2)

An active discount for the customer. If this record is provided, it must be active for the caller.

# Field Type Description
0 name string discount name
1 iid int item id this discount applies to (0=all items), <0 it names a group
2 percentage double discount percentage
3 max_amount double minimum amount (of an order) for the Discount to apply
4 individual int individual discount flag: if true, its a Discount not for all customers.
5 valid_from date discount valid from date or empty
6 valid_to date discount valid until date or empty

Used in endpoints

Referenced in skills