update_discount
Change a discount; only the fields sent change. Read the current value with its read tool first; this call returns the value as it now stands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Discount id, from list_discounts. | |
| code | No | ||
| stay_to | No | Latest check-in it covers, YYYY-MM-DD. | |
| boat_ids | No | ||
| currency | No | EUR or USD: the currency a fixed amount is in. | |
| end_date | No | Last day it can be booked, YYYY-MM-DD. | |
| max_uses | No | ||
| all_boats | No | false limits it to `boat_ids`. | |
| is_active | No | ||
| stay_from | No | Earliest check-in it covers, YYYY-MM-DD. | |
| auto_apply | No | true applies it without a code. | |
| start_date | No | First day it can be booked, YYYY-MM-DD. | |
| description | No | Shown to the guest. | |
| discount_type | No | `percentage` or `fixed`. | |
| discount_value | No | The percent, or for fixed the amount in `currency` (EUR when omitted). |