红包48小时自动退款后,通过alipay.fund.trans.common.query(转账业务单据查询接口)使用order无法查询红包退款的信息,只能查到支付信息。想请问一下需要通过什么接口查询退款信息?
查询代码如下:
AlipayFundTransCommonQueryRequest request = new AlipayFundTransCommonQueryRequest();
AlipayFundTransCommonQueryModel model = new AlipayFundTransCommonQueryModel();
model.setProductCode("STD_RED_PACKET");
model.setBizScene("REFUND");
model.setOrderId("20191014110075000006480020088925");
request.setBizModel(model);
AlipayFundTransCommonQueryResponse response = alipayClient.certificateExecute(request);
if(respones.isSuccess()) {
System.out.println(respones.getBody());
}
返回值如下:
{
"alipay_fund_trans_common_query_response": {
"code": "10000",
"msg": "Success",
"order_id": "20191014110075000006480020088925",
"out_biz_no": "30201910141945023165887",
"pay_date": "2019-10-14 19:45:09",
"pay_fund_order_id": "20191014110075001506480019839617",
"status": "SUCCESS",
"trans_amount": "0.10"
},
"alipay_cert_sn": "7552064caa11e303238046811dcc5263",
"sign": "Z54wskIt9LA4MWU6MUP5mEHV9fy94OBHYJc0uQE9F19K4bVYI8VEDchpHOw4tuuD/sS4UwABKjeYhTG06Ilt5hx1607LbKPBdD43H74uJFaufCx/3GpiGHu9bTAE4FXD+/qu33yFZ4Mh2gWiAvQqJR8ZHCqJVMcYcfU0VUB81h3tglpoEzu6RrjAt2mDnFyMa+dr2Py0QzNEwb2XVhE/9naC9BiJxX73OjzrzkBJYZIv+l60KGcMGTM2X2cqR+n4wLMN4znNwB9tnGXNomcVqVtTZBeCRb05GNEkPQcjZeLM7QA0VtMQIoBlBsbeieW5d6rlmYr7aBQsnsD0LdCoQA=="
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。