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

# Importar Entrada Lote CSV

> Importa saldo massivo usando um conteúdo com formatação em CSV enviado nativamente.

### Body

<ParamField body="csvContent" type="string" required>
  String raw padronizada contendo a estrutura base (separada por vírgula): `sku,quantity,costPrice,notes` \r\n ...
</ParamField>

<ParamField body="warehouseId" type="string" required>
  O deposito alvo das inserções do arquivo CSV.
</ParamField>

### Response

<ResponseExample>
  ```json Response theme={null}
  {
    "insertedRows": 50,
    "failedRows": 2,
    "fails": [
       {"sku": "XYZ", "reason": "SKU not found"}
    ]
  }
  ```
</ResponseExample>


## OpenAPI

````yaml post /inventory/entries/csv
openapi: 3.0.0
info:
  title: Hub Marketplace API
  description: API for managing marketplace listings and keys
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: listings
    description: ''
paths:
  /inventory/entries/csv:
    post:
      tags:
        - Inventory Entries
      summary: Importação em massa via CSV (texto plain)
      operationId: InventoryEntryController_importCsv
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportCsvStockDto'
      responses:
        '201':
          description: Relatório de importação
      security:
        - bearer: []
components:
  schemas:
    ImportCsvStockDto:
      type: object
      properties:
        warehouseId:
          type: string
          description: ID do depósito destino
        mode:
          type: string
          enum:
            - REPLACE
            - ADD
            - SUBTRACT
          description: Modo de importação
      required:
        - warehouseId
        - mode

````