> ## 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 Funding Session

> Create or resume a Stripe Checkout credit purchase for an org admin.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/billing/paygo/funding-sessions
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/billing/paygo/funding-sessions:
    post:
      tags:
        - billing
      summary: Create Funding Session
      description: Create or resume a Stripe Checkout credit purchase for an org admin.
      operationId: billing_create_funding_session
      parameters:
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaygoFundingSessionRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaygoFundingSessionResponse'
        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:
    PaygoFundingSessionRequest:
      properties:
        client_request_id:
          type: string
          format: uuid
          title: Client Request Id
        amount_cents:
          type: integer
          maximum: 100000
          minimum: 1000
          title: Amount Cents
        currency:
          type: string
          const: usd
          title: Currency
          default: usd
        return_to:
          type: string
          enum:
            - onboarding
            - billing
          title: Return To
        save_for_future:
          type: boolean
          const: true
          title: Save For Future
        consent_version:
          type: string
          enum:
            - paygo-card-backstop-v1
            - paygo-card-top-up-v1
          title: Consent Version
      type: object
      required:
        - client_request_id
        - amount_cents
        - return_to
        - save_for_future
        - consent_version
      title: PaygoFundingSessionRequest
      description: >-
        A credit purchase requires explicit consent to save a card and collect
        usage overages.
    PaygoFundingSessionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        amount_cents:
          type: integer
          title: Amount Cents
        currency:
          type: string
          const: usd
          title: Currency
        status:
          type: string
          title: Status
        save_for_future:
          type: boolean
          title: Save For Future
        card_saved:
          type: boolean
          title: Card Saved
        client_secret:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Secret
          description: >-
            Stripe Checkout Session client secret for the browser's payment
            form.
      type: object
      required:
        - id
        - amount_cents
        - currency
        - status
        - save_for_future
        - card_saved
      title: PaygoFundingSessionResponse
      description: POST-only funding session entry point for the creator org admin.
    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.