发起退款申请
POST/refund/createRefundOrder
商户创建退款订单,需要在管理后台进行审批。交易成功后,系统会向商户提供的回调地址发送退款结果通知。
Request
- application/json
Body
退款申请表单
amount string
退款金额
注:实际金额,必须为正数,可为小数,若不传则退该笔订单的全部实收金额
注:商户在管理后台审批前需要二次确认金额,可进行修改
notifyUrl uri
退款回调地址
必须为公网可访问的 HTTPS 协议地址,否则无法接收到回调通知
outPaymentNo string
支付单号
outTradeNo stringrequired
商户订单号
transferAddress string
退款地址
注:用户的收款地址,必须是有效的钱包地址,若不传则原路退回到该笔订单的付款地址
Responses
- 200
- 201
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
code int32required
状态码
msg stringrequired
成功或错误提示
description string
错误提示详情
data
object
required
refundId int32required
退款订单 ID
{
"code": 0,
"msg": "string",
"description": "string",
"data": {
"refundId": 0
}
}
{
"code": 200,
"msg": "success",
"data": {
"refundId": 33
}
}
Created
Unauthorized
Forbidden
Not Found
Loading...