Get Order

Retrieve details of an existing TRON network resource order.

Endpoint

GET https://tronspace.vip/api/public/order/{id}

Path Parameters

id
string
required

Order ID (UUID v4) to retrieve

Response

Response Fields

Order Information

id
string

Unique order identifier (UUID v4)

status
enum

Order status:

  • PAYMENT_PENDING - Initial state, awaiting payment
  • PAYMENT_FAILED - Payment not received by paymentDue
  • PAYMENT_CONFIRMED - Payment transaction verified
  • ORDER_PENDING - Processing resource delegation
  • ORDER_COMPLETED - Resources successfully delegated

Resource Details

details
object

Payment Information

payment
object

Delegations

delegations
array

Array of delegation objects when the order is completed.

Example Request

curl -X GET \
  'https://tronspace.vip/api/public/order/61553646-39de-4ab2-bd0d-d51a22da9679' \
  -H 'x-api-key: your-api-key'

Example Response

{
  "json": {
    "id": "71e6b03a-dab7-4cc4-b944-0607c3ca3b47",
    "status": "ORDER_COMPLETED",
    "details": {
      "resourceType": "ENERGY",
      "amount": {
        "value": 300,
        "sunValue": 941248400
      },
      "duration": "FIVE_MIN",
      "target": [
        "TAA9KiqKZSU2tUhqrPpYBHPprxnKVwnik5"
      ]
    },
    "payment": {
      "amount": {
        "trx": 1.8,
        "sun": 1800000
      },
      "status": "ORDER_COMPLETED",
      "dueDate": "2025-02-10 14:30:17",
      "paymentAddress": "TPhkG9HtZdknVFA11jFFsceMKTiiHgy62A",
      "transactionId": "9aab50ca24246c3911d69df9e75c675b19610854076bfd4ff75e2d039a99c80f",
      "paidAt": "2025-02-10 14:20:36"
    },
    "delegations": [
      {
        "at": "2025-02-10 14:20:50",
        "to": "TAA9KiqKZSU2tUhqrPpYBHPprxnKVwnik5",
        "amount": 941248400,
        "tx": "b73a9ed2b41dbda8c628c981926501568082db2e433681751e94e4ddc660669d",
        "status": "ACTIVE",
        "reclaimDate": "2025-02-10 14:25:50"
      }
    ],
    "timestamps": {
      "created": "2025-02-10 14:20:17",
      "updated": "2025-02-10 14:20:50"
    }
  },
  "meta": {
    "values": {
      "delegations": ["undefined"]
    }
  }
}

This update includes the “delegations” field in both the response fields explanation and the example response.