Generate Pending Order

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

Based on the license plate number, generate a pending order to be paid.

Note:

  • Generate an order for a temporary vehicle in the parking lot based on the license plate number.
  • Call the API of querying the current vehicle at the exit barrier gate, and get an order for a temporary vehicle.

API address

POST: /v1.0/parking-control/{device_id}/orders/generate

Request parameter

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

Description of body

Parameter nameTypeINRequiredDescription
plate_noString trueThe license plate number.
unlicensed_carBoolean trueSpecifies whether it is an unlicensed vehicle. Valid values:
  • true: It is an unlicensed vehicle.
  • false: It is not an unlicensed vehicle. Default value.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe command record ID.

Request example

POST: /v1.0/parking-control/6ce****/orders/generate
{
  "plateNo": "A1***5",
  "unlicensedCar": false
}

Return example

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

Error code

For more information, see error code.