请求地址: /v2/common/shuttleBusCallOrder
服务协议: HTTP/POST
Content-Type: application/x-www-form-urlencoded
请求参数:
参数名称 | 类型 | 必选 | 说明 |
---|---|---|---|
client_id | string | Y | 申请的client_id |
timestamp | long | Y | 时间戳 |
sign | string | Y | 签名 |
city_code | string | Y | 城市编号 |
order_type | string | Y | 订单类型,请参照《1.5 订单状态及类型》 |
departure_time | string | N | 预约单时间 |
car_type | string | Y | 服务车型:2 新能源;3 舒适型;4 豪华型;5 商务型;7 优选;12 超惠(不支持一次性下多个订单) |
sms_policy | string | N | 短信发送--1:叫车人和乘车人都发送;2:乘车人发送叫车人不发送;3:乘车人不发叫车人发;4:乘车人叫车人都不发 |
ext_order_id | string | Y | 外部接入方的订单ID,最长30个字符(外部订单ID唯一,禁止重复) |
order_tags | string | N | 1.支付方式仅支持一口价,值为 1 (一口价需与商务确认开通权限) |
estimate_price | string | Y | 预估费用,单位为分,允许拼车订单需要传入未拼成一口价 |
estimate_price_key | string | Y | 预估费用接口返回的price_key,订单若 price_key 过期(有效期:10分钟)则无法下单,需要重新预估价格获取 |
caller_phone | string | Y | 用户手机号 |
shuttle_bus_type | string | Y | 接驳车类型 1多接一送 2一接多送 |
waypoint_param | string | Y | 途经点JSON字符串 |
waypoint_param参数对象:
参数名称 | 类型 | 必选 | 说明 |
---|---|---|---|
customerNum | Number | Y | 乘客人数 |
waypointType | Number | Y | 途经点类型:1.起点,2.终点 |
waypointCityCode | string | Y | 途经点城市代码 |
waypointDistrict | string | Y | 途经点位置区域 |
waypointDistrictCode | string | Y | 途经点区域code |
waypointLg | string | Y | 用户下单途经点经度 |
waypointLt | string | Y | 用户下单途经点纬度 |
waypointLoc | String | Y | 用户下单途经点地址详情 |
waypointLocName | string | Y | 用户下单途经点地址名称 |
waypointSequence | Number | Y | 途经点顺序 默认从1开始 |
customerInfo | List | N | 下单乘客信息 |
customerInfo参数对象:
参数名称 | 类型 | 必选 | 说明 |
---|---|---|---|
customerName | string | Y | 乘客名称 |
customerPhone | string | Y | 乘客手机号 |
customerHidePhone | string | Y | 手机号后4位 |
waypoint_param参数示例:
[
{
"customerInfo":[
{
"customerHidePhone":"0097",
"customerName":"45907eec065e44cc935c7098956e58d2",
"customerPhone":"13711100097"
},
{
"customerHidePhone":"0052",
"customerName":"f409023157c04de2abf204ec4b6fb10b",
"customerPhone":"13711100052"
}
],
"customerNum":2,
"waypointCityCode":"0571",
"waypointDistrict":"滨江区",
"waypointDistrictCode":"330108",
"waypointLg":120.2199,
"waypointLoc":"物联网孵化器",
"waypointLocName":"物联网孵化器",
"waypointLt":30.213688,
"waypointSequence":1,
"waypointType":1
},
{
"customerInfo":[
{
"customerHidePhone":"0033",
"customerName":"1a8365f75c1b40d5af2bc43ffa10fc78",
"customerPhone":"13711100033"
}
],
"customerNum":1,
"waypointCityCode":"0571",
"waypointDistrict":"滨江区",
"waypointDistrictCode":"330108",
"waypointLg":120.212396,
"waypointLoc":"东方郡西区",
"waypointLocName":"东方郡西区",
"waypointLt":30.197035,
"waypointSequence":2,
"waypointType":1
},
{
"waypointCityCode":"0571",
"waypointDistrict":"滨江区",
"waypointDistrictCode":"330108",
"waypointLg":120.166877,
"waypointLoc":"滨江宝龙城",
"waypointLocName":"滨江宝龙城",
"waypointLt":30.18733,
"waypointSequence":3,
"waypointType":2
}
]
响应data参数:
参数名称 | 类型 | 必有 | 说明 |
---|---|---|---|
orderNo | string | Y | 订单号 |
结果示例:
{
"code": 200,
"success": true,
"data": {
"orderNo": "123456"
}
}