create_promotion
Create a promotion / discount code. type=percentage or fixed_amount; value is the discount as a string ("10" = 10% or 10 currency units). Codes are uppercased server-side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Coupon code customers enter at checkout (auto-uppercased) | |
| name | Yes | Promotion name (internal) | |
| type | No | Default percentage | |
| value | Yes | Discount value as decimal string | |
| endsAt | No | ISO datetime — when the promo expires | |
| status | No | Default active | |
| startsAt | No | ISO datetime — when the promo becomes valid | |
| posEnabled | No | Allow at POS | |
| description | No | Description | |
| eventEnabled | No | Allow on event registrations | |
| minimumAmount | No | Minimum order amount required, decimal string | |
| onlineEnabled | No | Allow on online shop orders | |
| bookingEnabled | No | Allow on bookings | |
| maximumDiscount | No | Cap on percentage discounts, decimal string | |
| minimumQuantity | No | Minimum item count required | |
| usageLimitTotal | No | Max total uses across all customers | |
| usageLimitPerCustomer | No | Max uses per single 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 |