> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macrobymark.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Checkout

> Create a Stripe checkout session for subscription.



## OpenAPI

````yaml POST /api/billing/checkout
openapi: 3.1.0
info:
  title: Macro by Mark API
  version: 1.0.0
  description: |
    Public and authenticated API for the Macro by Mark macroeconomics platform.
    Covers indicator data, forecasting, discovery catalog, labs, account
    management, alerts, and administrative endpoints.
  contact:
    name: Mark Jayson Farol
    email: farolmarkjayson1313@gmail.com
  license:
    name: Proprietary
servers:
  - url: https://macrobymark.com
    description: Production
security: []
tags:
  - name: Health
    description: Platform health checks
  - name: Indicators
    description: Curated indicator library and per-series data
  - name: Discovery
    description: Discovery catalog search and series detail
  - name: Forecasting
    description: Time-series forecasting engine
  - name: Labs
    description: Econometric testing tools (stationarity, diagnostics)
  - name: Providers
    description: Passthrough data provider proxies (FRED, BEA, BLS, etc.)
  - name: News & Calendar
    description: Economic news feed and release calendar
  - name: Account
    description: User account, profile, preferences, workspace
  - name: Billing
    description: Stripe-backed subscription billing
  - name: Alerts
    description: Watchlist alert delivery
  - name: Admin
    description: Administrative and cron endpoints (requires CRON_SECRET)
  - name: Chat
    description: AI chat assistant
  - name: Import
    description: Indicator import pipeline
paths:
  /api/billing/checkout:
    post:
      tags:
        - Billing
      summary: Create Stripe checkout session
      operationId: createCheckout
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - priceId
              properties:
                priceId:
                  type: string
      responses:
        '200':
          description: Checkout URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    format: uri
      security:
        - session: []
components:
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: next-auth.session-token
      description: NextAuth.js session cookie

````