Hotel Check Out

Through this interface, you can perform checkout for the hotel customers.

After checking out through this interface, PBX will do the following operations for the hotel extension:

  • Empty the extension's voicemail box.
  • Delete the extension's outbound route permissions.
  • Delete the extension's alarms.
  • Reset the extension's Caller ID name setting.

Endpoint

POST /api/v1.1.0/hotel/checkout?token={token}

Request Parameters

  • To check out multiple hotel rooms, separate the hotel extension number with comma ,, For example:

    {"extid":"1000,1001"}.

Name Importance Type Description
extid Required Int The hotel extension number.

Examples

Request Example
POST /api/v1.1.0/hotel/checkout?token=1e3b3ebb6a974cb42ed31de5413df52d HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: api.yeastarcloud.com
{
    "extid": "4003"
}
Response Example
HTTP/1.1 200 OK
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE
{
    "status": "Success"
}