Ready2order Discount API
Discounts are preset price reductions that cashiers can apply at the point of sale. Unlike coupons, they are not financial instruments; they simply reduce the sale price, with VAT calculated on the reduced amount. Every discount belongs to a group via `discountGroup_id`. The group determines how discounts are organised and presented at the POS. You need at least one [discount group](#operation/discountGroupCreateDiscountGroup) before you can create a discount. **Discount unit** `discount_unit` controls how the reduction is calculated: | Unit | Behaviour | `discount_value` | |------|-----------|-----------------| | `percent` | Reduces the price by a percentage | 0–100 | | `currency` | Reduces the price by a fixed amount | Any positive number | | `custom` | The cashier enters the amount at checkout | Not required | **Visibility and ordering** Set `discount_active` to `false` to hide a discount at the POS without deleting it. `discount_order` controls the position in the list shown to cashiers.