跳转到主要内容
GET
Get a refund
请使用属于目标组织的 API 密钥进行认证。属于其他组织的退款会返回 404,与不存在的 ID 相同。 可以用 refund.succeeded 或 refund.failed Webhook 中的 refundId 查询退款的当前状态。totalRefundedCents 和 fullyRefunded 反映请求时订单的状态。Webhook 中的这两个字段是事件发生时的值;同一订单之后又有退款成功时,API 返回的合计会高于之前那条 Webhook。

授权

X-API-Key
string
header
必填

Merchant API key (format: ak_BASE64)

路径参数

id
string
必填

Refund ID (RFN_...)

响应

OK

data
object
error
object
message
string
success
boolean