---
title: "Start a Stripe Checkout session"
method: POST
path: "/api/billing/checkout"
tags: ["Billing"]
---

# Start a Stripe Checkout session

`POST /api/billing/checkout`

## Request

- Base URL: `https://snaplab.dev`
- URL: `https://snaplab.dev/api/billing/checkout`
- Auth: HTTP bearer

## Request body

- object
  - `plan` 'starter' | 'pro' | 'business', required
  - `interval` 'month' | 'year': Billing interval. Yearly is ten months' price for twelve; omit for monthly.

## Response `200`

Redirect the browser here.

- object
  - `url` string, uri

## Other responses

- `400`: Unknown plan.
- `401`: Not authenticated.
- `503`: Billing is not configured on this deployment (`billing_not_configured`).

---

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