Link contract to vehicle
This API links a contract to a vehicle, specifying its license plate, contract start date, contract name, and distance.
How to get data
Method
GET
Request address
To get the data, use the address: https://<server_address>/api/api.php?
Request parameters
-
cmd=link_contract — command to link the contract
-
PlateNum — vehicle license plate number
-
Date — contract start date (Unix timestamp)
-
Name — contract name
-
Distance — distance (e.g., mileage under the contract)
-
node — node number where the command should be executed
Example request
https://<server_address>/api/api.php?cmd=link_contract&PlateNum=test12345&Distance=1111&Date=1623927270&Name=1212&node=1
|
Response
{
"code": 0,
"msg": "The linking is successful"
}
|
In response to the API request, the following is returned:
-
code— result code (0 = success)
-
msg— server message confirming the action