获取订单费用
说明
- 获取订单费用
地址URL
http:// <hqzx_DOMAIN>/v2/channel/open/order/getOrderFee
HTTP请求方式
POST
访问授权限制
需要验签,参见:鉴权说明
注意事项
1、订单存在,且在正确状态
2、总费用(totalAmount)=订单费(orderFee)+取消费(cancelFee)+其他费合计(otherCountFee)
3、结算费用(settleAmount),若有折扣优惠,为折扣后金额,为可开发票金额,仅总费用(totalAmount)*折扣系数
4、总费用明细(totalAmountDetail),这个json是总费用(totalAmount)明细说明
5、总费用明细(otherFee),这个json是其他费合计(otherCountFee)明细说明
6、吐槽命名不规范的话,这个历史原因有很多,多多包含吧
请求参数
名称 | 类型 | 是否必选 | 说明 |
---|---|---|---|
orderNo | String | yes | 订单号 |
请求示例
curl
-H "accept:application/json;charset=utf-8"
-H "Content-Type:application/json"
-H "channel:XXX" -H "sign:XXX"
-X POST '参见请求地址URL'
-d '
{
"orderNo": "XXXXXX"
}
'
返回结构说明
参见:接口说明
返回结果说明
名称 | 类型 | 说明 |
---|---|---|
orderNo | String | 订单号为 |
status | int | 订单状态,参见:订单状态 |
serviceTypeId | int | 服务类型,参见:服务类型 |
serviceTypeName | String | 服务类型名称 |
carGroupId | int | 车型ID |
carGroupName | String | 车型名称 |
distance | Double | 里程(公里) |
duration | int | 时长(分钟) |
totalAmount | Double | 总金额(元) |
settleAmount | Double | 结算费用(折扣费用,开票金额,元) |
orderFee | Double | 订单费用(元) |
cancelFee | Double | 订单取消费(元) |
otherCountFee | Double | 其他费用合计(元) |
totalAmountDetail | Json | 总金额明细 |
otherFee | Json | 其他费用明细 |
其他费用
名称 | 类型 | 说明 |
---|---|---|
highSpeedFee | Double | 高速服务费(元) |
parkingFee | Double | 停车服务费(元) |
airportFee | Double | 机场服务费(元) |
boardLodgingFee | Double | 食宿服务费(元) |
费用明细
名称 | 类型 | 说明 |
---|---|---|
baseFee | Double | 基础费(元) |
durationFee | Double | 服务时长费(元) |
waitingFee | Double | 服务等待费(元) |
distanceFee | Double | 里程费(元) |
driverFee | Double | 指定司机费(元) |
otherCountFee | Double | 价外费总计(元) |
返回示例
{
"code":1,
"msg":"SUCCESS",
"data":
{
"orderNo":"B202209281586900618",
"status":45,
"serviceTypeId":1,
"serviceTypeName":"即时用车",
"carGroupId":34,
"carGroupName":"专享",
"distance":0.33,
"duration":30,
"totalAmount":261.2,
"orderFee":258.2,
"cancelFee":0,
"otherCountFee":3,
"settleAmount":209.56,
"otherFee":{
"highSpeedFee":1,
"parkingFee":2,
"airportFee":0,
"boardLodgingFee":0,
"roadTolls":0,
"otherSurcharges":0
},
"totalAmountDetail":{
"baseFee":13,
"durationFee":25.2,
"waitingFee":220,
"distanceFee":0,
"driverFee":0,
"otherCountFee":3
}
}
}