Skip to main content
POST
Trip.com Hotel

Request contract

  • Method and path: POST /apis/v1/trip/hotel
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/trip/hotel
  • Runtime facts: 36cd348dfbeebb651c2c303746468cec77d2c6553836f33de18c2a778433a67c
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

A request reference price is not currently available; use a request quote where supported. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
adults
integer
required
Required range: 1 <= x <= 9007199254740991
checkIn
string<date>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
checkOut
string<date>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
children
integer
required
Required range: 0 <= x <= 9007199254740991
currency
string
required
Required string length: 3
hotelId
string
required
Minimum string length: 1
locale
string
required
Minimum string length: 2
login
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
rooms
integer
required
Required range: 1 <= x <= 9007199254740991

Response

Normalized successful response

data
object
required