Path Parameters
HTTP Header
api-key REQUIRED string - Your Accelerate API Key | URL Substitution
subdomain REQUIRED
relationship ID REQUIRED
opportunity ID REQUIRED |
Test Drive Requests
GET POST - Retrieve test drives from a relationship or add a new test drive into a relationship
https://{{subdomain}}.quotevineapp.com/qvine/quotevine/api/v2/relationships/{id}/opportunities/{id}/test-drives/
Example Payload
POST
{
"test_drive_status": "New Test Drive",
"site_location": "Bedford",
"start_time": "2022-08-19 15:49:00",
"driver_1_forename": "James",
"driver_1_surname": "Michaels",
"driver_1_email_address": "[email protected]"
}
Response
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. |
200
Expand to see example of a successful response. { |
Test Drive Attributes
When adding a new test drive via the API, there are a number of fields needed.
Mandatory Fields
Expand to view the mandatory fields
Expand to view the mandatory fields
test_drive_status - string
Must be one of the test drive statuses configured in Settings.
start_time - datetime
Maximum 128 characters.
driver_1_forename - string
Maximum 50 characters.
driver_1_surname - string
Maximum 50 characters.
driver_1_email_address - string
Non-Mandatory Fields
Expand to view all non- mandatory fields that can be used
Expand to view all non- mandatory fields that can be used
test_drive_id - number
Must not be supplied when using POST or PUT .
description - string
Maximum 128 characters.
site_location - string
Maximum 50 characters.
driver_1_licence_number - string
Maximum 21 characters.
driver_1_licence_check_date - date
driver_2_forename - string
Maximum 50 characters.
driver_2_surname - string
Maximum 50 characters.
driver_2_licence_number - string
Maximum 21 characters.
driver_2_licence_check_date - date
adaptions_y_n - string
Y or N.
comments - string
Maximum 4000 characters.