3.15 Delete vehicle ById
**Request address:** - `/ivci/api/vehicle/deleteVehicleById` **Request mode:** - POST,GET **Parameter description** |Parameter name|Type|Description|Remark| |:---- |:---|:----- |----- | |content |String |Requested encrypted data |Mandatory | |merchantId |String |Request customer ID of the users | Mandatory | **remark** Content is decrypted into json format via RSA ``` { "userName":"testuser", "antiFake":"4bbab6ff0d8042548cc6f2df9f3655fa", "timestamp":"20160518165030", "serverIP":"127.0.0.1", "deleteVehicle":{ "ids":"9901,9902" } } ``` **Content parameter description** |Parameter name|Type|Description|Remark| |:---- |:---|:----- |----- | |userName | String | User name |Mandatory| |antiFake | String| Anti-fake random string | Mandatory| |timestamp | String| Request time stamp,accurate to second |Mandatory| |serverIP | String | Sever IP | Mandatory| |deleteVehicle | json | Delete vehicle info | Mandatory| |deleteVehicle.ids | int |delete vehicle ID,it can delete in batch, separated by comma | Mandatory| **Use exampless:** 1. Backend ```java //read privateKeyStr String privateKey=........... //get digital signature SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMddHHmmss"); String timestamp=formatter.format(new Date()); String signStr=RSAUtils.sign(timestamp.getBytes(), privateKey); String ip=request.getRemoteAddr(); //Encrypted with private key String ext=",\"deleteVehicle\":{.............}";//assemble vehicle info String dataStr="{\"userName\":\"testuser\",\"antiFake\":\""+signStr+"\",\"timestamp\":\""+timestamp+"\",\"serverIP\":\""+ip+"\" "+ext+" }"; String content=RSAUtils.encryptByPrivateKey(dataStr, privateKey); ``` 2. Front end The backend return the encrypted content to the front end, and then send the request calling. http://xxxxx/ivci/api/vehicle/deleteVehicleById?merchantId=100000&content=content **Return data** All return data should be in json format ```json {"code":0,"msg":"operate failed","data":{}} ``` **Return parameter** |Parameter name|Type|Description|Remark| |:---- |:---|:----- |----- | |code | String |Operate result code (success = 0, failure = 1), refer to Appendix 1 |Return| |msg| String | Operate return information(Operate succeed,return null;operate failed,return prompt information) | | |data | json | | |