billing

Create a Stripe Checkout Session for a tier upgrade

Returns a Stripe Checkout URL that upgrades the caller's API key to the requested {tier, interval} price. Reuses the caller's existing Stripe customer ID when one is already linked.

post/v1/billing/checkout

Request

  • Base URL: https://api.ctindex.io
  • URL: https://api.ctindex.io/v1/billing/checkout
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Cookies

ctix_sessionstring nullable

Request body

tierstring required
intervalstring

Response

Successful Response

checkout_urlstring required
session_idstring required

Changes

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