预估费用查询接口

方法名
Uri 请求方式
order/costestimate GET
参数说明
参数名称 必填 类型 说明
token String 用户凭证
startLat float 起始纬度
startLng float 起始经度
endLat float 结束纬度
endLng float 结束经度
gpsType String GPS类型,可选值{baidu,gaode} 默认为baidu
bonusSn String 优惠券SN
from String 配置限制优惠券的from
strategyId String e代驾分配合作商家的权益策略id
longDistanceAdjustFee double 非必传 远程订单有补贴费的时候传参,预估明细才会返回
channel string 非必传 远程单传01007
isUseBonus string 是否使用优惠券 1 使用(默认为使用) 0不使用
estimateDistance integer 合作方预估距离 单位米 注意!需要与estimateDuration 合作方预估时长一起传才具备业务意义
estimateDuration integer 合作方预估时长 单位秒 注意!需要与estimateDistance 合作方预估距离一起传才具备业务意义
返回值说明
{
    "code": 0, //0成功非0失败
    "message": "success",
    "data" : {
        "is_fixed_price": 0,
        "dynamic": {
            "fee_type": 2, //double 下单必传(加价2倍即原价3倍)
            "fee_max": 100, //加价方式1:金额 2:倍数 fee_type
            "dynamic_fee": 21.36, //double 加价金额  (元)
            "dynamic_rate": 0.1 //倍率加价最大值下单必传  金额(元)
        },
        "fee_detail": [
            {
                "key": "起步价",
                "data_id": "start_fee",
                "value": "5元",
                "total_value": 3
            },
            {
                "key": "收费里程(共17.5公里)",
                "data_id": "millage_fee",
                "value": "90元",
                "total_value": 17.5
            },
            {
                "key": "时长费(共24分钟)",
                "data_id": "time_fee",
                "value": "115元",
                "total_value": 24
            },
            {
                "key": "远途费(共17.5公里)",
                "data_id": "return_fee",
                "value": "3.60元",
                "total_value": 20.5
            },
            {
                "key": "动态调价(1.1倍)",
                "data_id": "dynamic_fee",
                "value": "21.36元",
                "total_value": 1.1
            },
            {
                "key": "春节服务费",
                "data_id": "service_surcharge_cjfwf",
                "value": "2元",
                "total_value": 0
            }
        ],
        "order_fee_deduction": null,
        "bonus_info": {
            "bonus_id": 0,
            "bonus_name": "",
            "bonus_sn": ""
        },
        "deduct_money": 0, //优惠金额,float类型
        "distance": 20.5,
        "from": "玉树藏族自治州/玉树市",
        "to": "玉树藏族自治州/玉树",
        "duration": 24,
        "price_list_url": "https://h5.edaijia.cn/app/price.html?token=c47ca334182a476abd6a1f2a769ccc53&estimateId=es9ab40ee2ecaa04d929b6522d41fb37&cityName=%E7%8E%89%E6%A0%91%E8%97%8F%E6%97%8F%E8%87%AA%E6%B2%BB%E5%B7%9E%2F%E7%8E%89%E6%A0%91%E5%B8%82&cityId=41259&latitude=32.989735081992&longitude=97.015819605067&source=2000&channel=01003&from=01051419&strategyId=10215",
        "price_area_url": "https://h5.edaijia.cn/app/specialArea.html?token=c47ca334182a476abd6a1f2a769ccc53&estimateId=es9ab40ee2ecaa04d929b6522d41fb37&cityName=%E7%8E%89%E6%A0%91%E8%97%8F%E6%97%8F%E8%87%AA%E6%B2%BB%E5%B7%9E%2F%E7%8E%89%E6%A0%91%E5%B8%82&cityId=41259&latitude=32.989735081992&longitude=97.015819605067&source=2000&channel=01003&from=01051419&strategyId=10215",
        "fee": 236.96, //预估费用,float类型(含优惠券金额减免后)
        "real_fee": 236.96, //预估总金额(不包含各种抵扣/减免)
        "estimate_distance": "约20.5公里", //预估里程
        "bonus_sn": "",
        "bonus_id": 0,
        "fee_detail_parse": {
            "start_fee": {
                "amount": "5.00",
                "fee_name": "起步价",
                "fee_desc": "",
                "unit": "元"
            },
            "mileage_fee": {
                "amount": "90.00",
                "fee_name": "收费里程",
                "fee_desc": "共17.5公里",
                "unit": "元"
            },
            "time_fee": {
                "amount": "115.00",
                "fee_name": "时长费",
                "fee_desc": "共24分钟",
                "unit": "元"
            },
            "return_fee": {
                "amount": "3.60",
                "fee_name": "远途费",
                "fee_desc": "共17.5公里",
                "unit": "元"
            },
            "dynamic_fee": {
                "amount": "21.36",
                "fee_name": "动态调价",
                "fee_desc": "1.1倍",
                "unit": "元"
            },
            "service_surcharge_fee": {
                "amount": "2.00",
                "fee_name": "特殊费用",
                "fee_desc": "",
                "unit": "元"
            }
        }
    }
}
© 2011-2019 北京亿心宜行汽车技术开发服务有限公司 版权所有2019 all right reserved,powered by Gitbook该文件修订时间: 2025-08-07 16:06:15

results matching ""

    No results matching ""