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

# Load Customer Data

> Loads first-time customer data into the system for fraud prevention and risk profiling.



## OpenAPI

````yaml POST /fraud-detection/customers/load
openapi: 3.0.1
info:
  title: InsightAI Fraud Detection API
  description: >-
    APIs for fraud detection, prevention, bulk processing, and initial customer
    data load.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.insightai.in/
security:
  - bearerAuth: []
paths:
  /fraud-detection/customers/load:
    post:
      description: >-
        Loads first-time customer data into the system for fraud prevention and
        risk profiling.
      requestBody:
        description: >-
          Customer data file in CSV or JSON format containing necessary details
          for onboarding.
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CustomerDataLoadRequest'
        required: true
      responses:
        '200':
          description: Customer data successfully loaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDataLoadResponse'
        '400':
          description: Invalid customer data or file format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CustomerDataLoadRequest:
      type: object
      properties:
        file:
          type: string
          format: binary
          description: CSV or JSON file containing customer details.
    CustomerDataLoadResponse:
      type: object
      properties:
        status:
          type: string
          description: Status of the data load process.
        loadedCount:
          type: integer
          description: Number of customer records successfully loaded.
        failedCount:
          type: integer
          description: Number of records that failed to load.
        errorDetails:
          type: array
          items:
            $ref: '#/components/schemas/Error'
          description: Details of any errors encountered.
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message describing the issue.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````