Update a form coupon
paperform_update_couponDestructiveIdempotent
WRITE: change a coupon on a form — enable or disable it, change its discount (amount or percentage), target or expiry (null = never expires). Only the fields you pass are sent. Paperform: PUT /forms/{slug_or_id}/coupons/{code}.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The coupon code, e.g. DISCOUNT1. | |
| form | Yes | The form's slug, custom slug or id (from paperform_list_forms). | |
| target | No | What the discount applies to: the one-off price or a subscription. | |
| enabled | No | Whether respondents can use the coupon. | |
| expiresAt | No | When the coupon expires (ISO 8601 with a timezone), or null for no expiry. | |
| discountAmount | No | A fixed discount, in the form's currency (e.g. 10 = 10.00). | |
| discountPercentage | No | A percentage discount, 0-100. |