---
title: "Create a checkout session for signup"
method: POST
path: "/v1/auth/checkout"
tags: ["auth"]
---

# Create a checkout session for signup

`POST /v1/auth/checkout`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/auth/checkout`
- Auth: none declared

## Request body

- CreateCheckoutDto
  - `email` string, required: Email address for the account
  - `successUrl` string, required: URL to redirect to after successful checkout
  - `cancelUrl` string: URL to redirect to if checkout is cancelled
  - `planId` string: Plan ID (defaults to free plan)
  - `couponCode` string: Coupon code for discount

## Response `200`

Checkout URL returned

## Other responses

- `400`: Failed to create checkout session

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/82fc25ab859b?raw)
