Opportunities
For authentication instructions, see API overview.
Endpoints
List all opportunities
Returns a list of opportunities. The opportunities are returned in sorted order, with the most recent appearing first.
Query parameters
limitintegerThe number of records to return
pageintegerThe page number
orderstringThe order of the records
sortBystringThe sort of the records
fieldsstringThe filter of the records
pstringpolicyFilters
qstringsearch query
Request
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/opportunitiesResponse
No response schemaCreate opportunity
Create opportunity. You need to pass through any required fields, and you can optionally pass through other fields.
Request body
customerstringleadIdstringopportunityInformationobjectopportunityOwnerstringprobabilitynumberdiscountnumberrevenuenumbercloseDatestringunitsarraypromoIdstringopportunityTypestringopportunitySourcestringstatusstringopportunityRatingnumberactivityLogarraynotesarraydocumentsarraytaskIdstringidengagerRequestIdstringopportunityDescriptionstringstagestringforecastCategorystring
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X POST -H 'Content-Type: application/json' \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/opportunities \ -d 'customer="609a8f85c2834915d0a5a5e1"' \ -d 'leadId="609a8f85c2834915d0a5a5e6"' \ -d 'opportunityInformation="object"' \ -d 'opportunityOwner="609a8f85c2834915d0a5a5e2"' \ -d 'probability=0.75' \ -d 'discount=10' \ -d 'revenue=1000' \ -d 'closeDate="2023-06-30"' \ -d 'units="array"' \ -d 'promoId="promo123"' \ -d 'opportunityType="new"' \ -d 'opportunitySource="website"' \ -d 'status="active"' \ -d 'opportunityRating=4' \ -d 'activityLog=[{"activityNumber":1,"activity":"Email sent","activityDate":"2023-04-19","logs":"Email sent to johndoe@example.com"}]' \ -d 'notes="array"' \ -d 'documents=[{"uploadDate":"2023-04-18","fileUrl":"https://example.com/docs/doc1.pdf"},{"uploadDate":"2023-04-19","fileUrl":"https://example.com/docs/doc2.pdf"}]' \ -d 'taskId="609a8f85c2834915d0a5a5e5"' \ -d 'idengagerRequestId="request123"' \ -d 'opportunityDescription="Interested in purchasing a new property"' \ -d 'stage="stage1"' \ -d 'forecastCategory="category1"'Response
No response schemaRetrieve opportunity
Returns a single opportunit, which you can request by passing through an id in the url.
Path parameters
idstringID of the opportunity
Request
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/opportunities/:idResponse
No response schemaUpdate opportunity
Path parameters
idstringID of the opportunity
Request body
customerstringleadIdstringopportunityInformationobjectopportunityOwnerstringprobabilitynumberdiscountnumberrevenuenumbercloseDatestringunitsarraypromoIdstringopportunityTypestringopportunitySourcestringstatusstringopportunityRatingnumberactivityLogarraynotesarraydocumentsarraytaskIdstringidengagerRequestIdstringopportunityDescriptionstringstagestringforecastCategorystring
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X PUT \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/opportunities/:id \ -d 'customer="609a8f85c2834915d0a5a5e1"' \ -d 'leadId="609a8f85c2834915d0a5a5e6"' \ -d 'opportunityInformation="object"' \ -d 'opportunityOwner="609a8f85c2834915d0a5a5e2"' \ -d 'probability=0.75' \ -d 'discount=10' \ -d 'revenue=1000' \ -d 'closeDate="2023-06-30"' \ -d 'units="array"' \ -d 'promoId="promo123"' \ -d 'opportunityType="new"' \ -d 'opportunitySource="website"' \ -d 'status="active"' \ -d 'opportunityRating=4' \ -d 'activityLog=[{"activityNumber":1,"activity":"Email sent","activityDate":"2023-04-19","logs":"Email sent to johndoe@example.com"}]' \ -d 'notes="array"' \ -d 'documents=[{"uploadDate":"2023-04-18","fileUrl":"https://example.com/docs/doc1.pdf"},{"uploadDate":"2023-04-19","fileUrl":"https://example.com/docs/doc2.pdf"}]' \ -d 'taskId="609a8f85c2834915d0a5a5e5"' \ -d 'idengagerRequestId="request123"' \ -d 'opportunityDescription="Interested in purchasing a new property"' \ -d 'stage="stage1"' \ -d 'forecastCategory="category1"'Response
No response schemaUpdate opportunity soft
Update opportunity soft by setting the values of the parameters passed. Any parameters not set will be unchanged.
Path parameters
idstringID of the opportunity
Request
export ICLOUDREADY_API_KEY=[your api key]curl \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/opportunities/:idResponse
No response schemaDelete opportunity
Path parameters
idstringID of the opportunity
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X DELETE \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/opportunities/deleted/:idResponse
No response schemaCreate opportunity no activity
Create opportunity no activity. You need to pass through any required fields, and you can optionally pass through other fields.
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X POST -H 'Content-Type: application/json' \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/opportunities/no-activity-opportunitiesResponse
No response schemaUpdate opportunity
Request
export ICLOUDREADY_API_KEY=[your api key]curl -X PUT \ -H "Authorization: Bearer $ICLOUDREADY_API_KEY" \ https://api.icloud-ready.com/api/v2/opportunities/multiple