获取费用明细

接口说明

  1. 订单服务结束待结算(40)后 (这里指大于40的状态,如:43、45、50,不包含40),可调用此接口
  2. 数据节点CostDetailDTO标注可忽略字段,渠道方可不关注
  3. 一口价订单按预估金额结算,忽略费用明细
  4. 计算公式 : 订单总金额(total)=订单应收金额(actualPayAmount)=基础价(basePrice)+时长费小计(overTimeNumTotal)+里程费小计(overMilageNumTotal)+长途费(longDistancePrice)+等待费(waitingFee)+其他费用(otherCost)+扩展价格(extPriceInfo)+指定司机费(designatedDriverFee)

    乘客应付金额(customerPayPrice)=订单应收金额(actualPayAmount)—优惠抵扣金额(couponSettleAmout)

  5. 最多查询一年内的订单

    接口地址

https:// <SQYC_DOMAIN>/touch/partner/getChargeDetail

请求方式

POST

请求参数

名称 类型 是否必选 说明
orderNo string yes 订单号
partnerOrderNo string no 合作方订单号
sign string yes 参见sign生成算法
channel string yes 渠道名称,首汽提供

返回数据

名称 类型 说明
result string 0:成功;非0:失败原因编号
errmsg string 失败原因描述,若成功则值为空
data object 实体类,费用明细,参考CostDetailDTO

返回示例

{
    "result": "0",
    "errmsg": "SUCCESS",
    "data": {
        "returnCode": "0",
        "errmsg": null,
        "dto": {
            "min": "29",
            "mileage": "16.72",
            "total": "49.88",
            "actualPayAmount": "49.88",
            "buyoutTravelFlag": "1" // 行程费一口价标识: 仅特价/特快时 传"1"
            "customerPayPrice": "35.00",
            "cancelAmount": "0.00",
            "decimalsFees": "0.00",
            "basePrice": "6.0",
            "includeMinute": "0",
            "includeMileage": "0",
            "timePrice": "0.3",
            "mileagePrice": "1.8",
            "overTimePrice": "8.40",
            "overMilagePrice": "30.10",
            "overTimeNum": "28.00",
            "overMilageNum": "16.72",
            "overMilageNumTotal": "30.10",
            "overTimeNumTotal": "8.40",
            "longDistanceNum": "6.72",
            "longDistancePrice": "5.38",
            "longPrice": "0.8",
            "hotDuration": "0",
            "hotDurationFees": "0.00",
            "hotMileage": "0.0",
            "hotMileageFees": "0.00",
            "peakPrice": "0.0",
            "peakPriceTime": "0.0",
            "nightDistanceNum": "0.00",
            "nightDistancePrice": "0.00",
            "nighitDuration": "0",
            "nighitDurationFees": "0.00",
            "nightPrice": "1.0",
            "nightPriceTime": "0.0",
            "couponAmount": "0",
            "couponSettleAmout": "14.88",
            "waitingMinutes": "0.00",
            "waitingFee": "0.00",
            "reducePrice": 0,
            "reducePriceDesc": null,
            "otherCost": [
                {
                    "cost": "0.00",
                    "typeName": "高速服务费"
                },
                {
                    "cost": "0.00",
                    "typeName": "停车费"
                },
                {
                    "cost": "0.00",
                    "typeName": "司机过节费"
                },
                {
                    "cost": "0.00",
                    "typeName": "食宿费"
                },
                {
                    "cost": "0.00",
                    "typeName": "语音费"
                }
            ],
            "extPriceInfo": [
                {
                    "name": "dynamicDoublyAmount",
                    "value": "184.51",
                    "desc": "动态加价金额"
                },
                {
                    "name": "costTypeAmount",
                    "value": "184.51",
                    "desc": "司机过节费"
                },
                {
                    "name": "crossCityFee",
                    "value": "184.51",
                    "desc": "跨城费"
                }
            ],
            "aliPay": "0",
            "wxPay": "0",
            "creditPay": "0",
            "accountPay": "0",
            "driverPay": "35.00",
            "designatedDriverFee": "0.00",
            "dynamic_price": "14.88",
            "serviceType": "即时用车",
            "riderName": null,
            "groupName": "畅享型",
            "startDate": "2018-09-17 16:39:37",
            "endDate": "2018-09-17 17:07:45",
            "startPlace": null,
            "endPlace": null,
            "status": 1,
            "discount_type": null,
            "dynamic_ratio": null
        }
    }
}
Copyright © 首约科技(北京)有限公司 2020 all right reserved,powered by Gitbook该文件修订时间: 2024-09-10 08:00:38

results matching ""

    No results matching ""