RedotPay Connect
订单查询

查询退款交易详情

通过收单退款 ID(refundSn)或商户退款参考号(merchantRefundSn)查询退款详情。 响应包含退款状态、退款金额、币种、时间戳及相关结算元数据。 若继承自原支付单,还可能包含可选字段 subMerchantCode。

标头参数

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/detail" \  -H "X-R-Ts: 1762327084929" \  -H "X-R-Ak: string" \  -H "X-R-Signature: string" \  -H "Content-Type: application/json" \  -d '{    "merchantRefundSn": "MRF20260101001",    "refundSn": "RDPREF20260000001"  }'
"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"}