Query Reservation History

Last Updated on : 2021-07-16 07:45:48download

Query the reservation history by reservation ID.

API address

GET: /v1.0/iot-03/seat-reservations/{reservation_id}

Request parameter

Parameter name Type IN Required Description
reservation_id String uri true The reservation ID.

Return parameter

Parameter name Type Description
result ReservationAndExtRes The reservation history.

Description of result

Parameter name Type Description
id String The reservation ID.
uid String The user ID.
user_name String The username.
seat_id String The seat ID.
seat_no String The seat number.
area_id String The ID of the area where the seat is located.
area_name String The name of the area where the seat is located.
status String The reservation status.
start_time Long The start time of the reservation.
end_time Long The end time of the reservation.

Request example

GET: /v1.0/iot-03/seat-reservations/1400698886867140xxx

Return example

{ "result": { "area_name": "seat10", "seat_id": "1400698261043429xxx", "user_name": "test2", "end_time": 1622789700000, "seat_no": "hulal4", "area_id": "1397463067465392xxx", "start_time": 1622787900000, "uid": "bsh16219351491774xxx", "id": "1400698886867140xxx", "status": "signed_in" }, "t": 1623048246637, "success": true }

Error code

For more information, see error code.