Create Invoice
Creates a payment invoice that generates a unique deposit address. When payment (TRX or USDT) is received, energy is automatically delegated to the target address.
Useful for integrations where end-users pay directly — no account balance needed.
Request body
Target TRON address to receive energy
Energy amount (32,000 – 5,000,000). Use this OR transfer_count.
Number of USDT transfers (1 – 100). Each transfer = 65,000 energy.
Rental duration (1 or 24 hours)
Response
Unique invoice identifier
Unique deposit address — send TRX or USDT here
Invoice status: pending, paid, delegated, expired, failed
ISO 8601 expiration timestamp
Example
curl -X POST https://api.tronrental.com/v1/invoices \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"address": "TRecipientAddress...",
"transfer_count": 1,
"duration_hours": 1
}'
{
"invoice_id": 789,
"payment_address": "TPaymentAddress...",
"address": "TRecipientAddress...",
"energy_amount": 65000,
"duration_hours": 1,
"price_trx": "2.75",
"price_usdt": "0.64",
"status": "pending",
"expires_at": "2026-03-05T12:30:00Z"
}
Invoices expire after 30 minutes if no payment is received.
Both TRX and USDT payments are accepted at the generated address.