Skip to main content
GET
List all deals

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

cursor
string | null

A cursor for pagination, representing the last item from the previous page.

Example:

"25"

sort
string[] | null

Sorting order as a tuple: [field, direction]. Example: ['createdAt', 'desc'].

Required array length: 2 elements
Minimum string length: 1
Example:
pageSize
number

Number of deals to return per page (1-100).

Required range: 1 <= x <= 100
Example:

25

q
string | null

Search query string to filter deals by text.

Example:

"Acme"

start
string | null

Start date (inclusive) for filtering deals, in ISO 8601 format.

Example:

"2024-01-01"

end
string | null

End date (inclusive) for filtering deals, in ISO 8601 format.

Example:

"2024-01-31"

statuses
string[] | null

List of deal statuses to filter by (e.g., 'paid', 'unpaid', 'overdue').

Example:
merchants
string[] | null

List of merchant IDs to filter deals.

Example:
ids
string[] | null

List of deal IDs to filter by.

Example:
recurringIds
string[] | null

List of recurring series IDs to filter deals by (shows all deals from these series).

Example:
recurring
boolean | null

Filter by recurring status. true = only recurring deals, false = only non-recurring deals.

Example:

true

Response

200 - application/json

A list of deals for the authenticated team.

Response containing a list of deals and pagination metadata

meta
object
required

Pagination metadata

data
object[]
required

Array of deal objects