说明:
接口作用:芝麻信用借还产品为商户提供的供商户查询借还订单详情的接口
调用示例代码如下:
//zhima.merchant.order.rent.query 信用借还订单查询接口
public static void OrderRent_Query(){
AlipayClient alipayClient=alipayclient();
ZhimaMerchantOrderRentQueryRequest request = new ZhimaMerchantOrderRentQueryRequest();
request.setBizContent("{" +
"\"out_order_no\":\"20161001000000521204\"," +
"\"product_code\":\"w1010100000000002858\"" +
" }");
ZhimaMerchantOrderRentQueryResponse response=null;
try {
response = alipayClient.execute(request);
System.out.println(response.getBody());
}catch (AlipayApiException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(response.isSuccess()){
System.out.println("调用成功");
} else {
System.out.println("调用失败");
}
}
该接口中的参数out_order_no可由创建订单接口返回获取,在请求参数中也有传入, product_code参数固为:w1010100000000002858,通过调用该接口得到这样的返回参数如下:
{"zhima_merchant_order_rent_query_response":{"pay_amount":"0.00","borrow_time":"2017-04-27 10:01:01","use_state":"borrow","admit_state":"Y","goods_name":"充电宝","user_id":"2088612836297446","code":"10000","msg":"Success","order_no":"13416117"},"sign":"mcJn4oDR8TrJzSAKQin0+Mny0Z4gh7lFb3j1XOv0H6WcqQiEliuGMUBcBB/hufcbv52KFOvVHZQTTi5q3oiPKtIKri4SoiBjj8E4lJ+ztrCk+K6VXVKbhy+fkKWFXQaPYKAzJ1ZkvRZmIliKdg+umhfQAMQ+ZYmwY7ykJmN69yk="}
附该接口业务说明以及接口技术说明,必读:
报错提供信息: appid+接口名+调用接口时间,最好将本次请求的完整参数一并发过来
如果大家在测试过程中遇到问题欢迎在帖子下方追问,请按照标准方式提问