Z Zise Developers 简体中文

Deposit details (including on-chain provenance)

GET /v1/deposits/{id} scope: deposits:read
Merchant account

Call as the merchant, with no x-on-behalf-of required. You may have your own business reference without knowing which member it belongs to. Requiring the member before allowing the lookup reverses the dependency; the response tells you external_member_id.

This is the main way to verify exactly how a declaration was recorded: amount, asset, posting time, and your original chain-provenance fields in one response.

The path parameter is reference, accepted with or without the dep_ prefix.

⚠⚠ This path does not work for references containing /. Slashes delimit URL path segments; most gateways decode %2F or reject it before the request reaches us. Escaping it again does not reliably solve this. Use GET /v1/deposits?reference=<流水号> instead; query parameters do not have this issue.

⚠ amount has the same format as the list endpoint: fixed-point integer string plus ledger_scale, not the decimal-point representation returned by POST /v1/deposits. See the list endpoint for the reason.

⚠ An unrecorded reference and a reference belonging to another merchant return exactly the same 404. Distinguishing them would enable cross-merchant reference probing.

Path Parameters

FieldTypeRequiredDescription
id string Required Your original reference, with or without the dep_ prefix.

Response

200OK
{
  "id": "dep_0xa3f1c2e9-0",
  "reference": "0xa3f1c2e9-0",
  "external_member_id": "u_10023",
  "asset": "USDT",
  "amount": "1500000000",
  "ledger_scale": 6,
  "status": "credited",
  "network": "BSC",
  "txid": "0xa3f1c2b7d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f",
  "from_address": "0x9C3f1B7a5E2d4C6b8A0f2E4d6C8b0A2f4E6d8C0b",
  "to_address": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
  "created_at": "2026-08-12T08:04:57.204Z"
}
404not_found: the reference has not been recorded or belongs to another merchant. Both cases return the same response.
Request
curl -X GET 'https://api.zinfra.vip/v1/deposits/{id}' \
  -H 'x-auth-token: Bearer $TOKEN'
const res = await fetch("https://api.zinfra.vip/v1/deposits/{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/deposits/{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/deposits/{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/deposits/{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/deposits/{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": "dep_0xa3f1c2e9-0",
  "reference": "0xa3f1c2e9-0",
  "external_member_id": "u_10023",
  "asset": "USDT",
  "amount": "1500000000",
  "ledger_scale": 6,
  "status": "credited",
  "network": "BSC",
  "txid": "0xa3f1c2b7d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f",
  "from_address": "0x9C3f1B7a5E2d4C6b8A0f2E4d6C8b0A2f4E6d8C0b",
  "to_address": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
  "created_at": "2026-08-12T08:04:57.204Z"
}