POST api/hotel/curx/order/book/{lang}
下单
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lang |
语言(en-us) |
string |
Required |
Body Parameters
下单模型
AsHotelBookRQContractName | Description | Type | Additional information |
---|---|---|---|
hotelcode |
结束时间 |
string |
None. |
prebookingtoken |
PreBookingToken |
string |
None. |
checkindate |
开始时间 |
date |
None. |
checkoutdate |
结束时间 |
date |
None. |
contacttitle |
联系人称谓(MR/MS/MISS....) |
string |
None. |
contactfirstname |
First Name |
string |
None. |
contactlastname |
Last Name |
string |
None. |
contactaddress |
联系人地址 |
string |
None. |
contactemail |
联系人邮件 |
string |
None. |
contactphone |
联系人电话 |
string |
None. |
specialrequest |
特殊需求 |
string |
None. |
rooms |
预定信息 |
Collection of AsRoomBookContract |
None. |
customersessionid |
客户sessionid |
string |
None. |
customeripaddress |
客户Ip地址 |
string |
None. |
customeruseragent |
客户Ip地址 |
string |
None. |
authuser |
用户身份信息 |
AsUserContract |
None. |
Request Formats
application/json, text/json
Sample:
{ "hotelcode": "sample string 1", "prebookingtoken": "sample string 2", "checkindate": "2024-12-23T19:57:09.1282145+08:00", "checkoutdate": "2024-12-23T19:57:09.1282145+08:00", "contacttitle": "sample string 5", "contactfirstname": "sample string 6", "contactlastname": "sample string 7", "contactaddress": "sample string 8", "contactemail": "sample string 9", "contactphone": "sample string 10", "specialrequest": "sample string 11", "rooms": [ { "plansid": "sample string 1", "adultcount": 2, "childcount": 3, "infantcount": 4, "bedtypecode": "sample string 5", "roomguests": [ { "agetype": 1, "title": "sample string 2", "firstname": "sample string 3", "lastname": "sample string 4", "age": 5, "nationality": "sample string 6" }, { "agetype": 1, "title": "sample string 2", "firstname": "sample string 3", "lastname": "sample string 4", "age": 5, "nationality": "sample string 6" } ] }, { "plansid": "sample string 1", "adultcount": 2, "childcount": 3, "infantcount": 4, "bedtypecode": "sample string 5", "roomguests": [ { "agetype": 1, "title": "sample string 2", "firstname": "sample string 3", "lastname": "sample string 4", "age": 5, "nationality": "sample string 6" }, { "agetype": 1, "title": "sample string 2", "firstname": "sample string 3", "lastname": "sample string 4", "age": 5, "nationality": "sample string 6" } ] } ], "customersessionid": "sample string 12", "customeripaddress": "sample string 13", "customeruseragent": "sample string 14", "authuser": { "userid": "sample string 1", "password": "sample string 2" } }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
下单
ReturnResultOfAsHotelBookRSContractName | Description | Type | Additional information |
---|---|---|---|
data | AsHotelBookRSContract |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "orderId": "sample string 1", "bookingcode": "sample string 2", "supplierbookingcode": "sample string 3", "confirmcode": "sample string 4", "status": "sample string 6" }, "code": 1, "message": "sample string 2" }