update_discount
Update a discount's editable fields like value, start/end dates, and max uses. Code, type, and currency become immutable after the discount is used, so only proceed after user confirmation.
Instructions
Update a discount (partial). code/type/currency become immutable once the discount has been used. Only call after the user confirms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| type | No | ||
| value | No | ||
| endsAt | No | ISO date-time | |
| enabled | No | ||
| maxUses | No | ||
| currency | No | ||
| idOrSlug | No | The discount's id or code to update | |
| startsAt | No | ISO date-time | |
| minSubtotal | No |