单日租下单接口说明
接口说明
日租车下单,预定用车时间至少1天后,60天以内,
途径点最少2个最多5个,按照起点、依次的途径点、终点排序
接口路径
/bus/order/org/day/create
请求参数
字段说明 |
字段说明 |
字段类型 |
是否必传 |
partnerOrderNo |
渠道侧订单号 |
String |
Y |
bookerPhone |
预订人电话 |
String |
Y |
bookerName |
预订人姓名 |
String |
Y |
carGroupId |
选择的车型 |
String |
Y |
serviceId |
服务类型ID |
Integer |
Y |
bookingDateMillis |
用车时间,多日用车的首日用车时间,至少1天后,60天以内 |
Long |
Y |
bookingStartAddr |
预约用车起始地址 |
String |
Y |
bookingStartLng |
预约用车起始地址经度 |
String |
Y |
bookingStartLat |
预定人预定用车坐标纬度 |
String |
Y |
bookingEndAddr |
预约用车终点地址 |
String |
Y |
bookingEndLng |
预约用车终点地址经度 |
String |
Y |
bookingEndLat |
预约用车终点地址纬度 |
String |
Y |
coordinateSystem |
坐标系,可用值[baidu, mars, world] |
String |
Y |
estimateAmount |
预估金额需为2位有效数字(预估接口获取) |
String |
Y |
estimatePriceMark |
预估金额priceMark(预估接口获取) |
String |
Y |
routePlanKey |
预估路径规划key(预估接口获取) |
String |
Y |
multiPoint |
路径途径点,长度为1 |
List<BusOrderDayPointParam> |
Y |
roundTrip |
是否往返 1-往返,0-单程 |
Integer |
Y |
cityId |
城市ID |
Integer |
Y |
cityName |
城市名称 |
String |
Y |
carGroupName |
车型名称 |
String |
Y |
remark |
备注 |
String |
N |
BusOrderDayPointParam说明
参数名称 |
类型 |
是否必须 |
说明 |
booking |
List<BusOrderAreaParam> |
Y |
路径途径点包含起终点,最少2个点,最多5个点,按照起点、依次的途径点、终点排序 |
bookingDate |
Long |
Y |
每日时间戳(毫秒),年月日即可,不用到小时 |
BusOrderAreaParam说明
参数名称 |
类型 |
是否必须 |
说明 |
bookingAddr |
String |
Y |
长地址 |
bookingPointLng |
String |
Y |
经度 |
bookingPointLat |
String |
Y |
纬度 |
示例
{
"partnerOrderNo": "partner-13325",
"bookerPhone": "13800000000",
"bookerName": "铁憨憨",
"cityId": 44,
"cityName": "北京",
"serviceId": 32,
"carGroupId": 50,
"carGroupName": "舒适",
"bookingDateMillis": 1626919614000,
"bookingDays": 1,
"bookingStartAddr": "aa",
"bookingStartLng": "116.45894",
"bookingStartLat": "39.90889",
"bookingEndAddr": "bb",
"bookingEndLng": "116.4648",
"bookingEndLat": "39.947268",
"coordinateSystem": "mars",
"estimateAmount": "28.00",
"estimatePriceMark": "1589336959&44&32&50&5049&636&4&1&1&6038&6038&1&2",
"routePlanKey": "mars:39.90889,116.45894;39.947268,116.4648",
"roundTrip": 1,
"driverMeal": 1,
"driverRest": 1,
"multiPoint": [{
"booking": [{
"bookingAddr": "网易二期(南门)",
"bookingPointLat": 30.183947,
"bookingPointLng": 120.191255
},
{
"bookingAddr": "安吉涵田度假村",
"bookingPointLat": 30.745155,
"bookingPointLng": 119.639017
}],
"dayOrder": 1,
"bookingDate": 1626919614000
}],
"remark": ""
}
返回数据
参数名称 |
类型 |
是否必选 |
说明 |
code |
int |
是 |
服务响应状态码 |
msg |
String |
是 |
服务响应状态说明 |
data |
OrderDTO |
是 |
OrderDTO |
返回示例
{
"code":0,
"data":{
},
"msg":"成功"
}