余额与支付
Updated:
权限:account:read,account:write,计费:撰写
在本组中
工具 | 功能说明 | |
|---|---|---|
🟢 | 当前余额以美元计。 | |
🟢 | 外部支付方式(PayPal、银行卡、加密货币等)及其对应ID。 | |
💳 | 创建一个充值功能,并返回支付链接。 | |
🟢 | 自动充值设置:已启用、阈值、金额、绑定卡、上次尝试。 | |
💳 | 开启或更改自动充值:当余额降至 | |
🟡 | 关闭自动充值功能。 |
get_balance
🟢read-only · account:read
当前余额以美元计。
list_payments
🟢read-only · account:read
外部支付方式(PayPal、银行卡、加密货币等)及其ID。账户余额不作列示——该信息始终可通过paymentId: "balance".
add_balance
💳spends money · billing:write
通过外部支付方式为账户充值。已与账户绑定的银行卡将立即扣款;其他支付方式则会返回一个支付链接,需在浏览器中完成支付。
参数 | 类型 | 描述 |
|---|---|---|
| number | 数量,至少 1 |
| 字符串 | 整数 | 方法 ID 来自list_payments |
get_autotopup
🟢read-only · account:read
自动充值设置:已启用、阈值、金额、绑定卡、上次尝试。
set_autotopup
💳spends money · billing:write
开启或更改自动充值:当余额降至threshold,amount 费用将计入已绑定的卡片。该卡片必须先在Proxy-Seller控制面板中完成绑定。
参数 | 类型 | 描述 |
|---|---|---|
| number | 美元 |
| number | 美元 |
| 字符串 | 绑定卡订阅;默认保留现有内容 |
disable_autotopup
🟡changes account state · account:write
关闭自动充值功能。相关设置将保留以便后续重新启用。无需任何参数。