充值与支付

GET /oneaster/v1/billing/preview

统一只读充值积分预览(Stripe 与 NOWPayments)

统一查询 Stripe 或 NOWPayments 充值预计积分与支付参数,Cache-Control: no-store。要求原生登录会话或具备 wallet:read 的 PAT,拒绝推理 API Key。amount_usd_cents 为原始支付本金美元分;Stripe 金额须为当前商品单价的整数倍;NOWPayments 金额范围依商户配置(默认 15–10000 美元),可指定 pay_currency 与 fee_mode(deduct / on_top)。返回字段包含 expected_credits、credits_per_usd、credit_basis 及 checkout_request(用于提交创建订单)。预览接口不创建订单、不冻结资金、不估计未知手续费,也不保证到账。

GET/oneaster/v1/billing/preview

身份验证

Authorizationstring必填

使用登录取得的 native access_token(部分接口支持带对应权限的 PAT);身份要求:登录 access_token。

Authorization: Bearer $ONEASTER_ACCESS_TOKEN

参数

providerenum必填

query

amount_usd_centsstring必填

query

pay_currencyenum

query

fee_modeenum

query