Earn products, filtered by grant_scope and authorization records
Returns only products available to you: your own unless marked unavailable, explicitly authorized products, or products an upstream merchant opens to its entire subtree. Draft, archived, and delisted products are excluded.
⚠ Listed does not mean subscribable. This endpoint checks visibility only. Subscription rechecks access scope, sale start/end, total capacity, per-member capacity, KYC, and account restrictions. A listed product rejecting subscription is therefore normal, not configuration drift.
⚠ Products and term options are administrative records; we do not release software to add them. Do not hardcode the product list in your UI.
apr_bps is the annualized rate in basis points, so 350 = 3.50%. For flexible products it is the current quoted rate and may change; fixed-term rates are snapshotted at subscription.
Parameters
This endpoint takes no parameters: no path parameters, query parameters or request body.
For the authentication header (x-auth-token) and on-behalf-of header
(x-on-behalf-of), see
Authentication and Signing.
Response
status is the product lifecycle state, such as active / paused / scheduled / ended. Preserve unknown values.{
"data": [
{
"id": "ern_3a91f0c2-5d17-4e88-b2a0-91c7d4e6b501",
"code": "FLEX-USDT-01",
"kind": "flexible",
"asset": "USDT",
"term_days": 0,
"apr_bps": 350,
"ledger_scale": 6,
"status": "active"
},
{
"id": "ern_7d2b48ae-19c3-4f60-8c55-0ab3e9f21744",
"code": "FIX-USDT-90",
"kind": "fixed",
"asset": "USDT",
"term_days": 90,
"apr_bps": 620,
"ledger_scale": 6,
"status": "active"
}
],
"next_cursor": null,
"has_more": false
}insufficient_scope: this key lacks earn:readcurl -X GET 'https://api.zinfra.vip/v1/earn/products' \
-H 'x-auth-token: Bearer $TOKEN'const res = await fetch("https://api.zinfra.vip/v1/earn/products", {
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",
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",
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"))
.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');
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.
{
"data": [
{
"id": "ern_3a91f0c2-5d17-4e88-b2a0-91c7d4e6b501",
"code": "FLEX-USDT-01",
"kind": "flexible",
"asset": "USDT",
"term_days": 0,
"apr_bps": 350,
"ledger_scale": 6,
"status": "active"
},
{
"id": "ern_7d2b48ae-19c3-4f60-8c55-0ab3e9f21744",
"code": "FIX-USDT-90",
"kind": "fixed",
"asset": "USDT",
"term_days": 90,
"apr_bps": 620,
"ledger_scale": 6,
"status": "active"
}
],
"next_cursor": null,
"has_more": false
}