notas.dev

Emita NFS-e (nacional e prefeituras) com certificado A1 pela IA, com prévia e confirmação.

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
81%
Vollständigkeit des Schemas
81%
Qualität der Benennung
91%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Befunde (7)

  • LOWTool 'consultar_nota' description lacks action verbin consultar_nota
  • LOWTool 'listar_notas' description lacks action verbin listar_notas
  • LOWTool 'salvar_tomador' description lacks action verbin salvar_tomador
  • LOWTool 'saldo' description lacks action verbin saldo
  • LOWTool 'verificar_prontidao' description lacks action verbin verificar_prontidao
  • LOWTool 'consultar_nota_produto' description lacks action verbin consultar_nota_produto
  • LOWTool 'listar_notas_produto' description lacks action verbin listar_notas_produto

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~8,553Tokens (Tool-Definitionen)
~2.8 KBTypische Antwortgröße
Erhebliche Auswirkung auf die Aufmerksamkeit (6.68% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "notas-dev": {
      "url": "https://notas.dev/mcp"
    }
  }
}

Remote-Endpunkte

https://notas.dev/mcpstreamable-http

Was es kann

Tool-Inventar

Tools (21)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢buscar_servicos(busca, item, limite)

NÃO PRECISA DE LOGIN. Consulta a lista de serviços da LC 116 com os códigos NBS e a classificação do IBS/CBS (CST, cClassTrib e indicador de operação) do Anexo VIII oficial da NFS-e. `busca` acha o item por texto (ex.: "publicidade", "desenvolvimento de sistemas"); `item` traz um item inteiro (ex.: "17.06"). É correlação oficial, não lista de atividades permitidas: o código do serviço de uma nota é escolha do emitente com o contador.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "busca": {
      "type": "string",
      "description": "Texto a procurar no nome do item e nos NBS dele. Acento e maiúscula não importam."
    },
    "item": {
      "type": "string",
      "description": "Item da lista de serviços, ex.: \"17.06\" (aceita \"1706\" e o código nacional \"17.06.01\")."
    },
    "limite": {
      "type": "integer",
      "description": "Quantos itens devolver na busca por texto (1 a 20, padrão 8)."
    }
  }
}
🟢consultar_municipio(nome, uf, codigo_ibge, limite)

NÃO PRECISA DE LOGIN. Diz se um município usa o Emissor Nacional da NFS-e ou sistema próprio (e qual), segundo o painel público da Receita Federal, com a data do retrato, e por qual caminho a nota sai conforme o regime (MEI e Simples pelo padrão nacional; fora do Simples, pelo sistema da prefeitura). Informe `nome` (de preferência com `uf`) ou `codigo_ibge`.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "nome": {
      "type": "string",
      "description": "Nome do município, com ou sem acento."
    },
    "uf": {
      "type": "string",
      "description": "Sigla do estado, ex.: \"SP\"."
    },
    "codigo_ibge": {
      "type": "string",
      "description": "Código IBGE do município, 7 dígitos."
    },
    "limite": {
      "type": "integer",
      "description": "Quantos municípios devolver (1 a 20, padrão 5)."
    }
  }
}
🟢informacoes

NÃO PRECISA DE LOGIN. O que o notas.dev faz, quanto custa cada nota, o que é preciso para emitir, os limites e os links de documentação. Responde sem conta.

Eingabe-Schema

{
  "type": "object",
  "properties": {}
}
🟢listar_empresas

Lista todas as empresas (CNPJs) cadastradas nesta conta (ou a empresa da chave, se a chave for restrita a 1 CNPJ), com id, apelido, CNPJ, razão social e se já tem certificado A1. Use antes de emitir quando a conta tiver mais de um CNPJ.

Eingabe-Schema

{
  "type": "object",
  "properties": {}
}
⚪emitir_nota(empresa_id, tomador_id, configuracao_id, tomador_doc, tomador_razao, ...)

