Deals: Pipedrive Deals
insert update delete REST
- カタログ:
Pipedrive - スキーマ:
Deals - 主キー:
id - ラベル: 取引
insert、update、delete を使用して、データの取得や変更を行うことができます。
概要
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ソース
- エンドポイント:
/deals
表の列
テーブル Deals の列は以下のとおりです。 各列には、SQLのデータ型が設定されています。 INSERT文およびUPDATE文の実行中は、常にすべての必須列に対して、null以外の新しい値を指定する必要があります。
| 名前 | データ型 | ラベル | 必須 | マーク | ドキュメント |
|---|---|---|---|---|---|
acme_ |
datetime |
ACME Contract Period | プラットフォーム上のフィルター、書き込み可能、custom_ |
The custom field 'ACME Contract Period' of the company. | |
acme_ |
datetime |
ACME Contract Period | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_contract_period_until' of the custom field 'ACME Contract Period' of the company. | |
acme_ |
decimal |
ACME Contract Value | プラットフォーム上のフィルター、書き込み可能、custom_ |
The custom field 'ACME Contract Value' of the company. | |
acme_ |
varchar2 |
ACME Contract Value | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_contract_value_currency' of the custom field 'ACME Contract Value' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
The custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_admin_area_level_1' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_admin_area_level_2' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_country' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_formatted_address' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_locality' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_postal_code' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_route' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_street_number' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_sublocality' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME Delivery Address | プラットフォーム上のフィルター、書き込み可能、custom_ |
Part 'acme_delivery_address_subpremise' of the custom field 'ACME Delivery Address' of the company. | |
acme_ |
varchar2 |
ACME External Reference | プラットフォーム上のフィルター、書き込み可能、custom_ |
The custom field 'ACME External Reference' of the company. | |
acme_ |
varchar2 |
ACME Product Lines | プラットフォーム上のフィルター、書き込み可能、custom_ |
The custom field 'ACME Product Lines' of the company. | |
acme_ |
varchar2 |
ACME Product Lines Labels | プラットフォーム上でフィルタ可能、書き込み可能、計算列、_ |
The labels of the chosen options of the custom field 'ACME Product Lines'. | |
acme_ |
int64 |
ACME Region | プラットフォーム上のフィルター、書き込み可能、custom_ |
The custom field 'ACME Region' of the company. | |
acme_ |
varchar2 |
ACME Region Label | プラットフォーム上でフィルタ可能、書き込み可能、計算列、_ |
The labels of the chosen options of the custom field 'ACME Region'. | |
acme_ |
datetime |
ACME Renewal Date | プラットフォーム上のフィルター、書き込み可能、custom_ |
The custom field 'ACME Renewal Date' of the company. | |
acme_ |
decimal |
ACME Seats | プラットフォーム上のフィルター、書き込み可能、custom_ |
The custom field 'ACME Seats' of the company. | |
acv |
decimal |
ACV | プラットフォーム上でフィルタ可能、書き込み可能、計算列、acv |
The Annual Contract Value of the deal.Only on the Growth plan and above. | |
add_ |
datetime |
作成日時 | プラットフォーム上でフィルタ可能、書き込み可能、計算列、add_ |
The creation date and time of the deal. | |
archive_ |
datetime |
アーカイブ日時 | プラットフォーム上のフィルター、書き込み可能、_ |
The optional date and time of archiving the deal in UTC.書き込み時のみ使用されます。読み取り時は空になります。 | |
arr |
decimal |
ARR | プラットフォーム上でフィルタ可能、書き込み可能、計算列、arr |
The Annual Recurring Revenue of the deal.Only on the Growth plan and above. | |
channel |
int64 |
チャンネル | プラットフォーム上でフィルタ可能、書き込み可能、計算列、channel |
The ID of your Marketing channel this Deal was created from. | |
channel_ |
varchar2 |
チャンネルID | プラットフォーム上でフィルタ可能、書き込み可能、計算列、channel_ |
The optional ID to further distinguish the Marketing channel. | |
close_ |
datetime |
閉店時間 | プラットフォーム上のフィルター、書き込み可能、close_ |
The date and time of closing the deal. | |
currency |
varchar2 |
通貨 | プラットフォーム上のフィルター、書き込み可能、currency |
The currency associated with the deal. | |
expected_ |
datetime |
予定終了日 | プラットフォーム上のフィルター、書き込み可能、expected_ |
The expected close date of the deal. | |
id |
int64 |
ID | プラットフォーム上でフィルタ可能、書き込み可能、計算列、id |
The ID of the deal. | |
is_ |
char |
アーカイブ済み | プラットフォーム上のフィルター、書き込み可能、is_ |
Whether the deal is archived or not. | |
is_ |
char |
削除済みです | プラットフォーム上のフィルター、書き込み可能、is_ |
Whether the deal is deleted or not. | |
label_ |
varchar2 |
ラベルID | プラットフォーム上のフィルター、書き込み可能、label_ |
The IDs of labels assigned to the deal. | |
lost_ |
varchar2 |
失われた理性 | プラットフォーム上のフィルター、書き込み可能、lost_ |
The reason for losing the deal. | |
lost_ |
datetime |
失われた時間 | プラットフォーム上のフィルター、書き込み可能、lost_ |
The date and time of changing the deal status as lost. | |
mrr |
decimal |
MRR | プラットフォーム上でフィルタ可能、書き込み可能、計算列、mrr |
The Monthly Recurring Revenue of the deal.Only on the Growth plan and above. | |
org_id |
int64 |
組織ID | プラットフォーム上のフィルター、書き込み可能、org_id |
The ID of the organization linked to the deal. | |
origin |
varchar2 |
起源 | プラットフォーム上でフィルタ可能、書き込み可能、計算列、origin |
The way this Deal was created. | |
origin_ |
varchar2 |
Origin ID | プラットフォーム上でフィルタ可能、書き込み可能、計算列、origin_ |
The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | |
owner_ |
int64 |
所有者ID | プラットフォーム上のフィルター、書き込み可能、owner_ |
The ID of the user who owns the deal. | |
person_ |
int64 |
人物ID | プラットフォーム上のフィルター、書き込み可能、person_ |
The ID of the person linked to the deal. | |
pipeline_ |
int64 |
パイプラインID | プラットフォーム上のフィルター、書き込み可能、pipeline_ |
The ID of the pipeline associated with the deal. | |
probability |
decimal |
確率 | プラットフォーム上のフィルター、書き込み可能、probability |
The success probability percentage of the deal. | |
source_ |
varchar2 |
ソースリードID | プラットフォーム上でフィルタ可能、書き込み可能、計算列、source_ |
The ID of the lead if the deal was converted from a lead. | |
stage_ |
datetime |
ステージ変更時間 | プラットフォーム上でフィルタ可能、書き込み可能、計算列、stage_ |
The last updated date and time of the deal stage. | |
stage_ |
int64 |
ステージID | プラットフォーム上のフィルター、書き込み可能、stage_ |
The ID of the deal stage. | |
status |
varchar2 |
ステータス | プラットフォーム上のフィルター、書き込み可能、status |
The status of the deal. | |
title |
varchar2 |
タイトル | プラットフォーム上のフィルター、書き込み可能、title |
The title of the deal. | |
update_ |
datetime |
最終更新日時 | プラットフォーム上でフィルタ可能、書き込み可能、計算列、update_ |
The last updated date and time of the deal. | |
value |
decimal |
値 | プラットフォーム上のフィルター、書き込み可能、value |
The value of the deal. | |
visible_ |
int64 |
表示対象 | プラットフォーム上のフィルター、書き込み可能、visible_ |
The visibility of the deal. | |
won_ |
datetime |
優勝時間 | プラットフォーム上のフィルター、書き込み可能、won_ |
The date and time of changing the deal status as won. |
キー
| キー | コラム | 「~を指す」 | 種類 | 説明 |
|---|---|---|---|---|
Deals_ |
currency |
Currencies.code |
キー | |
Deals_ |
org_id |
Organizations.id |
キー | |
Deals_ |
origin |
LeadSources.name |
候補者 | 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 |
キー | |
Deals_ |
person_ |
Persons.id |
キー | |
Deals_ |
pipeline_ |
Pipelines.id |
キー | |
Deals_ |
source_ |
ArchivedLeads.id |
テキスト | The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads. |
Deals_ |
source_ |
Leads.id |
テキスト | The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads. |
Deals_ |
stage_ |
Stages.id |
キー |
参照元
- Activities
deal_id(Textual) - CallLogs
deal_id(テキスト型) - DealParticipantsByDealId
related_item_id(テキスト型) - DealProducts
deal_id(Key) - ArchivedLeads
source_deal_id(テキスト型) - Leads
source_deal_id(Textual) - Files
deal_id(Textual) - Notes
deal_id(Textual) - RecentChangesBySinceTimestamp
id(テキスト型)
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