StableOps
API 参考

取消未提交的退款请求

取消一笔尚未提交链上交易的 StableOps 退款请求,保留原始支付记录,并释放该请求占用的可退款额度。接口仅适用于申请状态,已经提交、确认、失败或取消的退款不会被改写,适合客服撤回错误金额或目标地址的待处理申请。

POST/v1/refunds/{id}/cancel

Authorization

bearerAuth
AuthorizationBearer <token>

Paste your API key from the dashboard.

In: header

Path Parameters

id*string

Refund id.

Response Body

application/json

curl -X POST "https://example.com/v1/refunds/string/cancel"
{
  "id": "string",
  "payment_order_id": "string",
  "source_payment_event_id": "string",
  "chain": "ethereum",
  "asset": "USDC",
  "amount": "string",
  "amount_minor": "string",
  "source_address": "string",
  "destination_address": "string",
  "status": "requested",
  "tx_hash": "string",
  "failure_reason": "string",
  "submitted_at": "2019-08-24T14:15:22Z",
  "confirmed_at": "2019-08-24T14:15:22Z",
  "canceled_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}

这篇文档怎么样?

最后更新