billing

Switch the caller's active subscription to a different tier

Updates the caller's existing Stripe subscription in place — no Checkout redirect. Upgrades apply immediately with proration_behavior='create_prorations'; downgrades apply immediately with proration_behavior='always_invoice' (per task spec) so an immediate credit invoice is issued for the unused portion of the higher tier. Returns the resolved direction so the client can render the right confirmation copy.

post/v1/billing/change-plan

Request

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

Cookies

ctix_sessionstring nullable

Request body

tierstring required
intervalstring

Response

Successful Response

object required

Changes

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