Skip to main content

Create Deposit Order (TRC20)

Create USDT-TRC20 DepositOrder接口.

Request Information

  • **Request URL: ** /gateway/api/v1/tron/payment-txns
  • **Request Method: ** POST
  • **Content-Type: ** application/json;charset=utf-8

Request Parameters

ParameterRequiredTypeDescription
platform_idYesString(7)Merchant ID
txn_cl_idYesString(32)MerchantOrder號 (長度 1~32)
user_idYesString(32)匯款人平台 ID
amountYesInteger(10)OrderAmount (單位: 0.01 USDT)
e.g. : 50000 表示Submission 500 USDT
notify_urlYesString(256)Transaction ResultNotificationURL
request_timeYesInteger(10)Request Time (Seconds)
signYesString(32)OrderSignature

Request Example

{
"platform_id": "PF0001",
"user_id": "b929c18b83bf47809e1595ff6b28916a",
"txn_cl_id": "test_payment_txn_1755705625",
"amount": 12345,
"notify_url": "https://notify.com/payments",
"request_time": 1755705625,
"sign": "660b1bb75801bedd796d7b33ae089ef5"
}

Response Example

Success Response

{
"error_code": "0000",
"data": {
"txn_id": "CTX00000123",
"txn_cl_id": "test_payment_txn_1755705625",
"type": 0,
"network": "TRC-20",
"target_address": "TAkr13ZMWyPSpo7jvQ4ajgmm8X9EG4dEZK",
"amount": 12345,
"display_amount": 12345,
"pay_link": "http://localhost:8889/payment/index.html?token=eyJhbG"
}
}

Error Response Example

{
"error_code": "0004",
"error_msg": "Signature Verification Failed!"
}

Response Parameter Description

ParameterTypeDescription
error_codeStringError Codes
error_msgStringError Message (error_code is not "0000" returned when )
pay_linkStringOrderPayment URL
amountIntSubmissionAmount
txn_idString平台Order號
txn_cl_idStringMerchantOrder號
target_addressString接收URL
user_idString匯款人平台用戶名 (ID)

Remarks

  • Amountunit is 0.01 USDT, e.g. 500 USDT 應pass in 50000