Create Checkout Session

Steps: (1) (a) Validate and decode the jwt, (b) check for an org_id (2) Resolve the subscription_plan (3) Check for an already-active same subscription within the org (4) Check if the current org membership count <= subscription_plan’s limit (5) Get the customer_id (6) Create the checkout session url

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
price_nameenumRequired
Allowed values:

Response

Successful Response
urlstring

Errors