We’re currently using the Create Opportunity API with one of our clients in a live environment. The url is: https://api.fortellis.io/sales/v2/elead/opportunities/
The problem is that the opportunity gets created correctly, however, it’s missing the vehicle information.
Here is one sample response we received from the API (I’ve redacted the subscription ID). The response clearly shows that the vehcile should have been created, but when we log in to eLead, only the customer and opportunity are there and no sought vehicle is associated with them.
{
"url": https://api.fortellis.io/sales/v2/elead/opportunities/,
"headers": {
"Subscription-Id": "f84...",
"Request-Id": "tdtg-create-opportunity-90-0.28497000 1704810417"
},
"body": {
"customerId": "32abac20-fbae-ee11-b0ce-00505690462b",
"dateIn": "2024-01-09UTC14:26:53.0000000",
"source": "Test Drive To Go",
"subSource": "",
"upType": "Internet",
"status": "open",
"soughtVehicles": {
"isNew": true,
"make": "Ford",
"model": "F-150",
"trim": "XL",
"vin": "1FTEW1EP4PKE37272",
"stockNumber": "",
"isPrimary": true
}
},
"response": {
"opportunity": {
"id": "36abac20-fbae-ee11-b0ce-00505690462b",
"customerId": "32abac20-fbae-ee11-b0ce-00505690462b",
"customer": {
"id": "32abac20-fbae-ee11-b0ce-00505690462b",
"links": [
{
"rel": "self",
"href": https://api.fortellis.io/sales/v1/elead/customers/32abac20-fbae-ee11-b0ce-00505690462b,
"method": "GET",
"title": "Fetch Customer"
}
]
},
"dateIn": "2024-01-09T14:27:00Z",
"source": "Test Drive To Go",
"subSource": "",
"status": "Active",
"subStatus": "New",
"upType": "Internet",
"salesTeam": [
{
"id": "b973fa2a-42e8-ec11-b0c4-00505690462b",
"firstName": "Shark",
"lastName": "Tank-Ford",
"isPrimary": true,
"isPositionPrimary": true,
"positionName": "WebLink Specialist",
"positionCode": "WS",
"links": []
}
],
"links": [
{
"rel": "create",
"href": https://api.fortellis.io/sales/v2/elead/opportunities,
"method": "POST",
"title": "Create Opportunity"
},
{
"rel": "self",
"href": https://api.fortellis.io/sales/v2/elead/opportunities/36abac20-fbae-ee11-b0ce-00505690462b,
"method": "GET",
"title": "Get Opportunity"
},
{
"rel": "comment",
"href": https://api.fortellis.io/sales/v2/elead/opportunities/comment,
"method": "POST",
"title": "Add Comment"
},
{
"rel": "email",
"href": https://api.fortellis.io/sales/v2/elead/opportunities/sendEmail,
"method": "POST",
"title": "Send Email"
},
{
"rel": "tradein",
"href": https://api.fortellis.io/sales/v2/elead/opportunities/tradein,
"method": "POST",
"title": "Add Trade-In"
},
{
"rel": "vehiclesought",
"href": https://api.fortellis.io/sales/v2/elead/opportunities/vehicleSought,
"method": "POST",
"title": "Add Vehicle Sought"
},
{
"rel": "salesperson",
"href": https://api.fortellis.io/sales/v2/elead/opportunities/reassignPrimarySalesperson,
"method": "POST",
"title": "Reassign Primary Salesperson"
},
{
"rel": "salesperson",
"method": "POST",
"title": "Add Salesperson"
},
{
"rel": "salesperson",
"method": "POST",
"title": "Remove Salesperson"
},
{
"rel": "substatus",
"method": "POST",
"title": "Update SubStatus"
},
{
"rel": "inactive",
"method": "POST",
"title": "Set Opportunity Inactive"
}
]
},
"isDuplicate": false,
"opportunityActivityId": "3babac20-fbae-ee11-b0ce-00505690462b"
},
"exception": null
}