微信退款返回的几种情况

1、订单已经全额退款返回后再请求退款时:

{
    "appid": "wx88888888",
    "err_code": "ERROR",
    "err_code_des": "订单已全额退款",
    "mch_id": "158888888",
    "nonce_str": "zPT5P04rREEM68yW",
    "result_code": "FAIL",
    "return_code": "SUCCESS",
    "return_msg": "OK",
    "sign": "1B154A09280A5D6EC148C37A746BA282"
}

2、同一个退款号退还不同金额返回或者订单的总金额输入不正确

{
    "appid": "wx88888888",
    "err_code": "REFUND_FEE_MISMATCH",
    "err_code_des": "订单金额或退款金额与之前请求不一致,请核实后再试",
    "mch_id": "188888888",
    "nonce_str": "KGUWO8LLO2BGbvJb",
    "result_code": "FAIL",
    "return_code": "SUCCESS",
    "return_msg": "OK",
    "sign": "6701AE818027A28EE325B88CC67D48D5"
}

3、退款成功

{
  "appid": "wx88888888",
   "cash_fee": "10",
   "cash_refund_fee": "10",
   "coupon_refund_count": "0",
   "coupon_refund_fee": "0",
   "mch_id": "188888888",
   "nonce_str": "Dx173KdBSJm8RR0J",
   "out_refund_no": "B516111547726007",
   "out_trade_no": "B516111547726007",
   "refund_channel": [],
   "refund_fee": "10",
   "refund_id": "50300604212020051600550537447",
   "result_code": "SUCCESS",
   "return_code": "SUCCESS",
   "return_msg": "OK",
   "sign": "ED091E5DFFD340F00DED4E67A94A9B5C",
   "total_fee": "10",
   "transaction_id": "4200000560202005168434734774"
     }

4、部分退款的金额不大于总金额,但是和之前加在一起大于总金额时或者先有部分退款再全款退时

{
    "appid": "wx88888888",
    "err_code": "INVALID_REQUEST",
    "err_code_des": "refund_fee大于可退金额",
    "mch_id": "188888888",
    "nonce_str": "Da1KJvHV8cYtofZE",
    "result_code": "FAIL",
    "return_code": "SUCCESS",
    "return_msg": "OK",
    "sign": "4740747F6232B9F24745F40854358435"
}

5、退款金额大于总金额时

{
    "return_code": "FAIL",
    "return_msg": "invalid refund_fee" //无效的退款
}

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值