---
title: "Create a Stripe Checkout URL to upgrade a hosted trial to paid"
method: POST
path: "/onprem/v1/hosted-upgrade/checkout"
tags: ["onprem", "onprem", "__public__"]
---

# Create a Stripe Checkout URL to upgrade a hosted trial to paid

`POST /onprem/v1/hosted-upgrade/checkout`

## Request body

- HostedUpgradeRequest — A hosted deployment asks central for a Stripe self-serve URL. Authenticated by the license key (like /activate), so the deployment proxies its logged-in admin to checkout without central needing a customer session.
  - `license_key` string, required — Raw license key of the deployment
  - `deployment_id` string, required — Runtime deployment id

## Response `200`

Success

- SuccessResponseHostedUpgradeCheckoutResponse
  - `success` true, required — Flag for it request was successful
  - `data` HostedUpgradeCheckoutResponse, required
    - `checkout_url` string, required — Stripe Checkout URL to redirect the customer to
  - `meta` ResponseMeta
    - `requestId` string — Unique request identifier for tracing
    - `timestamp` string, date-time — Response timestamp (UTC)
    - `durationMs` integer, nullable — Request processing time in milliseconds

## Other responses

- `401` — Auth Invalid Token
- `403` — Forbidden Insufficient Permissions
- `404` — Resource Not Found
- `409` — Resource Conflict
- `422` — Validation Failed
- `426` — Business Quota Exceeded
- `500` — Internal Error
- `502` — External Service Error

---

[API](https://skmtc.dev/definite/apis/defapi.md) · [All operations](https://skmtc.dev/definite/apis/defapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/definite/defapi/revisions/5ea378187147/schema)
