Issue Kash promo code
coupon_issueCreate a promo code linked to an existing catalog reduction. Requires explicit confirmation and an active shop administrator or manager. Reuse the same key and arguments for a retry.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"confirm": "<confirm>",
"idempotency_key": "<idempotency_key>",
"code": "<code>",
"name": "<name>",
"reduction_id": "<reduction_id>"
},
"name": "coupon_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | New sensitive promo code, 1–50 letters, digits, underscores or hyphens. Keep it out of messages and URLs. | |
| name | Yes | ||
| confirm | Yes | Set to true when the user explicitly requests this issuance. | |
| max_uses | No | ||
| valid_from | No | Calendar date in YYYY-MM-DD format. | |
| valid_until | No | ||
| reduction_id | Yes | Existing Kash catalog reduction ID. | |
| idempotency_key | Yes | Unique request key for this operation, such as a UUID. Reuse the same key and arguments when retrying. | |
| minimum_item_count | No | ||
| minimum_order_amount | No | ||
| one_use_per_customer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |