查询一口价
接口说明
- 接送机服务用车时间需比当前时间晚半个小时
- 接口支持接送机、接送站、即时预约一口价预估
接口地址
https:// <SQYC_DOMAIN>/touch/partner/negotiateFixedPrice/estimatesPrice
请求方式
POST
请求参数
名称 | 类型 | 是否必选 | 说明 |
---|---|---|---|
serviceType | int | yes | 服务类型ID,参考服务类型对照表 |
bookingDate | int | yes | 预定上车日期时间,10位时间戳(秒数) |
cityId | int | yes | 城市ID |
bookingStartPointLo | string | yes | 预定开始坐标经度 |
bookingStartPointLa | string | yes | 预定开始坐标纬度 |
bookingEndPointLo | string | yes | 预定结束坐标经度 |
bookingEndPointLa | string | yes | 预定结束坐标纬度 |
groups | string | yes | 用车车型及数量,示例:“34 : 1,35 : 1” |
bookingStartAddr | string | no | 上车地点 |
bookingEndAddr | string | no | 下车地点 |
sign | string | yes | 参见sign生成算法 |
channel | string | yes | 渠道名称,由首汽提供 |
返回数据
名称 | 类型 | 说明 |
---|---|---|
result | string | 0:成功;非0:失败原因编号 |
errmsg | string | 失败原因描述,若成功则值为空 |
data | List<EstimateFixedEntity> |
json数组 |
EstimateFixedEntity
名称 | 类型 | 说明 |
---|---|---|
amount | double | 现价 |
originalAmount | double | 原价 |
groupId | Integer | 车型ID |
discount | double | 折扣比例 |
priceMark | double | 一口价标识 |
distance | String | 里程,单位:公里 |
duration | String | 时长,单位:分钟 |
返回示例
{
"result": "0",
"data": [
{
"priceMark": "P5a7ae00248b60d4409104655",
"groupId": "34",
"amount": 376,
"discount": 1,
"originalAmount": 376,
"distance":"1.302",
"duration":"2"
}
],
"errmsg": "SUCCESS"
}