Skip to main content

Transaction Result Notification (TRC20)

System將 USDT-TRC20 Transaction Result發送至Merchant提供的回調URL.

Request Information

  • **Request URL: ** Merchant於申請時填入之 notify_url URL
  • **Request Method: ** POST
  • **Content-Type: ** application/json;charset=utf-8

Request Parameters (由System發送給Merchant)

ParameterRequiredTypeDescription
txn_idYesString(11)SystemOrder號
txn_cl_idYesString(32)MerchantOrder號
amountYesInteger(10)OrderAmount (單位: 0.01 USDT)
feeYesintMerchantTransaction Fee (單位: 0.01 USDT)
statusYesintOrderStatus (見下表)
from_addressYesstring轉出URL
target_addressYesstring轉入URL
create_timeYesString(7)Create時間 (unix timestamp, 單位: Seconds)
update_timeYesintUpdate Time (unix timestamp, 單位: Seconds)
signYesString(32)Transaction Signature

Request Example

{
"txn_id": "CTX00000007",
"txn_cl_id": "test_payout_txn_1634396394",
"amount": 50000000,
"fee": 0,
"status": 1,
"from_address": "TR1KMKNJAJRsPWuMVYnEkj1H3GaUdUe4wG",
"target_address": "TAkr13ZMWyPSpo7jvQ4ajgmm8X9EG4dEZK",
"create_time": 1634396394,
"update_time": 0,
"sign": "d373360cd44e420863b1ced04bc9efe0"
}

MerchantResponse Example

Merchant收到Notification後, 需Return JSON 格式數據以確認收到Notification.

{
"error_code": "0000"
}

TRC-20 Ordertransaction status

Status數Value
初始0
等待中1
執行中2
成功3
取消4
失敗5

Remarks

  • 此接口由Merchant實現, 本System將於Order成功時消費此接口
  • 建議Merchant實現驗簽流程, 以確認內容沒被竄改