Create deal
pipelinecrm_create_dealDestructive
WRITE: create a deal. Give the owner (user id), stage id, value, expected close date and company or primary contact when known; a new company is created from company_name if no company_id is given. No email is sent to the owner. POST /deals.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Deal name. | |
| value | No | The deal's value in its currency. | |
| summary | No | Description of the deal. | |
| tag_ids | No | Deal tag ids. | |
| owner_id | No | User id of the owner (default: the authenticated user). | |
| stage_id | No | Deal stage id (see pipelinecrm_list_deal_stages). | |
| source_id | No | Lead source id (see pipelinecrm_list_lookup with kind lead_sources). | |
| company_id | No | Existing company id. | |
| person_ids | No | Ids of the people associated with the deal. | |
| company_name | No | Creates a new company with this name for the deal. | |
| custom_fields | No | Custom field values keyed by the custom field's key (see the account's custom field labels in Pipeline CRM). | |
| primary_contact_id | No | Existing person id of the primary contact. | |
| expected_close_date | No | Expected close date (yyyy-mm-dd). |