Deal models.
| Name | Type | Description |
|---|---|---|
| amount | Decimal | Deal amount. |
| chat_id | String | UUID of the chat linked to the deal. Maximum length is 36 characters. |
| client | Client | Embedded client object. |
| client_id | Int64 | Client ID. |
| close_date | Int64 | Close date as Unix time in seconds. |
| created_user_id | Int64 | ID of the user who created the record. |
| currency | Currency | Deal currency. |
| deal_type_id | Int64 | Deal type ID. |
| description | String | Deal description. |
| description_mentions | Array of CommonMention | User mentions in description. Returned when include_mentions is true. |
| fields | Array of FieldValue | Custom field values. |
| id | Int64 | Deal ID. |
| last_update | Int64 | Last update date as Unix time in seconds. |
| lead_id | Int64 | Source lead ID when the deal was created from a lead. |
| open_date | Int64 | Open date as Unix time in seconds. |
| participant_user_ids | Array of Int64 | Deal participant user IDs. |
| pipeline_id | Int64 | Deal pipeline ID. |
| responsible_user_id | Int64 | Responsible user ID. |
| source_deal_id | Int64 | Source deal ID used as an informational reference. |
| stage_id | Int64 | Current stage ID. |
| task_id | Int64 | Linked project task ID. |
| ticket_id | Int64 | Source ticket ID used as an informational reference. |
| title | String | Deal title. Maximum length is 300 characters. |