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

# Create an uploaded bank or card account and its GL account

> Creates the account that bank or card imports are booked against, with a linked GL account (credit card type for card accounts). Requires a controller.



## OpenAPI

````yaml https://app.usequanta.com/openapi/quanta-services-api/openapi.json post /api/uploaded_sources/uploaded_accounts
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://app.usequanta.com
    description: Production
security:
  - HTTPBearer: []
paths:
  /api/uploaded_sources/uploaded_accounts:
    post:
      tags:
        - uploaded_sources
        - quanta-services-api
      summary: Create an uploaded bank or card account and its GL account
      description: >-
        Creates the account that bank or card imports are booked against, with a
        linked GL account (credit card type for card accounts). Requires a
        controller.
      operationId: create_uploaded_account
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUploadedAccountRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatedUploadedAccount'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CreateUploadedAccountRequest:
      properties:
        account_type:
          $ref: '#/components/schemas/UploadedAccountType'
        name:
          type: string
          title: Name
        institution:
          type: string
          title: Institution
        last_four:
          type: string
          pattern: ^\d{4}$
          title: Last Four
        gl_account_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Gl Account Number
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
      type: object
      required:
        - account_type
        - name
        - institution
        - last_four
      title: CreateUploadedAccountRequest
    CreatedUploadedAccount:
      properties:
        account:
          $ref: '#/components/schemas/UploadedAccount'
      type: object
      required:
        - account
      title: CreatedUploadedAccount
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UploadedAccountType:
      type: string
      enum:
        - BANK
        - CARD
      title: UploadedAccountType
    UploadedAccount:
      properties:
        uploaded_account_qid:
          type: string
          title: Uploaded Account Qid
        account_type:
          $ref: '#/components/schemas/UploadedAccountType'
        gl_account_qid:
          type: string
          title: Gl Account Qid
        gl_account_name:
          type: string
          title: Gl Account Name
        gl_account_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Gl Account Number
      type: object
      required:
        - uploaded_account_qid
        - account_type
        - gl_account_qid
        - gl_account_name
        - gl_account_number
      title: UploadedAccount
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Quanta Services API scoped bearer token. Supported only on Services API
        routes.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.