接口说明

  1. 根据车费预估返回信息,决定是否下单

接口地址

https:// <Partner_DOMAIN>/<CallBackURL>

请求方式

POST

请求参数

名称 类型 是否必选 说明
sign string yes 参考sign生成算法
channel string yes 渠道名称(标识首约调用)
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 用车车型,示例"35"
maxEstimatedAmount String no 派单最大预估金额,选填:聚合运力必填
extData String no JSON格式字符串。如{"buyoutFlag":1}。具体说明见下方
passingPoints String no (待开发)途经点列表(JSON字符串):目前只支持两个途经点,
约定按照顺序先后确定第一个途经点与第二个途经点
depCode string no 出发地三字码(接送机)
arrCode string no 目的地三字码(接送机)
bookingStartAddr string no 上车地点中文地址
bookingEndAddr string no 下车地点中文地址

passingPoints请求参数

名称 类型 是否必选 说明
bookingPassingLng String yes 途经点经度如:"118.59252"
bookingPassingLat String yes 途经点纬度如:"24.800137"
bookingPassingPointAddr String yes 途经点地址如:"晋江机场航站楼"
bookingPassingPointShortAddr String no 途经点短地址:"航站楼"

extData扩展项

名称 类型 是否必选 说明
buyoutFlag int no 一口价标识,1为一口价
supportModifyStart int no 修改上车点标识位,1为支持
supportModifyDestination int no 修改下车点标识位,1为支持
supportModifyPassingpoints int no 修改/新增途经点标识位,1为支持

返回数据

名称 类型 说明
result int 0:成功非0 :失败原因编号
errmsg string 失败原因描述,若成功则值为空
data FarePredictionDTO 车费预估信息,参见FarePredictionDTO

返回示例

{
    "result": 0,
    "data":{
        "amounts":{
            "amount":18,
            "baseFee":9,
            "disMoney":18,
            "distance":3,
            "distanceFee":5,
            "distantFee":0,
            "duration":8,
            "durationFee":4,
            "emptyDistance":0,
            "emptyDriverFee":0,
            "groupId":43,
            "groupName":"畅享型",
            "hotDuration":0,
            "hotDurationFees":0,
            "hotMileage":0,
            "hotMileageFees":0,
            "nightDuration":0,
            "nightDurationFee":0,
            "nightDurationPrice":0,
            "nightMileage":0,
            "nightMileageFees":0,
            "nightMileagePrice":1.2,
            "offsetAmount":0,
            "overDistancePrice":0,
            "tolls":0,
            "priceMark":"sfa2343424242faf"
        }
    },
    "errmsg":"SUCCESS"
}
Copyright © 首约科技(北京)有限公司 2020 all right reserved,powered by Gitbook该文件修订时间: 2024-09-10 08:00:38

results matching ""

    No results matching ""