Get a Reservation

Get reservation details using Goki ID

get
Get a Reservation by ID

[environmentBaseUrl]/v1/reservations/:id
This is useful if you want to get a reservation using Goki's reservation ID. In case you want to find a reservation using your pmsId you need to use Find a Reservation API.
Request
Response
Request
Path Parameters
id
optional
string
ID of the reservation in Goki.
Query Parameters
extend
optional
Reservation extend option. Currently, the only option is "pin" and by setting it as extend you will have it in response.
Response
200: OK
Reservation successfully retrieved.
{
"data": {
...ReservationDocument, // Check ReservationDocument page for the sample data
"pin": "8364283"
}
}
404: Not Found
Reservation not found.
{
"error": {
"code": 5,
"title": "NOT_FOUND",
"status": 404,
"message": "Reservation not found!"
}
}

‚Äč