Endpoints
Let Goki query or update your system
Last updated
Let Goki query or update your system
Last updated
You can add some endpoints to your integration which Goki will use to interact with you. This helps us to get some information from you or trigger events on your system.
url and token are provided by you during endpoint registration.
Goki uses this endpoint to get the list of your spaces (rooms/beds). Staff can use the Goki Dashboard (which uses this endpoint) to map their Goki spaces/locks to your rooms/beds. Goki also uses background jobs to regularly check the mapping and make sure nothing is broken.
Goki uses this endpoint to check the status of a reservation on your system during the check-in process.
In self-check-in automation, Goki uses this endpoint to let your system know, you can check the reservation in. We also submit the collected check-in information when calling the endpoint. It is optional for you to store it or ignore it.
This endpoint method MUST be POST.
Property
Type
Required
Description
id
string
Y
ID of the room or bed in your system (PMS)
type
string
Y
Can be only Room, Bed, Dorm. (Make sure you have used uppercase - these names are shown in the Goki dashboard to help staff map their rooms and beds)
name
string
Y
Room name in your system
isPrivate
boolean
Y
Mark it as false if the room is shared. (In case you have a shared room which also can be booked as a private room, mark it false too)
isActive
boolean
Y
If the room is out of service permanently and should not be used by staff, mark it as false. (This is for PMSes which still have a room but it is not used and cannot delete from their system otherwise you normally set this to active=true )
Property
Type
Required
Description
owing
number
Y
The owing amount which user should still pay and cannot check-in unless it is settled
owingCurrency
string
Y
The currency of the owing amount
roomReady
boolean
Y
In case the room is not clean and we should stop users from checking in. If the room is dirty we show a message at the end of the check-in process to the user to sit and we inform them as soon as we get a reservation update from PMS with state=started
.
Property
Type
Required
Description
success
boolean
Y
Set it to true if you can check the guest in successfully.
reason
string
N
If success if false
and you cannot check guest in, you MUST provide a reason. Reason can be one of these:
roomIsNotReady: Room is not ready yet
hasOwing: Reservation had owing which must be paid before check-in
alreadyCheckedIn: Reservation was already checked-in