文档中心 > 综合交通-商家对接

续租商家标准参考

更新时间:2023/05/10 访问次数:900

商家先下一单租车单,将订单状态推进到已取车,在订单页可以看到续租按钮,点击进行续租操作,如下图所示

image


续租价格相关:

standardPrice=总整日租金+poundageFee手续费
增值服务里的费用会自动计算到总价里,不用添加到standardPrice
实际页面订单总费用=standardPrice+增值服务费项目

standardPrice=总整日租金+poundageFee手续费
总整日租金如果是不满一天的,没命中零散小时费就传一天的费用,命中零散小时费就传0

1. 续租报价搜索接口

qimen.alitrip.rentcar.renewalprices.query

续租零散小时规则

image

标准示例:

"scatteredPriceRuleInfo":{"data":[{"value":"50","startTime":0,"endTime":420},{"value":"100","startTime":421,"endTime":1440}]}


续租取消政策

image

标准示例:

cancelStrategyStruct":{"cancelRules":[{"num":0,"time":72},{"num":10,"time":48},{"num":20,"time":24},{"num":30,"time":2},{"num":50,"time":0}],"manualCheckTime":0,"cancelType":1,"supportCancel":true}


商家自测场景:(商家根据自家规则自测)

场景1:命中零散小时费 例:续租1天2小时

image

标准请求

{"carUseTime":"2023-02-04 10:00","traceId":"2108aa5516752211119918785ed7e4","orderId":"3175520762897901122","isPressureTest":"false","outOrderId":"FZ1111111","carReturnTime":"2023-02-05 10:30","exts":"null"}

标准返回

{"success":true,"retMessage":null,"retCode":null,"addedServiceList":[{"serviceType":1,"serviceDesc":"基础服务费","quantity":"1.5","serviceCode":"basicServiceMoney","price":"0.01","isOneWayFee":0,"listInclude":["基础服务费,超出1500元的交通事故车辆维修费用免赔(不包含玻璃、轮胎、轮毂),第三者保障50万,承租方承担停运损失费和折旧损失费。"],"amount":"0.02","serviceName":"基础服务费","isFixed":1,"listExcloud":[]},{"serviceType":4,"serviceDesc":"零散小时费","quantity":"1","serviceCode":"hourFee","price":"5.00","isOneWayFee":1,"listInclude":[],"amount":"5.00","serviceName":"零散小时费","isFixed":1,"listExcloud":[]}],"cancelStrategyStruct":{"cancelRules":[{"num":0,"time":72},{"num":10,"time":48},{"num":20,"time":24},{"num":30,"time":2},{"num":50,"time":0}],"manualCheckTime":0,"cancelType":1,"supportCancel":true},"priceInfo":{"quantity":"1.5","calendarPrice":[{"date":"2023-02-04","dayPrice":"10.00"},{"date":"2023-02-05","dayPrice":"10.00","scatteredPrice":"5.00","scatteredMinutes":30}],"scatteredPriceRuleInfo":{"data":[{"value":"50","startTime":0,"endTime":420},{"value":"100","startTime":421,"endTime":1440}]},"standardPrice":"11.00","basicServiceFee":"0.02","standardUnitPrice":"10","poundageFee":"1.0","priceMark":"88612121212121216"}}

场景2:未命中零散小时费 例:1天8小时

image

标准请求

{"carUseTime":"2023-02-04 10:00","traceId":"2108aa551675211111858899ed7e4","orderId":"311111897908722","isPressureTest":"false","outOrderId":"11111081294","carReturnTime":"2023-02-05 18:00","exts":"null"}

标准返回

{"success":true,"retMessage":null,"retCode":null,"addedServiceList":[{"serviceType":1,"serviceDesc":"基础服务费","quantity":"2.0","serviceCode":"basicServiceMoney","price":"0.01","isOneWayFee":0,"listInclude":["基础服务费,超出1500元的交通事故车辆维修费用免赔(不包含玻璃、轮胎、轮毂),第三者保障50万,承租方承担停运损失费和折旧损失费。"],"amount":"0.02","serviceName":"基础服务费","isFixed":1,"listExcloud":[]}],"cancelStrategyStruct":{"cancelRules":[{"num":0,"time":72},{"num":10,"time":48},{"num":20,"time":24},{"num":30,"time":2},{"num":50,"time":0}],"manualCheckTime":0,"cancelType":1,"supportCancel":true},"priceInfo":{"quantity":"2.0","calendarPrice":[{"date":"2023-02-04","dayPrice":"10"},{"date":"2023-02-05","dayPrice":"10"}],"scatteredPriceRuleInfo":{"data":[{"value":"50","startTime":0,"endTime":420},{"value":"100","startTime":421,"endTime":1440}]},"standardPrice":"21.0","basicServiceFee":"0.02","standardUnitPrice":"10","poundageFee":"1.0","priceMark":"8866291212121212124741"}}


