dokumentace k produktu Invantivesoučást invantive cloud
Fóra podpory InvantivePřihlásit se/ Zaregistrujte se

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_contract_period datetime ACME Contract Period filtry na platformě, zapisovatelné, custom_fields.6896075a66cf84149483264322680e69b411ee3e.value The custom field 'ACME Contract Period' of the company.
acme_contract_period_until datetime ACME Contract Period filtry na platformě, zapisovatelné, custom_fields.6896075a66cf84149483264322680e69b411ee3e.until Part 'acme_contract_period_until' of the custom field 'ACME Contract Period' of the company.
acme_contract_value decimal ACME Contract Value filtry na platformě, zapisovatelné, custom_fields.fe13934927824850c24048140e20616402b6aeff.value The custom field 'ACME Contract Value' of the company.
acme_contract_value_currency varchar2 ACME Contract Value filtry na platformě, zapisovatelné, custom_fields.fe13934927824850c24048140e20616402b6aeff.currency Part 'acme_contract_value_currency' of the custom field 'ACME Contract Value' of the company.
acme_delivery_address varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.value The custom field 'ACME Delivery Address' of the company.
acme_delivery_address_admin_area_level_1 varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.admin_area_level_1 Part 'acme_delivery_address_admin_area_level_1' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_admin_area_level_2 varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.admin_area_level_2 Part 'acme_delivery_address_admin_area_level_2' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_country varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.country Part 'acme_delivery_address_country' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_formatted_address varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.formatted_address Part 'acme_delivery_address_formatted_address' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_locality varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.locality Part 'acme_delivery_address_locality' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_postal_code varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.postal_code Part 'acme_delivery_address_postal_code' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_route varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.route Part 'acme_delivery_address_route' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_street_number varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.street_number Part 'acme_delivery_address_street_number' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_sublocality varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.sublocality Part 'acme_delivery_address_sublocality' of the custom field 'ACME Delivery Address' of the company.
acme_delivery_address_subpremise varchar2 ACME Delivery Address filtry na platformě, zapisovatelné, custom_fields.527fcb45fb7c3270c94bf4be803fe9ddd47ba269.subpremise Part 'acme_delivery_address_subpremise' of the custom field 'ACME Delivery Address' of the company.
acme_external_reference varchar2 ACME External Reference filtry na platformě, zapisovatelné, custom_fields.97dc6423c82198942fbaf22a2643b1d23f355cdb The custom field 'ACME External Reference' of the company.
acme_product_lines varchar2 ACME Product Lines filtry na platformě, zapisovatelné, custom_fields.79bf9d0e284bf04281c56b9dc991e42166f86efb The custom field 'ACME Product Lines' of the company.
acme_product_lines_labels varchar2 ACME Product Lines Labels filtry na platformě, zapisovatelné, vypočítané, __labels.79bf9d0e284bf04281c56b9dc991e42166f86efb The labels of the chosen options of the custom field 'ACME Product Lines'.
acme_region int64 ACME Region filtry na platformě, zapisovatelné, custom_fields.4741923a810774c80bf83b0dcc79a08f6e59911d The custom field 'ACME Region' of the company.
acme_region_label varchar2 ACME Region Label filtry na platformě, zapisovatelné, vypočítané, __labels.4741923a810774c80bf83b0dcc79a08f6e59911d The labels of the chosen options of the custom field 'ACME Region'.
acme_renewal_date datetime ACME Renewal Date filtry na platformě, zapisovatelné, custom_fields.adb4fa55e4e402beaf62a61f4743352be194aaf7 The custom field 'ACME Renewal Date' of the company.
acme_seats decimal ACME Seats filtry na platformě, zapisovatelné, custom_fields.01b665b6da996dbb9999866e8248c5d4c5b6a50b 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_time datetime Doba vzniku filtry na platformě, zapisovatelné, vypočítané, add_time The creation date and time of the deal.
archive_time datetime Čas v archivu filtry na platformě, zapisovatelné, __write_only.archive_time 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_id varchar2 ID kanálu filtry na platformě, zapisovatelné, vypočítané, channel_id The optional ID to further distinguish the Marketing channel.
close_time datetime Zavírací doba filtry na platformě, zapisovatelné, close_time The date and time of closing the deal.
currency varchar2 Měna filtry na platformě, zapisovatelné, currency The currency associated with the deal.
expected_close_date datetime Předpokládané datum uzavření filtry na platformě, zapisovatelné, expected_close_date The expected close date of the deal.
id int64 ID filtry na platformě, zapisovatelné, vypočítané, id The ID of the deal.
is_archived char Je archivováno filtry na platformě, zapisovatelné, is_archived Whether the deal is archived or not.
is_deleted char Je smazáno filtry na platformě, zapisovatelné, is_deleted Whether the deal is deleted or not.
label_ids varchar2 ID štítků filtry na platformě, zapisovatelné, label_ids The IDs of labels assigned to the deal.
lost_reason varchar2 Ztracený rozum filtry na platformě, zapisovatelné, lost_reason The reason for losing the deal.
lost_time datetime Ztracený čas filtry na platformě, zapisovatelné, lost_time 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_id varchar2 ID původu filtry na platformě, zapisovatelné, vypočítané, origin_id The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal.
owner_id int64 ID majitele filtry na platformě, zapisovatelné, owner_id The ID of the user who owns the deal.
person_id int64 Identifikační číslo osoby filtry na platformě, zapisovatelné, person_id The ID of the person linked to the deal.
pipeline_id int64 Identifikátor potrubí filtry na platformě, zapisovatelné, pipeline_id 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_lead_id varchar2 ID zdroje poptávky filtry na platformě, zapisovatelné, vypočítané, source_lead_id The ID of the lead if the deal was converted from a lead.
stage_change_time datetime Čas změny scény filtry na platformě, zapisovatelné, vypočítané, stage_change_time The last updated date and time of the deal stage.
stage_id int64 ID etapy filtry na platformě, zapisovatelné, stage_id 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_time datetime Čas poslední aktualizace filtry na platformě, zapisovatelné, vypočítané, update_time The last updated date and time of the deal.
value decimal Hodnota filtry na platformě, zapisovatelné, value The value of the deal.
visible_to int64 Zobrazit pro filtry na platformě, zapisovatelné, visible_to The visibility of the deal.
won_time datetime Doba vítězství filtry na platformě, zapisovatelné, won_time The date and time of changing the deal status as won.

Klíče

Klíč Sloupec Vztahuje se k Druh Popis
Deals_currency_fk currency Currencies.code Klíč
Deals_org_id_fk org_id Organizations.id Klíč
Deals_origin_cnd 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_id_fk owner_id Users.id Klíč
Deals_person_id_fk person_id Persons.id Klíč
Deals_pipeline_id_fk pipeline_id Pipelines.id Klíč
Deals_source_lead_id_ArchivedLeads_txt source_lead_id ArchivedLeads.id Textové The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads.
Deals_source_lead_id_Leads_txt source_lead_id Leads.id Textové The lead the deal was converted from, in Leads or, once archived, in ArchivedLeads.
Deals_stage_id_fk stage_id Stages.id Klíč

Odkazuje na

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