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

# Create Checkout

> Open Stripe Checkout (new plan) or Customer Portal (manage billing). Admin only.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/billing/checkout
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/billing/checkout:
    post:
      tags:
        - billing
      summary: Create Checkout
      description: >-
        Open Stripe Checkout (new plan) or Customer Portal (manage billing).
        Admin only.
      operationId: billing_create_checkout
      parameters:
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpgradeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    UpgradeRequest:
      properties:
        plan:
          anyOf:
            - type: string
              enum:
                - paygo
                - team
            - type: 'null'
          title: Plan
      type: object
      title: UpgradeRequest
      description: >-
        Request to upgrade a plan or open billing portal.


        If plan is None, opens the Stripe Customer Portal (must have existing
        customer).

        If plan is set, creates a Checkout Session for new customers or Portal
        for existing.
    CheckoutResponse:
      properties:
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        upgraded:
          type: boolean
          title: Upgraded
          default: false
        plan:
          anyOf:
            - type: string
            - type: 'null'
          title: Plan
      type: object
      title: CheckoutResponse
      description: >-
        Response for plan upgrade — either a checkout URL or instant upgrade
        confirmation.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.