---
title: "POST /api/rep/dashboard/billing/checkout"
method: POST
path: "/api/rep/dashboard/billing/checkout"
tags: ["Rep Dashboard"]
---

# POST /api/rep/dashboard/billing/checkout

`POST /api/rep/dashboard/billing/checkout`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/rep/dashboard/billing/checkout`
- Auth: API key in cookie `authjs.session-token`

Mint a Stripe Checkout Session for a first purchase and return its hosted URL. Quantity is the owner's location count, so the graduated bands engage from the first invoice.

## Request body

- object
  - `planId` string, required

## Response `200`

Checkout session created

- object
  - `url` string, uri, required

## Other responses

- `400`: Unknown or missing plan
- `401`: Unauthorized
- `403`: Owner or admin only, or no active workspace

---

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