Hotel Check Out
Through this interface, you can perform checkout for the hotel customers.
Endpoint
POST /api/v0.0.1/hotel/checkout?token={token}
Request Parameters
Name | Importance | Type | Description |
number | Required | String | Check out the extension number of the room.
Ranges: Single extension number: Check out the room where the specified extension is located. For example: “number”:”111″ |
Response Parameters
Name | Type | Description |
status | String | Request results.
Success: Success. Failed: failed. |
Examples
Request Example
Check out the room where extension 111 is located.
POST /api/v0.0.1/hotel/checkout?token=813b621cfe8eecf445a2ce1f4a079ffe&type=json
Content-Type:application/json; charset=utf-8
Host: 172.16.6.150
{
“number”:”111″
}
Response Example
HTTP/1.1 200 OK
Server: Boa/0.94.14rc21
Accept-Ranges: bytes
Connection: close
Content-Type: application/json
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
“status”: “Success”
}
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
<?xml version=”1.0″ encoding=”utf-8″?>
<xml>
<status>Success</status>
</xml>