Pular para o conteúdo

Self-hosted licensing​


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.

Corpo da Requisição​

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

Respostas​

checkout_url

application/json
JSON
{
}

Playground​

Corpo

Exemplos​


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.

Parâmetros​

Parâmetros de Consulta

session_id*

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

Tipo
string
Obrigatório

Respostas​

OK

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

Playground​

Variáveis
Chave
Valor

Exemplos​


Desenvolvido por VitePress OpenAPI