Coupons

List coupons with cursor-based pagination

Changed on

Returns coupon data with cursor-based pagination and optional full-text search via the query parameter.

get/coupons

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Query parameters

teamId, string required

Unique identifier of the team whose coupons to retrieve

Example:tem_01jqpjksnsen9vprw95et60t2m
active, boolean

Optional filter to retrieve only active or inactive coupons

Example:true
query, string

Optional search query to filter coupons by name or description. When provided, search-backed pagination is used.

Example:Half Price
limit, integer

Maximum number of coupons to return per request (1-100, default: 20)

Example:20
cursor, string

Pagination cursor returned by a previous request. Omit on the first request.

Example:eyJpZCI6ImNwbl8wMWpwczVjZ3NmenMxa3NxYWV0NWhiYThhYyJ9

Response

OK

object required
coupons, Coupon[] required

Array of coupons for the current result set

before, string nullable

Cursor for navigating backward in the result set. Omitted when there are no prior results.

after, string nullable

Cursor for navigating forward in the result set. Omitted when there are no subsequent results.

limit, number required

Maximum number of items to return in each result set

Example response

{
  "coupons": [
    {
      "id": "cpn_01jps5cgsfzs1ksqaet5hba8ac",
      "couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac",
      "createdAt": "2026-12-02T02:43:23.597Z",
      "updatedAt": "2026-12-02T02:43:23.597Z",
      "name": "Half Price",
      "active": true,
      "kind": "PERCENT",
      "filter": "EVENTS",
      "currency": "AUD",
      "discount": 50,
      "limit": -1,
      "orderLimit": 2,
      "saleStartsAt": "2025-02-10T03:00:00"
    }
  ],
  "before": "eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19",
  "after": "eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19",
  "limit": 20
}

Changes

    • breaking

      for the query request parameter limit, the type changed from number to integer

    • warning

      for the query request parameter limit, the max was set to 100.00

    • warning

      for the query request parameter limit, the min was set to 1.00

    2 more changes in this revision