新增订单
POST
/a/commoninterface/commonInterface/order
请求参数
Body 参数application/json
userName
string
用户名
passWord
string
密码
orderType
string
下单类型
seachType
string
实时查询价格模式下必填
checkIn
string
入住日期
checkOut
string
离店日期
contactName
string
联系人
contactTel
string
联系人电话
currency
string
币种
customerOrderCd
string
客户订单号
dailyInfos
array [object {2}]
价格日历
day
string
日期
price
string
单间每晚价格
earliestArriveTime
string
最早到店时间
hotelId
string
酒店ID
latestArriveTime
string
最晚到店时间
orderGuests
string
入住人
rateTypeId
string
价格类型
remark
string
备注
roomNum
integer
房间数量
roomTypeId
string
房型ID
totalPrice
string
总价,单位元
示例
{
"checkIn": "2017-03-28",
"checkOut": "2017-03-29",
"contactName": "联系人",
"contactTel": "联系电话1522017",
"currency": "RMB",
"customerOrderCd": "20170328103000",
"dailyInfos": [
{
"day": "2017-03-28",
"price": 1888
}
],
"earliestArriveTime": "12:00",
"hotelId": "182",
"latestArriveTime": "18:00",
"orderGuests": "入住/人,姓/名",
"orderType": "orderCreate",
"passWord": "thcstourtest",
"rateTypeId": "16",
"remark": "备注信息",
"roomNum": 1,
"roomTypeId": "377179",
"totalPrice": 1888,
"userName": "87"
}
示例代码
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 '{
"checkIn": "2017-03-28",
"checkOut": "2017-03-29",
"contactName": "联系人",
"contactTel": "联系电话1522017",
"currency": "RMB",
"customerOrderCd": "20170328103000",
"dailyInfos": [
{
"day": "2017-03-28",
"price": 1888
}
],
"earliestArriveTime": "12:00",
"hotelId": "182",
"latestArriveTime": "18:00",
"orderGuests": "入住/人,姓/名",
"orderType": "orderCreate",
"passWord": "thcstourtest",
"rateTypeId": "16",
"remark": "备注信息",
"roomNum": 1,
"roomTypeId": "377179",
"totalPrice": 1888,
"userName": "87"
}'
返回响应
🟢200成功
application/json
Body
checkIn
string
入住日期
checkOut
string
离店日期
customerOrderCd
string
客户订单号
orderCd
string
订单号
orderId
string
订单ID
roomNum
integer
房间数量
totalPrice
string
订单金额
msg
string
返回信息
success
string
成功标识
示例
{
"checkIn": "2017-03-28",
"checkOut": "2017-03-29",
"customerOrderCd": "20170328103001",
"msg": "成功",
"orderCd": "17032800002",
"orderId": "27522",
"roomNum": 1,
"success": "1",
"totalPrice": 1888
}
修改于 2024-09-03 06:26:23