创单前校验
POST
/a/commoninterface/commonInterface/order
请求参数
Body 参数application/json
userName
string
用户名
passWord
string
密码
hotelId
string
酒店id
checkInDate
string
开始时间
checkOutDate
string
结束时间
roomtypeId
string
房型id
rateTypeId
string
价格类型id
orderType
string
类型
roomNun
integer
房间数量
totalPrice
string
总价
示例
{
"userName": "87",
"passWord": "thcstourtest",
"orderType": "orderCheck",
"hotelId": "549901",
"checkInDate": "2023-08-10",
"checkOutDate": "2023-08-11",
"roomtypeId": "2271466",
"rateTypeId": "17",
"roomNun": 1,
"totalPrice": "12312"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://test-cn.your-api-server.com/a/commoninterface/commonInterface/order' \
--header 'Content-Type: application/json' \
--data-raw '{
"userName": "87",
"passWord": "thcstourtest",
"orderType": "orderCheck",
"hotelId": "549901",
"checkInDate": "2023-08-10",
"checkOutDate": "2023-08-11",
"roomtypeId": "2271466",
"rateTypeId": "17",
"roomNun":1,
"totalPrice":"12312"
}'
返回响应
🟢200成功
application/json
Body
dailyList
array [object {4}]
必需
date
string
日期
price
string
价格
qty
string
库存
breakfastQty
string
早餐份数
msg
string
原因
success
string
1 成功 8失败
示例
{
"dailyList": [
{
"date": "2024-05-17",
"price": "215.0",
"qty": "3"
}
],
"msg": "成功",
"success": "1"
}
🟢200变价
🟢200满房
修改于 2024-08-28 01:08:32