Get all deals (BETA)

GET {{baseUrl}}/deals/collection?cursor=<string>&limit=<integer>&since=<string>&until=<string>&user_id=<integer>&stage_id=<integer>&status=<string>

Returns all deals. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here.

Request Params

KeyDatatypeRequiredDescription
cursorstringFor pagination, the marker (an opaque string value) representing the first item on the next page
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.
sincestringThe time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the update_time field.
untilstringThe time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the update_time field.
user_idstringIf supplied, only deals matching the given user will be returned
stage_idstringIf supplied, only deals within the given stage will be returned
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.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;id&quot;:1,&quot;creator_user_id&quot;:8877,&quot;person_id&quot;:1101,&quot;org_id&quot;:5,&quot;stage_id&quot;:2,&quot;title&quot;:&quot;Deal One&quot;,&quot;value&quot;:5000,&quot;currency&quot;:&quot;EUR&quot;,&quot;add_time&quot;:&quot;2019-05-29 04:21:51&quot;,&quot;update_time&quot;:&quot;2019-11-28 16:19:50&quot;,&quot;status&quot;:&quot;open&quot;,&quot;probability&quot;:null,&quot;lost_reason&quot;:null,&quot;visible_to&quot;:&quot;1&quot;,&quot;close_time&quot;:null,&quot;pipeline_id&quot;:1,&quot;won_time&quot;:&quot;2019-11-27 11:40:36&quot;,&quot;lost_time&quot;:&quot;2019-11-27 11:40:36&quot;,&quot;expected_close_date&quot;:&quot;2019-06-29&quot;,&quot;label&quot;:&quot;11&quot;}],&quot;additional_data&quot;:{&quot;next_cursor&quot;:&quot;eyJhY3Rpdml0aWVzIjoyN30&quot;}}