Skip to main content

Update

權限限制: Token Authencation. Token 可以經由 /api/auth/token取得

需求描述

更新付款資料

以下是資料型別限制:

tx_id 使用正則表達式 '^0x[0-9a-fA-F]{64}$' 驗證

chain_type Only accept either same_chain or cross_chain.

Method

PATCH

Endpoint

  • /api/transaction/{transaction_id}/

Request Header

{
"Authorization": "Bearer {token}"
}

Request Body

{
"tx_id": "Bearer {token}",
"chain_type": "same_chain|cross_chain"
}

Response

查詢成功

  • HTTP Status Code: 200
{
"_id": "shortuuid",
"product_id": "string",
"status": "initiated",
"create_time": "timestamp",
}

使用者驗證失敗

  • HTTP Status Code: 401
{
"detail": "Invalid token.",
}