退款
退款申请与查询
post
https://{openApiUrl}
/openApi/V2022-03/refund
退款申请

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

applyRefund.sh
curl --request POST \
--url https://{openApiUrl}/openApi/V2022-03/refund \
--header 'Content-Type: application/json' \
--header 'request-id: 58675' \
--header 'request-time: 1651888520935' \
--header 'gateway-no: 12345001' \
--header 'sign-info: 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822B' \
--data '{
"merTrackNo": "7313961647432084782",
"refundAmount": "0.01",
"refundReason": "0.01",
"refundType": "2",
"remark": "remark",
"tradeNo": "2022051812003332818907"
}'
get
https://{openApiUrl}
/openApi/V2022-03/refund/{batchNo}
退款查询

退款查询请求报文示例

refund.sh
curl --request GET\
--url https://{openApiUrl}/openApi/V2022-03/refund/442011 \
--header 'request-id: 58675' \
--header 'request-time: 1651888520935' \
--header 'gateway-no: 12345001' \
--header 'sign-info: 787966BF2479A1BE8E1886CD18E6919447FAF4F357E7056188D4F035661B822B' \

结果对象属性描述

property name
type
description
code
String
响应码
message
String
响应信息
data
Object
数据对象
batchNo
String
退款编号,唯一
refundDescription
String
退款描述
refundReason
String
退款原因
refundStatus
String
退款状态
pending:待处理
success:成功
fail:失败
tradeNo
String
交易流水号