退款
post
https://{openApiUrl}
/openApi/refund
退款申请

退款申请接口请求报文示例

applyRefund.sh
curl --request POST \
--url https://{openApiUrl}/openApi/refund \
--header 'Content-Type: application/json' \
--header 'request-id: 58675' \
--header 'request-time: 2022-05-21T23:59:59' \
--header 'authorization:Bearer 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822' \
--data '{
"merTrackNo": "7313961647432084782",
"refundAmount": "0.01",
"refundReason": "0.01",
"refundType": "2",
"remark": "remark",
"tradeNo": "2022051812003332818907"
}'
get
https://{openApiUrl}
/openApi/refund/{batchNo}
退款查询

退款查询请求报文示例

refund.sh
curl --request GET\
--url https://{openApiUrl}/openApi/refund/442011 \
--header 'request-id: 58675' \
--header 'request-time: 2022-05-21T23:59:59' \
--header 'authorization:Bearer 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822' \

结果对象属性描述

property name
type
description
result
Object
请求响应对象
code
String
响应码
message
String
响应信息
data
Object
数据对象
merNo
Integer
商户号
gatewayNo
Integer
网关号
batchNo
String
退款编号,唯一
refundDescription
String
退款描述
refundReason
String
退款原因
refundStatus
String
退款状态
-1:失败
0:待审核
1:审核成功未处理
2:审核成功已处理
tradeNo
String
交易流水号