Finish buying credit
Grants the credit a finished checkout paid for, if Stripe’s webhook has not already, and returns the billing object with it. Calling it again, or after the webhook, grants nothing more. A team that was postpaid is on prepaid credit from then on. Owners only. Console session only: an API key gets 403 console-only.
Authorizations
Body
Response
The billing object, with the credit.
Credit is what a team spends before its card is charged. It comes as grants: the sign-up credit, and any offstage gives (the YC deal), each with its own expiry or none. The sums count the grants still active. Work draws on the grants that were active when it was admitted, the soonest to expire first.
The credit ceiling: the most a card on file is trusted with at once beyond the free credit, set by offstage ($100 unless offstage set this team's own). While a card is on file, work that could pass it is refused with 402 credit-ceiling, whatever the budget says; the budget can only refuse sooner. Without a card the free credit is the limit.