Coupons
List coupons
List coupons, newest first.
GET/v1/coupons
Parameters
| Parameter | Description |
|---|---|
| limitinteger · queryoptional | Defaults to 10. Between 1 and 100. |
| starting_afterstring | null · queryoptional | At most 128 characters. |
Cursor-paginated. limit caps a page and starting_after takes the last id you
saw.
Returns
Returns a page of CouponResponse objects. data holds the page and has_more says whether another one exists. Page forward by passing the last id of the page as starting_after; a short page is not the end of the list.
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
- Create coupon POST /v1/coupons
- Get coupon GET /v1/coupons/{coupon_id}
- Update coupon POST /v1/coupons/{coupon_id}
- Validate coupon POST /v1/coupons/validate
BillKit