Appearance
充值记录查询
充值发现、确认与入账通知使用交易对象。外部出款的提交与结果查询见 资金池提款。
交易对象
查询响应与 TRANSACTION_* 回调的 data 使用同一结构。以下字段说明适用于 kind = DEPOSIT 的充值记录;程序应按 kind 选择处理流程,枚举范围见 OpenAPI。
| 字段 | 类型 | 说明 |
|---|---|---|
id | UUID | 交易 ID,用于查询与业务去重 |
kind / settlement | string | 充值为 DEPOSIT / ON_CHAIN |
status / subStatus | string / string | null | 确认、入账和异常原因,见 充值状态 |
assetId / networkKey | string | 资产和网络标识 |
decimals | integer | 资产精度 |
amountRaw | string | 链上转入金额,最小单位十进制整数字符串 |
feeRaw | string | null | 当前充值为 "0";交易所自行管理用户服务费 |
netAmountRaw | string | 仅已入账充值出现;当前充值等于 amountRaw |
accountingMode | string | 充值记账方式,当前为 CUSTODY;字段枚举见 OpenAPI |
networkFeeRaw / networkFeeAssetId | string | null | 本平台实际支付的网络成本及原生币资产标识;充值为 null |
source / destination | object | 地址、walletId、customerRefId、uid;不适用字段为 null |
txHash | string | null | 链上交易哈希 |
externalTxId / note | string | null | 业务引用与备注,充值通常为 null |
createdAt / updatedAt | string | RFC 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。参数均可选,可组合使用:
| 参数 | 类型 | 说明 |
|---|---|---|
walletId | UUID | 付款或收款钱包 ID |
customerRefId | string | 付款或收款用户的业务标识 |
kind | string | 充值查询使用 DEPOSIT |
status | string | 对外状态,如 COMPLETED |
assetId | string | 资产标识 |
createdFrom / createdTo | RFC 3339 | 创建时间下界包含、上界不包含 |
limit | integer | 1–200,默认 50 |
before | UUID | 上页的 nextBefore |
返回 200 OK,结构为 { "items": [交易对象], "nextBefore": null }。按创建时间倒序;nextBefore 非空时继续翻页。时间格式错误返回 422 BAD_REQUEST。
充值加账条件为 status=COMPLETED 且 subStatus=null,应结合 netAmountRaw;不能只按 COMPLETED 加账。回调去重、乱序和补查方式见 回调。