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

# Create a Stripe SetupIntent for an embedded card form (no redirect, no charge)



## OpenAPI

````yaml /openapi.json post /v1/billing/stripe/setup-intent
openapi: 3.0.0
info:
  title: Kerne API
  description: >-
    Kerne SaaS Foundation as a Service - authentication, authorization, and
    billing management. Errors follow standardized error codes (K1xxx-K9xxx)
    documented at https://docs.kerne.io/errors
  version: 1.0.0
  contact:
    name: Kerne Team
    url: https://kerne.io
    email: support@kerne.io
  license:
    name: Proprietary
    url: https://kerne.io/license
servers:
  - url: https://api.kerne.io
    description: Production Server
security: []
tags:
  - name: Auth
    description: Authentication endpoints
  - name: Waitlist
    description: Waitlist management
  - name: Invitations
    description: Invitation system
  - name: Billing
    description: 'The tenant''s end users: subscription, entitlements, usage, checkout'
  - name: Pricing
    description: Public pricing page data
paths:
  /v1/billing/stripe/setup-intent:
    post:
      tags:
        - Billing
      summary: >-
        Create a Stripe SetupIntent for an embedded card form (no redirect, no
        charge)
      operationId: BillingController_createSetupIntent
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSetupIntentDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupIntentResponseDto'
      security:
        - AppIdentifier: []
        - JWT: []
components:
  schemas:
    CreateSetupIntentDto:
      type: object
      properties:
        customer:
          type: string
        email:
          type: string
          description: >-
            Required the first time an admin names a customer with no email on
            file yet.
    SetupIntentResponseDto:
      type: object
      properties:
        client_secret:
          type: string
        customer_id:
          type: string
      required:
        - client_secret
        - customer_id
  securitySchemes:
    AppIdentifier:
      type: apiKey
      in: header
      name: x-app-id
      description: App identifier (App.id, sent as the x-app-id header)
    JWT:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT token obtained from /v1/auth/token

````