Fixed-term order details
x-on-behalf-of required
The GET /v1/earn/orders list contains only status and maturity_date, insufficient for an order-detail page.
⚠ The rate is snapshotted into the order at subscription, so only this endpoint can provide its annualized rate, estimated interest, and principal plus interest at maturity. The product’s apr_bps is what a new order gets now, not this order’s rate.
expected_interest equals the actual maturity interest; we recalculate and assert equality at settlement. It can be displayed directly as the amount receivable at maturity.
⚠ rollover_mode values are none / principal / principal_interest, not both. Unknown subscription values silently fall back to the product default: a UI may show principal-and-interest renewal while another option executes, without any warning.
⚠ renewable is the product-level master switch and must be read with rollover_mode. When disabled, this order does not renew even if its row specifies renewal.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | Required | Order ID, with or without ero_. |
Request Headers
| Field | Type | Required | Description |
|---|---|---|---|
x-on-behalf-of |
string | Required |
Response
{
"id": "ero_31f0",
"product_id": "ern_8c1d",
"asset": "USDT",
"ledger_scale": 6,
"display_scale": 2,
"status": "accruing",
"principal": "1000.000000",
"apr": "5.00%",
"term_days": 90,
"expected_interest": "12.328767",
"total_at_maturity": "1012.328767",
"value_date": "2026-08-15",
"maturity_date": "2026-11-13",
"rollover_mode": "principal_interest",
"renewable": true,
"created_at": "2026-08-14T09:00:00.000Z"
}not_foundcurl -X GET 'https://api.zinfra.vip/v1/earn/orders/{id}' \
-H 'x-auth-token: Bearer $TOKEN' \
-H 'x-on-behalf-of: $MEMBER_ID'const res = await fetch("https://api.zinfra.vip/v1/earn/orders/{id}", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
});
// Keep monetary amounts as strings, never numbers.
const data = await res.json();import requests
res = requests.get(
"https://api.zinfra.vip/v1/earn/orders/{id}",
headers={
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
)
# Use Decimal(str(...)) for amounts, not float.
data = res.json()req, _ := http.NewRequest("GET", "https://api.zinfra.vip/v1/earn/orders/{id}",
nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
req.Header.Set("x-on-behalf-of", "$MEMBER_ID")
res, err := http.DefaultClient.Do(req)
// Decode amount fields as string, not float64.HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zinfra.vip/v1/earn/orders/{id}"))
.header("x-auth-token", "Bearer $TOKEN")
.header("x-on-behalf-of", "$MEMBER_ID")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// Use String / BigDecimal for amounts, not double.$ch = curl_init('https://api.zinfra.vip/v1/earn/orders/{id}');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-auth-token: Bearer $TOKEN',
'x-on-behalf-of: $MEMBER_ID',
],
]);
$res = curl_exec($ch);
// Use bcmath / strings for amounts, not floatval.
{
"id": "ero_31f0",
"product_id": "ern_8c1d",
"asset": "USDT",
"ledger_scale": 6,
"display_scale": 2,
"status": "accruing",
"principal": "1000.000000",
"apr": "5.00%",
"term_days": 90,
"expected_interest": "12.328767",
"total_at_maturity": "1012.328767",
"value_date": "2026-08-15",
"maturity_date": "2026-11-13",
"rollover_mode": "principal_interest",
"renewable": true,
"created_at": "2026-08-14T09:00:00.000Z"
}