RedotPay Connect
退款

发起商户退款

对已创建订单发起退款。返回收单退款标识及初始退款状态(如 REFUNDING)。 用于提交商户发起的退款。

标头参数

X-R-Ts*string

请求时间戳(毫秒)

X-R-Ak*string

商户 appKey

X-R-Signature*string

请求签名

X-R-Key-Version?string

商户私钥版本,默认 1

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

创建退款请求

响应主体

*/*

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/openapi/v2/refund/create" \  -H "X-R-Ts: 1762327084929" \  -H "X-R-Ak: string" \  -H "X-R-Signature: string" \  -H "Content-Type: application/json" \  -d '{    "merchantRefundSn": "MRF20260101002",    "outerOrderSn": "ORD20260101001",    "reason": "Product out of stock — customer requested refund",    "refundAmount": 50  }'
"Open API 通用响应"
{  "code": "paramFormatError",  "message": "request param invalid"}
{  "code": "authorizationInvalid",  "message": "authorizationInvalid invalid"}
{  "code": "notInWhiteList",  "message": "request ip not in the white list"}
{  "code": "frequencyLimited",  "message": "Too many requests, please try again later"}