---
title: "Complete Stripe checkout for paid tunnels project creation"
method: POST
path: "/api/workspaces/{workspaceId}/projects/tunnels/payment-checkout/complete"
tags: ["projects"]
---

# Complete Stripe checkout for paid tunnels project creation

`POST /api/workspaces/{workspaceId}/projects/tunnels/payment-checkout/complete`

## Request

- Base URL: `https://rstream.io`
- URL: `https://rstream.io/api/workspaces/{workspaceId}/projects/tunnels/payment-checkout/complete`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required

## Request body

- CompleteTunnelsProjectCheckoutParams
  - `checkoutSessionId` string, required

## Response `200`

Successful response.

- CompleteTunnelsProjectCheckoutResponse
  - `project` object, required
    - `id` string, required
    - `workspaceId` string, required
    - `name` string, required
    - `endpoint` string, required
    - `url` string, required: Deprecated. Use 'domain' and 'enginePort' instead.
    - `domain` string, required
    - `enginePort` integer, required
    - `turnPort` integer, required
    - `turnsPort` integer, required
    - `status` 'active' | 'unavailable' | 'error', required
    - `provider` 'aws' | 'gcp' | 'azure' | 'onpremise' | 'other', required
    - `region` string
    - `plan` 'basic' | 'pro' | 'enterprise', required
    - `deployment` 'shared' | 'dedicated', required
    - `regionLabel` string
    - `turnDomain` string, required
    - `turnRealm` string, required
    - `routing` 'regional' | 'global', required
    - `regionalEndpoints` object[], required
      - `provider` 'aws' | 'gcp' | 'azure' | 'onpremise' | 'other', required
      - `region` string, required
      - `domain` string, required
      - `enginePort` integer, required
    - `issue` object
      - `category` 'billing' | 'administrative' | 'configuration' | 'infrastructure' | 'unknown', required
      - `code` string, required
      - `message` string, required
      - `occurredAt` string, date-time

## Other responses

- `400`: Request validation failed.
- `401`: Authentication is required.
- `403`: The token is not authorized.
- `404`: Workspace not found.

---

[API](https://skmtc.dev/rstream/apis/rstream-api.md) · [All operations](https://skmtc.dev/rstream/apis/rstream-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rstream/apis/rstream-api/revisions/a840a2c91f22?raw)
