List coupon codes with cursor-based pagination
Changed onReturns coupon code data with cursor-based pagination and optional full-text search via the query parameter.
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Query parameters
Optional filter to retrieve coupon codes for a specific coupon
Optional filter to retrieve coupon codes created by a specific team
Optional filter to retrieve only active or inactive coupon codes
Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.
Maximum number of coupon codes to return per request (1-100, default: 20)
Pagination cursor returned by a previous request. Omit on the first request.
Response
OK
Array of codes for the current result set
Cursor for navigating backward in the result set. Omitted when there are no prior results.
Cursor for navigating forward in the result set. Omitted when there are no subsequent results.
Maximum number of items to return in each result set
Example response
{
"codes": [
{
"id": "cod_01jps5cgsfzftw7hxcvr2wftk2",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"name": "TEST50",
"active": true,
"couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac"
}
],
"before": "eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19",
"after": "eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19",
"limit": 20
}Changes
- breaking
for the
queryrequest parameterlimit, the type changed fromnumbertointeger - warning
for the
queryrequest parameterlimit, the max was set to100.00 - warning
for the
queryrequest parameterlimit, the min was set to1.00
- breaking