---
title: "Create a Stripe Checkout session to upgrade your plan"
method: POST
path: "/billing/upgrade"
---

# Create a Stripe Checkout session to upgrade your plan

`POST /billing/upgrade`

## Request

- Base URL: `https://developer.usepopup.com/api/v0`
- URL: `https://developer.usepopup.com/api/v0/billing/upgrade`
- Auth: HTTP bearer

Returns a checkout URL to upgrade to a paid plan. Works at 0 credits (no credit deducted). If the user already has an active subscription, returns a billing portal URL instead.

## Request body

- object
  - `plan` 'starter' | 'growth' | 'pro', required

## Response `200`

Checkout session created

- object
  - `data` object
    - `checkout_url` string, uri
    - `plan` string
    - `credits` integer
    - `price_monthly` string

---

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