---
title: "New Team Subscription"
method: POST
path: "/subscriptions/create_team_subscription/"
tags: ["Subscriptions"]
---

# New Team Subscription

`POST /subscriptions/create_team_subscription/`

## Request

- Base URL: `http://api.cannoli.app/api/v1`
- URL: `http://api.cannoli.app/api/v1/subscriptions/create_team_subscription/`
- Auth: none declared

This endpoint creates a new subscription for the specified team.
**It requires the user to be logged in**, the team ID and the
number of seats, and it returns the Stripe checkout URL.

## Request body

- TeamSubscription
  - `id` integer
  - `tier` 'F' | 'P' | 'T'
  - `status` 'A' | 'O' | 'P' | 'C'
  - `current_period_start` string, date-time
  - `current_period_end` string, date-time
  - `team` integer, nullable
  - `seats` integer

## Response `201`

Created

---

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