Deals: Pipedrive Deals
insert update delete REST
- Katalog:
Pipedrive - Schema:
Deals - Primärnycklar:
id - Etikett: Affärer
Man kan hämta och ändra data med hjälp av insert, update och delete.
Sammanfattning
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-källa
- Slutpunkt:
/deals
Tabellkolumner
Tabellens kolumner Deals visas nedan. Varje kolumn har en SQL-datatyp. Ett nytt värde som inte är null måste alltid anges för varje obligatorisk kolumn vid insättning och uppdatering.
| Namn | Datatyp | Etikett | Nödvändigt | Betyg | Dokumentation |
|---|---|---|---|---|---|
acme_ |
datetime |
ACME Contract Period | filter på plattformen, skrivbar, custom_ |
The custom field 'ACME Contract Period' of the company. | |
acme_ |
datetime |
ACME Contract Period | filter på plattformen, skrivbar, custom_ |
Part 'acme_contract_period_until' of the custom field 'ACME Contract Period' of the company. | |
acme_ |
decimal |
ACME Contract Value | filter på plattformen, skrivbar, custom_ |
The custom field 'ACME Contract Value' of the company. | |
acme_ |
varchar2 |
ACME Contract Value | filter på plattformen, skrivbar, custom_ |
Part 'acme_contract_value_currency' of the custom field 'ACME Contract Value' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
The custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_admin_area_level_1' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_admin_area_level_2' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_country' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_formatted_address' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_locality' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_postal_code' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_route' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_street_number' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_sublocality' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filter på plattformen, skrivbar, custom_ |
Part 'acme_delivery_address_subpremise' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME External Reference | filter på plattformen, skrivbar, custom_ |
The custom field 'ACME External Reference' of the company. | |
acme_ |
varchar2 |
ACME Product Lines | filter på plattformen, skrivbar, custom_ |
The custom field 'ACME Product Lines' of the company. | |
acme_ |
varchar2 |
ACME Product Lines Labels | filtrerbar på plattformen, skrivbar, beräknad, _ |
The labels of the chosen options of the custom field 'ACME Product Lines'. | |
acme_ |
int64 |
ACME Region | filter på plattformen, skrivbar, custom_ |
The custom field 'ACME Region' of the company. | |
acme_ |
varchar2 |
ACME Region Label | filtrerbar på plattformen, skrivbar, beräknad, _ |
The labels of the chosen options of the custom field 'ACME Region'. | |
acme_ |
datetime |
ACME Renewal Date | filter på plattformen, skrivbar, custom_ |
The custom field 'ACME Renewal Date' of the company. | |
acme_ |
decimal |
ACME Seats | filter på plattformen, skrivbar, custom_ |
The custom field 'ACME Seats' of the company. | |
acv |
decimal |
ACV | filtrerbar på plattformen, skrivbar, beräknad, acv |
The Annual Contract Value of the deal.Only on the Growth plan and above. | |
add_ |
datetime |
Skapelsetid | filtrerbar på plattformen, skrivbar, beräknad, add_ |
The creation date and time of the deal. | |
archive_ |
datetime |
Arkivtid | filter på plattformen, skrivbar, _ |
The optional date and time of archiving the deal in UTC.Tas endast med vid skrivning; tom vid läsning. | |
arr |
decimal |
ARR | filtrerbar på plattformen, skrivbar, beräknad, arr |
The Annual Recurring Revenue of the deal.Only on the Growth plan and above. | |
channel |
int64 |
Kanal | filtrerbar på plattformen, skrivbar, beräknad, channel |
The ID of your Marketing channel this Deal was created from. | |
channel_ |
varchar2 |
Kanal-ID | filtrerbar på plattformen, skrivbar, beräknad, channel_ |
The optional ID to further distinguish the Marketing channel. | |
close_ |
datetime |
Stängningstid | filter på plattformen, skrivbar, close_ |
The date and time of closing the deal. | |
currency |
varchar2 |
Valuta | filter på plattformen, skrivbar, currency |
The currency associated with the deal. | |
expected_ |
datetime |
Förväntat slutdatum | filter på plattformen, skrivbar, expected_ |
The expected close date of the deal. | |
id |
int64 |
ID | filtrerbar på plattformen, skrivbar, beräknad, id |
The ID of the deal. | |
is_ |
char |
Är arkiverad | filter på plattformen, skrivbar, is_ |
Whether the deal is archived or not. | |
is_ |
char |
Är borttagen | filter på plattformen, skrivbar, is_ |
Whether the deal is deleted or not. | |
label_ |
varchar2 |
Etikett-ID:n | filter på plattformen, skrivbar, label_ |
The IDs of labels assigned to the deal. | |
lost_ |
varchar2 |
Förlorad förnuft | filter på plattformen, skrivbar, lost_ |
The reason for losing the deal. | |
lost_ |
datetime |
Förlorad tid | filter på plattformen, skrivbar, lost_ |
The date and time of changing the deal status as lost. | |
mrr |
decimal |
MRR | filtrerbar på plattformen, skrivbar, beräknad, mrr |
The Monthly Recurring Revenue of the deal.Only on the Growth plan and above. | |
org_id |
int64 |
Organisations-ID | filter på plattformen, skrivbar, org_id |
The ID of the organization linked to the deal. | |
origin |
varchar2 |
Ursprung | filtrerbar på plattformen, skrivbar, beräknad, origin |
The way this Deal was created. | |
origin_ |
varchar2 |
Ursprungs-ID | filtrerbar på plattformen, skrivbar, beräknad, origin_ |
The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | |
owner_ |
int64 |
Ägar-ID | filter på plattformen, skrivbar, owner_ |
The ID of the user who owns the deal. | |
person_ |
int64 |
Person-ID | filter på plattformen, skrivbar, person_ |
The ID of the person linked to the deal. | |
pipeline_ |
int64 |
Rörlednings-ID | filter på plattformen, skrivbar, pipeline_ |
The ID of the pipeline associated with the deal. | |
probability |
decimal |
Sannolikhet | filter på plattformen, skrivbar, probability |
The success probability percentage of the deal. | |
source_ |
varchar2 |
Källans lead-ID | filtrerbar på plattformen, skrivbar, beräknad, source_ |
The ID of the lead if the deal was converted from a lead. | |
stage_ |
datetime |
Tidpunkt för scenbyte | filtrerbar på plattformen, skrivbar, beräknad, stage_ |
The last updated date and time of the deal stage. | |
stage_ |
int64 |
Scen-ID | filter på plattformen, skrivbar, stage_ |
The ID of the deal stage. | |
status |
varchar2 |
Status | filter på plattformen, skrivbar, status |
The status of the deal. | |
title |
varchar2 |
Titel | filter på plattformen, skrivbar, title |
The title of the deal. | |
update_ |
datetime |
Senaste uppdateringstid | filtrerbar på plattformen, skrivbar, beräknad, update_ |
The last updated date and time of the deal. | |
value |
decimal |
Värde | filter på plattformen, skrivbar, value |
The value of the deal. | |
visible_ |
int64 |
Synlig för | filter på plattformen, skrivbar, visible_ |
The visibility of the deal. | |
won_ |
datetime |
Vinsttid | filter på plattformen, skrivbar, won_ |
The date and time of changing the deal status as won. |
Nycklar
| Nyckel | Kolumn | Avser för referens | Typ | Beskrivning |
|---|---|---|---|---|
Deals_ |
currency |
Currencies.code |
Nyckel | |
Deals_ |
org_id |
Organizations.id |
Nyckel | |
Deals_ |
origin |
LeadSources.name |
Kandidat | 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 |
Nyckel | |
Deals_ |
person_ |
Persons.id |
Nyckel | |
Deals_ |
pipeline_ |
Pipelines.id |
Nyckel | |
Deals_ |
source_ |
ArchivedLeads.id |
Textuell | The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads. |
Deals_ |
source_ |
Leads.id |
Textuell | The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads. |
Deals_ |
stage_ |
Stages.id |
Nyckel |
Refereras till av
- Activities
deal_id(Textual) - CallLogs
deal_id(Textuell) - DealParticipantsByDealId
related_item_id(Textuell) - DealProducts
deal_id(Key) - ArchivedLeads
source_deal_id(Textuell) - Leads
source_deal_id(Textual) - Files
deal_id(Textual) - Notes
deal_id(Textual) - RecentChangesBySinceTimestamp
id(Textuell)
Exempel på Query-frågor
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