update_promotion
Update an existing promotion. Pass only the fields you want to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Promotion code | |
| name | No | Name | |
| type | No | Type | |
| value | No | Discount value (numeric or decimal string) | |
| endsAt | No | End timestamp (ISO 8601) | |
| status | No | Status filter | |
| startsAt | No | Start timestamp (ISO 8601) | |
| promotionId | Yes | Promotion ID | |
| usageLimitTotal | No | Total usage limit across all customers | |
| usageLimitPerCustomer | No | Usage limit per customer |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool result payload — shape varies per tool, see the tool description | |
| summary | Yes | One-line human-readable summary of the action | |
| renderType | Yes | UI rendering hint for the result |