Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e
For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19).

## [Unreleased]
### Added
- Added optional `channel` and `channel_id` fields to the request bodies of `POST /api/v2/deals` and `PATCH /api/v2/deals/{id}`
- Added optional `origin_id` field to the request body of `POST /api/v2/deals`

## [36.2.0] - 2026-11-06
### Added
Expand Down
15 changes: 15 additions & 0 deletions src/versions/v2/models/add-deal-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,21 @@ export interface AddDealRequest {
*/
'label_ids'?: Array<number>;
/**
* The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>.
* @type {number}
*/
'channel'?: number | null;
/**
* The optional ID to further distinguish the Marketing channel.
* @type {string}
*/
'channel_id'?: string | null;
/**
* The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null.
* @type {string}
*/
'origin_id'?: string | null;
/**
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error.
* @type {{ [key: string]: any | undefined; }}
*/
Expand Down
10 changes: 10 additions & 0 deletions src/versions/v2/models/update-deal-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ export interface UpdateDealRequest {
*/
'label_ids'?: Array<number>;
/**
* The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>.
* @type {number}
*/
'channel'?: number | null;
/**
* The optional ID to further distinguish the Marketing channel.
* @type {string}
*/
'channel_id'?: string | null;
/**
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error.
* @type {{ [key: string]: any | undefined; }}
*/
Expand Down
Loading