---
title: "The team code offered at the end of a Pro trial"
method: GET
path: "/billing/trial/team-code"
tags: ["billing"]
---

# The team code offered at the end of a Pro trial

`GET /billing/trial/team-code`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/billing/trial/team-code`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Returns `{ code }`: the promotion code for 50% off the first 3 months of Pro on 2 or more seats, while a Pro trial is in its last three days and the offer is switched on, and `null` otherwise.

## Headers

- `X-Organization-Id` string, required

## Response `200`

The code, or null

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `404`: Organization not found

---

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