---
title: "NfeAutomaticaInputModel"
url: "https://devcenter.stone.com.br/apis/stone-tax/versions/206fd1c1-6382-4ada-8612-c67fdc65e050/schemas/NfeAutomaticaInputModel"
---

> Full API specification: https://devcenter.stone.com.br/apis/stone-tax/versions/206fd1c1-6382-4ada-8612-c67fdc65e050.md

# NfeAutomaticaInputModel

Dados da nota fiscal eletrônica Automática.

## OpenAPI definition

```yaml
openapi: 3.0.4
info:
  title: Stone Tax API
  version: 1.0.0
servers:
  - url: https://stone-tax-sdx.stone.com.br
    description: Ambiente de Desenvolvimento
  - url: https://stone-tax.stone.com.br
    description: Ambiente de Produção
components:
  schemas:
    FluxoFiscalAutomaticoModelEnum:
      enum:
        - VendaConsumidorFinal
        - Revenda
        - Bonificacao
        - Transferencia
      type: string
      description: Fluxo fiscal para cálculo automático do tributo.
    IndicadorPresencaNfeModelEnum:
      enum:
        - NaoSeAplica
        - OperacaoPresencial
        - OperacaoNaoPresencialInternet
        - OperacaoNaoPresencialTeleatendimento
        - NaoPresencialOutros
      type: string
      description: Indicador de presença na operação.
    TipoEmissaoNfeModelEnum:
      enum:
        - Automatica
        - Normal
        - ContingenciaFsda
        - ContingenciaSvcan
        - ContingenciaSvcrs
      type: string
      description: Tipo de emissão de NFe.
    DestinatarioNfeAutomaticaInputModel:
      required:
        - documento
        - endereco
        - nome
      type: object
      properties:
        tipoDocumento:
          $ref: "#/components/schemas/TipoDocumentoNotaFiscalModelEnum"
        documento:
          minLength: 1
          type: string
          description: Documento do destinatário.
        nome:
          maxLength: 60
          minLength: 2
          type: string
          description: Nome do destinatário.
        endereco:
          $ref: "#/components/schemas/EnderecoDestinatarioNfeAutomaticaInputModel"
        telefone:
          type: string
          description: Telefone do destinatário.
          nullable: true
        indicadorInscricao:
          $ref: "#/components/schemas/IndicadorInscricaoDestinatarioNotaFiscalModelEnum"
        inscricaoEstadual:
          type: string
          description: Inscrição estadual do destinatário.
          nullable: true
        inscricaoSuframa:
          type: string
          description: Inscrição SUFRAMA.
          nullable: true
        inscricaoMunicipal:
          type: string
          description: Inscrição municipal.
          nullable: true
        email:
          type: string
          description: Email do destinatário.
          nullable: true
        situacaoEspecial:
          $ref: "#/components/schemas/SituacaoEspecialDestinatarioModelEnum"
      additionalProperties: false
      description: Dados do destinatário da NFe Automática.
    EnderecoEntregaNfeAutomaticaInputModel:
      required:
        - bairro
        - codigoMunicipio
        - documentoRecebedor
        - logradouro
        - nomeMunicipio
        - numero
      type: object
      properties:
        tipoDocumentoRecebedor:
          $ref: "#/components/schemas/TipoDocumentoNotaFiscalModelEnum"
        documentoRecebedor:
          minLength: 1
          type: string
          description: Documento do recebedor.
        nomeRecebedor:
          type: string
          description: Nome do recebedor.
          nullable: true
        telefoneRecebedor:
          type: string
          description: Telefone do recebedor.
          nullable: true
        emailRecebedor:
          type: string
          description: Email do recebedor.
          nullable: true
        logradouro:
          maxLength: 60
          minLength: 2
          type: string
          description: Logradouro.
        numero:
          maxLength: 60
          minLength: 1
          type: string
          description: Número.
        complemento:
          type: string
          description: Complemento.
          nullable: true
        bairro:
          maxLength: 60
          minLength: 2
          type: string
          description: Bairro.
        codigoMunicipio:
          maxLength: 7
          minLength: 7
          type: string
          description: Código do município.
        nomeMunicipio:
          maxLength: 60
          minLength: 2
          type: string
          description: Nome do município.
        uf:
          $ref: "#/components/schemas/UfExtNotaFiscalModelEnum"
        cep:
          type: string
          description: CEP.
          nullable: true
        codigoPais:
          type: string
          description: Código do país.
          nullable: true
        pais:
          type: string
          description: Nome do país.
          nullable: true
      additionalProperties: false
      description: Dados de Endereço de Entrega para Nota Fiscal Eletrônica Automática.
    EnderecoRetiradaNfeAutomaticaInputModel:
      required:
        - bairro
        - codigoMunicipio
        - documentoExpeditor
        - logradouro
        - nomeMunicipio
        - numero
      type: object
      properties:
        tipoDocumentoExpeditor:
          $ref: "#/components/schemas/TipoDocumentoNotaFiscalModelEnum"
        documentoExpeditor:
          minLength: 1
          type: string
          description: Documento do Expeditor.
        nomeExpeditor:
          type: string
          description: Nome do Expeditor.
          nullable: true
        telefoneExpeditor:
          type: string
          description: Telefone do Expeditor.
          nullable: true
        emailExpeditor:
          type: string
          description: Email do Expeditor.
          nullable: true
        logradouro:
          maxLength: 60
          minLength: 2
          type: string
          description: Logradouro.
        numero:
          maxLength: 60
          minLength: 1
          type: string
          description: Número.
        complemento:
          type: string
          description: Complemento.
          nullable: true
        bairro:
          maxLength: 60
          minLength: 2
          type: string
          description: Bairro.
        codigoMunicipio:
          maxLength: 7
          minLength: 7
          type: string
          description: Código do município.
        nomeMunicipio:
          maxLength: 60
          minLength: 2
          type: string
          description: Nome do município.
        uf:
          $ref: "#/components/schemas/UfExtNotaFiscalModelEnum"
        cep:
          type: string
          description: CEP.
          nullable: true
        codigoPais:
          type: string
          description: Código do país.
          nullable: true
        pais:
          type: string
          description: Nome do país.
          nullable: true
      additionalProperties: false
      description: Dados do endereço de retirada da NFe Automática.
    NfeAuxXmlInputModel:
      required:
        - documento
      type: object
      properties:
        tipoDocumento:
          $ref: "#/components/schemas/TipoDocumentoNotaFiscalModelEnum"
        documento:
          minLength: 1
          type: string
          description: Documento autorizado.
      additionalProperties: false
      description: Documentos autorizados a capturar e visualizar a NFe.
    ItemNfeAutomaticaInputModel:
      required:
        - codigoInterno
        - descricao
        - origemMercadoria
        - unidade
      type: object
      properties:
        codigoInterno:
          maxLength: 60
          minLength: 1
          type: string
          description: Código interno do produto ou serviço no ERP.
        ean:
          type: string
          description: EAN do produto.
          nullable: true
        descricao:
          maxLength: 120
          minLength: 2
          type: string
          description: Descrição do produto.
        origemMercadoria:
          $ref: "#/components/schemas/OrigemMercadoriaNotaFiscalModelEnum"
        fabricacaoPropria:
          type: boolean
          description: "Indica se o produto é de fabricação própria. (Default: false)"
          nullable: true
        unidade:
          maxLength: 6
          minLength: 1
          type: string
          description: Unidade comercializada.
        quantidade:
          minimum: 0
          exclusiveMinimum: true
          type: number
          description: Quantidade comercializada.
          format: double
        valorUnitario:
          minimum: 0
          type: number
          description: Valor unitário do item.
          format: double
        valorTotalBruto:
          minimum: 0
          type: number
          description: Valor total bruto.
          format: double
        valorTotalFrete:
          minimum: 0
          type: number
          description: Valor total de frete do item.
          format: double
          nullable: true
        valorTotalSeguro:
          minimum: 0
          type: number
          description: Valor total de seguro do item.
          format: double
          nullable: true
        valorTotalDesconto:
          minimum: 0
          type: number
          description: Valor total de descontos do item.
          format: double
          nullable: true
        valorTotalOutros:
          minimum: 0
          type: number
          description: Valor total de outras despesas do item.
          format: double
          nullable: true
        itemCompoeTotalNota:
          type: boolean
          description: Indicador de item compõe o total da nota.
          nullable: true
        numeroPedidoCompra:
          type: string
          description: Número do pedido de compra.
          nullable: true
        itemPedidoCompra:
          type: integer
          description: Item de pedido de compra.
          format: int32
          nullable: true
        produtoEspecifico:
          $ref: "#/components/schemas/ItemNfeAutomaticaProdutoEspecificoInputModel"
      additionalProperties: false
      description: Dados do item da NFe Automática.
    TransporteNfeAutomaticaInputModel:
      required:
        - modalidadeFrete
      type: object
      properties:
        modalidadeFrete:
          $ref: "#/components/schemas/ModalidadeFreteNotaFiscalModelEnum"
        veiculo:
          $ref: "#/components/schemas/TransporteNfeAutomaticaVeiculoInputModel"
        transportador:
          $ref: "#/components/schemas/TransporteNfeAutomaticaTransportadorInputModel"
        reboques:
          type: array
          items:
            $ref: "#/components/schemas/TransporteNfeAutomaticaReboqueInputModel"
          description: Lista de reboques.
          nullable: true
        volumes:
          type: array
          items:
            $ref: "#/components/schemas/TransporteNfeAutomaticaVolumeInputModel"
          description: Lista de volumes.
          nullable: true
        identificadorVagao:
          type: string
          description: Identificação do vagão.
          nullable: true
        identificadorBalsa:
          type: string
          description: Identificação da balsa.
          nullable: true
      additionalProperties: false
      description: Dados de transporte para NFe.
    TipoDocumentoNotaFiscalModelEnum:
      enum:
        - Cpf
        - Cnpj
        - IdEstrangeiro
      type: string
      description: Tipo de documento.
    EnderecoDestinatarioNfeAutomaticaInputModel:
      required:
        - bairro
        - cep
        - codigoMunicipio
        - logradouro
        - nomeMunicipio
        - numero
      type: object
      properties:
        logradouro:
          maxLength: 60
          minLength: 2
          type: string
          description: Logradouro.
        numero:
          maxLength: 60
          minLength: 1
          type: string
          description: Número.
        complemento:
          type: string
          description: Complemento.
          nullable: true
        bairro:
          maxLength: 60
          minLength: 1
          type: string
          description: Bairro.
        codigoMunicipio:
          maxLength: 7
          minLength: 7
          type: string
          description: Código do município.
        nomeMunicipio:
          maxLength: 60
          minLength: 2
          type: string
          description: Nome do município.
        uf:
          $ref: "#/components/schemas/UfExtNotaFiscalModelEnum"
        cep:
          minLength: 1
          type: string
          description: CEP.
        codigoPais:
          type: string
          description: Código do país.
          nullable: true
        pais:
          type: string
          description: Nome do país.
          nullable: true
      additionalProperties: false
      description: Endereço do destinatário da NFe Automática.
    IndicadorInscricaoDestinatarioNotaFiscalModelEnum:
      enum:
        - ContribuinteIcms
        - ContribuinteIsentoIcms
        - NaoContribuinte
      type: string
      description: Indicador de inscrição estadual do destinatário.
    SituacaoEspecialDestinatarioModelEnum:
      enum:
        - Industrial
        - Distribuidor
        - Atacadista
        - ProdutorRural
        - ArmazemGeral
        - OrgaoPublico
      type: string
      description: Situação especial do destinatário da NF-e automática.
    UfExtNotaFiscalModelEnum:
      enum:
        - RO
        - AC
        - AM
        - RR
        - PA
        - AP
        - TO
        - MA
        - PI
        - CE
        - RN
        - PB
        - PE
        - AL
        - SE
        - BA
        - MG
        - ES
        - RJ
        - SP
        - PR
        - SC
        - RS
        - MS
        - MT
        - GO
        - DF
        - EX
      type: string
      description: Lista de Unidades Federativas para Nota Fiscal incluíndo exterior.
    OrigemMercadoriaNotaFiscalModelEnum:
      enum:
        - Nacional
        - EstrangeiraImportacaoDireta
        - EstrangeiraAdquiridaMercadoInterno
        - NacionalConteudoImportacaoEntre40e70
        - NacionalProducaoEmConformidade
        - NacionalConteudoImportacaoMenorQue40
        - EstrangeiraImportacaoDiretaSemSimilarNacional
        - EstrangeiraAdquiridaMercadoInternoSemSimilarNacional
        - NacionalConteudoImportacaoSuperior70
      type: string
      description: Origem da mercadoria.
    ItemNfeAutomaticaProdutoEspecificoInputModel:
      required:
        - tipoProdutoEspecifico
      type: object
      properties:
        tipoProdutoEspecifico:
          $ref: "#/components/schemas/TipoProdutoEspecificoNotaFiscalModelEnum"
      additionalProperties: false
      description: |-
        Modelo abstrato para os <strong>Dados de Produto Específico</strong> do item da nota fiscal.

        O preenchimento dos campos abaixo é condicional ao <strong>TipoProdutoEspecifico</strong> informado.


        *************************************************************************

        <strong>Medicamento:</strong>

        • <strong>TipoProdutoEspecifico</strong>: Medicamento.

        • <strong>CodigoAnvisa</strong> (string): Código de Produto da ANVISA (13 dígitos).

        • <strong>MotivoIsensao</strong> (string): Texto explicativo do motivo da isenção da ANVISA.

        • <strong>ValorPmc</strong> (decimal): Preço Máximo ao Consumidor.

         
        *************************************************************************

        <strong>Dicionário de Enumeradores:</strong>

        • <strong>TipoProdutoEspecificoNotaFiscalModelEnum:</strong>

          Medicamento = Produtos farmacêuticos e medicamentos.
    ModalidadeFreteNotaFiscalModelEnum:
      enum:
        - Cif
        - Fob
        - FretePorContaDeTerceiros
        - TransporteProprioRemetente
        - TransporteProprioDestinatario
        - SemOcorrenciaDeTransporte
      type: string
      description: Modalidade de frete.
    TransporteNfeAutomaticaVeiculoInputModel:
      required:
        - placaVeiculo
        - ufVeiculo
      type: object
      properties:
        placaVeiculo:
          maxLength: 7
          minLength: 1
          type: string
          description: Placa do veículo.
        ufVeiculo:
          $ref: "#/components/schemas/UfNotaFiscalModelEnum"
        rntcVeiculo:
          type: string
          description: RNTC do veículo.
          nullable: true
      additionalProperties: false
      description: Dados do veículo de transporte da NFe.
    TransporteNfeAutomaticaTransportadorInputModel:
      required:
        - uf
      type: object
      properties:
        tipoDocumento:
          $ref: "#/components/schemas/TipoDocumentoNotaFiscalModelEnum"
        documento:
          type: string
          description: Documento do transportador.
          nullable: true
        nome:
          type: string
          description: Nome do transportador.
          nullable: true
        inscricaoEstadual:
          type: string
          description: Inscrição estadual do transportador.
          nullable: true
        enderecoCompleto:
          type: string
          description: Endereço completo do transportador.
          nullable: true
        nomeMunicipio:
          type: string
          description: Nome do município do transportador.
          nullable: true
        uf:
          $ref: "#/components/schemas/UfNotaFiscalModelEnum"
      additionalProperties: false
      description: Dados do transportador da NFe.
    TransporteNfeAutomaticaReboqueInputModel:
      required:
        - placaReboque
        - ufReboque
      type: object
      properties:
        placaReboque:
          maxLength: 7
          minLength: 1
          type: string
          description: Placa do reboque.
        ufReboque:
          $ref: "#/components/schemas/UfNotaFiscalModelEnum"
        rntcReboque:
          type: string
          description: RNTC do reboque.
          nullable: true
      additionalProperties: false
      description: Dados do reboque do transporte da NFe.
    TransporteNfeAutomaticaVolumeInputModel:
      required:
        - especie
        - marca
        - pesoBruto
        - pesoLiquido
        - quantidadeVolumes
      type: object
      properties:
        quantidadeVolumes:
          minimum: 0
          exclusiveMinimum: true
          type: integer
          description: Quantidade de volumes transportados.
          format: int32
        especie:
          maxLength: 60
          minLength: 1
          type: string
          description: Espécie dos volumes transportados.
        marca:
          maxLength: 60
          type: string
          description: Marca dos volumes transportados.
        numeracaoVolumes:
          maxLength: 60
          type: string
          description: Numeração dos volumes transportados.
          nullable: true
        pesoLiquido:
          minimum: 0
          type: number
          description: Peso Líquido (em kg).
          format: double
        pesoBruto:
          minimum: 0
          type: number
          description: Peso Bruto (em kg).
          format: double
        lacres:
          type: array
          items:
            $ref: "#/components/schemas/TransporteNfeAutomaticaLacresInputModel"
          description: Lista de lacres dos volumes transportados.
          nullable: true
      additionalProperties: false
      description: Dados de volume do transporte da NFe.
    TipoProdutoEspecificoNotaFiscalModelEnum:
      enum:
        - Medicamento
      type: string
      description: Tipos de produtos específicos para Nota Fiscal.
    UfNotaFiscalModelEnum:
      enum:
        - RO
        - AC
        - AM
        - RR
        - PA
        - AP
        - TO
        - MA
        - PI
        - CE
        - RN
        - PB
        - PE
        - AL
        - SE
        - BA
        - MG
        - ES
        - RJ
        - SP
        - PR
        - SC
        - RS
        - MS
        - MT
        - GO
        - DF
      type: string
      description: Lista de Unidades Federativas para Nota Fiscal.
    TransporteNfeAutomaticaLacresInputModel:
      required:
        - numeroLacre
      type: object
      properties:
        numeroLacre:
          maxLength: 60
          minLength: 1
          type: string
          description: Número do lacre.
      additionalProperties: false
      description: Lacres do transporte da NFe.
    NfeAutomaticaInputModel:
      required:
        - codigoErp
        - destinatario
        - itens
      type: object
      properties:
        codigoErp:
          minLength: 1
          type: string
          description: Identificador da pré-venda no ERP.
        serie:
          type: string
          description: Série do documento fiscal (Informar somente se estiver configurado
            para geração numérica manual).
          nullable: true
        numeroDocumento:
          type: integer
          description: Numero do documento fiscal (Informar somente se estiver configurado
            para geração numérica manual).
          format: int64
          nullable: true
        naturezaOperacao:
          type: string
          description: Descrição da natureza da operação.
          nullable: true
        fluxoFiscalAutomatico:
          $ref: "#/components/schemas/FluxoFiscalAutomaticoModelEnum"
        indicadorPresenca:
          $ref: "#/components/schemas/IndicadorPresencaNfeModelEnum"
        tipoEmissao:
          $ref: "#/components/schemas/TipoEmissaoNfeModelEnum"
        dataHoraEntradaContingencia:
          type: string
          description: Data e hora de entrada em contingência (Opcional).
          format: date-time
          nullable: true
        justificativaContingencia:
          type: string
          description: Justificativa de entrada em contingência (Opcional).
          nullable: true
        dataSaidaEntrada:
          type: string
          description: Data de saída/entrada.
          format: date-time
          nullable: true
        destinatario:
          $ref: "#/components/schemas/DestinatarioNfeAutomaticaInputModel"
        enderecoEntrega:
          $ref: "#/components/schemas/EnderecoEntregaNfeAutomaticaInputModel"
        enderecoRetirada:
          $ref: "#/components/schemas/EnderecoRetiradaNfeAutomaticaInputModel"
        autXml:
          type: array
          items:
            $ref: "#/components/schemas/NfeAuxXmlInputModel"
          description: Documentos autorizados a visualizar a NFe.
          nullable: true
        itens:
          type: array
          items:
            $ref: "#/components/schemas/ItemNfeAutomaticaInputModel"
          description: Itens da nota fiscal.
        transporte:
          $ref: "#/components/schemas/TransporteNfeAutomaticaInputModel"
        cnpjIntermediador:
          type: string
          description: CNPJ do intermediador.
          nullable: true
        identificadorIntermediador:
          type: string
          description: Identificador do intermediador.
          nullable: true
        informacaoAdicionalFisco:
          maxLength: 2000
          type: string
          description: Informação adicional de interesse do fisco.
          nullable: true
        informacaoComplementar:
          maxLength: 5000
          type: string
          description: Informação complementar.
          nullable: true
      additionalProperties: false
      description: Dados da nota fiscal eletrônica Automática.
```
