Coupons
Update coupon
Update a coupon's limits, or withdraw it.
POST/v1/coupons/{coupon_id}
Parameters
| Parameter | Description |
|---|---|
| coupon_idstring · pathrequired | No description in the spec. |
| activeboolean | nulloptional | No description in the spec. |
| applies_to_price_idsarray of string | nulloptional | No description in the spec. |
| max_redemptionsinteger | nulloptional | Minimum 1. |
| min_amount_centsinteger | nulloptional | Minimum 0. |
| redeem_byinteger | nulloptional | Minimum 0. |
Returns
Returns a CouponResponse object.
Errors
| Status | Cause |
|---|---|
| 401 | Missing or invalid API key. |
| 403 | Key is missing the coupons:write scope. |
| 404 | No such object, or it belongs to the other mode. |
| 422 | Validation Error |
| 429 | Rate limited. Back off and retry. |
Other coupons operations
- List coupons GET /v1/coupons
- Create coupon POST /v1/coupons
- Get coupon GET /v1/coupons/{coupon_id}
- Validate coupon POST /v1/coupons/validate
BillKit