DELETE/v1/hotels/book/:gdsprovider/:reference
Cancelar reserva de hotel
Cancela una reserva de hotel existente por proveedor y referencia, sujeto a políticas y estado de la reserva.
Cancela una reserva de hotel existente por proveedor y referencia, sujeto a políticas y estado de la reserva.
Endpoint
| Método | Ruta | Auth |
|---|---|---|
DELETE | /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 cancellation status and provider confirmation when available.
Errores
| Estado | Código | Caso |
|---|---|---|
400 | hotel_booking_already_cancelled | Booking was already cancelled. |
400 | unable_to_perform_hotel_booking_cancellation | Provider could not cancel. |
404 | hotel_booking_not_found | Booking was not found. |
401/403 | auth codes | Invalid credentials. |
500 | - | Internal error. |
Respuestas
| Código | Descripción |
|---|---|
204 | Booking cancelled successfully |