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" //无效的退款
}