Skip to main content

POST /round-trip-moves

Swap two vehicles between locations. We'll deliver your first vehicle, then hop in your second and bring it right back.

Example Request

POST /v1/round-trip-moves
{
"rooftop": 42,
"third_party_payer": 9,
"ready_by_time_utc": "2022-03-25T14:00:00Z",
"duplicate_check": "vehicle_vin",
"move_one": {
"dealer_contact": "Jane Smith",
"special_instructions": "Check in at service center",
"vehicle": {
"stock": "BK0018",
"vin": "5GAKRBED5BJ262438",
"year": "2011",
"make": "Buick",
"model": "Enclave",
"color": "White",
"manual": false
},
"pickup_location": {
"name": "Denny's Automobiles",
"address_one": "11161 Research Plaza Way",
"city": "Richmond",
"state": "VA",
"zip": "23236"
},
"sla_id": 1,
"workflowset_id": 3,
"pickup_workflow_data": {
"additional_field": "Hello World!"
},
"delivery_workflow_data": {
"additional_field": "Hello World!"
}
},
"move_two": {
"dealer_contact": "Hugh Man",
"vehicle": {
"stock": "MB0004",
"vin": "WDDGF4HB1CR220392",
"year": "2012",
"make": "Mercedes-Benz",
"model": "C-Class",
"color": "Black",
"manual": true
},
"pickup_location": {
"name": "Lot 4",
"address_one": "888 Broad St",
"city": "Richmond",
"state": "VA",
"zip": "23220"
},
"sla_id": 1,
"workflowset_id": 3,
"pickup_workflow_data": {
"additional_field": "Hello World!"
},
"delivery_workflow_data": {
"additional_field": "Hello World!"
}
}
}

Body Params

FieldTypeRequired?Description
rooftopNumberOptionalFor users configured as dealer admins with the ability to create moves for multiple rooftops. Specify the id of the rooftop you wish to create the move for.
third_party_payerNumberOptionalFor users configured with third party payer accounts. This allows the move to be assigned to a different invoice than the rooftop specified. Use the /Payers endpoint to get a valid list of possible payers. API users' accounts can be configured to make this field required or to give this field a default value.
ready_by_time_utcStringRequiredThe date and time in YYYY-MM-DD hh:mm:ss format, using UTC/Zulu time. Reference.
duplicate_checkStringOptionalPrevent duplicating an in-progress move (already in the system) by specifying a field to check. Supports "reference_num", "vehicle_stock" and "vehicle_vin".
reference_numStringOptionalInternal reference ID, such as a repair order #.
dealer_contactStringOptionalPoint of contact for our driver when arriving at the service location.
special_instructionsStringOptionalAdditional information, such as where to park or a number to call upon arrival.
stockStringOptionalInternal stock number associated with the vehicle.
vinStringOptionalVehicle Identification Number associated with the vehicle.
yearStringOptionalYear the vehicle was manufactured.
makeStringRequired*The make of the vehicle (e.g., "Ford").
modelStringRequired*The model of the vehicle (e.g., "F-150").
colorStringOptionalThe color of the vehicle.
manualBooleanRequiredWhether or not the vehicle's transmission is manual (true) or automatic (false).
nameStringOptionalName associated with the location.
full_addressStringOptionalThe full address string of the location (Address pieces are no longer required if this field has a value).
address_oneStringRequired*The street address of the location.
address_twoStringOptionalOptional sub-address of the location.
cityStringRequired*The city that the location address is associated with.
stateStringRequired*The state that the location address is associated with.
zipStringOptionalThe 5-digit Zip Code that the location address is associated with.
pickup_workflow_dataObjectOptionalA single level deep object with name value pairs of placeholder values to preload in fields of the custom workflow defined by the workflowset
delivery_workflow_dataObjectOptionalA single level deep object with name value pairs of placeholder values to preload in fields of the custom workflow defined by the workflowset
sla_idNumberOptionalId of a Service Level Agreement to apply to this move. Talk with your dispatcher to setup custom SLAs. If nothing is passed here, the default SLA will be used. We recommend passing in the same SLA for both moves.
workflowset_idNumberOptionalId of a workflow set (combination pickup and delivery workflows) to apply to this move. Talk with your dispatcher to setup custom workflows. If nothing is passed here, the default workflows will be used.

