Top-ups and payments

GET /oneaster/v1/billing/stripe/preview

Native access token · GET /oneaster/v1/billing/stripe/preview

只读查询 Stripe 实时单价与预计到账积分(Cache-Control: no-store)。amount 为整数 quota-USD 购买数量(1–10000,非美分也非积分)。要求原生登录会话或具备 wallet:read 的 PAT,拒绝推理 API Key。Stripe 优惠码若已启用则在 Checkout 应用,此时 discount_reason=checkout_promotion_only;未启用时为 no_discount,以 promotion_codes_enabled 为准,不改变预计购买积分。预览不创建订单、不冻结资金。

GET/oneaster/v1/billing/stripe/preview

Authorizations

Authorizationstringrequired

Use a native login access_token (or a scoped PAT where supported); required access: Native access token.

Authorization: Bearer $ONEASTER_ACCESS_TOKEN

Parameters

amountintegerrequired

query