资金授权操作查询

名称:alipay.fund.auth.operation.detail.query
类型:服务端接口
功能:通过该接口可以查询单笔明细的详细信息,细分到每一次操作,如冻结、解冻。


注意:接口为通用接口,该场景下,请参考如下编写:

/**
 * 测试资金授权操作查询
 */
@Test
public void fundAuthQuery() throws AlipayApiException {
    AlipayClient alipayClient = new DefaultAlipayClient("https://openapi.alipay.com/gateway.do","app_id","your private_key","json","GBK","alipay_public_key","RSA2");
    AlipayFundAuthOperationDetailQueryRequest request = new AlipayFundAuthOperationDetailQueryRequest();
    AlipayFundAuthOperationDetailQueryModel model = new AlipayFundAuthOperationDetailQueryModel();
    //model.setAuthNo("2017120110002001390206804295"); // 支付宝资金授权订单号,在授权冻结成功时返回参数中获得
    model.setOutOrderNo("orderFreeze000003"); //商户的授权资金订单号,与支付宝的授权资金订单号不能同时为空
    //model.setOperationId("20171201317348823902"); //支付宝的授权资金操作流水号,冻结成功同步返回
    model.setOutRequestNo("requestNo000003");//商户的授权资金操作流水号,与支付宝的授权资金操作流水号不能同时为空,该值为冻结或解冻是的outRequestNo
    request.setBizModel(model);
    AlipayFundAuthOperationDetailQueryResponse response = alipayClient.execute(request);
    logger.info("response: {}"+response.getBody());
}


onlineServer