---
title: "Create checkout session for plan upgrade"
method: POST
path: "/v1/auth/subscription/upgrade"
tags: ["auth"]
---

# Create checkout session for plan upgrade

`POST /v1/auth/subscription/upgrade`

## 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/subscription/upgrade`
- Auth: `session-token` (a scheme the document does not define)

## Request body

- UpgradeSubscriptionDto
  - `planId` string, required: Plan ID to upgrade to
  - `successUrl` string, required: URL to redirect to after successful upgrade
  - `cancelUrl` string: URL to redirect to if upgrade is cancelled
  - `couponCode` string: Coupon code for discount

## Response `200`

Checkout URL returned

## Other responses

- `400`: Failed to create upgrade 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/acf63fed8702?raw)
