Create Opportunity
POST/crm/opportunities
Create Opportunity
Request
Query Parameters
credentialId stringrequired
The ID of the credential.
Header Parameters
Authorization stringrequired
Default value: bearer YOUR_API_KEY
- application/json
Body
opportunityName stringrequired
The name or title of the sales opportunity.
opportunityStage stringrequired
The current stage of the sales process that the opportunity is in, such as 'Qualification', 'Proposal', etc.
closeDate stringrequired
The projected or actual date on which the opportunity will be or was closed.
amount string
The monetary value or revenue potential of the opportunity.
opportunityDescription string
A detailed description of the sales opportunity.
remoteFields json
An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.
Responses
- 200
- 400
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
opportunity
object
id string
remoteId string
opportunityName string
opportunityDescription string
amount integer
Default value: 0
opportunityOwner string
opportunityAccount string
opportunityStage string
opportunityStatus string
lastActivityAt string
closeDate string
remoteCreatedAt string
remoteUpdatedAt string
remoteDeleted boolean
Default value: true
createdAt string
updatedAt string
{
"opportunity": {
"id": "00000000-0000-0000-0000-000000000000",
"remoteId": "1000000000001",
"opportunityName": "Innovative Tech Solutions",
"opportunityDescription": "Developing new software tools for market research",
"amount": 120000,
"opportunityOwner": "1000000000002",
"opportunityAccount": "1000000000003",
"opportunityStage": "Proposal/Price Quote",
"opportunityStatus": "Active",
"lastActivityAt": "2023-09-20",
"closeDate": "2023-12-15",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
}
}
{
"opportunity": {
"id": "00000000-0000-0000-0000-000000000000",
"remoteId": "1000000000001",
"opportunityName": "Innovative Tech Solutions",
"opportunityDescription": "Developing new software tools for market research",
"amount": 120000,
"opportunityOwner": "1000000000002",
"opportunityAccount": "1000000000003",
"opportunityStage": "Proposal/Price Quote",
"opportunityStatus": "Active",
"lastActivityAt": "2023-09-20",
"closeDate": "2023-12-15",
"remoteCreatedAt": "2023-11-19T17:00:17.000Z",
"remoteUpdatedAt": "2023-11-19T17:00:17.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:17:53.264Z",
"updatedAt": "2024-02-22T13:54:03.445Z"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
object
{}
{}
Loading...