Skip to content
Sign in Create account

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_url string
  • plan string
    One of: "monthly", "yearly"
  • success_url string

Generated sample

{
  "cancel_url": "string",
  "plan": "monthly",
  "success_url": "string"
}

Responses

200 Hosted checkout URL.

application/json object

  • url string required

Generated sample

{
  "url": "string"
}
401 The cloak API key is missing or invalid (invalid_api_key).

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
409 checkout_in_progress or active_subscription_exists.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
422 invalid_plan or invalid_return_url.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
429 too_many_requests. Limit is 30 requests per minute for the API key's user.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"

text/html string

502 stripe_error. Payment processing did not return a checkout URL.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
503 billing_not_configured or billing_price_mismatch. Retry-After is 3600. No checkout is opened.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"