Skip to main content
GET
List deals

Query Parameters

partner_id
integer<int32>

The ID of the partner to filter the deals on. A deal matches when the partner holds any role on it, including the source role.

close_stage
string

Filter the deals on whether their pipeline stage is closed. Accepted values: open, closedWon, closedLost, closed. The value is matched on the closed marker carried by the stage, never on the stage name.

Example:

"closed"

closed_after
string<date-time>

Filter the deals closed on or after this date (inclusive). A deal that is not closed has no close date and never matches.

closed_before
string<date-time>

Filter the deals closed before this date (exclusive). A deal that is not closed has no close date and never matches.

offset
integer<int32>

The cursor used in pagination. This is the index of the first deal to be returned.

limit
integer<int32>

The maximum number of deals to be returned. The default is 20.

sort_by
string

The property used to sort the deals by. The default is CreationDate.

Example:

"CreationDate"

order_by
string

The sorting direction for the returned deals. Accepted values: ASC, DESC. The default is DESC.

Response

Deals returned

items
object[] | null
paginationSkipCount
integer<int32>
totalCount
integer<int32>

Gets or sets the total number of items that could be returned by this command (without pagination).