---
title: "Stages (Pipedrive)"
description: "F\u00E1ze"
language: cs
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/cs/datamodels/pipedrive/Pipedrive.Pipelines.Stages
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Pipelines.Stages
updated: 2026-12-05T01:26:49Z
license: https://documentation.invantive.eu/cs/
---

# Stages: Pipedrive Stages

`insert` `update` `delete` `REST`

- Katalog: `Pipedrive`
- Schéma: `Pipelines`
- Primární klíče: `id`
- Popisek: Fáze

Pomocí `insert`, `update` a `delete` lze načítat a měnit data.

## Shrnutí

The stages of the sales pipelines. Each request costs 5 tokens of the daily budget of the company.

## Zdroj API

- Koncový bod: `/stages`

## Sloupce tabulky

Sloupce tabulky `Stages` 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 |
|---|---|---|:---:|---|---|
| `add_time` | `datetime` | Doba vzniku | [ ] | filtry na platformě, zapisovatelné, vypočítané, `add_time` | The stage creation time. |
| `days_to_rotten` | `int64` | Dny do zkažení | [ ] | filtry na platformě, zapisovatelné, `days_to_rotten` | The number of days the deals not updated in this stage would become rotten. |
| `deal_probability` | `int64` | Pravděpodobnost uzavření obchodu | [ ] | filtry na platformě, zapisovatelné, `deal_probability` | The success probability percentage of the deal. |
| `id` | `int64` | ID | [x] | filtry na platformě, zapisovatelné, vypočítané, `id` | The ID of the stage. |
| `is_deal_rot_enabled` | `char` | Je povolena funkce „Deal Rot“? | [ ] | filtry na platformě, zapisovatelné, `is_deal_rot_enabled` | Whether deals in this stage can become rotten. |
| `is_deleted` | `char` | Je smazáno | [ ] | filtry na platformě, zapisovatelné, vypočítané, `is_deleted` | Whether the stage is marked as deleted or not. |
| `name` | `varchar2` | Jméno | [ ] | filtry na platformě, zapisovatelné, `name` | The name of the stage. |
| `order_nr` | `int64` | Pořadové číslo | [ ] | filtry na platformě, zapisovatelné, vypočítané, `order_nr` | Defines the order of the stage. |
| `pipeline_id` | `int64` | Identifikátor potrubí | [ ] | filtry na platformě, zapisovatelné, `pipeline_id` | The ID of the pipeline to add the stage to. |
| `update_time` | `datetime` | Čas poslední aktualizace | [ ] | filtry na platformě, zapisovatelné, vypočítané, `update_time` | The stage update time. |

## Klíče

| Klíč | Sloupec | Vztahuje se k | Druh | Popis |
|---|---|---|---|---|
| `Stages_pipeline_id_fk` | `pipeline_id` | [Pipelines](Pipedrive.Pipelines.Pipelines)`.id` | Klíč |  |

## Odkazuje na

- [ArchivedDeals](Pipedrive.Deals.ArchivedDeals) `stage_id` (Key)
- [Obchody](Pipedrive.Deals.Deals) `stage_id` (Klíč)
- [RecentChangesBySinceTimestamp](Pipedrive.Settings.RecentChangesBySinceTimestamp) `id` (textový)

## Příklad Query

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