Billing

Create a Stripe Checkout session for a monthly subscription plan

Requires an API key or signed-in session. Plans: starter-monthly (10,000 credits/mo, $19), pro-monthly (30,000 credits/mo, $49), growth-monthly (75,000 credits/mo, $99), business-monthly (175,000 credits/mo, $199).

post/v1/billing/subscribe

Request

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

Request body

plan'starter-monthly' | 'pro-monthly' | 'growth-monthly' | 'business-monthly' required

Subscription plan id (the id from GET /v1/billing/plans). Bare tier names sent as plan (starter, pro, growth, business) expand to the -monthly plan id.

Response

Stripe Checkout session created

okboolean
urlstring

Stripe Checkout URL — open it to complete payment

session_idstring
planstring
request_idstring

Changes

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