Skip to main content
GET

Query Parameters

integer
default:"1"
Page number for pagination. Must be a positive integer.
integer
default:"50"
Number of results per page. Maximum value is 200. Default is 50.
string
Filter coupons by affiliate ID.
string
Filter coupons by program ID.
Search by coupon code. Case-insensitive partial matching. Maximum 100 characters.
string
Sort field and direction in the format field:direction. Valid fields: created_at, code. Valid directions: asc, desc. Example: created_at:desc.
string
Comma-separated list of related data to include in the response. Valid values: affiliate.

Response

The response includes a paginated list of coupons and pagination metadata.
boolean
Always true for successful responses
array
Array of coupon objects. Each coupon object has the same structure as the single coupon response (see Get Coupon endpoint).
object
Pagination metadata object containing:
  • page (integer): Current page number
  • limit (integer): Number of results per page
  • total (integer): Total number of coupons matching the filters
  • totalPages (integer): Total number of pages
  • hasNextPage (boolean): Whether there is a next page
  • hasPrevPage (boolean): Whether there is a previous page