ReservationDocument
Response Model for Reservation Document
This is the representation of the ReservationDocument
data structure which you receive in the Reservation API response.
Booker Info
PMS Meta
Reservation state
Only reservations with the status confirmed
are shown to users in check-in apps.
Main Customer & Companions
In case we have collected guests' information during the check-in process. We will provide it in the main customer and companions list.
parentSpaceId v.s. pmsMeta(spaceId, parentSpaceId)
parentSpaceId is the id that is generated in Goki. You only have it if you have done integration with Goki to fetch and store our spaces into yours.
meta(spaceId, parentSpaceId) is what you have in your system. Usually, you want to only send these fields to Goki as you already know them.
Sending both parentSpaceId and pmsMeta(spaceId, parentSpaceId) will throw an error in the API calls.
Multi-room Reservations
In order to send a reservation that has multiple rooms, you need to break it into multiple reservations with a unique meta(id) for each reservation. You can use any logic like appending an index (XYZ-1, XYZ-2, XYZ-3 ...) to the id. And use meta(groupId) to link them together. You can use any identifier including the original reservation id as the groupId.
Last updated