Generate Payment QR Code
Generates QR code data for payment addresses. Supports both on-ramp (ON_RAMP_BUY) and off-ramp (OFF_RAMP_SELL) orders.
For Off-Ramp Orders:
- QR code contains escrow wallet address
- Customer can scan to send USDT to escrow
- Amount is pre-filled in the QR code
For On-Ramp Orders:
- QR code contains customer’s wallet address
- Shows where customer will receive USDT
- Amount is pre-filled in the QR code
QR Code Format:
- Tron:
tron:{address}?amount={amount_in_smallest_unit} - Ethereum:
ethereum:{address}?value={amount_in_smallest_unit}
The frontend can use any QR code library to generate an image from the qr_code_data or uri field.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Order ID
Response
QR code data generated successfully
QR code data string (payment URI)
"tron:TYuPXD3E3ckuTAmCU5kiuNQjnYrcSBViMq?amount=12500000"
Payment address (escrow for off-ramp, customer wallet for on-ramp)
"TYuPXD3E3ckuTAmCU5kiuNQjnYrcSBViMq"
USDT amount in standard format
"12.50000000"
Blockchain network
"tron"
Full payment URI (same as qr_code_data)
"tron:TYuPXD3E3ckuTAmCU5kiuNQjnYrcSBViMq?amount=12500000"