---
title: "Start subscription checkout"
method: POST
path: "/subscriptions/create-checkout"
tags: ["Subscriptions"]
---

# Start subscription checkout

`POST /subscriptions/create-checkout`

## Request

- Base URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api`
- URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/subscriptions/create-checkout`
- Auth: HTTP bearer

Create a Stripe Checkout session for upgrading a user to a paid plan.

## Request body

- object
  - `appId` string, required: Application identifier the subscription applies to.
  - `planId` string, required: Plan tier key (free, starter, professional, business, enterprise).
  - `priceId` string: Stripe price ID. Optional — resolved from appId + planId + interval if omitted.
  - `interval` 'monthly' | 'yearly': Billing interval. Used when priceId is omitted. Defaults to monthly.
  - `successUrl` string, uri
  - `cancelUrl` string, uri
  - `metadata` object

## Response `200`

Checkout session created

- object
  - `success` boolean
  - `sessionId` string
  - `url` string, uri

## Other responses

- `401`: Missing or invalid authentication token
- `500`: Failed to create checkout session

---

[API](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api.md) · [All operations](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/revisions/53e075911af9?raw)
