Opportunities
Documentation for Opportunities API
Get Opportunity
Get Opportunity
Delete Opportunity
Delete Opportunity
Update Opportunity
Update an opportunity. Unless the location allows duplicate opportunities (`allowDuplicateOpportunity`), a contact can have only one opportunity per pipeline. Opportunities without a contact are never treated as duplicates. Moving an opportunity to a pipeline where its contact already has an opportunity returns 400 with `code: OPPORTUNITY_NO_DUPLICATE`.
Update Opportunity Status
Update Opportunity Status
Upsert Opportunity
Create or update an opportunity. If `id` is sent, that opportunity is updated; an `id` that does not exist creates a new opportunity instead. Without `id`, `pipelineId` is required: when `contactId` is also sent, the most recent opportunity for that contact in that pipeline is updated; otherwise (no match, or no `contactId`) a new opportunity is created. A new opportunity without a contact needs `name`. Always returns 201: `new` is `true` when an opportunity was created and `false` when one was updated.
Create Opportunity
Create an opportunity. `contactId` is optional. Unless the location allows duplicate opportunities (`allowDuplicateOpportunity`), a contact can have only one opportunity per pipeline. Opportunities without a contact are never treated as duplicates. Creating a second opportunity for the same contact in the same pipeline returns 400 with `code: OPPORTUNITY_NO_DUPLICATE` and the existing opportunity id in `meta.existingId`.