put
https://www.pelcro.com/api/v1/core/coupons/
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Update an existing coupon's name, code, expiration, redemption limits, plan restrictions, or metadata.
What can be updated
Only the following fields can be changed after creation:
name— display namecode— redemption code (must remain unique within the site, alphanumeric only)redeem_by— expiration date (YYYY-MM-DD, must be a future date). Set to null to remove expirationmax_redemptions— usage limit. Cannot be set lower than current redemption countplans— plan restrictionsmetadata— custom key-value pairs
amount_off, percent_off, duration, and currency are set at creation and cannot be changed. If passed, they are silently ignored.
Behavior
- Metadata is merged, not replaced. New keys are added to existing metadata. To clear metadata, pass an empty object.
- Plans are replaced. If
plansis provided, the coupon's plan restrictions are updated to match. Ifplansis omitted, all existing plan restrictions are removed.
