# 退款查询
提交退款请求后,可以通过调用该接口查询退款状态。 退款可能有一定延时,用微信零钱支付的退款约 20分钟内到账,银行卡支付的退款约3个工作日后到账
# 请求方法
POST(application/json)
# 请求地址
https://payapi.weixiao.qq.com/v2/refundquery
注:旧版接口https://payapi.weixiao.qq.com/refundquery 已经停止维护,已接入并正在使用的客户不受影响
此外下单用的旧版接口,退款和查单也必须用旧版接口
# 参数说明
{
"refund_id":"2402295006361551869_refund",
"order_id":"2402295006361551869"
}
参数 | 是否必填 | 类型 | 实例 | 说明 |
---|---|---|---|---|
refund_id | 是 | string | 2402295006361551869_refund | 退款单号 |
order_id | 是 | string | 2402295006361551869 | 订单号 |
# 响应说明
{
"code": 0,
"message": "",
"data": {
"refund_id": "2402295006361551869_refund",
"refund_state": "1"
}
}
参数名 | 类型 | 必填 | 描述 | |
---|---|---|---|---|
code | int | Y | 业务状态 0 为成功 其他为失败 | |
message | string | Y | 业务提示 | |
data | refund_id | string | Y | 退款单号 |
refund_state | int | Y | 退款单状态,0 退款中;1 退款成功;2 退款失败 |