Buying credits from your code
Non-breaking changes to version 2026-10-05.
- New operation:
POST /v1/billing/checkoutreturns a Stripe Checkout page for a credit pack, the Business plan or the Records add-on. See Credits and billing. - It needs a live key with the new
billing:managescope. Keys made in the dashboard carry it from this date. Older keys do not: create a new key to use the route. - A monthly cap in credits can be set in the dashboard, and so can an automatic top-up.
- New error codes:
monthly_cap_reached(402),test_key_on_live_route(403) andbilling_profile_incomplete(422).