Stages: Pipedrive Stages
insert update delete REST
- Catalog:
Pipedrive - Schema:
Pipelines - Primary Keys:
id - Label: Stages
Can retrieve data and change data using insert, update and delete.
Summary
The stages of the sales pipelines. Each request costs 5 tokens of the daily budget of the company.
API Source
- Endpoint:
/stages
Table Columns
The columns of the table Stages 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 |
|---|---|---|---|---|---|
add_ |
datetime |
Creation Time | filters on the platform, writable, computed, add_ |
The stage creation time. | |
days_ |
int64 |
Days to Rotten | filters on the platform, writable, days_ |
The number of days the deals not updated in this stage would become rotten. | |
deal_ |
int64 |
Deal Probability | filters on the platform, writable, deal_ |
The success probability percentage of the deal. | |
id |
int64 |
ID | filters on the platform, writable, computed, id |
The ID of the stage. | |
is_ |
char |
Is Deal Rot Enabled | filters on the platform, writable, is_ |
Whether deals in this stage can become rotten. | |
is_ |
char |
Is Deleted | filters on the platform, writable, computed, is_ |
Whether the stage is marked as deleted or not. | |
name |
varchar2 |
Name | filters on the platform, writable, name |
The name of the stage. | |
order_ |
int64 |
Sequence Number | filters on the platform, writable, computed, order_ |
Defines the order of the stage. | |
pipeline_ |
int64 |
Pipeline ID | filters on the platform, writable, pipeline_ |
The ID of the pipeline to add the stage to. | |
update_ |
datetime |
Last Update Time | filters on the platform, writable, computed, update_ |
The stage update time. |
Keys
| Key | Column | Refers to | Kind | Description |
|---|---|---|---|---|
Stages_ |
pipeline_ |
Pipelines.id |
Key |
Referenced By
- ArchivedDeals
stage_id(Key) - Deals
stage_id(Key) - RecentChangesBySinceTimestamp
id(Textual)
Sample Queries
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