> ## 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.

# Criar Entrada via NF-e

> Vincula de maneira síncrona aos dados de uma NFe pré-processada, convertendo para estoque no balanço da filial.

### Body

<ParamField body="xmlId" type="string" required>
  Identificador do processamento de importação da NF-e (XML já postado para validação).
</ParamField>

<ParamField body="warehouseId" type="string" required>
  Em qual depósito este estoque fiscal dará entrada.
</ParamField>

### Response

<ResponseExample>
  ```json Response theme={null}
  {
    "id": "e4b6d4e8-8e6d-41da-abdb-8fc358a9e7f1",
    "message": "NF-e importada com sucesso",
    "totalItemsReceived": 150
  }
  ```
</ResponseExample>


## OpenAPI

````yaml post /inventory/entries/nfe
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/nfe:
    post:
      tags:
        - Inventory Entries
      summary: Importar entrada via NF-e XML
      operationId: InventoryEntryController_createNfeEntry
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateNfeEntryDto'
      responses:
        '201':
          description: NF-e importada com sucesso
        '400':
          description: XML inválido
        '409':
          description: NF-e já importada
      security:
        - bearer: []
components:
  schemas:
    CreateNfeEntryDto:
      type: object
      properties:
        warehouseId:
          type: string
          description: ID do depósito destino
        companyId:
          type: string
          description: ID da empresa (destinatário)
        xmlContent:
          type: string
          description: Conteúdo XML completo da NF-e
      required:
        - warehouseId
        - companyId
        - xmlContent

````