Skip to content

充值记录查询 ​

充值发现、确认与入账通知使用交易对象。外部出款的提交与结果查询见 资金池提款。

交易对象 ​

查询响应与 TRANSACTION_* 回调的 data 使用同一结构。以下字段说明适用于 kind = DEPOSIT 的充值记录;程序应按 kind 选择处理流程,枚举范围见 OpenAPI。

字段类型说明
idUUID交易 ID,用于查询与业务去重
kind / settlementstring充值为 DEPOSIT / ON_CHAIN
status / subStatusstring / string | null确认、入账和异常原因,见 充值状态
assetId / networkKeystring资产和网络标识
decimalsinteger资产精度
amountRawstring链上转入金额,最小单位十进制整数字符串
feeRawstring | null当前充值为 "0";交易所自行管理用户服务费
netAmountRawstring仅已入账充值出现;当前充值等于 amountRaw
accountingModestring充值记账方式,当前为 CUSTODY;字段枚举见 OpenAPI
networkFeeRaw / networkFeeAssetIdstring | null本平台实际支付的网络成本及原生币资产标识;充值为 null
source / destinationobject地址、walletId、customerRefId、uid;不适用字段为 null
txHashstring | null链上交易哈希
externalTxId / notestring | null业务引用与备注,充值通常为 null
createdAt / updatedAtstringRFC 3339 时间
json
{
  "id": "0192a4e0-5c00-7d00-8e00-0f1011121314",
  "kind": "DEPOSIT",
  "settlement": "ON_CHAIN",
  "status": "COMPLETED",
  "subStatus": null,
  "assetId": "USDT_ERC20",
  "networkKey": "ethereum",
  "decimals": 6,
  "amountRaw": "1000000",
  "feeRaw": "0",
  "netAmountRaw": "1000000",
  "accountingMode": "CUSTODY",
  "networkFeeRaw": null,
  "networkFeeAssetId": null,
  "source": { "walletId": null, "address": "0x90f79bf6eb2c4f870365e785982e1f101e93b906", "customerRefId": null, "uid": null },
  "destination": { "walletId": "0192a4c1-8b10-7e22-b3a1-6f1e2d3c4b5a", "address": "0x8ba1f109551bd432803012645ac136ddd64dba72", "customerRefId": "u-10001", "uid": "48213907" },
  "txHash": "0x9a8b7c6d5e4f30211203f4e5d6c7b8a9f0e1d2c3b4a5968778695a4b3c2d1e0f",
  "externalTxId": null,
  "note": null,
  "createdAt": "2026-10-05T07:00:00Z",
  "updatedAt": "2026-10-05T07:02:00Z"
}

查询交易 ​

http
GET /v1/transactions/{id}

返回 200 OK 与交易对象;资源不存在或不属于本租户时返回 404 NOT_FOUND。

交易列表 ​

http
GET /v1/transactions?customerRefId=u-10001&kind=DEPOSIT&status=COMPLETED&createdFrom=2026-10-01T00:00:00Z&createdTo=2026-10-02T00:00:00Z&limit=200

充值对账请指定 kind=DEPOSIT。参数均可选,可组合使用:

参数类型说明
walletIdUUID付款或收款钱包 ID
customerRefIdstring付款或收款用户的业务标识
kindstring充值查询使用 DEPOSIT
statusstring对外状态,如 COMPLETED
assetIdstring资产标识
createdFrom / createdToRFC 3339创建时间下界包含、上界不包含
limitinteger1–200,默认 50
beforeUUID上页的 nextBefore

返回 200 OK,结构为 { "items": [交易对象], "nextBefore": null }。按创建时间倒序;nextBefore 非空时继续翻页。时间格式错误返回 422 BAD_REQUEST。

充值加账条件为 status=COMPLETED 且 subStatus=null,应结合 netAmountRaw;不能只按 COMPLETED 加账。回调去重、乱序和补查方式见 回调。