Download OpenAPI specification:Download
Activities are appointments/tasks/events on a calendar that can be associated with a deal, a lead, a person and an organization. Activities can be of different type (such as call, meeting, lunch or a custom type - see ActivityTypes object) and can be assigned to a particular user. Note that activities can also be created without a specific date/time.
Marks multiple activities as deleted. After 30 days, the activities will be permanently deleted.
| ids required | string The comma-separated IDs that will be deleted |
{- "success": true,
- "data": {
- "id": [
- 0
]
}
}Returns all activities assigned to a particular user.
| user_id | integer The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets. |
| filter_id | integer The ID of the filter to use (will narrow down results if used together with |
| type | string The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| start_date | string <date> Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format. |
| end_date | string <date> Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format. |
| done | number (doneNumberBoolean) Enum: 0 1 Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. |
{- "success": true,
- "data": [
- {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Adds a new activity. Includes more_activities_scheduled_in_context property in response's additional_data which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.
| person_id | integer The ID of the person this Item is associated with |
| deal_id | integer The ID of the deal this Item is associated with |
| org_id | integer The ID of the organization this Item is associated with |
| due_date | string <date> "The due date of the activity. Format: YYYY-MM-DD" |
| due_time | string "The due time of the activity in UTC. Format: HH:MM" |
| duration | string "The duration of the activity. Format: HH:MM" |
| active_flag | boolean Whether the entity is active or not. false = Not activated, true = Activated |
| created_by_user_id | integer The ID of the user who created the item. |
| add_time | string <date-time> The creation time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| update_time | string <date-time> The last update time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| last_updated_by_user_id | integer The ID of the user who created or most recently updated the item. |
| org_name | string The name of the organization associated with the entity |
| person_name | string The name of the peson associated with the entity |
| owner_name | string The name of the owner associated with the entity |
| deal_name | string The name of the deal this entity is associated with |
| company_id | integer The ID of the company |
| id | integer The ID of the activity, generated when the activity was created |
| done | number (doneNumberBoolean) Enum: 0 1 Whether the activity is done or not. 0 = Not done, 1 = Done |
| subject | string The subject of the activity |
| type | string The type of the activity. This is in correlation with the |
| assigned_to_user_id | integer The ID of the user to whom the activity is assigned to. Equal to |
| user_id | integer The ID of the user whom the activity is assigned to |
| participants | Array of objects or null List of multiple persons (participants) this activity is associated with. It requires a structure as follows: |
| marked_as_done_time | string The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. |
{- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}{- "success": true,
- "data": {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}, - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Returns the details of a specific activity.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Updates an activity. Includes more_activities_scheduled_in_context property in response's additional_data which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).
| id required | integer The ID of the Entity we want to retrieve. |
| person_id | integer The ID of the person this Item is associated with |
| deal_id | integer The ID of the deal this Item is associated with |
| org_id | integer The ID of the organization this Item is associated with |
| due_date | string <date> "The due date of the activity. Format: YYYY-MM-DD" |
| due_time | string "The due time of the activity in UTC. Format: HH:MM" |
| duration | string "The duration of the activity. Format: HH:MM" |
| active_flag | boolean Whether the entity is active or not. false = Not activated, true = Activated |
| created_by_user_id | integer The ID of the user who created the item. |
| add_time | string <date-time> The creation time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| update_time | string <date-time> The last update time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| last_updated_by_user_id | integer The ID of the user who created or most recently updated the item. |
| org_name | string The name of the organization associated with the entity |
| person_name | string The name of the peson associated with the entity |
| owner_name | string The name of the owner associated with the entity |
| deal_name | string The name of the deal this entity is associated with |
| company_id | integer The ID of the company |
| id | integer The ID of the activity, generated when the activity was created |
| done | number (doneNumberBoolean) Enum: 0 1 Whether the activity is done or not. 0 = Not done, 1 = Done |
| subject | string The subject of the activity |
| type | string The type of the activity. This is in correlation with the |
| assigned_to_user_id | integer The ID of the user to whom the activity is assigned to. Equal to |
| user_id | integer The ID of the user whom the activity is assigned to |
| participants | Array of objects or null List of multiple persons (participants) this activity is associated with. It requires a structure as follows: |
| marked_as_done_time | string The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. |
{- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}{- "success": true,
- "data": {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}{- "success": true,
- "data": [
- {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Activity types represent different kinds of activities that can be stored.
Each activity type is presented to the user with an icon and a name.
Additionally, a color can be defined (not implemented in the Fintesk app as of today).
Activity types are linked to activities via ActivityType.key_string = Activity.type.
The key_string will be generated by the API based on the given name of the activity type upon creation, and cannot be changed.
Activity types should be presented to the user in an ordered manner, using the ActivityType.order_nr value.
Marks multiple activity types as deleted.
| ids required | string The comma-separated IDs that will be deleted |
{- "success": true,
- "data": {
- "type": null,
- "title": null,
- "properties": null
}
}{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "key_string": "string",
- "is_custom_flag": true,
- "order_nbr": 0,
- "name": "string",
- "icon_key": "task",
- "color": "string"
}
]
}Adds a new activity type.
| order_nbr | integer The position (index) of the Item. First order ( |
| name required | string The name of the activity type |
| icon_key required | string Enum: "task" "email" "meeting" "deadline" "call" "lunch" "calendar" "downarrow" "document" "smartphone" "camera" "scissors" "cogs" "bubble" "uparrow" "checkbox" "signpost" "shuffle" "addressbook" "linegraph" "picture" "car" "world" "search" "clip" "sound" "brush" "key" "padlock" "pricetag" "suitcase" "finish" "plane" "loop" "wifi" "truck" "cart" "bulb" "bell" "presentation" Icon graphic to use for representing this activity type |
| color | string A designated color for the activity type in 6-character HEX format (e.g. |
{- "order_nbr": 0,
- "name": "string",
- "icon_key": "task",
- "color": "string"
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "key_string": "string",
- "is_custom_flag": true,
- "order_nbr": 0,
- "name": "string",
- "icon_key": "task",
- "color": "string"
}
}Marks an activity type as deleted.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "key_string": "string",
- "is_custom_flag": true,
- "order_nbr": 0,
- "name": "string",
- "icon_key": "task",
- "color": "string"
}
}Updates an activity type.
| id required | integer The ID of the Entity we want to retrieve. |
| order_nbr | integer The position (index) of the Item. First order ( |
| name | string The name of the activity type |
| icon_key | string Enum: "task" "email" "meeting" "deadline" "call" "lunch" "calendar" "downarrow" "document" "smartphone" "camera" "scissors" "cogs" "bubble" "uparrow" "checkbox" "signpost" "shuffle" "addressbook" "linegraph" "picture" "car" "world" "search" "clip" "sound" "brush" "key" "padlock" "pricetag" "suitcase" "finish" "plane" "loop" "wifi" "truck" "cart" "bulb" "bell" "presentation" Icon graphic to use for representing this activity type |
| color | string A designated color for the activity type in 6-character HEX format (e.g. |
{- "order_nbr": 0,
- "name": "string",
- "icon_key": "task",
- "color": "string"
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "key_string": "string",
- "is_custom_flag": true,
- "order_nbr": 0,
- "name": "string",
- "icon_key": "task",
- "color": "string"
}
}Supported currencies which can be used to represent the monetary value of a deal, or a value of any monetary type custom field.
The Currency.code field must be used to point to a currency.
Currency.code is the ISO-4217 format currency code for non-custom currencies.
You can differentiate custom and non-custom currencies using the is_custom_flag property.
Returns all supported currencies in given account which should be used when saving monetary values with other objects. The code parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies.
| term | string Optional search term that is searched for from currency's name and/or code |
{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "code": "string",
- "name": "string",
- "decimal_points": 0,
- "symbol": "string",
- "is_custom_flag": true
}
]
}Deal fields represent the near-complete schema for a deal in the context of the company of the authorized user.
Each company can have a different schema for their deals, with various custom fields.
In the context of using deal fields as a schema for defining the data fields of a deal, it must be kept in mind that some types of custom fields can have additional data fields which are not separate deal fields per se. Such is the case with monetary, daterange and timerange fields – each of these fields will have one additional data field in addition to the one presented in the context of deal fields.
For example, if there is a monetary field with the key ffk9s9 stored on the account, ffk9s9 would hold the numeric value of the field, and ffk9s9_currency would hold the ISO currency code that goes along with the numeric value.
To find out which data fields are available, fetch one deal and list its keys.
Returns data about all deal fields.
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
{- "success": true,
- "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Adds a new deal field. For more information, see the tutorial for adding a new custom field.
| options | Array of objects or null The options of the field. When there are no options, | ||||||||||||||||||||||||||||||
| name required | string The name of the field | ||||||||||||||||||||||||||||||
| add_visible_flag | boolean Default: true Whether the field is available in the 'add new' modal or not (in the web app) | ||||||||||||||||||||||||||||||
| field_type required | string Enum: "date" "daterange" "double" "enum" "monetary" "org" "person" "phone" "set" "text" "time" "timerange" "user" "varchar" The type of the field
|
{- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date"
}{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Returns data about a specific deal field.
| id required | integer The ID of the Entity Field we want to retrieve. |
{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Marks a field as deleted. For more information, see the tutorial for deleting a custom field.
| id required | integer The ID of the Entity Field we want to retrieve. |
{- "success": true,
- "data": {
- "id": 0
}
}Updates a deal field. For more information, see the tutorial for updating custom fields' values.
| id required | integer The ID of the Entity Field we want to retrieve. |
| options | Array of objects or null The options of the field. When there are no options, |
| name required | string The name of the field |
| add_visible_flag | boolean Default: true Whether the field is available in the 'add new' modal or not (in the web app) |
{- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true
}{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Deals represent ongoing, lost or won sales to an organization or to a person.
Each deal has a monetary value and must be placed in a stage.
Deals can be owned by a user.
Each deal consists of standard data fields but can also contain a number of custom fields.
The custom fields can be recognized by long hashes as keys.
These hashes can be mapped against DealField.key.
The corresponding label for each such custom field can be obtained from DealField.name.
Returns all deals. For more information, see the tutorial for getting all deals.
| user_id | integer If supplied, only deals matching the given user will be returned. However, |
| filter_id | integer The ID of the filter to use (will narrow down results if used together with |
| stage_id | integer If supplied, only deals within the given stage will be returned |
| status | string Default: "all_not_deleted" Enum: "open" "won" "lost" "deleted" "all_not_deleted" Only 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. The upper limit of found deals associated with the status is 2000. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| sort | string The field names and sorting mode separated by a comma ( |
| owned_by_you | number (ownedNumberBoolean) Enum: 0 1 When supplied, only deals owned by you are returned. However, |
{- "success": true,
- "data": [
- {
- "id": "string",
- "creator_user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "person_id": {
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0,
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0
}, - "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "stage": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}, - "pipeline": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0
}
}
}Adds a new deal. All deals created through the Pipedrive API will have a origin set to API. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for key values. For more information, see the tutorial for adding a deal.
| name | string The name of the deal |
| origin_id | string or null The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, |
| channel | integer or null The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields If omitted, channel will be set to null. |
| channel_id | string or null The optional ID to further distinguish the Marketing channel. If omitted, |
| add_time | string The optional creation date & time of the Item in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS |
| value | string The value of the deal. If omitted, value will be set to 0. |
| currency | string The currency of the deal. Accepts a 3-character currency code. Adding a new Deal: if omitted, currency will be set to the default currency of the authorized user. |
| user_id | integer The ID of the user which will be the owner of the created deal. Adding a new Deal: If not provided, the user making the request will be used. |
| person_id | integer The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. Adding a new Deal: This property is required unless |
| org_id | integer The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. Adding a new Deal: This property is required unless |
| pipeline_id | integer The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that |
| stage_id | integer The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the |
| status | string Enum: "open" "won" "lost" "deleted" open = Open, won = Won, lost = Lost, deleted = Deleted. Adding a new Deal: If omitted, status will be set to open. |
| won_time | string The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal |
| lost_time | string The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal |
| close_time | string or null The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. |
| expected_close_date | string <date> The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. |
| probability | number The success probability percentage of the deal. Used/shown only when |
| lost_reason | string The optional message about why the deal was lost (to be used when status = lost) |
{- "name": "string",
- "origin_id": "string",
- "channel": 0,
- "channel_id": "string",
- "add_time": "string",
- "value": "string",
- "currency": "string",
- "user_id": 0,
- "person_id": 0,
- "org_id": 0,
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "open",
- "won_time": "string",
- "lost_time": "string",
- "close_time": "string",
- "expected_close_date": "2019-08-24",
- "probability": 0,
- "lost_reason": "string"
}{- "success": true,
- "data": {
- "id": "string",
- "creator_user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "person_id": {
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0,
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0
}, - "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "stage": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}, - "pipeline": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0
}
}
}Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted.
| ids required | string The comma-separated IDs that will be deleted |
{- "success": true,
- "data": {
- "id": [
- 0
]
}
}Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID.
| term required | string The search term to look for. Minimum 2 characters (or 1 if using |
| fields | string Enum: "custom_fields" "notes" "title" A comma-separated string array.
The fields to perform the search from.
Defaults to all of them.
Only the following custom field types are searchable: |
| exact_match | boolean When enabled, only full exact matches against the given term are returned. It is not case sensitive. |
| person_id | integer Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. |
| organization_id | integer Will filter items by the provided organization ID. The upper limit of found items associated with the organization is 2000. |
| status | string Default: "all_not_deleted" Enum: "open" "won" "lost" "deleted" "all_not_deleted" Only 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. The upper limit of found deals associated with the status is 2000. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. Note that the pagination is based on main results and does not include related items when using |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": {
- "items": [
- {
- "result_score": 0,
- "item": {
- "id": 0,
- "type": "string",
- "name": "string",
- "owner": {
- "id": "string"
}, - "custom_fields": [
- "string"
], - "notes": [
- "string"
], - "organization": {
- "id": 0,
- "name": "string"
}, - "person": {
- "id": 0,
- "name": "string"
}, - "status": "string",
- "currency": "string",
- "value": 0,
- "stage": {
- "id": 0,
- "name": "string"
}
}
}
]
}, - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Returns a summary of all the deals.
| filter_id | integer
|
| user_id | integer If supplied, only deals matching the given user will be returned. However, |
| stage_id | integer If supplied, only deals within the given stage will be returned |
{- "success": true,
- "data": {
- "total_count": 0,
- "values_total": {
- "value": 0,
- "count": 0,
- "value_converted": 0,
- "value_formatted": "string",
- "value_converted_formatted": "string"
}, - "weighted_values_total": {
- "value": 0,
- "count": 0,
- "value_formatted": "string"
}, - "total_currency_converted_value": 0,
- "total_weighted_currency_converted_value": 0,
- "total_currency_converted_value_formatted": "string",
- "total_weighted_currency_converted_value_formatted": "string"
}
}Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (field_key) - e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2023, deals are returned grouped into 3 groups - January, February and March - based on the value of the given field_key.
| start_date required | string <date> The date when the first interval starts. Format: YYYY-MM-DD. | ||||||||||
| interval required | string Enum: "day" "week" "month" "quarter" The type of the interval
| ||||||||||
| amount required | integer The number of given intervals, starting from | ||||||||||
| field_key required | string The date field key which deals will be retrieved from | ||||||||||
| user_id | integer If supplied, only deals matching the given user will be returned. However, | ||||||||||
| pipeline_id | integer If supplied, only deals matching the given pipeline will be returned | ||||||||||
| filter_id | integer The ID of the filter to use (will narrow down results if used together with | ||||||||||
| exclude_deals | number (excludeNumberBoolean) Enum: 0 1 Whether to exclude deals list (1) or not (0). Note that when deals are excluded, the timeline summary (counts and values) is still returned. | ||||||||||
| totals_convert_currency | string The 3-letter currency code of any of the supported currencies. When supplied, |
{- "success": true,
- "data": {
- "period_start": "string",
- "period_end": "string",
- "deals": [
- {
- "created_by_user_id": 0,
- "id": "string",
- "user_id": "string",
- "org_id": 0,
- "person_id": 0,
- "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}
], - "totals": {
- "count": 0,
- "values": { },
- "weighted_values": { },
- "open_count": 0,
- "open_values": { },
- "weighted_open_values": { },
- "won_count": 0,
- "won_values": { }
}
}
}Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the key value of dealFields. For more information, see the tutorial for getting details of a deal.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "id": "string",
- "creator_user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "person_id": {
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0,
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0
}, - "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string",
- "average_time_to_won": {
- "y": 0,
- "m": 0,
- "d": 0,
- "h": 0,
- "i": 20,
- "s": 48,
- "total_seconds": 1249
}, - "average_stage_progress": 0,
- "age": {
- "y": 0,
- "m": 0,
- "d": 0,
- "h": 0,
- "i": 0,
- "s": 0,
- "total_seconds": 0
}, - "stay_in_pipeline_stages": {
- "times_in_stages": { },
- "order_of_stages": [
- 0
]
}, - "last_activity": { },
- "next_activity": { }
}, - "additional_data": { },
- "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "stage": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}, - "pipeline": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0
}
}
}Updates the properties of a deal. For more information, see the tutorial for updating a deal.
| id required | integer The ID of the Entity we want to retrieve. |
| name | string The name of the deal |
| origin_id | string or null The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, |
| channel | integer or null The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields If omitted, channel will be set to null. |
| channel_id | string or null The optional ID to further distinguish the Marketing channel. If omitted, |
| add_time | string The optional creation date & time of the Item in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS |
| value | string The value of the deal. If omitted, value will be set to 0. |
| currency | string The currency of the deal. Accepts a 3-character currency code. Adding a new Deal: if omitted, currency will be set to the default currency of the authorized user. |
| user_id | integer The ID of the user which will be the owner of the created deal. Adding a new Deal: If not provided, the user making the request will be used. |
| person_id | integer The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. Adding a new Deal: This property is required unless |
| org_id | integer The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. Adding a new Deal: This property is required unless |
| pipeline_id | integer The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that |
| stage_id | integer The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the |
| status | string Enum: "open" "won" "lost" "deleted" open = Open, won = Won, lost = Lost, deleted = Deleted. Adding a new Deal: If omitted, status will be set to open. |
| won_time | string The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal |
| lost_time | string The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal |
| close_time | string or null The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. |
| expected_close_date | string <date> The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. |
| probability | number The success probability percentage of the deal. Used/shown only when |
| lost_reason | string The optional message about why the deal was lost (to be used when status = lost) |
{- "name": "string",
- "origin_id": "string",
- "channel": 0,
- "channel_id": "string",
- "add_time": "string",
- "value": "string",
- "currency": "string",
- "user_id": 0,
- "person_id": 0,
- "org_id": 0,
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "open",
- "won_time": "string",
- "lost_time": "string",
- "close_time": "string",
- "expected_close_date": "2019-08-24",
- "probability": 0,
- "lost_reason": "string"
}{- "success": true,
- "data": {
- "id": "string",
- "creator_user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "person_id": {
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0,
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0
}, - "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "stage": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}, - "pipeline": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0
}
}
}Lists activities associated with a deal.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| done | number (doneNumberBoolean) Enum: 0 1 Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. |
| exclude | string A comma-separated string of activity IDs to exclude from result |
{- "success": true,
- "data": [
- {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Lists updates about a deal.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| all_changes | string Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. |
| items | string A comma-separated string for filtering out item specific updates. (Possible values - activity, note, deal, dealChange, personChange, organizationChange). |
{- "success": true,
- "data": [
- {
- "object": "string",
- "timestamp": "string",
- "data": { }
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "company_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "first_char": "string",
- "id": 0,
- "label": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0,
- "active_flag": true
}
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}
}
}Lists products attached to a deal.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| include_product_data | number (queryNumberBoolean) Enum: 0 1 Whether to fetch product data along with each attached product (1) or not (0, default) |
{- "success": true,
- "data": [
- {
- "company_id": 0,
- "product_id": 0,
- "duration_unit": "hourly",
- "tax": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "name": "string",
- "deal_id": 0,
- "sum": 0,
- "currency": "string",
- "last_edit": "string",
- "discount": 0,
- "discount_type": "percentage",
- "product_variation_id": 0,
- "duration": 1,
- "quantity": 0,
- "item_price": 0,
- "comments": "string",
- "tax_method": "exclusive",
- "enabled_flag": true,
- "order_nbr": 0,
- "sum_formatted": "string",
- "quantity_formatted": "string",
- "product": {
- "name": "string",
- "active_flag": true,
- "code": "string",
- "prices": [
- { }
], - "unit": "string",
- "tax": 0,
- "selectable": true,
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}
}
}
], - "additional_data": {
- "products_quantity_total": 0,
- "products_sum_total": 0,
- "products_quantity_total_formatted": "string",
- "products_sum_total_formatted": "string",
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}
}
}Adds a product to a deal, creating a new item called a deal-product.
| id required | integer The ID of the Entity we want to retrieve. |
| product_id required | integer The ID of the product |
| duration_unit | string (dealProductUnitDuration) Enum: "hourly" "daily" "weekly" "monthly" "yearly" The unit duration of the product |
| tax | number Default: 0 The tax percentage |
| duration | integer Default: 1 The duration of the product |
| discount | number Default: 0 The value of the discount. The |
| discount_type | string Default: "percentage" Enum: "percentage" "amount" The type of the discount's value |
| product_variation_id | integer or null The ID of the product variation. When omitted, no variation will be used |
| tax_method | string Enum: "exclusive" "inclusive" "none" The tax option to be applied to the products.
When using |
| enabled_flag | boolean Default: true Whether the product is enabled or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default |
| item_price required | number The price at which this product will be added to the deal |
| quantity required | integer How many items of this product will be added to the deal |
| comments | string A textual comment associated with this product-deal attachment |
{- "product_id": 0,
- "duration_unit": "hourly",
- "tax": 0,
- "duration": 1,
- "discount": 0,
- "discount_type": "percentage",
- "product_variation_id": 0,
- "tax_method": "exclusive",
- "enabled_flag": true,
- "item_price": 0,
- "quantity": 0,
- "comments": "string"
}{- "success": true,
- "data": {
- "product_id": 0,
- "duration_unit": "hourly",
- "tax": 0,
- "discount": 0,
- "discount_type": "percentage",
- "product_variation_id": 0,
- "duration": 1,
- "quantity": 0,
- "item_price": 0,
- "comments": "string",
- "tax_method": "exclusive",
- "enabled_flag": true,
- "company_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "name": "string",
- "deal_id": 0,
- "sum": 0,
- "currency": "string",
- "last_edit": "string",
- "product_attachment_id": 0
}
}Updates the details of the product that has been attached to a deal.
| id required | integer The ID of the Entity we want to retrieve. |
| product_attachment_id required | integer The ID of the deal-product (the ID of the product attached to the deal) |
| product_id | integer The ID of the product |
| duration_unit | string (dealProductUnitDuration) Enum: "hourly" "daily" "weekly" "monthly" "yearly" The unit duration of the product |
| tax | number Default: 0 The tax percentage |
| duration | integer Default: 1 The duration of the product |
| discount | number Default: 0 The value of the discount. The |
| discount_type | string Default: "percentage" Enum: "percentage" "amount" The type of the discount's value |
| product_variation_id | integer or null The ID of the product variation. When omitted, no variation will be used |
| tax_method | string Enum: "exclusive" "inclusive" "none" The tax option to be applied to the products.
When using |
| enabled_flag | boolean Default: true Whether the product is enabled or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default |
| item_price | number The price at which this product will be added to the deal |
| quantity | integer How many items of this product will be added to the deal |
| comments | string A textual comment associated with this product-deal attachment |
{- "product_id": 0,
- "duration_unit": "hourly",
- "tax": 0,
- "duration": 1,
- "discount": 0,
- "discount_type": "percentage",
- "product_variation_id": 0,
- "tax_method": "exclusive",
- "enabled_flag": true,
- "item_price": 0,
- "quantity": 0,
- "comments": "string"
}{- "success": true,
- "data": {
- "product_id": 0,
- "duration_unit": "hourly",
- "tax": 0,
- "discount": 0,
- "discount_type": "percentage",
- "product_variation_id": 0,
- "duration": 1,
- "quantity": 0,
- "item_price": 0,
- "comments": "string",
- "tax_method": "exclusive",
- "enabled_flag": true,
- "company_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "name": "string",
- "deal_id": 0,
- "sum": 0,
- "currency": "string",
- "last_edit": "string"
}
}Deletes a product attachment from a deal, using the product_attachment_id.
| id required | integer The ID of the Entity we want to retrieve. |
| product_attachment_id required | integer The ID of the deal-product (the ID of the product attached to the deal) |
{- "success": true,
- "data": {
- "id": 0
}
}Each filter is essentially a set of data validation conditions. A filter of the same kind can be applied when fetching a list of deals, persons, organizations or products in the context of a pipeline. Filters are limited to a maximum of 16 conditions. When applied, only items matching the conditions of the filter are returned. Detailed definitions of filter conditions and additional functionality is not yet available.
Returns data about all filters.
| type | string Enum: "deals" "org" "persons" "products" "activity" The types of filters to fetch |
{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "id": 0,
- "user_id": "string",
- "type": "deals"
}
]
}Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with 'AND', and only two second level condition groups are supported of which one must be glued with 'AND' and the second with 'OR'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for adding a filter.
| name required | string The name of the filter |
| conditions required | object The conditions of the filter as a JSON object.
Please note that a maximum of 16 conditions is allowed per filter and |
| type required | string Enum: "deals" "org" "persons" "products" "activity" The type of filter to create |
{- "name": "string",
- "conditions": { },
- "type": "deals"
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "id": 0,
- "user_id": "string",
- "type": "deals",
- "temporary_flag": true,
- "conditions": { }
}
}Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to add or update filters. For more information, see the tutorial for adding a filter.
{- "success": true,
- "data": { }
}Returns data about a specific filter. Note that this also returns the condition lines of the filter.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "id": 0,
- "user_id": "string",
- "type": "deals"
}
}Updates an existing filter.
| id required | integer The ID of the Entity we want to retrieve. |
| name | string The name of the filter |
| conditions required | object The conditions of the filter as a JSON object.
Please note that a maximum of 16 conditions is allowed per filter and |
{- "name": "string",
- "conditions": { }
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "id": 0,
- "user_id": "string",
- "type": "deals",
- "temporary_flag": true,
- "conditions": { }
}
}Performs a search from your choice of item types and fields.
| item_types | string Enum: "deal" "person" "organization" "product" "lead" "file" "mail_attachment" "project" A comma-separated string array. The type of items to perform the search from. Defaults to all. | ||||||||||
| fields | string Enum: "address" "code" "custom_fields" "email" "name" "notes" "organization_name" "person_name" "phone" "title" "description" A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:
Only the following custom field types are searchable: `address`, `varchar`, `text`, and `phone`. Read more about searching by custom fields [here](../../kb/getting-started/search-finding-what-you-need#searching-by-custom-fields). | ||||||||||
| search_for_related_items | boolean When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization | ||||||||||
| include_fields | string Enum: "deal.cc_email" "person.picture" "product.price" A comma-separated string array. Supports including optional fields in the results which are not provided by default. | ||||||||||
| term required | string The search term to look for. Minimum 2 characters (or 1 if using | ||||||||||
| exact_match | boolean When enabled, only full exact matches against the given term are returned. It is not case sensitive. | ||||||||||
| start | integer Default: 0 For pagination, the position that represents the first result for the page. Note that the pagination is based on main results and does not include related items when using | ||||||||||
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": {
- "items": [
- {
- "result_score": 0,
- "item": { }
}
], - "related_items": [
- {
- "result_score": 0,
- "item": { }
}
]
}, - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
| field_type required | string Enum: "dealField" "personField" "organizationField" "productField" The type of the field to perform the search from |
| field_key required | string The key of the field to search from.
The field key can be obtained by fetching the list of the fields using any of the fields' API GET methods (dealFields, personFields, etc.).
Only the following custom field types are searchable: |
| return_item_ids | boolean Whether to return the IDs of the matching items or not. When not set or set to |
| term required | string The search term to look for. Minimum 2 characters (or 1 if using |
| exact_match | boolean When enabled, only full exact matches against the given term are returned. It is not case sensitive. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "id": 0,
- "$field_key": null
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Organization fields represent the near-complete schema for an organization in the context of the company of the authorized user.
Each company can have a different schema for their organizations, with various custom fields.
In the context of using organization fields as a schema for defining the data fields of an organization, it must be kept in mind that some types of custom fields can have additional data fields which are not separate organization fields per se.
Such is the case with monetary, daterange and timerange fields - each of these fields will have one additional data field in addition to the one presented in the context of organization fields.
For example, if there is a monetary field with the key ffk9s9 stored on the account, ffk9s9 would hold the numeric value of the field, and ffk9s9_currency would hold the ISO currency code that goes along with the numeric value.
To find out which data fields are available, fetch one organization and list its keys.
Returns data about all organization fields.
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
{- "success": true,
- "data": [
- {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Adds a new organization field. For more information, see the tutorial for adding a new custom field.
| options | Array of objects or null The options of the field. When there are no options, | ||||||||||||||||||||||||||||||
| name required | string The name of the field | ||||||||||||||||||||||||||||||
| add_visible_flag | boolean Default: true Whether the field is available in the 'add new' modal or not (in the web app) | ||||||||||||||||||||||||||||||
| field_type required | string Enum: "date" "daterange" "double" "enum" "monetary" "org" "person" "phone" "set" "text" "time" "timerange" "user" "varchar" The type of the field
|
{- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date"
}{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Returns data about a specific organization field.
| id required | integer The ID of the Entity Field we want to retrieve. |
{- "success": true,
- "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Marks a field as deleted. For more information, see the tutorial for deleting a custom field.
| id required | integer The ID of the Entity Field we want to retrieve. |
{- "success": true,
- "data": {
- "id": 0
}
}Updates an organization field. For more information, see the tutorial for updating custom fields' values.
| id required | integer The ID of the Entity Field we want to retrieve. |
| options | Array of objects or null The options of the field. When there are no options, |
| name required | string The name of the field |
| add_visible_flag | boolean Default: true Whether the field is available in the 'add new' modal or not (in the web app) |
{- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true
}{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Organization relationships represent how different organizations are related to each other.
The relationship can be hierarchical (parent-child companies) or lateral as defined by the type field - either parent or related.
Organizations are companies and other kinds of organizations you are making deals with. Persons can be associated with organizations so that each organization can contain one or more persons.
Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted.
| ids required | string The comma-separated IDs that will be deleted |
{- "success": true,
- "data": {
- "id": [
- 0
]
}
}Returns all organizations.
| user_id | integer If supplied, only organizations owned by the given user will be returned. However, |
| filter_id | integer The ID of the filter to use (will narrow down results if used together with |
| first_char | string If supplied, only entities whose name starts with the specified letter will be returned (case-insensitive) |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| sort | string The field names and sorting mode separated by a comma ( |
{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "address": "string",
- "picture_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}, - "owner_name": "string",
- "company_id": 0,
- "first_char": "string",
- "name": "string",
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "country_code": "string",
- "address_subpremise": "string",
- "address_street_number": "string",
- "address_route": "string",
- "address_sublocality": "string",
- "address_locality": "string",
- "address_admin_area_level_1": "string",
- "address_admin_area_level_2": "string",
- "address_country": "string",
- "address_postal_code": "string",
- "address_formatted_address": "string",
- "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "picture": {
- "PICTURE_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}
}
}
}Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for key values. For more information, see the tutorial for adding an organization.
| name required | string The name of the organization |
| add_time | string The optional creation date & time of the organization in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS |
| allOf | any |
{- "name": "string",
- "add_time": "string",
- "allOf": null
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "address": "string",
- "picture_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}, - "owner_name": "string",
- "company_id": 0,
- "first_char": "string",
- "name": "string",
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "country_code": "string",
- "address_subpremise": "string",
- "address_street_number": "string",
- "address_route": "string",
- "address_sublocality": "string",
- "address_locality": "string",
- "address_admin_area_level_1": "string",
- "address_admin_area_level_2": "string",
- "address_country": "string",
- "address_postal_code": "string",
- "address_formatted_address": "string",
- "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string"
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "picture": {
- "PICTURE_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}
}
}
}Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope.
| term required | string The search term to look for. Minimum 2 characters (or 1 if using |
| fields | string Enum: "address" "custom_fields" "notes" "name" A comma-separated string array.
The fields to perform the search from.
Defaults to all of them.
Only the following custom field types are searchable: |
| exact_match | boolean When enabled, only full exact matches against the given term are returned. It is not case sensitive. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. Note that the pagination is based on main results and does not include related items when using |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": {
- "items": [
- {
- "result_score": 0,
- "item": {
- "id": 0,
- "type": "string",
- "name": "string",
- "owner": {
- "id": "string"
}, - "custom_fields": [
- "string"
], - "address": "string",
- "notes": [
- "string"
]
}
}
]
}, - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Marks an organization as deleted. After 30 days, the organization will be permanently deleted.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "id": 0
}
}Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the key value of organizationFields.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "address": "string",
- "picture_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}, - "owner_name": "string",
- "company_id": 0,
- "first_char": "string",
- "name": "string",
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "country_code": "string",
- "address_subpremise": "string",
- "address_street_number": "string",
- "address_route": "string",
- "address_sublocality": "string",
- "address_locality": "string",
- "address_admin_area_level_1": "string",
- "address_admin_area_level_2": "string",
- "address_country": "string",
- "address_postal_code": "string",
- "address_formatted_address": "string",
- "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "last_activity": { },
- "next_activity": { }
}, - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "picture": {
- "PICTURE_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}
}
}
}Updates the properties of an organization.
| id required | integer The ID of the Entity we want to retrieve. |
| name | string The name of the organization |
| allOf | any |
{- "name": "string",
- "allOf": null
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "address": "string",
- "picture_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}, - "owner_name": "string",
- "company_id": 0,
- "first_char": "string",
- "name": "string",
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "country_code": "string",
- "address_subpremise": "string",
- "address_street_number": "string",
- "address_route": "string",
- "address_sublocality": "string",
- "address_locality": "string",
- "address_admin_area_level_1": "string",
- "address_admin_area_level_2": "string",
- "address_country": "string",
- "address_postal_code": "string",
- "address_formatted_address": "string",
- "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string"
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "picture": {
- "PICTURE_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}
}
}
}Lists activities associated with an organization.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| done | number (doneNumberBoolean) Enum: 0 1 Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. |
| exclude | string A comma-separated string of activity IDs to exclude from result |
{- "success": true,
- "data": [
- {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Lists deals associated with an organization.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| status | string Default: "all_not_deleted" Enum: "open" "won" "lost" "deleted" "all_not_deleted" Only 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. The upper limit of found deals associated with the status is 2000. |
| sort | string The field names and sorting mode separated by a comma ( |
{- "success": true,
- "data": [
- {
- "id": "string",
- "creator_user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "person_id": {
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0,
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0
}, - "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "stage": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}, - "pipeline": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0
}
}
}Lists files associated with an organization.
| id required | integer The ID of the Entity we want to retrieve. |
| sort | string The field names and sorting mode separated by a comma ( |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "product_id": 0,
- "activity_id": 0,
- "user_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "deal_name": "string",
- "product_name": "string",
- "url": "string",
- "file_name": "string",
- "file_size": 0,
- "inline_flag": true,
- "remote_location": "string",
- "remote_id": "string",
- "cid": "string",
- "s3_bucket": "string",
- "id": 0,
- "name": "string",
- "description": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Lists updates about an organization.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| all_changes | string Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. |
| items | string A comma-separated string for filtering out item specific updates. (Possible values - activity, note, deal). |
{- "success": true,
- "data": [
- {
- "object": "string",
- "timestamp": "string",
- "data": { }
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}
}
}Lists persons associated with an organization.
If a company uses the Campaigns product, then this endpoint will also return the data.marketing_status field.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "company_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "first_char": "string",
- "id": 0,
- "label": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0,
- "active_flag": true
}
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}
}
}Person fields represent the near-complete schema for a person in the context of the company of the authorized user.
Each company can have a different schema for their persons, with various custom fields.
In the context of using person fields as a schema for defining the data fields of a person, it must be kept in mind that some types of custom fields can have additional data fields which are not separate person fields per se.
Such is the case with monetary, daterange and timerange fields – each of these fields will have one additional data field in addition to the one presented in the context of person fields.
For example, if there is a monetary field with the key ffk9s9 stored on the account, ffk9s9 would hold the numeric value of the field, and ffk9s9_currency would hold the ISO currency code that goes along with the numeric value.
To find out which data fields are available, fetch one person and list its keys.
Returns data about all person fields.
If a company uses the Campaigns product, then this endpoint will also return the data.marketing_status field.
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
{- "success": true,
- "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Adds a new person field. For more information, see the tutorial for adding a new custom field.
| options | Array of objects or null The options of the field. When there are no options, | ||||||||||||||||||||||||||||||
| name required | string The name of the field | ||||||||||||||||||||||||||||||
| add_visible_flag | boolean Default: true Whether the field is available in the 'add new' modal or not (in the web app) | ||||||||||||||||||||||||||||||
| field_type required | string Enum: "date" "daterange" "double" "enum" "monetary" "org" "person" "phone" "set" "text" "time" "timerange" "user" "varchar" The type of the field
|
{- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date"
}{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Returns data about a specific person field.
| id required | integer The ID of the Entity Field we want to retrieve. |
{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Marks a field as deleted. For more information, see the tutorial for deleting a custom field.
| id required | integer The ID of the Entity Field we want to retrieve. |
{- "success": true,
- "data": {
- "id": 0
}
}Updates a person field. For more information, see the tutorial for updating custom fields' values.
| id required | integer The ID of the Entity Field we want to retrieve. |
| options | Array of objects or null The options of the field. When there are no options, |
| name required | string The name of the field |
| add_visible_flag | boolean Default: true Whether the field is available in the 'add new' modal or not (in the web app) |
{- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true
}{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Persons are your contacts, the customers you are doing deals with. Each person can belong to an organization. Persons should not be confused with users.
Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted.
| ids required | string The comma-separated IDs that will be deleted |
{- "success": true,
- "data": {
- "id": [
- 0
]
}
}Returns all persons.
| user_id | integer If supplied, only persons owned by the given user will be returned. However, |
| filter_id | integer The ID of the filter to use (will narrow down results if used together with |
| first_char | string If supplied, only entities whose name starts with the specified letter will be returned (case-insensitive) |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| sort | string The field names and sorting mode separated by a comma ( |
{- "success": true,
- "data": [
- {
- "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "company_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "first_char": "string",
- "id": 0,
- "label": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0,
- "active_flag": true
}
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "picture": {
- "PICTURE_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}
}
}
}Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for key values.
If a company uses the Campaigns product, then this endpoint will also accept and return the data.marketing_status field.
Array of objects (s_person_item_phone_array) A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: | |
Array of objects (s_person_item_email_array) An email address as a string or an array of email objects related to the person. The structure of the array is as follows: | |
| name | string The name of the person |
| add_time | string The optional creation date & time of the Item in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS |
| org_id | integer The ID of the organization this Item is associated with |
| owner_id | integer The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. |
{- "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "name": "string",
- "add_time": "string",
- "org_id": 0,
- "owner_id": 0
}{- "success": true,
- "data": {
- "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "company_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "first_char": "string",
- "id": 0,
- "label": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0,
- "active_flag": true
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}
}
}Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID.
| term required | string The search term to look for. Minimum 2 characters (or 1 if using |
| fields | string Enum: "custom_fields" "email" "notes" "phone" "name" A comma-separated string array. The fields to perform the search from. Defaults to all of them.
Only the following custom field types are searchable: |
| exact_match | boolean When enabled, only full exact matches against the given term are returned. It is not case sensitive. |
| organization_id | integer Will filter items by the provided organization ID. The upper limit of found items associated with the organization is 2000. |
| include_fields | string Value: "person.picture" Supports including optional fields in the results which are not provided by default |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. Note that the pagination is based on main results and does not include related items when using |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": {
- "items": [
- {
- "result_score": 0,
- "item": {
- "id": 0,
- "type": "string",
- "name": "string",
- "owner": {
- "id": "string"
}, - "custom_fields": [
- "string"
], - "notes": [
- "string"
], - "organization": {
- "id": 0,
- "name": "string"
}, - "phones": [
- "string"
], - "emails": [
- "string"
]
}
}
]
}, - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the key value of personFields.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "company_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "first_char": "string",
- "id": 0,
- "label": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0,
- "active_flag": true
}
}, - "additional_data": { },
- "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "picture": {
- "PICTURE_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "id": 0,
- "item_type": "string",
- "item_id": 0,
- "added_by_user_id": 0,
- "pictures": {
- "128": "string",
- "512": "string"
}
}
}
}
}Updates the properties of a person. For more information, see the tutorial for updating a person.
| id required | integer The ID of the Entity we want to retrieve. |
Array of objects (s_person_item_phone_array) A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: | |
Array of objects (s_person_item_email_array) An email address as a string or an array of email objects related to the person. The structure of the array is as follows: | |
| name | string The name of the person |
| add_time | string The optional creation date & time of the Item in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS |
| org_id | integer The ID of the organization this Item is associated with |
| owner_id | integer The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. |
{- "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "name": "string",
- "add_time": "string",
- "org_id": 0,
- "owner_id": 0
}{- "success": true,
- "data": {
- "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "company_id": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "first_char": "string",
- "id": 0,
- "label": "string",
- "name": "string",
- "first_name": "string",
- "last_name": "string",
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0,
- "active_flag": true
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}
}
}Lists activities associated with a person.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| done | number (doneNumberBoolean) Enum: 0 1 Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. |
| exclude | string A comma-separated string of activity IDs to exclude from result |
{- "success": true,
- "data": [
- {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Lists deals associated with a person.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| status | string Default: "all_not_deleted" Enum: "open" "won" "lost" "deleted" "all_not_deleted" Only 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. The upper limit of found deals associated with the status is 2000. |
| sort | string The field names and sorting mode separated by a comma ( |
{- "success": true,
- "data": [
- {
- "id": "string",
- "creator_user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "person_id": {
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0,
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0
}, - "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "stage": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}, - "pipeline": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0
}
}
}Lists updates about a person.
If a company uses the Campaigns product, then this endpoint's response will also include updates for the marketing_status field.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| all_changes | string Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. |
| items | string A comma-separated string for filtering out item specific updates. (Possible values - activity, note, deal). |
{- "success": true,
- "data": [
- {
- "object": "string",
- "timestamp": "string",
- "data": { }
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Lists products associated with a person.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "DEAL_ID": {
- "deal": {
- "allOf": null,
- "product": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "company_id": 0,
- "id": 0,
- "owner_id": 0,
- "name": "string",
- "tax": 0,
- "code": "string",
- "description": "string",
- "unit": "string",
- "category": "string",
- "selectable": true,
- "files_count": 0,
- "first_char": "string",
- "deal_id": 0
}
}
}
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}{- "success": true,
- "data": [
- {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0,
- "selected": true
}
]
}Adds a new pipeline.
| order_nbr | integer The position (index) of the Item. First order ( |
| active_flag | boolean Whether the entity is active or not. false = Not activated, true = Activated |
| created_by_user_id | integer The ID of the user who created the item. |
| add_time | string <date-time> The creation time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| update_time | string <date-time> The last update time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| last_updated_by_user_id | integer The ID of the user who created or most recently updated the item. |
| deal_probability | number (numberBoolean) Enum: 0 1 Whether deal probability is disabled or enabled for this pipeline |
| name required | string The name of the pipeline |
{- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string"
}{- "success": true,
- "data": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0
}
}Returns data about a specific pipeline. Also returns the summary of the deals in this pipeline across its stages.
| id required | integer The ID of the Entity we want to retrieve. |
| totals_convert_currency | string The 3-letter currency code of any of the supported currencies. When supplied, |
{- "success": true,
- "data": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0,
- "selected": true
}
}Updates the properties of a pipeline.
| id required | integer The ID of the Entity we want to retrieve. |
| order_nbr | integer The position (index) of the Item. First order ( |
| active_flag | boolean Whether the entity is active or not. false = Not activated, true = Activated |
| created_by_user_id | integer The ID of the user who created the item. |
| add_time | string <date-time> The creation time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| update_time | string <date-time> The last update time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| last_updated_by_user_id | integer The ID of the user who created or most recently updated the item. |
| deal_probability | number (numberBoolean) Enum: 0 1 Whether deal probability is disabled or enabled for this pipeline |
| name | string The name of the pipeline |
{- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string"
}{- "success": true,
- "data": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0,
- "selected": true
}
}Lists deals in a specific pipeline across all its stages.
| id required | integer The ID of the Entity we want to retrieve. |
| filter_id | integer The ID of the filter to use (will narrow down results if used together with |
| user_id | integer If supplied, |
| everyone | number (numberBoolean) Enum: 0 1 If supplied, |
| stage_id | integer If supplied, only deals within the given stage will be returned |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| get_summary | number (numberBoolean) Enum: 0 1 Whether to include a summary of the pipeline in the |
| totals_convert_currency | string The 3-letter currency code of any of the supported currencies. When supplied, |
{- "success": true,
- "data": [
- {
- "created_by_user_id": 0,
- "id": "string",
- "user_id": "string",
- "org_id": 0,
- "person_id": 0,
- "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Product fields represent the near-complete schema for a product in the context of the company of the authorized user.
Each company can have a different schema for their products, with various custom fields.
In the context of using product fields as a schema for defining the data fields of a product, it must be kept in mind that some types of custom fields can have additional data fields which are not separate product fields per se.
Such is the case with monetary, daterange and timerange fields – each of these fields will have one additional data field in addition to the one presented in the context of product fields.
For example, if there is a monetary field with the key ffk9s9 stored on the account, ffk9s9 would hold the numeric value of the field, and ffk9s9_currency would hold the ISO currency code that goes along with the numeric value.
To find out which data fields are available, fetch one product and list its keys.
Returns data about all product fields.
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
{- "success": true,
- "data": [
- {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Adds a new product field. For more information, see the tutorial for adding a new custom field.
| options | Array of objects or null The options of the field. When there are no options, | ||||||||||||||||||||||||||||||
| name required | string The name of the field | ||||||||||||||||||||||||||||||
| add_visible_flag | boolean Default: true Whether the field is available in the 'add new' modal or not (in the web app) | ||||||||||||||||||||||||||||||
| field_type required | string Enum: "date" "daterange" "double" "enum" "monetary" "org" "person" "phone" "set" "text" "time" "timerange" "user" "varchar" The type of the field
|
{- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date"
}{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Marks a product field as deleted. For more information, see the tutorial for deleting a custom field.
| id required | integer The ID of the Entity Field we want to retrieve. |
{- "success": true,
- "data": {
- "id": 0
}
}Returns data about a specific product field.
| id required | integer The ID of the Entity Field we want to retrieve. |
{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Updates a product field. For more information, see the tutorial for updating custom fields' values.
| id required | integer The ID of the Entity Field we want to retrieve. |
| options | Array of objects or null The options of the field. When there are no options, |
| name | string The name of the field |
{- "options": [
- { }
], - "name": "string"
}{- "success": true,
- "data": {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
}Products are the goods or services you are dealing with. Each product can have N different price points - firstly, each product can have a price in N different currencies, and secondly, each product can have N variations of itself, each having N prices in different currencies.
Note that only one price per variation per currency is supported. Products can be instantiated to deals. In the context of instatiation, a custom price, quantity, duration and discount can be applied.
Returns data about all products.
| user_id | integer If supplied, only products owned by the given user will be returned |
| filter_id | integer The ID of the filter to use (will narrow down results if used together with |
| ids | Array of integers An array of integers with the IDs of the products that should be returned in the response |
| first_char | string If supplied, only entities whose name starts with the specified letter will be returned (case-insensitive) |
| get_summary | boolean If supplied, the response will return the total numbers of products in the |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "data": {
- "name": "string",
- "active_flag": true,
- "code": "string",
- "prices": [
- { }
], - "unit": "string",
- "tax": 0,
- "selectable": true,
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}
}
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Adds a new product to the Products inventory. For more information, see the tutorial for adding a product.
| code | string The product code |
| prices | Array of objects An array of objects, each containing: |
| unit | string The unit in which this product is sold |
| tax | number Default: 0 The tax percentage |
| selectable | boolean Default: true Whether this product is selected in deals or not |
| active_flag | boolean Whether the entity is active or not. false = Not activated, true = Activated |
| owner_id | integer The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used |
| name | string The name of the product |
{- "code": "string",
- "prices": [
- { }
], - "unit": "string",
- "tax": 0,
- "selectable": true,
- "active_flag": true,
- "owner_id": 0,
- "name": "string"
}{- "success": true,
- "data": {
- "name": "string",
- "active_flag": true,
- "code": "string",
- "prices": [
- { }
], - "unit": "string",
- "tax": 0,
- "selectable": true,
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Returns data about a specific product.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "name": "string",
- "active_flag": true,
- "code": "string",
- "prices": [
- { }
], - "unit": "string",
- "tax": 0,
- "selectable": true,
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Updates product data.
| id required | integer The ID of the Entity we want to retrieve. |
| code | string The product code |
| prices | Array of objects An array of objects, each containing: |
| unit | string The unit in which this product is sold |
| tax | number Default: 0 The tax percentage |
| selectable | boolean Default: true Whether this product is selected in deals or not |
| active_flag | boolean Whether the entity is active or not. false = Not activated, true = Activated |
| owner_id | integer The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used |
| name | string The name of the product |
{- "code": "string",
- "prices": [
- { }
], - "unit": "string",
- "tax": 0,
- "selectable": true,
- "active_flag": true,
- "owner_id": 0,
- "name": "string"
}{- "success": true,
- "data": {
- "name": "string",
- "active_flag": true,
- "code": "string",
- "prices": [
- { }
], - "unit": "string",
- "tax": 0,
- "selectable": true,
- "id": 0,
- "owner_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Returns data about deals that have a product attached to it.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| status | string Default: "all_not_deleted" Enum: "open" "won" "lost" "deleted" "all_not_deleted" Only 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. The upper limit of found deals associated with the status is 2000. |
{- "success": true,
- "data": [
- {
- "id": "string",
- "creator_user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "user_id": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string",
- "value": 0
}, - "person_id": {
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0,
- "value": 0
}, - "org_id": {
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0,
- "value": 0
}, - "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "stage": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}, - "pipeline": {
- "order_nbr": 0,
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "deal_probability": 0,
- "name": "string",
- "id": 0
}
}
}Returns data about all recent changes occurred after the given timestamp.
| since_timestamp required | string The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS. |
| items | string Enum: "activity" "activityType" "deal" "filter" "note" "person" "organization" "pipeline" "product" "stage" "user" Multiple selection of item types to include in the query (optional) |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
{- "success": true,
- "data": [
- {
- "id": 0,
- "item": "activity",
- "data": {
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "due_date": "2019-08-24",
- "due_time": "string",
- "duration": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "org_name": "string",
- "person_name": "string",
- "owner_name": "string",
- "deal_name": "string",
- "company_id": 0,
- "id": 0,
- "done": 0,
- "subject": "string",
- "type": "string",
- "assigned_to_user_id": 0,
- "user_id": 0,
- "participants": [
- { }
], - "marked_as_done_time": "string"
}
}
], - "additional_data": {
- "since_timestamp": "string",
- "last_timestamp_on_page": "string",
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Roles are a part of the Visibility groups’ feature that allow the admin user to categorize other users and dictate what items they will be allowed access to see.
Returns all the roles within the company.
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
{- "success": true,
- "data": [
- {
- "name": "string",
- "parent_role_id": 0,
- "id": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "assignment_count": "string",
- "sub_role_count": "string",
- "level": 0
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Adds a new role.
| name required | string The name of the role |
| parent_role_id | integer The ID of the parent role |
{- "name": "string",
- "parent_role_id": 0
}{- "success": true,
- "data": {
- "id": 0
}
}Returns the details of a specific role.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "name": "string",
- "parent_role_id": 0,
- "id": "string",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "assignment_count": "string",
- "sub_role_count": "string"
}, - "additional_data": {
- "settings": {
- "deal_default_visibility": 0,
- "org_default_visibility": 0,
- "person_default_visibility": 0,
- "product_default_visibility": 0,
- "deal_access_level": 0,
- "org_access_level": 0,
- "person_access_level": 0,
- "product_access_level": 0
}
}
}Updates the parent role and/or the name of a specific role.
| id required | integer The ID of the Entity we want to retrieve. |
| name | string The name of the role |
| parent_role_id | integer The ID of the parent role |
{- "name": "string",
- "parent_role_id": 0
}{- "success": true,
- "data": {
- "id": 0
}
}Removes the assigned user from a role and adds to the default role.
| id required | integer The ID of the Entity we want to retrieve. |
| user_id required | string The ID of the user |
{- "user_id": "string"
}{- "success": true,
- "data": {
- "id": 0
}
}Returns all users assigned to a role.
| id required | integer The ID of the Entity we want to retrieve. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "name": "string",
- "parent_role_id": 0,
- "role_id": 0,
- "user_id": "string",
- "active_flag": true,
- "type": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Assigns a user to a role.
| id required | integer The ID of the Entity we want to retrieve. |
| user_id required | string The ID of the user |
{- "user_id": "string"
}{- "success": true,
- "data": {
- "role_id": 0,
- "user_id": "string"
}
}Returns the visibility settings of a specific role.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "deal_default_visibility": 0,
- "org_default_visibility": 0,
- "person_default_visibility": 0,
- "product_default_visibility": 0,
- "deal_access_level": 0,
- "org_access_level": 0,
- "person_access_level": 0,
- "product_access_level": 0
}
}Adds or updates the visibility setting for a role.
| id required | integer The ID of the Entity we want to retrieve. |
| setting_key required | string Enum: "deal_default_visibility" "org_default_visibility" "person_default_visibility" "product_default_visibility" | ||||||||||||||||
| value required | integer Enum: 1 3 5 7 Possible values for the
Read more about visibility groups here. |
{- "setting_key": "deal_default_visibility",
- "value": 1
}{- "success": true,
- "data": {
- "id": "string",
- "deal_default_visibility": 1
}
}Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article.
| id required | integer The ID of the Entity we want to retrieve. |
| visible | boolean Default: true Whether to return the visible or hidden pipelines for the role |
{- "success": true,
- "data": {
- "pipeline_ids": [
- 0
], - "visible": true
}
}Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article.
| id required | integer The ID of the Entity we want to retrieve. |
| visible_pipeline_ids | object The pipeline IDs to make the pipelines visible (add) and/or hidden (remove) for the specified role. It requires the following JSON structure: |
{- "visible_pipeline_ids": { }
}{- "success": true,
- "data": {
- "pipeline_ids": [
- 0
], - "visible": true
}
}Stage is a logical component of a pipeline, and essentially a bucket that can hold a number of deals. In the context of the pipeline a stage belongs to, it has an order number which defines the order of stages in that pipeline.
Returns data about all stages.
| pipeline_id | integer The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0,
- "pipeline_name": "string",
- "pipeline_deal_probability": true,
- "deal_probability": 0,
- "rotten_flag": true,
- "rotten_days": 0
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Adds a new stage, returns the ID upon success.
| pipeline_id required | integer The ID of the pipeline associated with the deal |
| deal_probability | integer The success probability percentage of the deal. Used/shown when the deal weighted values are used. |
| name required | string The name of the stage |
| rotten_flag | boolean Whether deals in this stage can become rotten |
| rotten_days | integer The number of days the deals not updated in this stage would become rotten. Applies only if the |
{- "pipeline_id": 0,
- "deal_probability": 0,
- "name": "string",
- "rotten_flag": true,
- "rotten_days": 0
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}
}Returns data about a specific stage.
| id required | integer The ID of the Entity we want to retrieve. |
| everyone | number (stageNumberBoolean) Enum: 0 1 If |
{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0,
- "deals_summary": {
- "per_stages": {
- "STAGE_ID": {
- "CURRENCY_ID": {
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "count": 0,
- "value": 0,
- "value_formatted": "string"
}
}
}, - "per_currency": {
- "CURRENCY_ID": 0
}, - "total_count": 0,
- "per_currency_full": {
- "CURRENCY_ID": {
- "count": 0,
- "value": 0
}
}
}
}
}Updates the properties of a stage.
| id required | integer The ID of the Entity we want to retrieve. |
| pipeline_id | integer The ID of the pipeline associated with the deal |
| deal_probability | integer The success probability percentage of the deal. Used/shown when the deal weighted values are used. |
| name | string The name of the stage |
| rotten_flag | boolean Whether deals in this stage can become rotten |
| rotten_days | integer The number of days the deals not updated in this stage would become rotten. Applies only if the |
| order_nbr | integer An order number for this stage. Order numbers should be used to order the stages in the pipeline. |
{- "pipeline_id": 0,
- "deal_probability": 0,
- "name": "string",
- "rotten_flag": true,
- "rotten_days": 0,
- "order_nbr": 0
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "pipeline_id": 0,
- "name": "string",
- "id": 0
}
}Lists deals in a specific stage.
| id required | integer The ID of the Entity we want to retrieve. |
| filter_id | integer The ID of the filter to use (will narrow down results if used together with |
| user_id | integer If supplied, |
| everyone | number (numberBoolean) Enum: 0 1 If supplied, |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
{- "success": true,
- "data": [
- {
- "created_by_user_id": 0,
- "id": "string",
- "user_id": "string",
- "org_id": 0,
- "person_id": 0,
- "next_activity_date": "string",
- "next_activity_time": "string",
- "next_activity_id": 0,
- "next_activity_subject": "string",
- "next_activity_type": "string",
- "next_activity_duration": "string",
- "next_activity_note": "string",
- "last_activity_id": 0,
- "last_activity_date": "string",
- "active_flag": true,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "name": "string",
- "last_incoming_mail_time": "string",
- "last_outgoing_mail_time": "string",
- "pipeline_id": 0,
- "stage_id": 0,
- "status": "string",
- "currency": "string",
- "value": 0,
- "stage_change_time": "string",
- "probability": 0,
- "lost_reason": "string",
- "close_time": "string",
- "won_time": "string",
- "first_won_time": "string",
- "lost_time": "string",
- "expected_close_date": "2019-08-24",
- "person_hidden": true,
- "org_name": "string",
- "owner_name": "string",
- "person_name": "string",
- "weighted_value_formatted": "string",
- "weighted_value": 0,
- "stage_order_nbr": 0,
- "value_formatted": "string",
- "weighted_value_currency": "string",
- "rotten_time": "string"
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Users are people with access to your Fintesk account. A user may belong to one or many Fintesk accounts, so deleting a user from one Fintesk account will not remove the user from the data store if he/she is connected to multiple accounts. Users should not be confused with persons.
{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "timezone_name": "string",
- "timezone_offset": "string",
- "locale": "string",
- "lang": 0,
- "email": "string",
- "role_id": 0,
- "icon_url": "string",
- "name": "string",
- "id": "string",
- "default_currency": "string",
- "phone": "string",
- "last_login": "string",
- "is_you": true
}
]
}Adds a new user to the company, returns the ID upon success.
Array of objects | |
| email required | string The user email |
| active_flag | boolean Whether the entity is active or not. false = Not activated, true = Activated |
{- "access": [
- [
- {
- "app": "sales"
}
]
], - "email": "string",
- "active_flag": true
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "timezone_name": "string",
- "timezone_offset": "string",
- "locale": "string",
- "lang": 0,
- "email": "string",
- "role_id": 0,
- "icon_url": "string",
- "name": "string",
- "id": "string",
- "default_currency": "string",
- "phone": "string",
- "last_login": "string",
- "is_you": true
}
}Finds users by their name.
| term required | string The search term to look for. Minimum 2 characters (or 1 if using |
| search_by_email | number (numberBooleanDefault0) Default: 0 Enum: 0 1 When enabled, the term will only be matched against email addresses of users. Default: |
{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "timezone_name": "string",
- "timezone_offset": "string",
- "locale": "string",
- "lang": 0,
- "email": "string",
- "role_id": 0,
- "icon_url": "string",
- "name": "string",
- "id": "string",
- "default_currency": "string",
- "phone": "string",
- "last_login": "string",
- "is_you": true
}
]
}Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the locale property means 'Date/number format' in the Pipedrive account settings, not the chosen language.
{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "timezone_name": "string",
- "timezone_offset": "string",
- "locale": "string",
- "lang": 0,
- "email": "string",
- "role_id": 0,
- "icon_url": "string",
- "name": "string",
- "id": "string",
- "default_currency": "string",
- "phone": "string",
- "last_login": "string",
- "is_you": true,
- "company_id": 0,
- "company_name": "string",
- "company_domain": "string",
- "company_country": "string",
- "company_industry": "string",
- "language": {
- "language_code": "string",
- "country_code": "string"
}
}
}Returns data about a specific user within the company.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "timezone_name": "string",
- "timezone_offset": "string",
- "locale": "string",
- "lang": 0,
- "email": "string",
- "role_id": 0,
- "icon_url": "string",
- "name": "string",
- "id": "string",
- "default_currency": "string",
- "phone": "string",
- "last_login": "string",
- "is_you": true
}
}Updates the properties of a user. Currently, only active_flag can be updated.
| id required | integer The ID of the Entity we want to retrieve. |
| active_flag required | boolean Whether the entity is active or not. false = Not activated, true = Activated |
| created_by_user_id | integer The ID of the user who created the item. |
| add_time | string <date-time> The creation time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| update_time | string <date-time> The last update time in UTC. Format: YYYY-MM-DD HH:MM:SS |
| last_updated_by_user_id | integer The ID of the user who created or most recently updated the item. |
{- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "timezone_name": "string",
- "timezone_offset": "string",
- "locale": "string",
- "lang": 0,
- "email": "string",
- "role_id": 0,
- "icon_url": "string",
- "name": "string",
- "id": "string",
- "default_currency": "string",
- "phone": "string",
- "last_login": "string",
- "is_you": true
}
}After the customer has confirmed the app installation, you will need to exchange the authorization_code to a pair of access and refresh tokens. Using an access token, you can access the user's data through the API.
| Authorization required | string Base 64 encoded string containing the |
| grant_type | string Default: "authorization_code" Enum: "authorization_code" "refresh_token" Since you are trying to exchange an authorization code for a pair of tokens, you must use the value "authorization_code" |
| code | string The authorization code that you received after the user confirmed app installation |
| redirect_uri | string The callback URL you provided when you registered your app |
{- "access_token": "string",
- "token_type": "string",
- "refresh_token": "string",
- "scope": "string",
- "expires_in": 0,
- "api_domain": "string"
}The access_token has a lifetime. After a period of time, which was returned to you in expires_in JSON property, the access_token will be invalid, and you can no longer use it to get data from our API. To refresh the access_token, you must use the refresh_token.
| Authorization required | string Base 64 encoded string containing the |
| grant_type | string Default: "refresh_token" Enum: "authorization_code" "refresh_token" Since you are to refresh your access_token, you must use the value "refresh_token" |
| refresh_token | string The refresh token that you received after you exchanged the authorization code |
{- "access_token": "string",
- "token_type": "string",
- "refresh_token": "string",
- "scope": "string",
- "expires_in": 0,
- "api_domain": "string"
}Returns all notes.
| user_id | integer The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. |
| deal_id | integer The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. |
| person_id | integer The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. |
| org_id | integer The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
| sort | string The field names and sorting mode separated by a comma ( |
| start_date | string <date> The date in format of YYYY-MM-DD from which notes to fetch |
| end_date | string <date> The date in format of YYYY-MM-DD until which notes to fetch to |
| pinned_to_deal_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to deal pinning state |
| pinned_to_organization_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to organization pinning state |
| pinned_to_person_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to person pinning state |
{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "user_id": "string",
- "content": "string",
- "pinned_to_deal_flag": true,
- "pinned_to_organization_flag": true,
- "pinned_to_person_flag": true,
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "id": 0,
- "deal": {
- "name": "string"
}, - "organization": {
- "name": "string"
}, - "person": {
- "name": "string",
- "first_name": "string",
- "last_name": "string"
}, - "user": {
- "icon_url": "string",
- "email": "string",
- "is_you": true,
- "name": "string"
}
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}, - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}
}Adds a new note.
| content | string The content of the note in HTML format. Subject to sanitization on the back-end. |
| deal_id | integer The ID of the deal the note will be attached to. This property is required unless one of ( |
| person_id | integer The ID of the person the note will be attached to. This property is required unless one of ( |
| org_id | integer The ID of the organization the note will be attached to. This property is required unless one of ( |
| add_time | string The optional creation date & time of the Item in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS |
| pinned_to_deal_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to deal pinning state ( |
| pinned_to_organization_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to organization pinning state ( |
| pinned_to_person_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to person pinning state ( |
| user_id | integer The ID of the user who will be marked as the author of the note. Only an admin can change the author. |
{- "content": "string",
- "deal_id": 0,
- "person_id": 0,
- "org_id": 0,
- "add_time": "string",
- "pinned_to_deal_flag": 0,
- "pinned_to_organization_flag": 0,
- "pinned_to_person_flag": 0,
- "user_id": 0
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "user_id": "string",
- "content": "string",
- "pinned_to_deal_flag": true,
- "pinned_to_organization_flag": true,
- "pinned_to_person_flag": true,
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "id": 0,
- "deal": {
- "name": "string"
}, - "organization": {
- "name": "string"
}, - "person": {
- "name": "string",
- "first_name": "string",
- "last_name": "string"
}, - "user": {
- "icon_url": "string",
- "email": "string",
- "is_you": true,
- "name": "string"
}
}
}Returns details about a specific note.
| id required | integer The ID of the Entity we want to retrieve. |
{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "user_id": "string",
- "content": "string",
- "pinned_to_deal_flag": true,
- "pinned_to_organization_flag": true,
- "pinned_to_person_flag": true,
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "id": 0,
- "deal": {
- "name": "string"
}, - "organization": {
- "name": "string"
}, - "person": {
- "name": "string",
- "first_name": "string",
- "last_name": "string"
}, - "user": {
- "icon_url": "string",
- "email": "string",
- "is_you": true,
- "name": "string"
}
}
}Updates a note.
| id required | integer The ID of the Entity we want to retrieve. |
| content | string The content of the note in HTML format. Subject to sanitization on the back-end. |
| deal_id | integer The ID of the deal the note will be attached to. This property is required unless one of ( |
| person_id | integer The ID of the person the note will be attached to. This property is required unless one of ( |
| org_id | integer The ID of the organization the note will be attached to. This property is required unless one of ( |
| add_time | string The optional creation date & time of the Item in UTC. Can be set in the past or in the future. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS |
| pinned_to_deal_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to deal pinning state ( |
| pinned_to_organization_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to organization pinning state ( |
| pinned_to_person_flag | number (numberBoolean) Enum: 0 1 If set, the results are filtered by note to person pinning state ( |
| user_id | integer The ID of the user who will be marked as the author of the note. Only an admin can change the author. |
{- "content": "string",
- "deal_id": 0,
- "person_id": 0,
- "org_id": 0,
- "add_time": "string",
- "pinned_to_deal_flag": 0,
- "pinned_to_organization_flag": 0,
- "pinned_to_person_flag": 0,
- "user_id": 0
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "user_id": "string",
- "content": "string",
- "pinned_to_deal_flag": true,
- "pinned_to_organization_flag": true,
- "pinned_to_person_flag": true,
- "person_id": 0,
- "deal_id": 0,
- "org_id": 0,
- "id": 0,
- "deal": {
- "name": "string"
}, - "organization": {
- "name": "string"
}, - "person": {
- "name": "string",
- "first_name": "string",
- "last_name": "string"
}, - "user": {
- "icon_url": "string",
- "email": "string",
- "is_you": true,
- "name": "string"
}
}
}Returns all comments associated with a note.
| id required | integer The ID of the Entity we want to retrieve. |
| limit | integer <int32> >= 1 Default: 100 Example: limit=100 Limits the number of returned results. If not provided, 100 items will be returned. |
| start | integer Default: 0 For pagination, the position that represents the first result for the page. |
{- "success": true,
- "data": [
- {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "user_id": "string",
- "content": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "object_id": "string",
- "object_type": "string",
- "updater_id": 0,
- "company_id": 0
}
], - "related_objects": {
- "user": {
- "USER_ID": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "email": "string",
- "id": "string",
- "name": "string"
}
}, - "person": {
- "PERSON_ID": {
- "id": 0,
- "name": "string",
- "email": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "phone": [
- {
- "value": "string",
- "primary": true,
- "label": "string"
}
], - "owner_id": 0
}
}, - "organization": {
- "ORGANIZATION_ID": {
- "id": 0,
- "address": "string",
- "name": "string",
- "people_count": 0,
- "owner_id": 0
}
}, - "deal": {
- "DEAL_ID": {
- "stage_id": 0,
- "pipeline_id": 0,
- "currency": "string",
- "value": 0,
- "id": 0,
- "name": "string",
- "status": "string"
}
}
}, - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}Adds a new comment to a note.
| id required | integer The ID of the Entity we want to retrieve. |
| content required | string The content of the note in HTML format. Subject to sanitization on the back-end. |
{- "content": "string"
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "user_id": "string",
- "content": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "object_id": "string",
- "object_type": "string",
- "updater_id": 0,
- "company_id": 0
}
}Returns the details of a comment.
| id required | integer The ID of the Entity we want to retrieve. |
| commentId required | string <uuid> The ID of the comment |
{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "user_id": "string",
- "content": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "object_id": "string",
- "object_type": "string",
- "updater_id": 0,
- "company_id": 0
}
}Updates a comment related to a note.
| id required | integer The ID of the Entity we want to retrieve. |
| commentId required | string <uuid> The ID of the comment |
| content required | string The content of the note in HTML format. Subject to sanitization on the back-end. |
{- "content": "string"
}{- "success": true,
- "data": {
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "user_id": "string",
- "content": "string",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "object_id": "string",
- "object_type": "string",
- "updater_id": 0,
- "company_id": 0
}
}Deletes a comment.
| id required | integer The ID of the Entity we want to retrieve. |
| commentId required | string <uuid> The ID of the comment |
{- "success": true,
- "data": true
}Returns data about all note fields.
{- "success": true,
- "data": [
- {
- "options": [
- { }
], - "name": "string",
- "add_visible_flag": true,
- "field_type": "date",
- "active_flag": true,
- "created_by_user_id": 0,
- "add_time": "2019-08-24T14:15:22Z",
- "update_time": "2019-08-24T14:15:22Z",
- "last_updated_by_user_id": 0,
- "order_nbr": 0,
- "id": 0,
- "key": "string",
- "edit_flag": true,
- "index_visible_flag": true,
- "details_visible_flag": true,
- "important_flag": true,
- "bulk_edit_allowed": true,
- "searchable_flag": true,
- "filtering_allowed": true,
- "sortable_flag": true,
- "mandatory_flag": true,
- "is_subfield": true,
- "subfields": [
- { }
]
}
], - "additional_data": {
- "pagination": {
- "start": 0,
- "limit": 0,
- "more_items_in_collection": true,
- "next_start": 0
}
}
}