API reference
All operations
OPPORTUNITIES

Fetches a list of opportunities with filtering, sorting, and pagination options.

Each item is a set of column/value pairs. Deleted opportunities are not included.

GET/api/v2/opportunities/list

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Parameters

pageNumberqueryinteger · int32

Page number, starting at 1. Defaults to 1.

pageSizequeryinteger · int32

Number of items per page, up to 200. Missing, zero or values over 200 use 100.

orderByquerystring

The field and direction to order by, for example `OpenDate DESC`. Currently has no effect; use `sortOrders`.

searchTermquerystring

Optional partial match on opportunity name, company name, rep or reference number. Characters other than letters and digits (including spaces) are removed before matching.

dateFieldquerystring

Date field the date range applies to (for example `OpenDate`, `DeliveryDate`, `DecisionDate`). Defaults to `OpenDate`.

startDatequerystring

Start of the date range (for example `2025-01-31`). Defaults to three months ago. A value that is not a valid date is ignored.

endDatequerystring

End of the date range (for example `2025-12-31`). Defaults to three months from today. A value that is not a valid date is ignored.

filterquerystring

Which opportunities to return, for example `MyOpen`, `MyWon`, `AllOpen` or `AllWon`. Defaults to `AllOpen`.

sortOrdersquerystring

Sort expression such as `OpenDate DESC`; `Ascending`/`Descending` are accepted in place of `ASC`/`DESC`.

Responses

Request successful with opportunity data.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

Paginated
dataPaginatedResponse<Dictionary<string, object>[]>
  • totalCountinteger · int32
  • dataobject[]nullable
    • pageCountinteger · int32
    • currentPageCountinteger · int32
    • nextPageNumberinteger · int32nullable
    • hasNextPageboolean