Get Opportunity List

post
Get Opportunity List

[PlatformAddress]/api/1.0/crm?action=getOpportunityList
Get a list of opportunity.
Request
Response
Path Parameters
venueIds
optional
integer
The array of venue ids to which the opportunity belongs
200: OK
{
"meta": {
"totalResults": 1,
"start": 0,
"perPage": 100,
"count": 1
},
"results": [
{
"id": 763,
"venueId": 1,
"name": "Opprotunity Name",
"description": "This is test description",
"ownerUser": {
"id": 549,
"firstName": "First",
"lastName": "Last",
"email": "first@last.com",
"phone": ""
},
"contact": {
"id": 580,
"firstName": "First",
"lastName": "last",
"email": "filrst.last@email.com",
"phone": 614535435
},
"company": {
"id": 214,
"businessName": "Company BusinessName",
"businessNumber": "BUS123",
"phone": null,
"email": company@owner.com
},
"currentBookingId": 5,
"qualityId": 2,
"quality": "B-Grade",
"stageId": 47,
"stageName": "Interested",
"stageReasonId": 245,
"stageReasonName": "Price under budget",
"typeId": 3,
"type": "Reseller",
"sourceId": 13,
"sourceName": "Newspaper",
"channelId": 8,
"channelName": "PCO",
"leadEmailAddress": "lead-2-763-facdb9@ivvy.blueweb",
"createdDate": "2019-04-12 09:00:35 UTC",
"modifiedDate": "2019-04-12 09:00:35 UTC"
}
]
}

The result from this call will be a collection of all the opportunities the user has access to. This call also accepts the pagination and filter properties.

Example Request

Get a specific venues' opportunity List

{
"venueId": [1,2],
}