---
title: "Create checkout session"
method: POST
path: "/api/v1/billing/checkout"
tags: ["Billing"]
---

# Create checkout session

`POST /api/v1/billing/checkout`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/billing/checkout`
- Auth: HTTP bearer

Creates a billing provider checkout session for plan upgrade

## Request body

- CheckoutRequest
  - `planName` string, required
  - `successUrl` string, required
  - `cancelUrl` string, required
  - `providerCode` string
  - `billingInterval` string

## Response `200`

Checkout URL returned

---

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