按日查询余额流水

GEThttps://api.astrum.shop/v1/balance/history
权限范围 wallet:read

一个 UTC 自然日内的充值、激活码购买、激活码价格退款、调整和余额提取记录,最新的在前。不带 date 即为当天。

参数

date
查询 · string | null

日期,格式 YYYY-MM-DD(UTC)。

响应

date
string

日期,格式 YYYY-MM-DD(UTC)。

operations
array

当天的余额流水,最新的在前。

↳operation_id
string

流水编号。

↳type
string

流水类型:

top_up
充值
order
API 订单付款,仅见于 2026-10-15 之前的记录
refund
退回余额:质保退回的激活码价格(激活码见 key_id)
correction
调整
withdrawal
提取余额
keys
购买激活码
key_refund
未使用激活码的价格已退回余额,激活码已注销
opt_recount
退回激活码后按批发价重算该次购买:购买的批发档位降低——已扣除剩余激活码的差价(负数),或退还已扣除的差价(正数);购买见 purchase_id
↳amount_usdt
string

带符号的金额:充值和退款为正数,购买激活码和余额提取为负数。

↳balance_after_usdt
string

变动后余额。

↳order_id
string | null

我们这边的内部编号:质保退款时为激活码的开通尝试(激活码本身见 key_id),旧记录中为 API 订单;否则为 null。

↳purchase_id
string | null

激活码购买编号:购买时返回;否则为 null。

↳ref
string | null

您在购买激活码时传入的订单号(ref);否则为 null。

↳key_id
string | null

激活码:其价格退回余额时返回;否则为 null。

↳network
string | null

转账网络:充值时返回;否则为 null。

↳tx_hash
string | null

链上转账哈希:充值时返回;否则为 null。

↳comment
string | null

调整或余额提取的原因。

↳created_at
string

时间(UTC)。

所有接口通用的错误,详见「错误码」章节:

10001 invalid_key10002 key_scope_missing10003 ip_not_allowed10004 browser_not_allowed10005 account_suspended20001 too_many_requests90002 api_disabled90001 internal_error
测试 USDT,
密钥 ask_test_…
curl https://api.astrum.shop/v1/balance/history \
  -H "Authorization: Bearer $ASTRUM_KEY"