Skip to main content
GET
/
api
/
v1
/
invoices
/
{invoice_id}
Get Invoice
curl --request GET \
  --url https://api.example.com/api/v1/invoices/{invoice_id}

Get Invoice

Returns details and current status of an invoice.

Path parameters

invoice_id
number
required
Invoice ID

Response

Returns the full invoice object including status, payment_address, price_trx, price_usdt, tx_hash, and timestamps.

Invoice statuses

StatusDescription
pendingWaiting for payment
paidPayment received, delegation in progress
delegatedEnergy successfully delegated
expiredNo payment received before expiration
failedDelegation failed (payment refunded)

Example

curl https://api.tronrental.com/v1/invoices/12345 \
  -H "X-API-Key: your_api_key"
Response
{
  "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"
}