定期订单详情
代会员调用 · 必带
x-on-behalf-of
GET /v1/earn/orders 那份清单只有 status 与 maturity_date ——做不出订单详情页。
⚠ 下单那一刻利率就快照进订单行了,所以年化 / 预计利息 / 到期本息只有这一条给得出来。产品行上的 apr_bps 是「现在下单会拿到的」,不是这一单的。
expected_interest 与到期实收是同一个数(我方结算时会重算并断言相等)—— 可以直接显示成「到期可得」。
⚠ rollover_mode 的枚举是 none / principal / principal_interest —— 不是 both。申购接口对认不出的值是静默回落到产品默认,也就是「选了续本息、界面也选中了、成交却是别的档」,全程零提示。
⚠ renewable 是产品级总闸,要和 rollover_mode 一起看:它关掉之后这一单不续,哪怕订单行上写着要续。
路径参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id |
string | 必填 | 订单 id。带不带 ero_ 前缀都收。 |
请求头
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
x-on-behalf-of |
string | 必填 |
响应
200OK
{
"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"
}404
not_found请求
curl -X GET 'https://api.zise.com/v1/earn/orders/{id}' \
-H 'x-auth-token: Bearer $TOKEN' \
-H 'x-on-behalf-of: $MEMBER_ID'const res = await fetch("https://api.zise.com/v1/earn/orders/{id}", {
method: "GET",
headers: {
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
});
// 金额按字符串读,别让它变成 number
const data = await res.json();import requests
res = requests.get(
"https://api.zise.com/v1/earn/orders/{id}",
headers={
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
},
)
# 金额用 Decimal(str(...)),不要 float
data = res.json()req, _ := http.NewRequest("GET", "https://api.zise.com/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)
// 金额字段用 string 接,不要 float64HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zise.com/v1/earn/orders/{id}"))
.header("x-auth-token", "Bearer $TOKEN")
.header("x-on-behalf-of", "$MEMBER_ID")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
// 金额字段用 String / BigDecimal,不要 double$ch = curl_init('https://api.zise.com/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);
// 金额用 bcmath / 字符串,不要 floatval
200
{
"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"
}