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 metadata about all deal fields in the company.
10
/api/v2/dealFields
include_fields
string
Optional comma separated string array of additional data namespaces to include in response
Values
ui_visibility
important_fields
required_fields
ui_visibility,important_fields
ui_visibility,required_fields
important_fields,required_fields
ui_visibility,important_fields,required_fields
limit
integer
For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
cursor
string
For pagination, the marker (an opaque string value) representing the first item on the next page
OK
Returns metadata about a specific deal field.
1
/api/v2/dealFields/{field_code}
field_code
string
required
The unique code identifying the field
include_fields
string
Optional comma separated string array of additional data namespaces to include in response
Values
ui_visibility
important_fields
required_fields
ui_visibility,important_fields
ui_visibility,required_fields
important_fields,required_fields
ui_visibility,important_fields,required_fields
OK
Creates a new deal custom field.
5
/api/v2/dealFields
application/json
field_name
string
required
Field name
field_type
string
required
The type of the field
| Value | Description |
|---|---|
varchar | Text (up to 255 characters) |
varchar_auto | Autocomplete text (up to 255 characters) |
text | Long text (up to 65k characters) |
double | Numeric value |
monetary | Monetary field (has a numeric value and a currency value) |
date | Date (format YYYY-MM-DD) |
set | Options field with a possibility of having multiple chosen options |
enum | Options field with a single possible chosen option |
user | User field (contains a user ID of another Pipedrive user) |
org | Organization field (contains an organization ID which is stored on the same account) |
people | Person field (contains a product ID which is stored on the same account) |
phone | Phone field (up to 255 numbers and/or characters) |
time | Time field (format HH:MM:SS) |
timerange | Time-range field (has a start time and end time value, both HH:MM:SS) |
daterange | Date-range field (has a start date and end date value, both YYYY-MM-DD) |
address | Address field |
Values
varchar
text
double
phone
date
daterange
time
timerange
set
enum
varchar_auto
address
monetary
org
people
user
options
array
Field options (required for enum and set field types)
ui_visibility
object
UI visibility settings for the field. Controls where the field appears in the Pipedrive web UI.
important_fields
object
Configuration for highlighting the field at specific stages.
required_fields
object
Required fields configuration for marking the field as mandatory when interacted with in the Pipedrive web UI.
description
string
Field description
OK
Adds new options to a deal custom field that supports options (enum or set field types). This operation is atomic - all options are added or none are added. Returns only the newly added options.
5
/api/v2/dealFields/{field_code}/options
field_code
string
required
The unique code identifying the field
application/json
[ ]
array
Array of options to add. Each item must contain a label. At least one option is required.
label
string
required
The display label for the new option
OK
Updates a deal custom field. The field_code and field_type cannot be changed. At least one field must be provided in the request body.
5
/api/v2/dealFields/{field_code}
field_code
string
required
The unique code identifying the field
application/json
field_name
string
Field name
ui_visibility
object
UI visibility settings for the field. Controls where the field appears in the Pipedrive web UI.
important_fields
object
Configuration for highlighting the field at specific stages.
required_fields
object
Required fields configuration for marking the field as mandatory when interacted with in the Pipedrive web UI.
description
string
Field description
OK
Updates existing options for a deal custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the updated options.
5
/api/v2/dealFields/{field_code}/options
field_code
string
required
The unique code identifying the field
application/json
[ ]
array
Array of options to update. Each item must contain an ID and the updated label. At least one option is required. The entire request fails if any option does not exist.
id
integer
required
The unique identifier of the option to update
label
string
required
The new display label for the option
OK
Marks multiple deal fields as deleted.
10
/v1/dealFields
ids
string
required
The comma-separated field IDs to delete
OK
Marks a custom field as deleted.
3
/api/v2/dealFields/{field_code}
field_code
string
required
The unique code identifying the field
OK
Removes existing options from a deal custom field. This operation is atomic and fails if any of the specified option IDs do not exist. Returns only the deleted options.
3
/api/v2/dealFields/{field_code}/options
field_code
string
required
The unique code identifying the field
application/json
[ ]
array
Array of option IDs to delete. Each item must contain an ID of the option to delete. At least one option ID is required. The entire request fails if any option does not exist.
id
integer
required
The unique identifier of the option to delete
OK