Start Unlimited checkout
POST /api/v1/extension/checkout
Starts a hosted checkout for an Unlimited licence on the API key's account. The plan field is monthly or yearly; when it is omitted the server selects yearly. Return URLs must use an allowlisted host. This route does not inspect message content. When signing or the catalog price is not configured the response is 503 billing_not_configured and no checkout is opened. A catalog price that does not match the locked amount, currency or interval returns 503 billing_price_mismatch.
Authenticate with an API key.
Request body (optional)
application/json object
cancel_urlstringplanstringOne of:"monthly","yearly"success_urlstring
Generated sample
{
"cancel_url": "string",
"plan": "monthly",
"success_url": "string"
}Responses
200 Hosted checkout URL.
application/json object
urlstring required
Generated sample
{
"url": "string"
}401 The cloak API key is missing or invalid (invalid_api_key).
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
409 checkout_in_progress or active_subscription_exists.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
422 invalid_plan or invalid_return_url.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
429 too_many_requests. Limit is 30 requests per minute for the API key's user.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
text/html string
502 stripe_error. Payment processing did not return a checkout URL.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"
503 billing_not_configured or billing_price_mismatch. Retry-After is 3600. No checkout is opened.
application/json ErrorWithCode
error_codestring requiredmessagestring requiredrequest_idstring (uuid)statusstring requiredExample:"error"