Request Object Structure

{
ready_by_time_utc,
duplicate_check,
move_one: {
reference_num,
dealer_contact,
special_instructions,
vehicle: {
stock,
vin,
year,
make,
model,
color,
manual
},
pickup_location: {
name,
full_address,
address_one,
address_two,
city,
state,
zip
},
sla_id,
workflowset_id,
pickup_workflow_data: {
additional_field
},
delivery_workflow_data: {
additional_field
}
},
move_two: {
reference_num,
dealer_contact,
special_instructions,
vehicle: {
stock,
vin,
year,
make,
model,
color,
manual
},
pickup_location: {
name,
full_address,
address_one,
address_two,
city,
state,
zip
},
sla_id,
workflowset_id,
pickup_workflow_data: {
additional_field
},
delivery_workflow_data: {
additional_field
}
}
}

Example Response

For additional information, see the response section.

200 /v1/round-trip-moves
{
"ready_by_time_utc": "2022-03-25T14:00:00Z",
"earliest_available_time": "2022-03-25T14:00:00Z",
"move_one": {
"move_id": 10038,
"status": null,
"cancel_status": null,
"pickup_started": null,
"pickup_arrived": null,
"pickup_successful": null,
"delivery_started": null,
"delivery_arrived": null,
"delivery_successful": null,
"tracking_link": null,
"move_uri": "https://api.hopdrive.com/v1/moves/10038",
"lane_uri": "https://api.hopdrive.com/v1/lanes/4990",
"reference_num": null,
"dealer_contact": "Jane Smith",
"special_instructions": "Check in at service center",
"vehicle": {
"stock": "BK0018",
"vin": "5GAKRBED5BJ262438",
"year": "2011",
"make": "Buick",
"model": "Enclave",
"color": "White",
"manual": false
},
"pickup_location": {
"name": "Denny's Automobiles",
"address_one": "11161 Research Plaza Way",
"city": "Richmond",
"state": "VA",
"zip": "23236",
"lat": 37.5050257,
"lon": -77.6013313,
"google_place_id": "ChIJkxCQwnBtsYkR1QqrxNduupo",
"location_id": 2246,
"full_address": "11161 Research Plaza Way, Richmond, VA 23236, USA"
},
"sla_id": 1,
"workflowset_id": 3,
"pickup_workflow_data": {
"additional_field": "Hello World!"
},
"delivery_workflow_data": {
"additional_field": "Hello World!"
}
},
"move_two": {
"move_id": 10039,
"status": null,
"cancel_status": null,
"pickup_started": null,
"pickup_arrived": null,
"pickup_successful": null,
"delivery_started": null,
"delivery_arrived": null,
"delivery_successful": null,
"tracking_link": null,
"move_uri": "https://api.hopdrive.com/v1/moves/10039",
"lane_uri": "https://api.hopdrive.com/v1/lanes/4990",
"reference_num": null,
"dealer_contact": "Hugh Man",
"special_instructions": null,
"vehicle": {
"stock": "MB0004",
"vin": "WDDGF4HB1CR220392",
"year": "2012",
"make": "Mercedes-Benz",
"model": "C-Class",
"color": "Black",
"manual": true
},
"pickup_location": {
"name": "Lot 4",
"address_one": "888 W Broad St",
"city": "Richmond",
"state": "VA",
"zip": "23220",
"lat": 37.550209,
"lon": -77.4494655,
"google_place_id": "Eic4ODggVyBCcm9hZCBTdCwgUmljaG1vbmQsIFZBIDIzMjIwLCBVU0EiGxIZChQKEgkPDdZ3SBGxiRG2k4LRA4YLvxD4Bg",
"location_id": 2141,
"full_address": "888 W Broad St, Richmond, VA 23220, USA"
},
"sla_id": 1,
"workflowset_id": 3,
"pickup_workflow_data": {
"additional_field": "Hello World!"
},
"delivery_workflow_data": {
"additional_field": "Hello World!"
}
}
}