GET/v1/hotels/book/:gdsprovider/:reference
Consultar reserva de hotel
Consulta el estado actual de una reserva de hotel por proveedor y referencia de booking.
Consulta el estado actual de una reserva de hotel por proveedor y referencia de booking.
Endpoint
| Método | Ruta | Auth |
|---|---|---|
GET | /v1/hotels/book/:gdsprovider/:reference | API key requerida |
| Header | Descripción |
|---|---|
Authorization | Bearer <secret_key>. The secret is shown only once when the credential is created. |
X-Travelandz-Id | <public_key>:<profile_code>. The profile_code is the dp_-prefixed Developer Profile code shown in your dashboard. This binds the request to a profile and credential. |
Content-Type | Use application/json for requests with a body. |
Esquema de parámetros de la petición
| Propiedad | Tipo | Detalles | Requerido | Notas |
|---|---|---|---|---|
gdsprovider | number | Sí | - | |
reference | string | Sí | - |
Respuesta exitosa
Devuelve booking status
Esquema del cuerpo de la respuesta
| Propiedad | Tipo | Detalles | Requerido | Notas |
|---|---|---|---|---|
status | enum | confirmedcanceled | Sí | - |