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

# Create Auto Top Up Setup Intent

> Open a SetupIntent so the org can save a card for off-session auto top-ups.

Croesus owns the org's Stripe billing identity: it resolves (or creates) the
customer and opens the SetupIntent. This endpoint just proxies the client
secret to the dashboard. On confirmation Stripe fires ``setup_intent.succeeded``
which the webhook turns into a Croesus billing-profile update (the saved card).



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/external/billing/auto-top-up/setup-intent
openapi: 3.1.0
info:
  title: Lyceum Cloud Execution API
  version: 0.1.0
servers: []
security: []
paths:
  /api/v2/external/billing/auto-top-up/setup-intent:
    post:
      tags:
        - Billing
      summary: Create Auto Top Up Setup Intent
      description: >-
        Open a SetupIntent so the org can save a card for off-session auto
        top-ups.


        Croesus owns the org's Stripe billing identity: it resolves (or creates)
        the

        customer and opens the SetupIntent. This endpoint just proxies the
        client

        secret to the dashboard. On confirmation Stripe fires
        ``setup_intent.succeeded``

        which the webhook turns into a Croesus billing-profile update (the saved
        card).
      operationId: >-
        create_auto_top_up_setup_intent_api_v2_external_billing_auto_top_up_setup_intent_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoTopUpSetupIntentResponse'
components:
  schemas:
    AutoTopUpSetupIntentResponse:
      properties:
        client_secret:
          type: string
          title: Client Secret
        stripe_customer_id:
          type: string
          title: Stripe Customer Id
      type: object
      required:
        - client_secret
        - stripe_customer_id
      title: AutoTopUpSetupIntentResponse

````