GET api/SocialDriver/GetVehicleDetails?serviceId={serviceId}
Get a user's vehicle details
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
serviceId |
Optional service id |
unsigned integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
UserDetailsResponse
ViewVehicleDetailsResponseName | Description | Type | Additional information |
---|---|---|---|
VehicleRegistration |
The user's vehicle registration |
string |
None. |
CurrentOdometerReading |
The user's vehicle odometer in meters |
integer |
None. |
DeviceIMEI |
The IMEI of the device inside this vehicle |
string |
None. |
LastServiceMileage |
The last service mileage |
integer |
None. |
LastServiceDate |
The last service date |
date |
None. |
CarType |
The user's car type |
string |
None. |
PetrolCostPerMile |
The petrol cost per mile of this vehicle |
decimal number |
None. |
DefaultJourneyType |
The vehicles default journey type |
DefaultJourneyType |
None. |
DvlaMake |
The DVLA Make |
string |
None. |
DvlaModel |
The DVLA Model |
string |
None. |
DvlaManufactureDate |
The DVLA manufacture date |
date |
None. |
DvlaRegistrationDate |
The DVLA registration date |
date |
None. |
DvlaVin |
The DVLA VIN |
string |
None. |
DvlaColour |
The DVLA colour |
string |
None. |
DvlaBody |
The DVLA body |
string |
None. |
DvlaBodyClass |
The DVLA body class |
string |
None. |
DvlaCo2 |
The DVLA co2 in grams per km |
integer |
None. |
DvlaCc |
The engine cc |
integer |
None. |
DvlaDoorCount |
The number of doors |
integer |
None. |
DvlaFuelType |
The fuel type |
string |
None. |
DvlaMotDetails |
The vehicle mot details |
VehicleMotDetails |
None. |
DvlaRoadTaxDetails |
The vehicle road tax details |
VehicleRoadTaxDetails |
None. |
LastJourneyNumberOfDTCCodes |
The number of DTC codes in the last journey |
integer |
None. |
LastJourneyStartDate |
The start time of the last journey |
date |
None. |
LastJourneyEndDate |
The end time of the last journey |
date |
None. |
LastJourneyStartAddress |
The last journey start address |
string |
None. |
LastJourneyEndAddress |
The last journey end address |
string |
None. |
LastJourneyVoltages |
The last journey voltages |
Collection of decimal number |
None. |
LastJourneyAverageVoltage |
The average voltage of the last voltage |
decimal number |
None. |
OBDLoctionImageURL |
The url for an image which shows where a vehicles obd port is |
string |
None. |
InsuranceRenewalDate |
When the vehicle insurance is due |
date |
None. |
MembershipNumber |
The membership number if applicable |
string |
None. |
NextServiceDate |
The next service dates |
date |
None. |
Response Formats
application/json, text/json
{ "VehicleRegistration": "sample string 1", "CurrentOdometerReading": 2, "DeviceIMEI": "sample string 3", "LastServiceMileage": 4, "LastServiceDate": "2025-04-27T16:00:47.7718706+00:00", "CarType": "sample string 6", "PetrolCostPerMile": 7.0, "DefaultJourneyType": 0, "DvlaMake": "sample string 8", "DvlaModel": "sample string 9", "DvlaManufactureDate": "2025-04-27T16:00:47.7718706+00:00", "DvlaRegistrationDate": "2025-04-27T16:00:47.7718706+00:00", "DvlaVin": "sample string 12", "DvlaColour": "sample string 13", "DvlaBody": "sample string 14", "DvlaBodyClass": "sample string 15", "DvlaCo2": 16, "DvlaCc": 17, "DvlaDoorCount": 18, "DvlaFuelType": "sample string 19", "DvlaMotDetails": { "DvlaMotRenewalDate": "2025-04-27T16:00:47.7718706+00:00", "DvlaMotAdvisories": [ "sample string 1", "sample string 2" ], "DvlaMotFailures": [ "sample string 1", "sample string 2" ], "DvlaMotResult": "sample string 2", "DvlaLastMotDate": "2025-04-27T16:00:47.7718706+00:00", "DvlaLastMotOdometer": 4 }, "DvlaRoadTaxDetails": { "DvlaRoadTaxDueDate": "2025-04-27T16:00:47.7718706+00:00", "DvlaRoadTaxBand": "sample string 2", "DvlaRoadTax6MonthCost": "sample string 3", "DvlaRoadTax12MonthCost": "sample string 4", "DvlaRoadTaxStatus": "sample string 5" }, "LastJourneyNumberOfDTCCodes": 20, "LastJourneyStartDate": "2025-04-27T16:00:47.7718706+00:00", "LastJourneyEndDate": "2025-04-27T16:00:47.7718706+00:00", "LastJourneyStartAddress": "sample string 23", "LastJourneyEndAddress": "sample string 24", "LastJourneyVoltages": [ 1.1, 2.1 ], "LastJourneyAverageVoltage": 25.1, "OBDLoctionImageURL": "sample string 26", "InsuranceRenewalDate": "2025-04-27T16:00:47.7718706+00:00", "MembershipNumber": "sample string 28", "NextServiceDate": "2025-04-27T16:00:47.7718706+00:00" }
application/xml, text/xml
<ViewVehicleDetailsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <VehicleRegistration>sample string 1</VehicleRegistration> <CurrentOdometerReading>2</CurrentOdometerReading> <DeviceIMEI>sample string 3</DeviceIMEI> <LastServiceMileage>4</LastServiceMileage> <LastServiceDate>2025-04-27T16:00:47.7718706+00:00</LastServiceDate> <CarType>sample string 6</CarType> <PetrolCostPerMile>7</PetrolCostPerMile> <DefaultJourneyType>None</DefaultJourneyType> <DvlaMake>sample string 8</DvlaMake> <DvlaModel>sample string 9</DvlaModel> <DvlaManufactureDate>2025-04-27T16:00:47.7718706+00:00</DvlaManufactureDate> <DvlaRegistrationDate>2025-04-27T16:00:47.7718706+00:00</DvlaRegistrationDate> <DvlaVin>sample string 12</DvlaVin> <DvlaColour>sample string 13</DvlaColour> <DvlaBody>sample string 14</DvlaBody> <DvlaBodyClass>sample string 15</DvlaBodyClass> <DvlaCo2>16</DvlaCo2> <DvlaCc>17</DvlaCc> <DvlaDoorCount>18</DvlaDoorCount> <DvlaFuelType>sample string 19</DvlaFuelType> <DvlaMotDetails> <DvlaMotRenewalDate>2025-04-27T16:00:47.7718706+00:00</DvlaMotRenewalDate> <DvlaMotAdvisories> <string>sample string 1</string> <string>sample string 2</string> </DvlaMotAdvisories> <DvlaMotFailures> <string>sample string 1</string> <string>sample string 2</string> </DvlaMotFailures> <DvlaMotResult>sample string 2</DvlaMotResult> <DvlaLastMotDate>2025-04-27T16:00:47.7718706+00:00</DvlaLastMotDate> <DvlaLastMotOdometer>4</DvlaLastMotOdometer> </DvlaMotDetails> <DvlaRoadTaxDetails> <DvlaRoadTaxDueDate>2025-04-27T16:00:47.7718706+00:00</DvlaRoadTaxDueDate> <DvlaRoadTaxBand>sample string 2</DvlaRoadTaxBand> <DvlaRoadTax6MonthCost>sample string 3</DvlaRoadTax6MonthCost> <DvlaRoadTax12MonthCost>sample string 4</DvlaRoadTax12MonthCost> <DvlaRoadTaxStatus>sample string 5</DvlaRoadTaxStatus> </DvlaRoadTaxDetails> <LastJourneyNumberOfDTCCodes>20</LastJourneyNumberOfDTCCodes> <LastJourneyStartDate>2025-04-27T16:00:47.7718706+00:00</LastJourneyStartDate> <LastJourneyEndDate>2025-04-27T16:00:47.7718706+00:00</LastJourneyEndDate> <LastJourneyStartAddress>sample string 23</LastJourneyStartAddress> <LastJourneyEndAddress>sample string 24</LastJourneyEndAddress> <LastJourneyVoltages> <float>1.1</float> <float>2.1</float> </LastJourneyVoltages> <LastJourneyAverageVoltage>25.1</LastJourneyAverageVoltage> <OBDLoctionImageURL>sample string 26</OBDLoctionImageURL> <InsuranceRenewalDate>2025-04-27T16:00:47.7718706+00:00</InsuranceRenewalDate> <MembershipNumber>sample string 28</MembershipNumber> <NextServiceDate>2025-04-27T16:00:47.7718706+00:00</NextServiceDate> </ViewVehicleDetailsResponse>