POST/v1/hotels/check/:gdsprovider
Revalidar oferta de hotel
Revalida ofertas de habitación antes de reservar para confirmar disponibilidad, cambios de precio y elegibilidad de booking.
Revalida ofertas de habitación antes de reservar para confirmar disponibilidad, cambios de precio y elegibilidad de booking.
Endpoint
| Método | Ruta | Auth |
|---|---|---|
POST | /v1/hotels/check/:gdsprovider | 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í | - |
Esquema del cuerpo de la petición
| Propiedad | Tipo | Detalles | Requerido | Notas |
|---|---|---|---|---|
offers | array | Sí | - | |
offers[]gdsprovider | number | Sí | - | |
offers[]hotelCode | string | Sí | - | |
offers[]rateKey | string | Sí | - | |
offers[]adults | number | Sí | - | |
offers[]children | number | Sí | - | |
offers[]name | string | Sí | - | |
offers[]board | string | Sí | - | |
offers[]totalPrice | number | Sí | - | |
offers[]originalPrice | number | No | - | |
offers[]currency | enum | EURUSDCNY | Sí | - |
offers[]originalCurrency | enum | EURUSDCNY | No | - |
offers[]supplements | array | Sí | - | |
offers[]supplements[]description | string | Sí | - | |
offers[]supplements[]price | number | Sí | - | |
offers[]supplements[]currency | string | Sí | - | |
offers[]cancellationPolicies | array | Sí | - | |
offers[]cancellationPolicies[]amount | number | Sí | - | |
offers[]cancellationPolicies[]fromDate | string | Format: ISO 8601 | Sí | - |
offers[]isRefundable | boolean | Sí | - | |
checkIn | string | Format: YYYY-MM-DD | Sí | - |
checkOut | string | Format: YYYY-MM-DD | Sí | - |
Respuesta exitosa
Devuelve the revalidated rate, price and booking eligibility.
Esquema del cuerpo de la respuesta
| Propiedad | Tipo | Detalles | Requerido | Notas |
|---|---|---|---|---|
available | boolean | Sí | - | |
ratesConditions | array | Sí | - | |
ratesConditions[]rateKey | string | Sí | - | |
ratesConditions[]conditions | array | Sí | - | |
ratesConditions[]conditions[] | string[] | Sí | - | |
pricesChanged | array | Sí | - | |
pricesChanged[]rateKey | string | Sí | - | |
pricesChanged[]newPrice | array | Sí | - | |
pricesChanged[]newPrice[] | number[] | Sí | - | |
ratesUnavailable | array | Sí | - | |
ratesUnavailable[]rateKey | string | Sí | - | |