---
title: "Start a paid-plan checkout (Polar)"
method: POST
path: "/v1/billing/checkout"
tags: ["Account"]
---

# Start a paid-plan checkout (Polar)

`POST /v1/billing/checkout`

## Request

- Base URL: `https://api.stackdata.io`
- URL: `https://api.stackdata.io/v1/billing/checkout`
- Auth: one of:
  - API key in cookie `sd_session`
  - HTTP bearer

## Request body

- object
  - `plan` 'starter' | 'team', required

## Response `200`

Redirect target.

- object
  - `url` string, uri

## Other responses

- `400`: Unknown plan.
- `401`: No valid session (cookie or Bearer token).
- `502`: Checkout could not be started.
- `503`: Billing is not configured on this deployment.

---

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