POST api/hotel/totalstay/order/checkbooking/{lang}
预下单检测
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lang |
语言(en-us) |
string |
Required |
Body Parameters
下单模型
TsHotelPreBookingRQContractName | Description | Type | Additional information |
---|---|---|---|
PropertyID |
PropertyID |
integer |
None. |
checkintime |
开始时间 |
date |
None. |
checkouttime |
结束时间 |
date |
None. |
roombooks |
房间信息 |
Collection of RoomBookingContract |
None. |
Request Formats
application/json, text/json
Sample:
{ "PropertyID": 1, "checkintime": "2024-12-23T19:55:45.7518034+08:00", "checkouttime": "2024-12-23T19:55:45.7518034+08:00", "roombooks": [ { "roomtypeid": 1, "bookingtoken": "sample string 2", "mealbasisid": 3, "adultcount": 4, "childcount": 5, "infants": 6, "childagelist": [ 1, 2 ] }, { "roomtypeid": 1, "bookingtoken": "sample string 2", "mealbasisid": 3, "adultcount": 4, "childcount": 5, "infants": 6, "childagelist": [ 1, 2 ] } ] }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
预下单检测
ReturnResultOfTsHotelPreBookingRSContractName | Description | Type | Additional information |
---|---|---|---|
data | TsHotelPreBookingRSContract |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "preBookingToken": "sample string 1", "totalprice": 2.0, "cancellations": [ { "startdate": "2024-12-23T19:55:45.7836337+08:00", "enddate": "2024-12-23T19:55:45.7836337+08:00", "penalty": 3.0 }, { "startdate": "2024-12-23T19:55:45.7836337+08:00", "enddate": "2024-12-23T19:55:45.7836337+08:00", "penalty": 3.0 } ] }, "code": 1, "message": "sample string 2" }