billing
Start a prepaid top-up.
Changed onStarts a one-time Stripe Checkout to add prepaid credit; the wallet is credited when Stripe's webhook confirms payment. Requires the billing:write scope.
post/v1/billing/checkout-session
Request
- Base URLhttps://api.smolmachines.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Start a one-time Stripe Checkout to add prepaid credit. Request body: {"amount_usd": <1..=2000>}. Returns {"url": <stripe-hosted checkout url>}; redirect the browser there. The wallet is credited only when Stripe's webhook confirms payment.
Changes
- info
endpoint added
- info