Set the housekeeping state of a room

Rooms

put/api/integrations/{pcode}/house-keeping/room-statusx-api-key

For a housekeeping system (a phone system on which housekeeping dials the state of the room, a housekeeping app): sets the state one room is in now, the one the property's rack and room list show and GET /rooms/{pcode}/types returns. Name the room by its door number, as text: { "doorNum": "101", "status": "clean" }. status is ready (cleaned and inspected, ready for the next guest), clean (cleaned, waiting to be inspected) or dirty (to be cleaned); revision is not one you can write. The state is saved as the property's own change would be: the next cleaning date of the guest in the room follows it, it goes in the room's housekeeping history as a partner's report, and the property's screens and the guest app of whoever is in the room are updated. Idempotent: a room already in that state is left alone and answers changed: false, so it is safe to retry. When the property has your integration switched on, the states the property sets itself are sent to your system too: one you have just reported may come back to you, and reporting it again writes nothing. Answers 400 housekeepingRoomStatusRequestInvalid when the door number is not text of 1 to 80 characters or the state is not one of the three; 404 housekeepingRoomNotFound when no room of the property has that door number; and 409 housekeepingRoomAmbiguous when more than one does, which the property has to fix by giving each room its own. Partner keys only, with this endpoint granted to the connection.

Console

Runs against the API from your browser, with the same request your server will send.

Environment

Production

https://uni-api.hotelgest.com

Calls hit live data with your own API key. A POST, PUT, PATCH or DELETE here changes a real property.

Credentials

The API key, sent on every request. A property admin creates it in the PMS under Settings → API keys; a partner receives one per property when the property activates its integration. It works only for the property it was issued for, and only on the endpoints granted to it.

This endpoint needs a credential. Without it you will get a 401.

Stored in this browser only. Never sent anywhere but the API host above.

Path parameters

Body

Arm production

Writing methods are locked until you arm them. This is live hotel data.

PUT is locked on production. Arm it above if you mean it.

puthttps://uni-api.hotelgest.com/api/integrations/123456/house-keeping/room-status

Send the request to see the real response here.

Nothing is mocked. What comes back is what the API returned.

Requests go straight from your browser to the API host above — nothing is proxied through this site.

Path parameters

pcode
number

Property code. Identifies the property (hotel, apartment building, hostel) the request applies to. It must match the property your API key was issued for.

Request body

doorNum
string

The door number of the room, as text and as the property wrote it: the doorNum of the room in GET /rooms/{pcode}/types. Never a JSON number. Blanks around it do not count

PartnerRoomStatus

The state the room is in now. ready: cleaned and inspected, ready for the next guest. clean: cleaned, waiting to be inspected. dirty: to be cleaned

Example
1{
2 "doorNum": "101",
3 "status": "clean"
4}

Responses

Ok. If your API key answers encrypted — every key issued now does, and every partner credential — this body arrives as the encryption envelope ({ crypto, protected, wrappedKey, iv, payload, tag }, a compact JWE), and the schema below is what its payload decrypts to. See https://public-api.hotelgest.com/public/guides/encryption

roomId
number

ID of the room the door number names

doorNum
string

Door number of the room, as the property wrote it

RoomStatus

The state the room is in now, as GET /rooms/{pcode}/types returns it: the one that was sent

changed
boolean

False when the room was already in that state: nothing was written, so a request can be safely sent again

Example response
1{
2 "roomId": 2014,
3 "doorNum": "101",
4 "status": "clean",
5 "changed": true
6}

What is a pcode?

The property code. Every endpoint is scoped to one property, and your API key only works for the property it was issued for.

Rate limits

100 requests per minute per source IP, 120 per API key and 300 per property, each counted across every endpoint together — not per endpoint. Over any of them you get a 429 with the seconds to wait in Retry-After-<limit> (apikey-ip, apikey or apikey-pcode): stop and wait it out. Repeat offences on a key or a property are blocked for longer each time, up to 7 days.