PayPing: create coupon
payping_create_couponCreate an active discount coupon for a PayPing account and return its code. Set percent or fixed Toman discounts, limits, expiry, and product scope; confirm before writing.
Instructions
Create an active discount coupon and return its code. Creates real data: confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | 'percent' off, or a fixed Toman amount 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 | Code buyers type; omit to generate. | |
| product_codes | No | Limit to these products; omit for all. |