通过 ID 获取账单详情
cURL
curl --request GET \ --url https://api.example.com/api/v1/invoices/{invoice_id}
status
payment_address
price_trx
price_usdt
tx_hash
pending
paid
delegated
expired
failed
curl https://api.tronrental.com/v1/invoices/12345 \ -H "X-API-Key: your_api_key"
{ "invoice_id": 12345, "payment_address": "TPaymentAddress...", "address": "TRecipientAddress...", "energy_amount": 65000, "duration_hours": 1, "price_trx": "2.75", "price_usdt": "0.64", "status": "delegated", "tx_hash": "a1b2c3d4e5f6...", "paid_at": "2026-03-05T12:05:00Z", "delegated_at": "2026-03-05T12:05:30Z", "expires_at": "2026-03-05T12:30:00Z", "created_at": "2026-03-05T12:00:00Z" }