Create a new deal in Pipedrive CRM
Creates a new deal (opportunity) in your Pipedrive account with the specified details.
type: "io.kestra.plugin.pipedrive.deals.Create"Examples
Create a deal with basic information
id: pipedrive_create_deal
namespace: company.team
tasks:
- id: create_deal
type: io.kestra.plugin.pipedrive.deals.Create
apiToken: "{{ secret('PIPEDRIVE_API_TOKEN') }}"
title: "Enterprise Software License"
value: 50000
currency: "USD"
Create a deal linked to a person
id: pipedrive_create_deal_with_person
namespace: company.team
tasks:
- id: create_deal
type: io.kestra.plugin.pipedrive.deals.Create
apiToken: "{{ secret('PIPEDRIVE_API_TOKEN') }}"
title: "Cloud Services Contract"
value: 100000
currency: "USD"
personId: 123
stageId: 1
expectedCloseDate: "2024-12-31"
Properties
apiToken *Requiredstring
Pipedrive API token
Your Pipedrive API token for authentication.
title *Requiredstring
Deal title
Title of the deal
apiUrl string
https://api.pipedrive.com/api/v2Pipedrive API URL
Base URL for the Pipedrive API. Override for testing purposes.
currency string
Currency
Currency code (e.g., USD, EUR, GBP)
customFields object
Custom fields
Map of custom field keys and values
expectedCloseDate string
Expected close date
Expected close date in YYYY-MM-DD format
orgId integerstring
Organization ID
ID of the organization this deal is associated with
personId integerstring
Person ID
ID of the person this deal is associated with
probability numberstring
Probability
Deal success probability percentage (0-100)
stageId integerstring
Stage ID
ID of the stage this deal will be placed in a pipeline
status string
Status
Status of the deal. Valid values: 'open', 'won', 'lost', 'deleted'
userId integerstring
User ID
ID of the user who will be marked as the owner of this deal
value numberstring
Deal value
Value of the deal
visibleTo string
Visibility
Visibility of the deal. Valid values: '1' (owner only), '3' (entire company), or '5' (owner and followers)
Outputs
addTime string
Creation time
Timestamp when the deal was created
dealId integer
Deal ID
The ID of the created deal in Pipedrive
updateTime string
Last update time
Timestamp when the deal was last updated