---
raw: true
search:
  tags:
    - Teams
    - POST
seo:
  description: >-
    Puts a team on the plan the code grants. You must be able to manage the…
    Reference for the POST /v1/plan-codes/{code}/redeem endpoint in the
    Spacefast API.
sidebar:
  label: Redeem a plan code
  badge: POST
title: Redeem a plan code
type: openapi-operation
---
Puts a team on the plan the code grants. You must be able to manage the team's billing. Each person redeems a code once, and each team receives it once.

`POST /v1/plan-codes/{code}/redeem`

**Request body** (`application/json`, required)

- `teamId` (string, required) — Team to put on the plan (id or slug).

Request body example:

```json
{
  "teamId": "string"
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "teamId": "string",
    "teamSlug": "string",
    "planCode": "free",
    "planName": "string",
    "grantId": "string",
    "expiresAt": "2019-08-24T14:15:22Z"
  }
}
```