场景3:续租多天且命中零散小时

image

标准请求

{"carUseTime":"2023-02-04 10:00","traceId":"2108aa551675223111111417ed7e4","orderId":"31755207111108722","isPressureTest":"false","outOrderId":"11111194","carReturnTime":"2023-02-18 12:00","exts":"null"}

标准返回

{"success":true,"retMessage":null,"retCode":null,"addedServiceList":[{"serviceType":1,"serviceDesc":"基础服务费","quantity":"14.5","serviceCode":"basicServiceMoney","price":"0.01","isOneWayFee":0,"listInclude":["基础服务费,超出1500元的交通事故车辆维修费用免赔(不包含玻璃、轮胎、轮毂),第三者保障50万,承租方承担停运损失费和折旧损失费。"],"amount":"0.14","serviceName":"基础服务费","isFixed":1,"listExcloud":[]},{"serviceType":4,"serviceDesc":"零散小时费","quantity":"1","serviceCode":"hourFee","price":"5.00","isOneWayFee":1,"listInclude":[],"amount":"5.00","serviceName":"零散小时费","isFixed":1,"listExcloud":[]}],"cancelStrategyStruct":{"cancelRules":[{"num":0,"time":72},{"num":10,"time":48},{"num":20,"time":24},{"num":30,"time":2},{"num":50,"time":0}],"manualCheckTime":0,"cancelType":1,"supportCancel":true},"priceInfo":{"quantity":"14.5","calendarPrice":[{"date":"2023-02-04","dayPrice":"10"},{"date":"2023-02-05","dayPrice":"10"},{"date":"2023-02-06","dayPrice":"10"},{"date":"2023-02-07","dayPrice":"10"},{"date":"2023-02-08","dayPrice":"10"},{"date":"2023-02-09","dayPrice":"10"},{"date":"2023-02-10","dayPrice":"10"},{"date":"2023-02-11","dayPrice":"10"},{"date":"2023-02-12","dayPrice":"10"},{"date":"2023-02-13","dayPrice":"10"},{"date":"2023-02-14","dayPrice":"10"},{"date":"2023-02-15","dayPrice":"10"},{"date":"2023-02-16","dayPrice":"10"},{"date":"2023-02-17","dayPrice":"10.00"},{"date":"2023-02-18","dayPrice":"10.00","scatteredPrice":"5.00","scatteredMinutes":120}],"scatteredPriceRuleInfo":{"data":[{"value":"50","startTime":0,"endTime":420},{"value":"100","startTime":421,"endTime":1440}]},"standardPrice":"141.00","basicServiceFee":"0.14","standardUnitPrice":"10","poundageFee":"1.0","priceMark":"88662111115414"}}

2.下单接口

qimen.alitrip.rentcar.renewalorder.submit

下单

image

下单续租成功

image

请求

{"carUseTime":"2023-02-04 10:00","traceId":"3176911115908722","orderId":"317694071118722","isPressureTest":"false","outOrderId":"FZ1111294","carReturnTime":"2023-02-05 11:00","renewalOrderTotalAmount":"16.02","payTradeNo":"202302011111183","exts":"null","priceMark":"88668888511161"}

返回

{"success":true,"retMessage":"","outOrderId":"8861117527","createdTime":"2023-02-01 15:40:52","retCode":""}


续租成功后,订单页有展示绿色小气泡,提示续租成功,可以到续租订单里找到续租单查看

image


3.取消续租接口

qimen.alitrip.rentcar.renewalorder.cancel

取消续租

image

标准请求

{"traceId":"2108aa55167523107","cancelMessage":"用户主动取消","cancelTime":"2023-02-01 15:46:51","orderId":"3176915908722","outOrderId":"886681307527","penaltyAmount":"14.41","exts":"null"}

标准返回

{"retCode":200,"success":true,"retMessage":""}

FAQ

关于此文档暂时还没有FAQ
返回
顶部