Get all deals

GET {{baseUrl}}/deals?filter_id=<integer>&ids=<string>&owner_id=<integer>&person_id=<integer>&org_id=<integer>&pipeline_id=<integer>&stage_id=<integer>&status=<string>&updated_since=<string>&updated_until=<string>&sort_by=id&sort_direction=asc&include_fields=<string>&custom_fields=<string>&limit=<integer>&cursor=<string>

Returns data about all deals.

Request Params

KeyDatatypeRequiredDescription
filter_idstringIf supplied, only deals matching the specified filter are returned
idsstringOptional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
owner_idstringIf supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored.
person_idstringIf supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored.
org_idstringIf supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored.
pipeline_idstringIf supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored.
stage_idstringIf supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored.
statusstringOnly fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored.
updated_sincestringIf set, only deals with an update_time later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
updated_untilstringIf set, only deals with an update_time earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
sort_bystringThe field to sort by. Supported fields: id, update_time, add_time.
sort_directionstringThe sorting direction. Supported values: asc, desc.
include_fieldsstringOptional comma separated string array of additional fields to include
custom_fieldsstringOptional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
limitstringFor pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
cursorstringFor pagination, the marker (an opaque string value) representing the first item on the next page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;id&quot;:1,&quot;title&quot;:&quot;Deal Title&quot;,&quot;creator_user_id&quot;:1,&quot;owner_id&quot;:1,&quot;value&quot;:200,&quot;person_id&quot;:1,&quot;org_id&quot;:1,&quot;stage_id&quot;:1,&quot;pipeline_id&quot;:1,&quot;currency&quot;:&quot;USD&quot;,&quot;add_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;update_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;stage_change_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;status&quot;:&quot;open&quot;,&quot;is_deleted&quot;:false,&quot;probability&quot;:90,&quot;lost_reason&quot;:&quot;Lost Reason&quot;,&quot;visible_to&quot;:7,&quot;close_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;won_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;lost_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;local_won_date&quot;:&quot;2021-01-01&quot;,&quot;local_lost_date&quot;:&quot;2021-01-01&quot;,&quot;local_close_date&quot;:&quot;2021-01-01&quot;,&quot;expected_close_date&quot;:&quot;2021-01-01&quot;,&quot;label_ids&quot;:[1,2,3],&quot;origin&quot;:&quot;ManuallyCreated&quot;,&quot;origin_id&quot;:null,&quot;channel&quot;:52,&quot;channel_id&quot;:&quot;Jun23 Billboards&quot;,&quot;acv&quot;:120,&quot;arr&quot;:120,&quot;mrr&quot;:10,&quot;custom_fields&quot;:{}}],&quot;additional_data&quot;:{&quot;next_cursor&quot;:&quot;eyJmaWVsZCI6ImlkIiwiZmllbGRWYWx1ZSI6Nywic29ydERpcmVjdGlvbiI6ImFzYyIsImlkIjo3fQ&quot;}}