Add Seat Reservation

Last Updated on : 2021-07-16 07:46:01download

Create a request of seat reservation according to the user ID, seat number, the start time and end time of the reservation.

API address

POST: /v1.0/iot-03/seat-reservations

Request parameter

Description of body

Parameter name Type IN Required Description
uid String true The user ID.
seat_id String true The seat ID.
start_time Long true The 13-bit timestamp of the start time.
end_time Long true The 13-bit timestamp of the end time.

Return parameter

Parameter name Type Description
result String The reservation result.

Request example

POST: /v1.0/iot-03/seat-reservations
{ "uid": "bsh1621935149177xxx", "seat_id": "1400698261043429xxx", "start_time": 1623049200000, "end_time": 1623051000000 }

Return example

{ "result": "1401793112065454xxx", "t": 1623048496696, "success": true }

Error code

For more information, see error code.