Webservices - Delete a Vehicle

The webservice is used to delete an existing vehicle from the database. A vehicle can only be deleted if no orders exist for the vehicle.

03 August,2022

 

 
REQUEST

{

   "Proxy": {   

      "Function":"HeliosWs",

      "HostName":"xxxxx",

      "UserName":"yyyyy",

      "Password":"zzzzz",

      "ReportName":"webservice"

   },

 

   "AuthenticationType":"SYSTEM",

   "UserName":"16984205",

   "Password":"8G56A2NrB",

   "Function":"DeleteVehicle",

   "VehicleRegNo":"DG23969",

   "Vin":""

}

 

 
RESPONSE

{

   "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 - VehicleRegNo and/or Vin not specified in request.
  • Not found - Vehicle with the specified VehicleRegNo does not exist in Helios.
  • Not found - Vehicle with the specified Vin does not exist in Helios.
  • Cannot remove - An order containg the vehicle exists in Helios.
 
 
COMMENTS

 

  • VehicleRegNo and/or Vin must be specified in the request.
  • A vehicle can only be deleted if no orders containing the vehicle exist in Helios.