Create Withdrawal — USDT

ถอนคริปโต ส่งเข้า wallet address ปลายทาง

USDT Wallet Address
POSTCreate USDT Withdrawal
Endpoint URL
https://testnet.trustsig.xyz/v1/withdrawal/createRequest/crypto

Authentication Status

API Key is required for all requests Webhook Secret

Headers

x-api-key
Required

Your shop API key

x-signature
Required

HMAC-SHA256 of timestamp|method|fullUrl|body signed with your secret key, sent as 64 hex characters

How to create the signature
x-timestamp
Required

Current Unix time in milliseconds — must be the same value used to create x-signature

Parameters (Request Body)

order_id
string Required

A unique order reference ID from your system (e.g., mystore_order_1234, uuid). Please use the same Order ID for the same transaction and do not generate a new one.

order_user_reference
string Optional

รหัสอ้างอิงผู้ใช้ฝั่งร้าน เช่น รหัสสมาชิกหรือรหัสผู้เล่น ระบบบันทึกไว้กับรายการถอนและส่งกลับมาในข้อมูลรายการ

currency
string Required

สกุลเงินที่ถอน รับเฉพาะ "USDT"

amount
number Required

จำนวน USDT ที่จะถอน ต้องมากกว่า 0 ถ้าร้านตั้งยอดถอนขั้นต่ำไว้ (คิดเป็น USD) ยอดที่ต่ำกว่านั้นระบบจะปฏิเสธด้วย error 10028

withdrawal_address
string Required

wallet address ปลายทาง ต้องเป็น address ที่ถูกต้องของเครือข่ายตาม chain ที่ส่งมา ถ้าไม่ถูกต้องจะได้ error 10002

chain
string Required

เครือข่ายที่จะส่ง USDT ออกไป ใช้ได้ tron, ethereum หรือ bsc และต้องเป็นตัวพิมพ์เล็ก ค่าอื่น เช่น offchain หรือ TRON ที่เป็นตัวพิมพ์ใหญ่ ระบบจะปฏิเสธด้วย error 10003

asset_type
string Required

มาตรฐานโทเคนของ USDT ให้เลือกตาม chain คือ tron ใช้ trc20, ethereum ใช้ erc20 และ bsc ใช้ bep20 (ไม่สนตัวพิมพ์เล็ก-ใหญ่)

additional
object Optional

Optional JSON object for your own data, such as a note or your user ID. It is stored with the withdrawal and returned in the withdrawal data.