POST api/hotel/techson/order/mulitsubmit/{lang}
批量下单
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lang |
语言(zh-hk,zh-cn,en-us) |
string |
Required |
Body Parameters
下单模型
HotelMultiBookingRQContractName | Description | Type | Additional information |
---|---|---|---|
sessiontoken |
SessionToken |
string |
None. |
orders |
订单列表 |
Collection of OrderContract |
None. |
specialRequest |
特殊需求 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "sessiontoken": "sample string 1", "orders": [ { "contactperson": { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "email": "sample string 4", "gender": "sample string 5", "age": 6, "address": "sample string 7", "tel": "sample string 8" }, "customers": [ { "roomtypecode": "sample string 1", "customerdetails": [ { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "Gender": "sample string 4", "Age": 5 }, { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "Gender": "sample string 4", "Age": 5 } ] }, { "roomtypecode": "sample string 1", "customerdetails": [ { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "Gender": "sample string 4", "Age": 5 }, { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "Gender": "sample string 4", "Age": 5 } ] } ] }, { "contactperson": { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "email": "sample string 4", "gender": "sample string 5", "age": 6, "address": "sample string 7", "tel": "sample string 8" }, "customers": [ { "roomtypecode": "sample string 1", "customerdetails": [ { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "Gender": "sample string 4", "Age": 5 }, { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "Gender": "sample string 4", "Age": 5 } ] }, { "roomtypecode": "sample string 1", "customerdetails": [ { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "Gender": "sample string 4", "Age": 5 }, { "surname": "sample string 1", "givenname": "sample string 2", "title": "sample string 3", "Gender": "sample string 4", "Age": 5 } ] } ] } ], "specialRequest": "sample string 2" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
批量下单
ReturnResultOfHotelMultiBookingRSContractName | Description | Type | Additional information |
---|---|---|---|
data | HotelMultiBookingRSContract |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "bookingesult": [ { "bookingcode": "sample string 1", "status": "sample string 2", "message": "sample string 3" }, { "bookingcode": "sample string 1", "status": "sample string 2", "message": "sample string 3" } ] }, "code": 1, "message": "sample string 2" }