Prepara uma NFS-e e devolve a prévia (emitente, tomador, valor, serviço e tributação exatos) com um confirmacao_token. Não emite: a nota só sai quando confirmar_emissao recebe esse token. Tomador: tomador_id (salvo) ou tomador_doc + tomador_razao.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    },
    "tomador_id": {
      "type": "string",
      "description": "Id de um tomador salvo (listar_tomadores)."
    },
    "configuracao_id": {
      "type": "string",
      "description": "Id de uma combinação devolvida por listar_configuracoes."
    },
    "tomador_doc": {
      "type": "string",
      "description": "CNPJ (14 dígitos) ou CPF (11) do tomador."
    },
    "tomador_razao": {
      "type": "string",
      "description": "Razão social ou nome do tomador."
    },
    "tomador_tipo": {
      "type": "string",
      "enum": [
        "",
        "exterior"
      ],
      "description": "\"exterior\" para tomador estrangeiro."
    },
    "tomador_pais": {
      "type": "string",
      "description": "País ISO2 do tomador estrangeiro (ex.: \"SG\")."
    },
    "valor": {
      "type": "string",
      "description": "Valor do serviço em reais, ex.: \"1250,00\"."
    },
    "competencia": {
      "type": "string",
      "description": "Mês de referência YYYY-MM. Vazio = mês atual."
    },
    "competencia_fiscal": {
      "type": "string",
      "description": "Mês de competência fiscal no documento (dCompet, YYYY-MM). Vazio = mês da emissão."
    },
    "discriminacao": {
      "type": "string",
      "description": "Descrição do serviço, como sai impressa na nota."
    },
    "configuracao": {
      "type": "object",
      "description": "Configuração fiscal só desta nota. Campos omitidos herdam o cadastro/configuracao_id. Códigos fiscais vêm do emitente ou do contador.",
      "properties": {
        "codigo_servico": {
          "type": "string",
          "description": "Item da LC 116, ex.: 17.06 ou 17.06.01. Não é CNAE."
        },
        "codigo_cnae": {
          "type": "string",
          "description": "CNAE do serviço, com 7 dígitos."
        },
        "codigo_nbs": {
          "type": "string",
          "description": "NBS, se aplicável."
        },
        "ctrib_mun": {
          "type": "string",
          "description": "Código de tributação definido pela prefeitura; vazio quando não houver."
        },
        "aliquota_simples": {
          "type": "string",
          "description": "Percentual efetivo do Simples."
        },
        "calcular_iss": {
          "type": "boolean"
        },
        "aliquota_iss": {
          "type": "string",
          "description": "Percentual do ISS quando destacado."
        },
        "trib_federal": {
          "type": "string",
          "description": "Tributos federais aproximados (%)."
        },
        "trib_municipal": {
          "type": "string",
          "description": "Tributos municipais aproximados (%)."
        }
      }
    }
  },
  "required": [
    "valor",
    "discriminacao"
  ]
}
🟢listar_configuracoes(empresa_id, limite)

Últimas combinações realmente usadas de serviço, CNAE, NBS e tributação, cada uma com o configuracao_id que emitir_nota aceita.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    },
    "limite": {
      "type": "integer",
      "description": "Máximo de combinações (1–20, padrão 8)."
    }
  }
}
🔴confirmar_emissao(confirmacao_token)

Emite de verdade a nota da prévia: documento fiscal com valor legal, que só se desfaz por cancelamento. Idempotente: o mesmo token nunca emite duas vezes. Autorizada, devolve danfse_url (PDF) e xml_url, links do painel que abrem no navegador do usuário logado.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "confirmacao_token": {
      "type": "string",
      "description": "Token devolvido por emitir_nota."
    }
  },
  "required": [
    "confirmacao_token"
  ]
}
🟢consultar_nota(empresa_id, nota_id)

Situação de uma nota desta conta (status, número, chave de acesso, erro).

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    },
    "nota_id": {
      "type": "integer",
      "description": "Id da nota (veio da emissão ou de listar_notas)."
    }
  },
  "required": [
    "nota_id"
  ]
}
🟢listar_notas(empresa_id, status, competencia, limite)

Histórico de notas da empresa, com filtros opcionais.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    },
    "status": {
      "type": "string",
      "enum": [
        "emitida",
        "rejeitada",
        "pendente",
        "cancelada",
        "erro"
      ],
      "description": "Filtro por status."
    },
    "competencia": {
      "type": "string",
      "description": "Filtro YYYY-MM."
    },
    "limite": {
      "type": "integer",
      "description": "Máx. de notas (1–100, padrão 20)."
    }
  }
}
🔴cancelar_nota(empresa_id, nota_id, motivo, codigo_motivo, confirmar)

