Create opportunity
POST {{baseUrl}}/crm/opportunities?raw=false
Create opportunity
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
raw | boolean | Include raw response. Mostly used for debugging purposes |
Request Body
{"title"=>"{{$randomBs}}", "primary_contact_id"=>"{{primaryContactId}}", "description"=>"Opportunities are created for People and Companies that are interested in buying your products or services. Create Opportunities for People and Companies to move them through one of your Pipelines.", "type"=>"Existing Customer - Upgrade", "monetary_amount"=>75000, "currency"=>"USD", "win_probability"=>40, "close_date"=>"2020-10-30", "loss_reason"=>"No budget", "won_reason_id"=>"12345", "won_reason"=>"Best pitch", "source_id"=>"12345", "lead_id"=>"{{primaryLeadId}}", "lead_source"=>"Website", "contact_id"=>"{{primaryContactId}}", "contact_ids"=>["12345", "12345"], "company_id"=>"{{primaryCompanyId}}", "company_name"=>"Copper", "owner_id"=>"{{primaryOwnerId}}", "priority"=>"None", "tags"=>["{{$randomBsNoun}}", "{{$randomBsNoun}}"], "stage_last_changed_at"=>"2020-09-30T07:43:32.000Z"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-apideck-consumer-id | string | (Required) ID of the consumer which you want to get or push data from | |
x-apideck-app-id | string | (Required) The ID of your Unify application | |
x-apideck-service-id | string | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status_code":200,"status":"OK","service":"zoho-crm","resource":"opportunities","operation":"add","data":{"id":"12345"}}