---
title: "Stages (Pipedrive)"
description: "Stages"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Pipelines.Stages
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Pipelines.Stages
updated: 2026-11-01T16:22:11Z
license: https://documentation.invantive.eu/en/
---

# 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_time` | `datetime` | Creation Time | [ ] | filters on the platform, writable, computed, `add_time` | The stage creation time. |
| `days_to_rotten` | `int64` | Days to Rotten | [ ] | filters on the platform, writable, `days_to_rotten` | The number of days the deals not updated in this stage would become rotten. |
| `deal_probability` | `int64` | Deal Probability | [ ] | filters on the platform, writable, `deal_probability` | The success probability percentage of the deal. |
| `id` | `int64` | ID | [x] | filters on the platform, writable, computed, `id` | The ID of the stage. |
| `is_deal_rot_enabled` | `char` | Is Deal Rot Enabled | [ ] | filters on the platform, writable, `is_deal_rot_enabled` | Whether deals in this stage can become rotten. |
| `is_deleted` | `char` | Is Deleted | [ ] | filters on the platform, writable, computed, `is_deleted` | Whether the stage is marked as deleted or not. |
| `name` | `varchar2` | Name | [ ] | filters on the platform, writable, `name` | The name of the stage. |
| `order_nr` | `int64` | Sequence Number | [ ] | filters on the platform, writable, computed, `order_nr` | Defines the order of the stage. |
| `pipeline_id` | `int64` | Pipeline ID | [ ] | filters on the platform, writable, `pipeline_id` | The ID of the pipeline to add the stage to. |
| `update_time` | `datetime` | Last Update Time | [ ] | filters on the platform, writable, computed, `update_time` | The stage update time. |

## Keys

| Key | Column | Refers to | Kind | Description |
|---|---|---|---|---|
| `Stages_pipeline_id_fk` | `pipeline_id` | [Pipelines](Pipedrive.Pipelines.Pipelines)`.id` | Key |  |

## Referenced By

- [ArchivedDeals](Pipedrive.Deals.ArchivedDeals) `stage_id` (Key)
- [Deals](Pipedrive.Deals.Deals) `stage_id` (Key)
- [RecentChangesBySinceTimestamp](Pipedrive.Settings.RecentChangesBySinceTimestamp) `id` (Textual)

## Sample Queries

```sql
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
```

