Webservices - Update a Vehicle

The webservice is used to update an existing vehicle in the database.

13 April,2021

 

 
REQUEST

{

   "Proxy": {   

      "Function":"HeliosWs",

      "HostName":"xxxxx",

      "UserName":"yyyyy",

      "Password":"zzzzz",

      "ReportName":"webservice"

   },

 

   "AuthenticationType":"SYSTEM",

   "UserName":"16984205",

   "Password":"8G56A2NrB",

   "Function":"RemoveCustomerFromVehicle",

   "VehicleRegNo":"DG23969",

   "Vin":"NLHBB51BABZ027252",

   "CustomerNo":"44570088"

}

 

 
RESPONSE

{

   "VehicleList": [{

      "VehicleRegNo": "DG23969",

      "CustomerNo": "",

   }],

   "WebserviceInfo": {

      "Name": "HELIOSWEBSERVICE",

      "Version": 1,

      "Build": 2001

   },

   "AuthenticationType": "SYSTEM",

   "ErrorCode": 0,

   "ErrorText": "",

   "Success": true,

   "Proxy": {

   "AgentName": "WSPROXY",

   "AgentVersion": "1.00.1015",

   "AgentCopyright": "Copyright (C) 2017-2018 Torben Ring. All rights reserved.",

   "ErrorCode": 0,

   "Success": true

   }

}

 

 
ERRORS

  • Missing data - Vin not in request.
  • Invalid data - Vehicle with the specified Vin does not exist in Helios.
  • Invalid data - CustomerNo does not exist in Helios.
  • Invalid data - VehicleRegNo and Vin do match match i CRM database.
 
 
COMMENTS

 

  • The vehicle can only be updated if the vehicle with the specified Vin already exists in Helios.
  • If CustomerNo is entered in the request, the customer must exist in Helios.
  • Fields not present in the request will not be changed in Helios.
  • VehicleStatus can be set to CUSTOMERVEHICLE, UNREGISTERED or SCRAPPED. If VehicleStatus is not entered in the request it will be set to CUSTOMERVEHICLE.
  • If VehicleUserNo is entered in the request and this number exists in Helios' customer database, user information will be taken from there and inserted on the vehicle.
  • If VehicleUserNo does not exist in Helios customer database, the users name, name2, phone og mobile no. can be entered in the request.