Z Zise Developers 简体中文

Member limit usage (read-only; maximums are not returned)

GET /v1/members/{id}/limits scope: members:read
On behalf of a member · x-on-behalf-of required

Lets you explain why a transaction was rejected: the failure code deliberately returns only limit_exceeded, without thresholds.

⚠ Maximums are not returned. Limits are platform-configured and vary with risk tiers. Returning a figure would encourage a separate local eligibility check, creating two sources of truth and drift where your check passes but ours still rejects.

⚠ The member is identified by the path parameter; x-on-behalf-of has no effect here. The path accepts both identifier types.

window includes its scope and date, for example exch:day:USDT-USD:2026-08-12 or itr:send:day:2026-08-12. It is returned unchanged and should be displayed unchanged. Splitting it loses information, and the window-key format is not a public contract; it expands as business lines are added.

used is a fixed-point integer string with the asset's ledger_scale, obtained from GET /v1/assets. Members with no usage return an empty array.

Path Parameters

FieldTypeRequiredDescription
id string Required external_member_id or mem_<uuid>. This endpoint ignores x-on-behalf-of; the path parameter alone determines the member.

Response

200OK
{
  "data": [
    {
      "window": "exch:day:USDT-USD:2026-08-12",
      "asset": "USDT",
      "used": "500000000",
      "op_count": 3,
      "updated_at": "2026-08-12T09:31:02.441Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}
404member_not_found, including members belonging to another merchant.
Request
curl -X GET 'https://api.zinfra.vip/v1/members/{id}/limits' \
  -H 'x-auth-token: Bearer $TOKEN' \
  -H 'x-on-behalf-of: $MEMBER_ID'
const res = await fetch("https://api.zinfra.vip/v1/members/{id}/limits", {
  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/members/{id}/limits",
    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/members/{id}/limits",
    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/members/{id}/limits"))
    .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/members/{id}/limits');
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.
200
{
  "data": [
    {
      "window": "exch:day:USDT-USD:2026-08-12",
      "asset": "USDT",
      "used": "500000000",
      "op_count": 3,
      "updated_at": "2026-08-12T09:31:02.441Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}