Add Visitor Vehicle

Last Updated on : 2022-06-01 10:01:20

Add the information about a specified visitor vehicle. Its accessible end time must be greater than the accessible start time.

API address

POST: /v1.0/parking-control/{device_id}/visitor-cars/{visitor_car_id}

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a specified device in the parking lot.
visitor_car_idStringuritrueThe ID of a specified visitor vehicle.

Description of body

Parameter nameTypeINRequiredDescription
visitor_car_idString trueThe ID of a specified visitor vehicle.
plate_noString trueThe license plate number of a specified visitor vehicle.
visitor_nameString trueThe name of a specified visitor.
begin_timeLong trueThe start time of the accessible period for a specified visitor vehicle.
end_timeLong trueThe end time of the accessible period for a specified visitor vehicle.
visitor_phoneString trueThe mobile phone number of the visitor.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe command record ID.

Request example

POST: /v1.0/parking-control/6ce****/visitor-cars/123****
{
  "visitorCarId": "1",
  "plateNo": "A1***5",
  "visitorName": "Lee**",
  "beginTime": 1652777782808,
  "endTime": 1655456182000,
  "visitorPhone": "133****1234"
}

Return example

{
    "result": {
        "sn": "135****"
    },
    "t": 1652779976771,
    "success": true
}

Error code

For more information, see error code.