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

# Create a customer credits account

> Create a new credits account for a customer. Optionally seed it with an initial balance.



## OpenAPI

````yaml post /v1/customer-credits/accounts
openapi: 3.0.0
info:
  title: Creem API
  description: >-
    Creem is an all-in-one platform for managing subscriptions and recurring
    revenue, tailored specifically for today's SaaS companies. It enables you to
    boost revenue, enhance customer retention, and scale your operations
    seamlessly.
  version: v1
  contact:
    name: Creem Support
    url: https://creem.io
    email: support@creem.io
  license:
    name: Commercial
    url: https://creem.io/terms
  termsOfService: https://creem.io/terms
servers:
  - url: https://api.creem.io
    description: Production — live API for processing real transactions and data.
    x-speakeasy-server-id: prod
  - url: https://test-api.creem.io
    description: Test — sandbox API for development and testing with no real charges.
    x-speakeasy-server-id: test
security: []
tags: []
externalDocs:
  description: Creem Documentation
  url: https://docs.creem.io
paths:
  /v1/customer-credits/accounts:
    post:
      tags:
        - Customer Credits - Accounts (Experimental)
      summary: Create a customer credits account
      description: >-
        Create a new credits account for a customer. Optionally seed it with an
        initial balance.
      operationId: createCustomerCreditsAccount
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAccountDto'
      responses:
        '201':
          description: Account created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountResponseDto'
        '400':
          description: Bad Request - Invalid input parameters
        '401':
          description: Unauthorized - Invalid or missing API key
        '404':
          description: Not Found - Resource does not exist
      security:
        - ApiKey: []
components:
  schemas:
    CreateAccountDto:
      type: object
      properties:
        name:
          type: string
          description: Human-readable name for the account
          example: default
          default: default
        customer_id:
          type: string
          description: The owner ID this account belongs to (e.g. customer ID)
          example: cust_abc123
        unit_label:
          type: string
          description: Label for the unit of currency/credits
          example: credits
          default: credits
        initial_balance:
          type: string
          description: Seed the account with this many credits on creation
          example: '300'
      required:
        - customer_id
    AccountResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Account ID
          example: cca_abc123
        store_id:
          type: string
          description: Store ID
        customer_id:
          type: string
          description: Owner ID
          example: cust_abc123
        name:
          type: string
          description: Account name
          example: default
        unit_label:
          type: string
          description: Unit label
          example: credits
        status:
          type: string
          description: Account status
          enum:
            - active
            - frozen
            - closed
        created_at:
          type: string
          description: Creation timestamp
        updated_at:
          type: string
          description: Last update timestamp
      required:
        - id
        - store_id
        - customer_id
        - name
        - unit_label
        - status
        - created_at
        - updated_at
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can find your API key in the Creem
        dashboard under Settings > API Keys.

````