---
title: "Create Topup Checkout Session"
method: POST
path: "/conglomerates/{conglomerate_id}/topup-checkout-session"
tags: ["subscriptions"]
---

# Create Topup Checkout Session

`POST /conglomerates/{conglomerate_id}/topup-checkout-session`

## Request

- Base URL: `https://api.nanocorp.so` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nanocorp.so/conglomerates/{conglomerate_id}/topup-checkout-session`
- Auth: HTTP bearer

Create a Stripe Checkout session for a one-time credit top-up.

Eligibility (DRAFT_SPEC_TRIAL_TOPUP §3): active subscription past the
first invoice, OR a running plan clock (trial / churn wind-down). The
Stripe customer is created on the fly for clock-path buyers.

## Path parameters

- `conglomerate_id` string, uuid, required

## Headers

- `X-Posthog-Session-Id` string, nullable
- `X-Client-Mobile` string, nullable
- `X-Meta-Fbc` string, nullable
- `X-Meta-Fbp` string, nullable
- `X-Meta-Source-Url` string, nullable
- `X-Tiktok-Ttclid` string, nullable
- `X-Tiktok-Ttp` string, nullable
- `X-Tiktok-Click-Time` string, nullable

## Request body

- CreateTopupCheckoutRequest
  - `credits` integer, required
  - `company_id` string, uuid, required

## Response `200`

Successful Response

- CreateCheckoutResponse
  - `checkout_url` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-05** `a3f5a6c0e56c`: 3 info
  - added the new optional `header` request parameter `X-Tiktok-Click-Time`
  - added the new optional `header` request parameter `X-Tiktok-Ttclid`
  - added the new optional `header` request parameter `X-Tiktok-Ttp`
- **2026-10-02** `113752ab03f9`: 3 info
  - added the new optional `header` request parameter `X-Meta-Fbc`
  - added the new optional `header` request parameter `X-Meta-Fbp`
  - added the new optional `header` request parameter `X-Meta-Source-Url`

[Operation history](https://skmtc.dev/nanocorp/apis/nanocorp-api/changes/conglomerates/:conglomerate_id/topup-checkout-session/post.md)

---

[API](https://skmtc.dev/nanocorp/apis/nanocorp-api.md) - [All operations](https://skmtc.dev/nanocorp/apis/nanocorp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nanocorp/apis/nanocorp-api/revisions/291bb76b720b?raw)