Cancela uma NFS-e autorizada na SEFIN. Exige confirmar=true; o cancelamento não se desfaz. O crédito da emissão NÃO volta (a nota existiu); o cancelamento é grátis.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    },
    "nota_id": {
      "type": "integer"
    },
    "motivo": {
      "type": "string",
      "description": "Motivo em texto (vai para a SEFIN)."
    },
    "codigo_motivo": {
      "type": "integer",
      "enum": [
        1,
        2,
        4
      ],
      "description": "1=erro na emissão · 2=serviço não prestado · 4=duplicidade."
    },
    "confirmar": {
      "type": "boolean",
      "description": "Precisa ser true — confirmação do usuário nesta conversa."
    }
  },
  "required": [
    "nota_id",
    "motivo",
    "confirmar"
  ]
}
🟢listar_tomadores(empresa_id, busca)

Tomadores salvos desta empresa, com o id que emitir_nota aceita. `busca` acha pelo nome, sem o CNPJ, ignorando acento, caixa e pontuação; pode voltar mais de um.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    },
    "busca": {
      "type": "string",
      "description": "Nome (ou parte) da empresa, ou o documento. Ex.: \"acai\" acha \"Açaí & Cia Ltda\"."
    }
  }
}
🔴salvar_tomador(empresa_id, doc, razao, tipo, pais)

Salva/atualiza um tomador frequente (ex.: "salva a Shopee como tomador").

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    },
    "doc": {
      "type": "string",
      "description": "CNPJ ou CPF (só números ou formatado)."
    },
    "razao": {
      "type": "string",
      "description": "Razão social ou nome."
    },
    "tipo": {
      "type": "string",
      "enum": [
        "",
        "exterior"
      ]
    },
    "pais": {
      "type": "string",
      "description": "ISO2, só para exterior."
    }
  },
  "required": [
    "razao"
  ]
}
🟢saldo

Quantidade de notas disponíveis (carteira única da conta, compartilhada entre todas as empresas), preço por nota, ambiente e teto diário. O nome técnico saldo é mantido por compatibilidade.

Eingabe-Schema

{
  "type": "object",
  "properties": {}
}
🟢verificar_prontidao(empresa_id)

Lê o cadastro da empresa e diz, item a item, o que já está certo, o que impede a próxima NFS-e e o que vale conferir: certificado A1 (e validade), regime, código do serviço, NBS, inscrição municipal, código de tributação municipal e acesso ao webservice quando a nota sai pelo sistema da prefeitura, e créditos. Cada item traz a tela do painel que resolve, o `campo` que configurar_emissao ajusta e, quando dá, uma `sugestao` (ex.: o NBS da correlação oficial). Use ANTES da primeira emissão e quando uma nota for recusada por cadastro.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    }
  }
}
⚪configurar_emissao(empresa_id, campos, confirmacao)

Ajusta o cadastro padrão de emissão em dois passos. 1) Chame só com `campos`: nada é gravado; volta a lista do que muda (valor atual → novo) e um código `confirmacao`. 2) Mostre a lista à pessoa e, SÓ com o "sim" dela, chame de novo com os MESMOS `campos` e o código. Aceita: codigo_servico (item LC 116, ex.: "17.06"), op_simp_nac ("1" fora do Simples, "2" MEI, "3" ME/EPP), aliquota_simples, inscricao_municipal, ctrib_mun, codigo_nbs (9 dígitos), codigo_cnae (7 dígitos) e ws_user. Senha do webservice, município, motor e numeração de DPS/RPS não mudam por aqui: são na tela do painel. Não invente valor: use o que a pessoa ou o contador informou, ou a `sugestao` de verificar_prontidao.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "empresa_id": {
      "type": "string",
      "description": "Id ou CNPJ (14 dígitos) da empresa emissora (veja listar_empresas). Obrigatório quando a conta tiver 2+ empresas e a credencial não estiver presa a uma única empresa."
    },
    "campos": {
      "type": "object",
      "description": "Só os campos que mudam. String vazia apaga o valor.",
      "properties": {
        "codigo_servico": {
          "type": "string"
        },
        "op_simp_nac": {
          "type": "string",
          "enum": [
            "1",
            "2",
            "3"
          ]
        },
        "aliquota_simples": {
          "type": "string",
          "description": "Ex.: \"6.00\"."
        },
        "inscricao_municipal": {
          "type": "string"
        },
        "ctrib_mun": {
          "type": "string"
        },
        "codigo_nbs": {
          "type": "string"
        },
        "codigo_cnae": {
          "type": "string"
        },
        "ws_user": {
          "type": "string"
        }
      }
    },
    "confirmacao": {
      "type": "string",
      "description": "O código que o primeiro passo devolveu. Só depois do \"sim\" da pessoa."
    }
  },
  "required": [
    "campos"
  ]
}
⚪comprar_creditos(valor_centavos)

