Deals: Pipedrive Deals
insert update delete REST
- Catalog:
Pipedrive - Schema:
Deals - Primary Keys:
id - Label: Deals
Can retrieve data and change data using insert, update and delete.
Summary
The deals that are not archived, deleted ones included when filtered on status 'deleted'. Each request costs 10 tokens of the daily budget of the company.
API Source
- Endpoint:
/deals
Table Columns
The columns of the table Deals are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|---|---|---|
acme_ |
datetime |
ACME Contract Period | filters on the platform, writable, custom_ |
The custom field 'ACME Contract Period' of the company. | |
acme_ |
datetime |
ACME Contract Period | filters on the platform, writable, custom_ |
Part 'acme_contract_period_until' of the custom field 'ACME Contract Period' of the company. | |
acme_ |
decimal |
ACME Contract Value | filters on the platform, writable, custom_ |
The custom field 'ACME Contract Value' of the company. | |
acme_ |
varchar2 |
ACME Contract Value | filters on the platform, writable, custom_ |
Part 'acme_contract_value_currency' of the custom field 'ACME Contract Value' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
The custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_admin_area_level_1' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_admin_area_level_2' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_country' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_formatted_address' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_locality' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_postal_code' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_route' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_street_number' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_sublocality' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filters on the platform, writable, custom_ |
Part 'acme_delivery_address_subpremise' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME External Reference | filters on the platform, writable, custom_ |
The custom field 'ACME External Reference' of the company. | |
acme_ |
varchar2 |
ACME Product Lines | filters on the platform, writable, custom_ |
The custom field 'ACME Product Lines' of the company. | |
acme_ |
varchar2 |
ACME Product Lines Labels | filters on the platform, writable, computed, _ |
The labels of the chosen options of the custom field 'ACME Product Lines'. | |
acme_ |
int64 |
ACME Region | filters on the platform, writable, custom_ |
The custom field 'ACME Region' of the company. | |
acme_ |
varchar2 |
ACME Region Label | filters on the platform, writable, computed, _ |
The labels of the chosen options of the custom field 'ACME Region'. | |
acme_ |
datetime |
ACME Renewal Date | filters on the platform, writable, custom_ |
The custom field 'ACME Renewal Date' of the company. | |
acme_ |
decimal |
ACME Seats | filters on the platform, writable, custom_ |
The custom field 'ACME Seats' of the company. | |
acv |
decimal |
ACV | filters on the platform, writable, computed, acv |
The Annual Contract Value of the deal. Only on the Growth plan and above. | |
add_ |
datetime |
Creation Time | filters on the platform, writable, computed, add_ |
The creation date and time of the deal. | |
archive_ |
datetime |
Archive Time | filters on the platform, writable, _ |
The optional date and time of archiving the deal in UTC. Only taken when writing; empty when read. | |
arr |
decimal |
ARR | filters on the platform, writable, computed, arr |
The Annual Recurring Revenue of the deal. Only on the Growth plan and above. | |
channel |
int64 |
Channel | filters on the platform, writable, computed, channel |
The ID of your Marketing channel this Deal was created from. | |
channel_ |
varchar2 |
Channel ID | filters on the platform, writable, computed, channel_ |
The optional ID to further distinguish the Marketing channel. | |
close_ |
datetime |
Close Time | filters on the platform, writable, close_ |
The date and time of closing the deal. | |
currency |
varchar2 |
Currency | filters on the platform, writable, currency |
The currency associated with the deal. | |
expected_ |
datetime |
Expected Close Date | filters on the platform, writable, expected_ |
The expected close date of the deal. | |
id |
int64 |
ID | filters on the platform, writable, computed, id |
The ID of the deal. | |
is_ |
char |
Is Archived | filters on the platform, writable, is_ |
Whether the deal is archived or not. | |
is_ |
char |
Is Deleted | filters on the platform, writable, is_ |
Whether the deal is deleted or not. | |
label_ |
varchar2 |
Label IDs | filters on the platform, writable, label_ |
The IDs of labels assigned to the deal. | |
lost_ |
varchar2 |
Lost Reason | filters on the platform, writable, lost_ |
The reason for losing the deal. | |
lost_ |
datetime |
Lost Time | filters on the platform, writable, lost_ |
The date and time of changing the deal status as lost. | |
mrr |
decimal |
MRR | filters on the platform, writable, computed, mrr |
The Monthly Recurring Revenue of the deal. Only on the Growth plan and above. | |
org_id |
int64 |
Organization ID | filters on the platform, writable, org_id |
The ID of the organization linked to the deal. | |
origin |
varchar2 |
Origin | filters on the platform, writable, computed, origin |
The way this Deal was created. | |
origin_ |
varchar2 |
Origin ID | filters on the platform, writable, computed, origin_ |
The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | |
owner_ |
int64 |
Owner ID | filters on the platform, writable, owner_ |
The ID of the user who owns the deal. | |
person_ |
int64 |
Person ID | filters on the platform, writable, person_ |
The ID of the person linked to the deal. | |
pipeline_ |
int64 |
Pipeline ID | filters on the platform, writable, pipeline_ |
The ID of the pipeline associated with the deal. | |
probability |
decimal |
Probability | filters on the platform, writable, probability |
The success probability percentage of the deal. | |
source_ |
varchar2 |
Source Lead ID | filters on the platform, writable, computed, source_ |
The ID of the lead if the deal was converted from a lead. | |
stage_ |
datetime |
Stage Change Time | filters on the platform, writable, computed, stage_ |
The last updated date and time of the deal stage. | |
stage_ |
int64 |
Stage ID | filters on the platform, writable, stage_ |
The ID of the deal stage. | |
status |
varchar2 |
Status | filters on the platform, writable, status |
The status of the deal. | |
title |
varchar2 |
Title | filters on the platform, writable, title |
The title of the deal. | |
update_ |
datetime |
Last Update Time | filters on the platform, writable, computed, update_ |
The last updated date and time of the deal. | |
value |
decimal |
Value | filters on the platform, writable, value |
The value of the deal. | |
visible_ |
int64 |
Visible To | filters on the platform, writable, visible_ |
The visibility of the deal. | |
won_ |
datetime |
Won Time | filters on the platform, writable, won_ |
The date and time of changing the deal status as won. |
Keys
| Key | Column | Refers to | Kind | Description |
|---|---|---|---|---|
Deals_ |
currency |
Currencies.code |
Key | |
Deals_ |
org_id |
Organizations.id |
Key | |
Deals_ |
origin |
LeadSources.name |
Candidate | Follows from the name of the column and held in every row of the sandbox on 2026-10-31; not stated by Pipedrive. |
Deals_ |
owner_ |
Users.id |
Key | |
Deals_ |
person_ |
Persons.id |
Key | |
Deals_ |
pipeline_ |
Pipelines.id |
Key | |
Deals_ |
source_ |
ArchivedLeads.id |
Textual | The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads. |
Deals_ |
source_ |
Leads.id |
Textual | The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads. |
Deals_ |
stage_ |
Stages.id |
Key |
Referenced By
- Activities
deal_id(Textual) - CallLogs
deal_id(Textual) - DealParticipantsByDealId
related_item_id(Textual) - DealProducts
deal_id(Key) - ArchivedLeads
source_deal_id(Textual) - Leads
source_deal_id(Textual) - Files
deal_id(Textual) - Notes
deal_id(Textual) - RecentChangesBySinceTimestamp
id(Textual)
Sample Queries
select dls.id
, dls.title
, dls.update_time
from Pipedrive.Deals.Deals dls
where dls.update_time >= sysdateutc - 1
select ppe.name pipeline_name
, stg.name stage_name
, count(*) deal_count
, sum(dls.value) deal_value
from Pipedrive.Deals.Deals dls
join Pipedrive.Pipelines.Stages stg
on stg.id = dls.stage_id
join Pipedrive.Pipelines.Pipelines ppe
on ppe.id = dls.pipeline_id
where dls.status = 'open'
group
by ppe.name
, stg.name