Skip to content

Start the self-hosted license purchase​

POST
/v1/public/self-hosted/buy

Creates the buyer's organization on the license-server and starts the Stripe checkout for the annual self-hosted plan (ultimate, the only plan sold here). Returns the Stripe checkout URL to redirect the buyer to. No authentication; rate limited per client IP (5 per minute). The company name is never logged. SaaS only.

Request Body​

application/json
JSON
{
  
"company": "string",
  
"plan": "string"
}

Responses​

checkout_url

application/json
JSON
{
}

Playground​

Body

Samples​


Get the license a self-hosted checkout paid for​

GET
/v1/public/self-hosted/checkout

Trades the Stripe Checkout Session id returned by the purchase for the license it paid for (reference, token, plan and expiry). 202 with {"status":"pending"} until the payment webhook has been processed; the caller polls. The session id is the only credential, so it is never logged, and the response is not cacheable. No authentication; rate limited per client IP (60 per minute). SaaS only.

Parameters​

Query Parameters

session_id*

Stripe Checkout Session id (cs_test_... or cs_live_...)

Type
string
Required

Responses​

OK

application/json
JSON
{
  
"expires_at": "string",
  
"plan_slug": "string",
  
"ref": "string",
  
"token": "string"
}

Playground​

Variables
Key
Value

Samples​


Powered by VitePress OpenAPI