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"
}

這篇文件怎麼樣?

最後更新