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

# Runtime Create Customer

> Create an end customer from the deployed server runtime scoped to exactly one project and environment.



## OpenAPI

````yaml /openapi.json post /v1/runtime/payments/customers
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/runtime/payments/customers:
    post:
      tags:
        - customerPayments
      summary: Runtime Create Customer
      description: >-
        Create an end customer from the deployed server runtime scoped to
        exactly one project and environment.
      operationId: customerPayments.runtimeCreateCustomer
      parameters: []
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
                  maxLength: 320
                name:
                  type: string
                  maxLength: 120
                externalId:
                  type: string
                  maxLength: 255
                metadata:
                  type: object
                  description: At most 20 application-defined string entries.
                  additionalProperties:
                    type: string
                    maxLength: 500
              required:
                - email
              additionalProperties: false
      responses:
        '201':
          description: Created customer.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  email:
                    type: string
                    format: email
                  name:
                    type:
                      - string
                      - 'null'
                  externalId:
                    type:
                      - string
                      - 'null'
                  metadata:
                    type: object
                    description: At most 20 application-defined string entries.
                    additionalProperties:
                      type: string
                      maxLength: 500
                  createdAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - email
                  - name
                  - externalId
                  - metadata
                  - createdAt
        '402':
          description: Organization billing is not active.
        '404':
          description: Project or payment resource not found.
        '409':
          description: Duplicate idempotency key or conflicting resource state.
        '422':
          description: Invalid payment request.
        '502':
          description: The payment processor rejected the request.
        '503':
          description: The payment processor is temporarily unavailable.
      security:
        - appService: []
components:
  securitySchemes:
    appService:
      type: http
      scheme: bearer
      bearerFormat: korve_app_service

````