Opportunity Object v2
Path Parameters
HTTP Header
api-key REQUIRED
string - Your Accelerate API Key
URL Substitution
subdomain Required
string - Your Accelerate subdomain
relationship ID REQUIRED
integer - ID of your chosen relationship
opportunity ID OPtional
integer - ID of your chosen opportunity
Opportunity Requests GEt Post put
Get Post - Retrieve opportunities from a relationship or add a new opportunity into a relationship
https://{{subdomain}}.quotevineapp.com/qvine/quotevine/api/v2/relationships/{id}/opportunities/
Example Payload POSt
{
"opportunity_type": "Single Car",
"opportunity_status": "New Opportunity",
"opportunity_source": "Email",
"quality": "High"
}
Response
200
Returned if the request is successful.
400
Returned if the request sent is invalid.
404
Returned if the request is not found or the user does not have permission to view it.
Put - Update an existing opportunity within a relationship
https://{{subdomain}}.quotevineapp.com/qvine/quotevine/api/v2/relationships/{id}/opportunities/{id}/
Example Payload PUT
{
"opportunity_type": "Single Car",
"opportunity_status": "New Opportunity",
"opportunity_source": "Email",
"description": "Customer is interested in leasing one vehicle.",
"quality": "High"
}
Response
200
Returned if the request is successful.
400
Returned if the request sent is invalid.
404
Returned if the request is not found or the user does not have permission to view it.
Opportunity Attributes
When updating/adding a new opportunity via the API, there are a number of fields needed.
Mandatory Fields
opportunity_type - string
Must be one of Single Car, Single LCV, Multiple Vehicles, Maintenance,Consultancy, Fleet Management, Floorplan Finance, Courtesy Car(s), Asset Finance.
opportunity_status - string
Must be one of your custom Opportunity Statuses.
opportunity_source - string
quality - string
Must be one of High, Medium, Low.