cigchat_shop_discount_codes_create
Create a new shop discount code with type, validity period, and usage conditions such as minimum quantity or price.
Instructions
Create new tag [POST /shop/discount-codes/create] Requires the "Manage Team" scope on the token.
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": {
"code": "<code>",
"end_time": "<end_time>",
"start_time": "<start_time>",
"type": "<type>"
},
"name": "cigchat_shop_discount_codes_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| type | Yes | Example: percentage,amount,free_shipping | |
| min_qty | No | Example: 10 | |
| end_time | Yes | Example: 2022-12-27 00:00:00 | |
| min_price | No | Example: 100 | |
| start_time | Yes | Example: 2022-12-25 00:00:00 | |
| min_require | No | Example: none,price,qty | |
| once_per_order | No | Example: 0 | |
| discount_amount | No | Example: 5.05 | |
| has_usage_limit | No | Example: 0 | |
| max_usage_count | No | Example: 1 | |
| one_per_customer | No | Example: 0 | |
| discount_percentage | No | Example: 100 |