Gera um link de pagamento (Pix/cartão) para adicionar créditos de notas. Não cobra nada: o pagamento acontece no navegador do usuário e as notas entram após a confirmação.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "valor_centavos": {
      "type": "integer",
      "enum": [
        1000,
        2500,
        5000,
        10000
      ],
      "description": "Valor da recarga em centavos: 1000 (R$10), 2500 (R$25), 5000 (R$50) ou 10000 (R$100)."
    }
  },
  "required": [
    "valor_centavos"
  ]
}
⚪emitir_nota_produto(ambiente, serie, numero, natureza_operacao, tipo, ...)

Prepara uma NF-e (tipo "nfe", venda para empresa ou pessoa com entrega) ou NFC-e (tipo "nfce", venda no balcão ao consumidor). NÃO emite: valida o documento de verdade (monta, assina e confere no leiaute) e devolve uma prévia com confirmacao_token; a nota só sai quando confirmar_emissao recebe esse token. Não há cálculo de imposto: emitente do Simples Nacional ou MEI pode omitir icms, pis e cofins nos itens; no regime normal o usuário (ou o contador) precisa informar cada grupo. NCM, CFOP e CST vêm do emitente ou do contador. "ambiente": "homologacao" testa sem valor fiscal e sem custo.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "ambiente": {
      "type": "string",
      "enum": [
        "producao",
        "homologacao"
      ]
    },
    "serie": {
      "type": "integer",
      "minimum": 0,
      "maximum": 889
    },
    "numero": {
      "type": "integer",
      "minimum": 1,
      "maximum": 999999999
    },
    "natureza_operacao": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "tipo": {
      "type": "string",
      "enum": [
        "nfe",
        "nfce"
      ]
    },
    "finalidade": {
      "type": "string",
      "enum": [
        "normal",
        "complementar",
        "ajuste",
        "devolucao"
      ]
    },
    "consumidor_final": {
      "type": "boolean"
    },
    "presenca": {
      "anyOf": [
        {
          "type": "number",
          "const": 0
        },
        {
          "type": "number",
          "const": 1
        },
        {
          "type": "number",
          "const": 2
        },
        {
          "type": "number",
          "const": 3
        },
        {
          "type": "number",
          "const": 4
        },
        {
          "type": "number",
          "const": 5
        },
        {
          "type": "number",
          "const": 9
        }
      ]
    },
    "destinatario": {
      "type": "object",
      "properties": {
        "cnpj": {
          "type": "string",
          "minLength": 11,
          "maxLength": 18
        },
        "cpf": {
          "type": "string",
          "minLength": 11,
          "maxLength": 18
        },
        "id_estrangeiro": {
          "type": "string",
          "minLength": 1,
          "maxLength": 20
        },
        "nome": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "ie": {
          "type": "string",
          "minLength": 1,
          "maxLength": 20
        },
        "ind_ie": {
          "anyOf": [
            {
              "type": "number",
              "const": 1
            },
            {
              "type": "number",
              "const": 2
            },
            {
              "type": "number",
              "const": 9
            }
          ]
        },
        "email": {
          "type": "string",
          "maxLength": 60
        },
        "suframa": {
          "type": "string",
          "minLength": 1,
          "maxLength": 9
        },
        "inscricao_municipal": {
          "type": "string",
          "minLength": 1,
          "maxLength": 15
        },
        "endereco": {
          "type": "object",
          "properties": {
            "logradouro": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "numero": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 60
                },
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              ]
            },
            "complemento": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "bairro": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "codigo_municipio": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 7
                },
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              ]
            },
            "municipio": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "uf": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            },
            "cep": {
              "type": "string",
              "minLength": 1,
              "maxLength": 9
            },
            "codigo_pais": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4
                },
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              ]
            },
            "pais": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "telefone": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "itens": {
      "minItems": 1,
      "maxItems": 990,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          },
          "descricao": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "ncm": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10
          },
          "cest": {
            "type": "string",
            "minLength": 1,
            "maxLength": 9
          },
          "cfop": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 5
              },
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            ]
          },
          "unidade": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6
          },
          "quantidade": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "valor_unitario": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "valor_total": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "gtin": {
            "type": "string",
            "minLength": 1,
            "maxLength": 14
          },
          "gtin_tributavel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 14
          },
          "unidade_tributavel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6
          },
          "quantidade_tributavel": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "valor_unitario_tributavel": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "desconto": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "frete": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "seguro": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "outras_despesas": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "valor_tributos_aproximado": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "compoe_total": {
            "type": "boolean"
          },
          "origem": {
            "type": "integer",
            "minimum": 0,
            "maximum": 8
          },
          "codigo_beneficio": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10
          },
          "pedido": {
            "type": "string",
            "minLength": 1,
            "maxLength": 15
          },
          "item_pedido": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 6
              },
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            ]
          },
          "informacoes_adicionais": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "icms": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "icms_uf_dest": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "ipi": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "ii": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "pis": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "cofins": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "pis_st": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "cofins_st": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "issqn": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "combustivel": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "veiculo": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 5000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          }
        },
        "required": [
          "descricao",
          "ncm",
          "cfop",
          "quantidade",
          "valor_unitario"
        ],
        "additionalProperties": false
      }
    },
    "pagamentos": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "forma": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20
          },
          "valor": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "string",
                "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
              }
            ]
          },
          "descricao": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          },
          "a_prazo": {
            "type": "boolean"
          },
          "cartao": {
            "type": "object",
            "properties": {
              "integracao": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,2}$"
                  }
                ]
              },
              "cnpj_credenciadora": {
                "type": "string",
                "minLength": 11,
                "maxLength": 18
              },
              "bandeira": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2
              },
              "autorizacao": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "forma",
          "valor"
        ],
        "additionalProperties": false
      }
    },
    "troco": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "string",
          "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
        }
      ]
    },
    "transporte": {
      "type": "object",
      "properties": {
        "modalidade_frete": {
          "anyOf": [
            {
              "type": "number",
              "const": 0
            },
            {
              "type": "number",
              "const": 1
            },
            {
              "type": "number",
              "const": 2
            },
            {
              "type": "number",
              "const": 3
            },
            {
              "type": "number",
              "const": 4
            },
            {
              "type": "number",
              "const": 9
            }
          ]
        },
        "transportadora": {
          "type": "object",
          "properties": {
            "cnpj": {
              "type": "string",
              "minLength": 11,
              "maxLength": 18
            },
            "cpf": {
              "type": "string",
              "minLength": 11,
              "maxLength": 18
            },
            "nome": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "ie": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20
            },
            "endereco": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "municipio": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "uf": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            }
          },
          "additionalProperties": false
        },
        "veiculo": {
          "type": "object",
          "properties": {
            "placa": {
              "type": "string",
              "minLength": 1,
              "maxLength": 8
            },
            "uf": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            },
            "rntc": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20
            }
          },
          "additionalProperties": false
        },
        "volumes": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "quantidade": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "especie": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              "marca": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              "numeracao": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              "peso_liquido": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
                  }
                ]
              },
              "peso_bruto": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "cobranca": {
      "type": "object",
      "properties": {
        "fatura": {
          "type": "object",
          "properties": {
            "numero": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "valor_original": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "string",
                  "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
                }
              ]
            },
            "desconto": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "string",
                  "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
                }
              ]
            },
            "valor_liquido": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "string",
                  "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
                }
              ]
            }
          },
          "additionalProperties": false
        },
        "duplicatas": {
          "maxItems": 120,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "numero": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              "vencimento": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "valor": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "string",
                    "pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
                  }
                ]
              }
            },
            "required": [
              "vencimento",
              "valor"
            ],
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "intermediador": {
      "type": "object",
      "properties": {
        "cnpj": {
          "type": "string",
          "minLength": 11,
          "maxLength": 18
        },
        "identificador": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        }
      },
      "required": [
        "cnpj",
        "identificador"
      ],
      "additionalProperties": false
    },
    "informacoes_complementares": {
      "type": "string",
      "minLength": 1,
      "maxLength": 5000
    },
    "informacoes_fisco": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "notas_referenciadas": {
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\d{44}$"
      }
    },
    "autorizados_xml": {
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 11,
        "maxLength": 18
      }
    },
    "extra": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "pattern": "^[A-Za-z][A-Za-z0-9]{0,40}$"
      },
      "additionalProperties": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "pattern": "^[A-Za-z][A-Za-z0-9_.]{0,40}$"
        },
        "additionalProperties": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 5000
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      }
    },
    "empresa_id": {
      "type": "string",
      "maxLength": 64
    }
  },
  "required": [
    "itens"
  ],
  "additionalProperties": false
}
🟢consultar_nota_produto(tipo, id, empresa_id)

