StableOps
API 參考

登記商戶簽名的退款交易

為 StableOps 退款登記由商戶錢包簽名並廣播的交易雜湊,使平台能夠在原始付款鏈上等待最終深度,並核對來源地址、目標地址、資產與精確金額。介面只登記交易證據,不代替商戶保管私鑰、簽署交易或廣播資金操作。

POST/v1/refunds/{id}/submit

Authorization

bearerAuth
AuthorizationBearer <token>

Paste your API key from the dashboard.

In: header

Path Parameters

id*string

Refund id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/refunds/string/submit" \  -H "Content-Type: application/json" \  -d '{    "tx_hash": "string"  }'
{
  "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"
}

這篇文件怎麼樣?

最後更新