PayPing: create coupon
payping_create_couponCreate an active PayPing discount coupon and return its code. Confirm with the user first because it writes real account data.
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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||