---
title: "POST /teams/{team_name}/subscription-orders"
method: POST
path: "/teams/{team_name}/subscription-orders"
tags: ["teams"]
---

# POST /teams/{team_name}/subscription-orders

`POST /teams/{team_name}/subscription-orders`

Start the checkout process for a subscription order.

## Path parameters

- `team_name` string, required — The unique name for the team.

## Request body

- TeamSubscriptionOrderCreate — Create team subscription order
  - `plan` 'free' | 'paid' | 'enterprise' | 'trial', required — The plan the team is on (trial is deprecated)
  - `success_url` string, required — URL to redirect to after successful order completion
  - `cancel_url` string, required — URL to redirect to after order cancellation

## Response `201`

Response

- TeamSubscriptionOrder — Team subscription order
  - `id` string, uuid, required — ID of the team subscription order
  - `team_name` string, required — The unique name for the team.
  - `plan` 'free' | 'paid' | 'enterprise' | 'trial', required — The plan the team is on (trial is deprecated)
  - `status` 'pending' | 'completed' | 'cancelled', required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `completed_at` string, date-time
  - `completion_url` string, uri — Stripe URL for completing purchase. Only shown in response to POST request when a paid plan is selected.

## Other responses

- `400` — Bad request
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `422` — UnprocessableEntity
- `500` — Internal Error

---

[API](https://skmtc.net/cloudquery/apis/cloudquery-openapi-spec.md) · [All operations](https://skmtc.net/cloudquery/apis/cloudquery-openapi-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudquery/cloudquery-openapi-spec/versions/4af580f9023b/schema)
