Payhip: Create coupon
payhip_create_couponPayhip: Coupon code for the whole order, one product or one collection. A percentage applies to the original price and a fixed amount is deducted from it. Payhip has no per-buyer limit, so use a product-specific code or single-use codes for that. The coupon works at checkout right away. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Code buyers type at checkout. Omit to let Payhip generate one. | |
| notes | No | Private note. Buyers never see it. | |
| amount | Yes | Percent off or amount off. | |
| applies_to | Yes | total_order, product or collection. | |
| expires_on | No | Expires at 00:00 UTC on this date. | |
| product_id | No | Required when applies_to is product. | |
| usage_limit | No | Total uses across all buyers, not per buyer. | |
| collection_id | No | Required when applies_to is collection. | |
| discount_type | Yes | percentage or fixed. |