Create Payment — Crypto → THB

รับฝากคริปโตและ convert เป็น THB โดยใช้เรทจาก Binance TH

USDT (TRON) THB auto_convert

ตั้ง auto_convert: true และ convert_to: "THB" ปัจจุบันรองรับ pair USDT ↔ THB

POSTCreate Crypto → THB Payment
Endpoint URL
https://testnet.trustsig.xyz/v1/payment/createInvoicePayment/crypto

Authentication Status

API Key is required for all requests Webhook Secret

Headers

x-api-key
Required

API Key for authentication

x-signature
Required

HMAC-SHA256 signature for authentication

x-timestamp
Required

Timestamp (milliseconds) for 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 Required

Customer Name

one_time_address
boolean Optional

สร้าง address ใหม่สำหรับ payment นี้เท่านั้น

amount
string Required

Amount

from_currency
string Required

สกุลที่ลูกค้าจ่าย

to_currency
string Required

สกุลที่รับฝากเข้าระบบ

chain
enum Required

Blockchain network

Convert
auto_convert
boolean Required

ต้องเป็น true เพื่อเปิด convert USDT → THB อัตโนมัติ

Convert
convert_to
enum Required

สกุลที่ merchant จะได้รับหลัง convert (THB เท่านั้น)

fee_subtract
number Optional

จำนวนค่าธรรมเนียมที่หักจากยอด

payment_domain
string Required

โดเมนของระบบชำระเงิน