Get deals in a pipeline
GET {{baseUrl}}/pipelines/:id/deals?filter_id=<integer>&user_id=<integer>&everyone=<number>&stage_id=<integer>&start=0&limit=<integer>&get_summary=<number>&totals_convert_currency=<string>
Lists deals in a specific pipeline across all its stages. If no parameters are provided open deals owned by the authorized user will be returned.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
filter_id | string | If supplied, only deals matching the given filter will be returned | |
user_id | string | If supplied, filter_id will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. | |
everyone | string | If supplied, filter_id and user_id will not be considered – instead, deals owned by everyone will be returned | |
stage_id | string | If supplied, only deals within the given stage will be returned | |
start | number | Pagination start | |
limit | string | Items shown per page | |
get_summary | string | Whether to include a summary of the pipeline in the additional_data or not | |
totals_convert_currency | string | The 3-letter currency code of any of the supported currencies. When supplied, per_stages_converted is returned inside deals_summary inside additional_data which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to default_currency in which case users default currency is used. Only works when get_summary parameter flag is enabled. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"success":true,"data":[{"id":1,"creator_user_id":123,"user_id":456,"person_id":1,"org_id":2,"stage_id":2,"title":"Deal One","value":5000,"currency":"EUR","add_time":"2019-05-29 04:21:51","update_time":"2019-05-29 04:21:51","stage_change_time":"2019-11-28 15:41:22","active":true,"deleted":false,"status":"open","probability":null,"next_activity_date":"2019-11-29","next_activity_time":"11:30:00","next_activity_id":128,"last_activity_id":null,"last_activity_date":null,"lost_reason":null,"visible_to":"1","close_time":null,"pipeline_id":1,"won_time":"2019-11-27 11:40:36","first_won_time":"2019-11-27 11:40:36","lost_time":"2019-11-27 11:40:36","products_count":0,"files_count":0,"notes_count":2,"followers_count":0,"email_messages_count":4,"activities_count":1,"done_activities_count":0,"undone_activities_count":1,"participants_count":1,"expected_close_date":"2019-06-29","last_incoming_mail_time":"2019-05-29 18:21:42","last_outgoing_mail_time":"2019-05-30 03:45:35","label":"11","stage_order_nr":2,"person_name":"Person","org_name":"Organization","next_activity_subject":"Call","next_activity_type":"call","next_activity_duration":"00:30:00","next_activity_note":"Note content","formatted_value":"€5,000","weighted_value":5000,"formatted_weighted_value":"€5,000","weighted_value_currency":"EUR","rotten_time":null,"owner_name":"Creator","cc_email":"company+deal1@pipedrivemail.com","org_hidden":false,"person_hidden":false}],"additional_data":{"pagination":{"start":0,"limit":100,"more_items_in_collection":false}}}