Earn product details
Merchant account
min_amount / max_amount are integer strings in minor units, using the asset’s ledger_scale, not decimal strings.
Response fields are listed below. Products with kind = flexible have term_days = 0. rollover_mode values are none / principal / principal_interest, not both.
⚠ Fixed-term apr_bps is the rate available for a new subscription now, not any existing order’s rate. Fixed-term rates are snapshotted into the order at subscription; changing the listed rate does not affect existing orders. Flexible rates work differently: a change adds a history row, and yesterday’s interest uses yesterday’s rate segment.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | Required | Product ID, with or without ern_. |
Response
200Response shape after the fix.
min_amount / max_amount of 0 mean unlimited.{
"id": "ern_7d2b48ae-19c3-4f60-8c55-0ab3e9f21744",
"asset": "USDT",
"kind": "fixed",
"term_days": 90,
"apr_bps": 620,
"min_amount": "100000000",
"max_amount": "0",
"ledger_scale": 6,
"renewable": true,
"rollover_mode": "principal",
"status": "active"
}403
insufficient_scope404
not_found: product nonexistent or not available to you. Same response for both.500
api_error: currently always returned, as described above; your request is not the problem.Request
curl -X GET 'https://api.zinfra.vip/v1/earn/products/{id}' \
-H 'x-auth-token: Bearer $TOKEN'const res = await fetch("https://api.zinfra.vip/v1/earn/products/{id}", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
},
});
// Keep monetary amounts as strings, never numbers.
const data = await res.json();import requests
res = requests.get(
"https://api.zinfra.vip/v1/earn/products/{id}",
headers={
"x-auth-token": "Bearer $TOKEN",
},
)
# Use Decimal(str(...)) for amounts, not float.
data = res.json()req, _ := http.NewRequest("GET", "https://api.zinfra.vip/v1/earn/products/{id}",
nil)
req.Header.Set("x-auth-token", "Bearer $TOKEN")
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/products/{id}"))
.header("x-auth-token", "Bearer $TOKEN")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// Use String / BigDecimal for amounts, not double.$ch = curl_init('https://api.zinfra.vip/v1/earn/products/{id}');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-auth-token: Bearer $TOKEN',
],
]);
$res = curl_exec($ch);
// Use bcmath / strings for amounts, not floatval.
200
{
"id": "ern_7d2b48ae-19c3-4f60-8c55-0ab3e9f21744",
"asset": "USDT",
"kind": "fixed",
"term_days": 90,
"apr_bps": 620,
"min_amount": "100000000",
"max_amount": "0",
"ledger_scale": 6,
"renewable": true,
"rollover_mode": "principal",
"status": "active"
}