PayPing: create coupon
payping_create_couponCreates an active discount coupon with a percent or fixed Toman amount and returns its code for sharing; confirm details with the user before creation.
Instructions
Create an active discount coupon; returns its code. Confirm with the user first.
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": {
"name": "<name>",
"kind": "<kind>",
"amount": "<amount>"
},
"name": "payping_create_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Percent off or fixed Toman off. | |
| name | Yes | ||
| amount | Yes | Percent (1-100) or Toman, per `kind`. | |
| max_uses | No | ||
| expires_on | No | Last valid day (YYYY-MM-DD). | |
| coupon_code | No | Omit to generate. | |
| product_codes | No | Omit for all products. |