Situação de uma NF-e ou NFC-e desta conta: status, número, chave de acesso e, se rejeitada, o motivo que a SEFAZ deu. Traz xml_url e pdf_url, links que exigem a chave de API da conta.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "tipo": {
      "type": "string",
      "enum": [
        "nfe",
        "nfce"
      ]
    },
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9]{20,32}$"
    },
    "empresa_id": {
      "type": "string",
      "maxLength": 64
    }
  },
  "required": [
    "tipo",
    "id"
  ],
  "additionalProperties": false
}
🟢listar_notas_produto(tipo, empresa_id, status, ambiente, limite)

Últimas NF-e ou NFC-e da conta, da mais nova para a mais antiga.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "tipo": {
      "type": "string",
      "enum": [
        "nfe",
        "nfce"
      ]
    },
    "empresa_id": {
      "type": "string",
      "maxLength": 64
    },
    "status": {
      "type": "string",
      "enum": [
        "enviando",
        "pendente",
        "autorizada",
        "rejeitada",
        "denegada",
        "cancelada",
        "encerrada"
      ]
    },
    "ambiente": {
      "type": "string",
      "enum": [
        "producao",
        "homologacao"
      ]
    },
    "limite": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "tipo"
  ],
  "additionalProperties": false
}
🔴cancelar_nota_produto(tipo, id, empresa_id, justificativa, confirmar)

