GET/v1/hotels/book/:gdsprovider/:reference
Get hotel booking
Reads the current status of a hotel booking by provider and booking reference.
Reads the current status of a hotel booking by provider and booking reference.
Endpoint
| Method | Path | Auth |
|---|---|---|
GET | /v1/hotels/book/:gdsprovider/:reference | Required API key |
| Header | Description |
|---|---|
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. |
Request Params Schema
| Property | Type | Details | Required | Notes |
|---|---|---|---|---|
gdsprovider | number | Yes | - | |
reference | string | Yes | - |
Success Response
Returns booking status
Response Body Schema
| Property | Type | Details | Required | Notes |
|---|---|---|---|---|
status | enum | confirmed, canceled | Yes | - |