Deals: Pipedrive Deals
insert update delete REST
- Katalog:
Pipedrive - Schéma:
Deals - Primární klíče:
id - Popisek: Obchody
Pomocí insert, update a delete lze načítat a měnit data.
Shrnutí
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.
Zdroj API
- Koncový bod:
/deals
Sloupce tabulky
Sloupce tabulky Deals jsou uvedeny níže. Každý sloupec má datový typ SQL. Pro každý požadovaný sloupec musí být vždy během vkládání a aktualizace zadána nová hodnota, která není nulová (non-null).
| Jméno | Datový typ | Štítek | Vyžadováno | Značky | Dokumentace |
|---|---|---|---|---|---|
acme_ |
datetime |
ACME Contract Period | filtry na platformě, zapisovatelné, custom_ |
The custom field 'ACME Contract Period' of the company. | |
acme_ |
datetime |
ACME Contract Period | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_contract_period_until' of the custom field 'ACME Contract Period' of the company. | |
acme_ |
decimal |
ACME Contract Value | filtry na platformě, zapisovatelné, custom_ |
The custom field 'ACME Contract Value' of the company. | |
acme_ |
varchar2 |
ACME Contract Value | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_contract_value_currency' of the custom field 'ACME Contract Value' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
The custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_admin_area_level_1' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_admin_area_level_2' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_country' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_formatted_address' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_locality' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_postal_code' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_route' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_street_number' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_sublocality' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | filtry na platformě, zapisovatelné, custom_ |
Part 'acme_delivery_address_subpremise' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME External Reference | filtry na platformě, zapisovatelné, custom_ |
The custom field 'ACME External Reference' of the company. | |
acme_ |
varchar2 |
ACME Product Lines | filtry na platformě, zapisovatelné, custom_ |
The custom field 'ACME Product Lines' of the company. | |
acme_ |
varchar2 |
ACME Product Lines Labels | filtry na platformě, zapisovatelné, vypočítané, _ |
The labels of the chosen options of the custom field 'ACME Product Lines'. | |
acme_ |
int64 |
ACME Region | filtry na platformě, zapisovatelné, custom_ |
The custom field 'ACME Region' of the company. | |
acme_ |
varchar2 |
ACME Region Label | filtry na platformě, zapisovatelné, vypočítané, _ |
The labels of the chosen options of the custom field 'ACME Region'. | |
acme_ |
datetime |
ACME Renewal Date | filtry na platformě, zapisovatelné, custom_ |
The custom field 'ACME Renewal Date' of the company. | |
acme_ |
decimal |
ACME Seats | filtry na platformě, zapisovatelné, custom_ |
The custom field 'ACME Seats' of the company. | |
acv |
decimal |
ACV | filtry na platformě, zapisovatelné, vypočítané, acv |
The Annual Contract Value of the deal.Only on the Growth plan and above. | |
add_ |
datetime |
Doba vzniku | filtry na platformě, zapisovatelné, vypočítané, add_ |
The creation date and time of the deal. | |
archive_ |
datetime |
Čas v archivu | filtry na platformě, zapisovatelné, _ |
The optional date and time of archiving the deal in UTC.Použije se pouze při zápisu; při čtení je prázdné. | |
arr |
decimal |
ARR | filtry na platformě, zapisovatelné, vypočítané, arr |
The Annual Recurring Revenue of the deal.Only on the Growth plan and above. | |
channel |
int64 |
Kanál | filtry na platformě, zapisovatelné, vypočítané, channel |
The ID of your Marketing channel this Deal was created from. | |
channel_ |
varchar2 |
ID kanálu | filtry na platformě, zapisovatelné, vypočítané, channel_ |
The optional ID to further distinguish the Marketing channel. | |
close_ |
datetime |
Zavírací doba | filtry na platformě, zapisovatelné, close_ |
The date and time of closing the deal. | |
currency |
varchar2 |
Měna | filtry na platformě, zapisovatelné, currency |
The currency associated with the deal. | |
expected_ |
datetime |
Předpokládané datum uzavření | filtry na platformě, zapisovatelné, expected_ |
The expected close date of the deal. | |
id |
int64 |
ID | filtry na platformě, zapisovatelné, vypočítané, id |
The ID of the deal. | |
is_ |
char |
Je archivováno | filtry na platformě, zapisovatelné, is_ |
Whether the deal is archived or not. | |
is_ |
char |
Je smazáno | filtry na platformě, zapisovatelné, is_ |
Whether the deal is deleted or not. | |
label_ |
varchar2 |
ID štítků | filtry na platformě, zapisovatelné, label_ |
The IDs of labels assigned to the deal. | |
lost_ |
varchar2 |
Ztracený rozum | filtry na platformě, zapisovatelné, lost_ |
The reason for losing the deal. | |
lost_ |
datetime |
Ztracený čas | filtry na platformě, zapisovatelné, lost_ |
The date and time of changing the deal status as lost. | |
mrr |
decimal |
MRR | filtry na platformě, zapisovatelné, vypočítané, mrr |
The Monthly Recurring Revenue of the deal.Only on the Growth plan and above. | |
org_id |
int64 |
Identifikační číslo organizace | filtry na platformě, zapisovatelné, org_id |
The ID of the organization linked to the deal. | |
origin |
varchar2 |
Původ | filtry na platformě, zapisovatelné, vypočítané, origin |
The way this Deal was created. | |
origin_ |
varchar2 |
ID původu | filtry na platformě, zapisovatelné, vypočítané, origin_ |
The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | |
owner_ |
int64 |
ID majitele | filtry na platformě, zapisovatelné, owner_ |
The ID of the user who owns the deal. | |
person_ |
int64 |
Identifikační číslo osoby | filtry na platformě, zapisovatelné, person_ |
The ID of the person linked to the deal. | |
pipeline_ |
int64 |
Identifikátor potrubí | filtry na platformě, zapisovatelné, pipeline_ |
The ID of the pipeline associated with the deal. | |
probability |
decimal |
Pravděpodobnost | filtry na platformě, zapisovatelné, probability |
The success probability percentage of the deal. | |
source_ |
varchar2 |
ID zdroje poptávky | filtry na platformě, zapisovatelné, vypočítané, source_ |
The ID of the lead if the deal was converted from a lead. | |
stage_ |
datetime |
Čas změny scény | filtry na platformě, zapisovatelné, vypočítané, stage_ |
The last updated date and time of the deal stage. | |
stage_ |
int64 |
ID etapy | filtry na platformě, zapisovatelné, stage_ |
The ID of the deal stage. | |
status |
varchar2 |
Stav | filtry na platformě, zapisovatelné, status |
The status of the deal. | |
title |
varchar2 |
Název | filtry na platformě, zapisovatelné, title |
The title of the deal. | |
update_ |
datetime |
Čas poslední aktualizace | filtry na platformě, zapisovatelné, vypočítané, update_ |
The last updated date and time of the deal. | |
value |
decimal |
Hodnota | filtry na platformě, zapisovatelné, value |
The value of the deal. | |
visible_ |
int64 |
Zobrazit pro | filtry na platformě, zapisovatelné, visible_ |
The visibility of the deal. | |
won_ |
datetime |
Doba vítězství | filtry na platformě, zapisovatelné, won_ |
The date and time of changing the deal status as won. |
Klíče
| Klíč | Sloupec | Vztahuje se k | Druh | Popis |
|---|---|---|---|---|
Deals_ |
currency |
Currencies.code |
Klíč | |
Deals_ |
org_id |
Organizations.id |
Klíč | |
Deals_ |
origin |
LeadSources.name |
Kandidát | 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 |
Klíč | |
Deals_ |
person_ |
Persons.id |
Klíč | |
Deals_ |
pipeline_ |
Pipelines.id |
Klíč | |
Deals_ |
source_ |
ArchivedLeads.id |
Textové | The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads. |
Deals_ |
source_ |
Leads.id |
Textové | The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads. |
Deals_ |
stage_ |
Stages.id |
Klíč |
Odkazuje na
- Activities
deal_id(Textual) - CallLogs
deal_id(textový) - DealParticipantsByDealId
related_item_id(textový) - DealProducts
deal_id(Key) - ArchivedLeads
source_deal_id(textový) - Leads
source_deal_id(Textual) - Files
deal_id(Textual) - Notes
deal_id(Textual) - RecentChangesBySinceTimestamp
id(textový)
Příklad Query
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