Coupons
Validate coupon
Check whether a code is usable, and what it would take off.
POST/v1/coupons/validate
Parameters
| Parameter | Description |
|---|---|
| codestringrequired | At most 64 characters. |
| amount_centsinteger | nulloptional | Minimum 0. |
| price_idstring | nulloptional | No description in the spec. |
Returns
Returns a CouponValidateResponse object.
Errors
| Status | Cause |
|---|---|
| 401 | Missing or invalid API key. |
| 403 | Key is missing the coupons:read scope. |
| 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}
- Update coupon POST /v1/coupons/{coupon_id}
BillKit