Cancela uma NF-e ou NFC-e autorizada. Efeito fiscal que não se desfaz. Exige a justificativa (15 a 255 caracteres) e confirmar=true. O prazo é o da legislação; fora dele a SEFAZ recusa. O crédito da emissão não volta.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "tipo": {
      "type": "string",
      "enum": [
        "nfe",
        "nfce"
      ]
    },
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9]{20,32}$"
    },
    "empresa_id": {
      "type": "string",
      "maxLength": 64
    },
    "justificativa": {
      "type": "string",
      "minLength": 15,
      "maxLength": 255
    },
    "confirmar": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "tipo",
    "id",
    "justificativa",
    "confirmar"
  ],
  "additionalProperties": false
}
⚪emitente_fiscal(ie, crt, fantasia, telefone, csc_id, ...)

Sem argumentos, mostra o que falta para emitir nota de produto (inscrição estadual, regime tributário, séries). Com argumentos, grava: ie (inscrição estadual), crt (1 Simples Nacional, 2 Simples com excesso de sublimite, 3 regime normal, 4 MEI), fantasia, telefone e o próximo número de cada série. O CSC da NFC-e é segredo e se cadastra pela API ou pelo painel, não por aqui.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "ie": {
      "type": "string",
      "minLength": 2,
      "maxLength": 20
    },
    "crt": {
      "type": "string",
      "enum": [
        "1",
        "2",
        "3",
        "4"
      ]
    },
    "fantasia": {
      "type": "string",
      "maxLength": 60
    },
    "telefone": {
      "type": "string",
      "maxLength": 20
    },
    "csc_id": {
      "type": "string",
      "maxLength": 6
    },
    "csc_homologacao_id": {
      "type": "string",
      "maxLength": 6
    },
    "series": {
      "maxItems": 40,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "modelo": {
            "type": "string",
            "enum": [
              "nfe",
              "nfce",
              "cte",
              "mdfe"
            ]
          },
          "ambiente": {
            "type": "string",
            "enum": [
              "producao",
              "homologacao"
            ]
          },
          "serie": {
            "type": "integer",
            "minimum": 0,
            "maximum": 889
          },
          "proximo": {
            "type": "integer",
            "minimum": 1,
            "maximum": 999999999
          }
        },
        "required": [
          "modelo",
          "serie",
          "proximo"
        ],
        "additionalProperties": false
      }
    },
    "empresa_id": {
      "type": "string",
      "maxLength": 64
    }
  },
  "additionalProperties": false
}

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet21 Tools