Billing

Create a Stripe Checkout session for a one-time credit pack

Requires an API key or signed-in session. Packs: starter = Starter Pack (3,000 credits, $9), pro = Pro Pack (25,000 credits, $49), business = Business Pack (125,000 credits, $199). Legacy ids small/medium/large are accepted as aliases for starter/pro/business.

post/v1/billing/checkout

Request

  • Base URL: https://archtools.dev
  • URL: https://archtools.dev/v1/billing/checkout
  • Auth: API key in header x-api-key

Request body

pack'starter' | 'pro' | 'business' required

Credit pack id (the id from GET /v1/billing/plans). Legacy aliases small/medium/large map to starter/pro/business. The key plan is also accepted as an alias for pack.

Response

Stripe Checkout session created

okboolean
urlstring

Stripe Checkout URL — open it to complete payment

session_idstring
request_idstring

Changes

No recorded changes to this operation across all 1 revision of this API.