POST/v1/hotels/check/:gdsprovider

重新校验酒店报价

在预订前重新校验所选酒店房型报价,以确认可订性、价格变化和预订资格。

分享

在预订前重新校验所选酒店房型报价,以确认可订性、价格变化和预订资格。

接口

方法路径认证
POST/v1/hotels/check/:gdsprovider需要 API key
必需请求头:
Header说明
AuthorizationBearer <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-TypeUse application/json for requests with a body.

请求参数结构

gdsprovider
number

请求体

Send the provider offer/rate payload returned by hotel offers.

请求体结构

offers
array
offers[]gdsprovider
number
offers[]hotelCode
string
offers[]rateKey
string
offers[]adults
number
offers[]children
number
offers[]name
string
offers[]board
string
offers[]totalPrice
number
offers[]originalPrice
number
offers[]currency
enum
EURUSDCNY
offers[]originalCurrency
enum
EURUSDCNY
offers[]supplements
array
offers[]supplements[]description
string
offers[]supplements[]price
number
offers[]supplements[]currency
string
offers[]cancellationPolicies
array
offers[]cancellationPolicies[]amount
number
offers[]cancellationPolicies[]fromDate
string
Format: ISO 8601
offers[]isRefundable
boolean
checkIn
string
Format: YYYY-MM-DD
checkOut
string
Format: YYYY-MM-DD

成功响应

返回 the revalidated rate, price and booking eligibility.

响应体结构

available
boolean
ratesConditions
array
ratesConditions[]rateKey
string
ratesConditions[]conditions
array
ratesConditions[]conditions[]
string[]
pricesChanged
array
pricesChanged[]rateKey
string
pricesChanged[]newPrice
array
pricesChanged[]newPrice[]
number[]
ratesUnavailable
array
ratesUnavailable[]rateKey
string
liveMode
boolean
True when the request is served by the live Travelandz environment. This value comes from Travelandz, not the provider payload.

示例

bash
bash
curl -X POST https://api.sandbox.travelandz.com/v1/hotels/check/:gdsprovider \
  -H "Authorization: Bearer $TRAVELANDZ_SECRET_KEY" \
  -H "X-Travelandz-Id: $TRAVELANDZ_PUBLIC_KEY:$TRAVELANDZ_PROFILE_CODE" \
  -H "Content-Type: application/json" \
  -d '<request_body_json>'