Emita NFS-e (nacional e prefeituras) com certificado A1 pela IA, com prévia e confirmação.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Opcional. Chave gerada em notas.dev/app. Sem ela, o cliente entra por login (OAuth).
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
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.
Item da lista de serviços, ex.: "17.06" (aceita "1706" e o código nacional "17.06.01").
Texto a procurar no nome do item e nos NBS dele. Acento e maiúscula não importam.
Quantos itens devolver na busca por texto (1 a 20, padrão 8).
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http notas-dev https://notas.dev/mcp
Headers
X-API-Key (optional, not in the config above): Opcional. Chave gerada em notas.dev/app. Sem ela, o cliente entra por login (OAuth).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.
| Argument | Type | Description |
|---|---|---|
| item | string | Item da lista de serviços, ex.: "17.06" (aceita "1706" e o código nacional "17.06.01"). |
| busca | string | Texto a procurar no nome do item e nos NBS dele. Acento e maiúscula não importam. |
| limite | integer | Quantos itens devolver na busca por texto (1 a 20, padrão 8). |
{
"type": "object",
"properties": {
"item": {
"type": "string",
"description": "Item da lista de serviços, ex.: \"17.06\" (aceita \"1706\" e o código nacional \"17.06.01\")."
},
"busca": {
"type": "string",
"description": "Texto a procurar no nome do item e nos NBS dele. Acento e maiúscula não importam."
},
"limite": {
"type": "integer",
"description": "Quantos itens devolver na busca por texto (1 a 20, padrão 8)."
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| motivo* | string | Motivo em texto (vai para a SEFIN). |
| nota_id* | integer | |
| confirmar* | boolean | Precisa ser true — confirmação do usuário nesta conversa. |
| codigo_motivo | integer | 1=erro na emissão · 2=serviço não prestado · 4=duplicidade. |
{
"type": "object",
"required": [
"nota_id",
"motivo",
"confirmar"
],
"properties": {
"motivo": {
"type": "string",
"description": "Motivo em texto (vai para a SEFIN)."
},
"nota_id": {
"type": "integer"
},
"confirmar": {
"type": "boolean",
"description": "Precisa ser true — confirmação do usuário nesta conversa."
},
"codigo_motivo": {
"enum": [
1,
2,
4
],
"type": "integer",
"description": "1=erro na emissão · 2=serviço não prestado · 4=duplicidade."
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| id* | string | |
| tipo* | string | |
| confirmar* | boolean | |
| justificativa* | string |
{
"type": "object",
"required": [
"tipo",
"id",
"justificativa",
"confirmar"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9]{20,32}$"
},
"tipo": {
"enum": [
"nfe",
"nfce"
],
"type": "string"
},
"confirmar": {
"type": "boolean",
"const": true
},
"justificativa": {
"type": "string",
"maxLength": 255,
"minLength": 15
}
},
"additionalProperties": false
}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.
| Argument | Type | Description |
|---|---|---|
| valor_centavos* | integer | Valor da recarga em centavos: 1000 (R$10), 2500 (R$25), 5000 (R$50) ou 10000 (R$100). |
{
"type": "object",
"required": [
"valor_centavos"
],
"properties": {
"valor_centavos": {
"enum": [
1000,
2500,
5000,
10000
],
"type": "integer",
"description": "Valor da recarga em centavos: 1000 (R$10), 2500 (R$25), 5000 (R$50) ou 10000 (R$100)."
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| campos* | object | Só os campos que mudam. String vazia apaga o valor. |
| confirmacao | string | O código que o primeiro passo devolveu. Só depois do "sim" da pessoa. |
{
"type": "object",
"required": [
"campos"
],
"properties": {
"campos": {
"type": "object",
"properties": {
"ws_user": {
"type": "string"
},
"ctrib_mun": {
"type": "string"
},
"codigo_nbs": {
"type": "string"
},
"codigo_cnae": {
"type": "string"
},
"op_simp_nac": {
"enum": [
"1",
"2",
"3"
],
"type": "string"
},
"codigo_servico": {
"type": "string"
},
"aliquota_simples": {
"type": "string",
"description": "Ex.: \"6.00\"."
},
"inscricao_municipal": {
"type": "string"
}
},
"description": "Só os campos que mudam. String vazia apaga o valor."
},
"confirmacao": {
"type": "string",
"description": "O código que o primeiro passo devolveu. Só depois do \"sim\" da pessoa."
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| confirmacao_token* | string | Token devolvido por emitir_nota. |
{
"type": "object",
"required": [
"confirmacao_token"
],
"properties": {
"confirmacao_token": {
"type": "string",
"description": "Token devolvido por emitir_nota."
}
}
}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`.
| Argument | Type | Description |
|---|---|---|
| uf | string | Sigla do estado, ex.: "SP". |
| nome | string | Nome do município, com ou sem acento. |
| limite | integer | Quantos municípios devolver (1 a 20, padrão 5). |
| codigo_ibge | string | Código IBGE do município, 7 dígitos. |
{
"type": "object",
"properties": {
"uf": {
"type": "string",
"description": "Sigla do estado, ex.: \"SP\"."
},
"nome": {
"type": "string",
"description": "Nome do município, com ou sem acento."
},
"limite": {
"type": "integer",
"description": "Quantos municípios devolver (1 a 20, padrão 5)."
},
"codigo_ibge": {
"type": "string",
"description": "Código IBGE do município, 7 dígitos."
}
}
}Situação de uma nota desta conta (status, número, chave de acesso, erro).
| Argument | Type | Description |
|---|---|---|
| nota_id* | integer | Id da nota (veio da emissão ou de listar_notas). |
{
"type": "object",
"required": [
"nota_id"
],
"properties": {
"nota_id": {
"type": "integer",
"description": "Id da nota (veio da emissão ou de listar_notas)."
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| id* | string | |
| tipo* | string |
{
"type": "object",
"required": [
"tipo",
"id"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9]{20,32}$"
},
"tipo": {
"enum": [
"nfe",
"nfce"
],
"type": "string"
}
},
"additionalProperties": false
}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.
| Argument | Type | Description |
|---|---|---|
| ie | string | |
| crt | string | |
| csc_id | string | |
| series | array | |
| fantasia | string | |
| telefone | string | |
| csc_homologacao_id | string |
{
"type": "object",
"properties": {
"ie": {
"type": "string",
"maxLength": 20,
"minLength": 2
},
"crt": {
"enum": [
"1",
"2",
"3",
"4"
],
"type": "string"
},
"csc_id": {
"type": "string",
"maxLength": 6
},
"series": {
"type": "array",
"items": {
"type": "object",
"required": [
"modelo",
"serie",
"proximo"
],
"properties": {
"serie": {
"type": "integer",
"maximum": 889,
"minimum": 0
},
"modelo": {
"enum": [
"nfe",
"nfce",
"cte",
"mdfe"
],
"type": "string"
},
"proximo": {
"type": "integer",
"maximum": 999999999,
"minimum": 1
},
"ambiente": {
"enum": [
"producao",
"homologacao"
],
"type": "string"
}
},
"additionalProperties": false
},
"maxItems": 40
},
"fantasia": {
"type": "string",
"maxLength": 60
},
"telefone": {
"type": "string",
"maxLength": 20
},
"csc_homologacao_id": {
"type": "string",
"maxLength": 6
}
},
"additionalProperties": false
}Prepara uma NFS-e e devolve a prévia (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.
| Argument | Type | Description |
|---|---|---|
| valor* | string | Valor do serviço em reais, ex.: "1250,00". |
| tomador_id | string | Id de um tomador salvo (listar_tomadores). |
| competencia | string | Mês de referência YYYY-MM. Vazio = mês atual. |
| tomador_doc | string | CNPJ (14 dígitos) ou CPF (11) do tomador. |
| configuracao | object | Configuração fiscal só desta nota. Campos omitidos herdam o cadastro/configuracao_id. Códigos fiscais vêm do emitente ou do contador. |
| tomador_pais | string | País ISO2 do tomador estrangeiro (ex.: "SG"). |
| tomador_tipo | string | "exterior" para tomador estrangeiro. |
| discriminacao* | string | Descrição do serviço, como sai impressa na nota. |
| tomador_razao |
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.
| Argument | Type | Description |
|---|---|---|
| tipo | string | |
| extra | object | |
| itens* | array | |
| serie | integer | |
| troco | any | |
| numero | integer | |
| ambiente | string | |
| cobranca | object | |
| presenca | any | |
| finalidade |
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.
No arguments.
{
"type": "object",
"properties": {}
}Últimas combinações realmente usadas de serviço, CNAE, NBS e tributação, cada uma com o configuracao_id que emitir_nota aceita.
| Argument | Type | Description |
|---|---|---|
| limite | integer | Máximo de combinações (1–20, padrão 8). |
{
"type": "object",
"properties": {
"limite": {
"type": "integer",
"description": "Máximo de combinações (1–20, padrão 8)."
}
}
}Histórico de notas da conta, com filtros opcionais.
| Argument | Type | Description |
|---|---|---|
| limite | integer | Máx. de notas (1–100, padrão 20). |
| status | string | Filtro por status. |
| competencia | string | Filtro YYYY-MM. |
{
"type": "object",
"properties": {
"limite": {
"type": "integer",
"description": "Máx. de notas (1–100, padrão 20)."
},
"status": {
"enum": [
"emitida",
"rejeitada",
"pendente",
"cancelada",
"erro"
],
"type": "string",
"description": "Filtro por status."
},
"competencia": {
"type": "string",
"description": "Filtro YYYY-MM."
}
}
}Últimas NF-e ou NFC-e da conta, da mais nova para a mais antiga.
| Argument | Type | Description |
|---|---|---|
| tipo* | string | |
| limite | integer | |
| status | string | |
| ambiente | string |
{
"type": "object",
"required": [
"tipo"
],
"properties": {
"tipo": {
"enum": [
"nfe",
"nfce"
],
"type": "string"
},
"limite": {
"type": "integer",
"maximum": 50,
"minimum": 1
},
"status": {
"enum": [
"enviando",
"pendente",
"autorizada",
"rejeitada",
"denegada",
"cancelada",
"encerrada"
],
"type": "string"
},
"ambiente": {
"enum": [
"producao",
"homologacao"
],
"type": "string"
}
},
"additionalProperties": false
}Tomadores salvos desta conta, 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.
| Argument | Type | Description |
|---|---|---|
| busca | string | Nome (ou parte) da empresa, ou o documento. Ex.: "acai" acha "Açaí & Cia Ltda". |
{
"type": "object",
"properties": {
"busca": {
"type": "string",
"description": "Nome (ou parte) da empresa, ou o documento. Ex.: \"acai\" acha \"Açaí & Cia Ltda\"."
}
}
}Quantidade de notas disponíveis, preço por nota, ambiente e teto diário. O nome técnico saldo é mantido por compatibilidade.
No arguments.
{
"type": "object",
"properties": {}
}Salva/atualiza um tomador frequente (ex.: "salva a Shopee como tomador").
| Argument | Type | Description |
|---|---|---|
| doc | string | CNPJ ou CPF (só números ou formatado). |
| pais | string | ISO2, só para exterior. |
| tipo | string | |
| razao* | string | Razão social ou nome. |
{
"type": "object",
"required": [
"razao"
],
"properties": {
"doc": {
"type": "string",
"description": "CNPJ ou CPF (só números ou formatado)."
},
"pais": {
"type": "string",
"description": "ISO2, só para exterior."
},
"tipo": {
"enum": [
"",
"exterior"
],
"type": "string"
},
"razao": {
"type": "string",
"description": "Razão social ou nome."
}
}
}Lê o cadastro da conta 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.
No arguments.
{
"type": "object",
"properties": {}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 30, 2026.
| string |
| Razão social ou nome do tomador. |
| configuracao_id | string | Id de uma combinação devolvida por listar_configuracoes. |
| competencia_fiscal | string | Mês de competência fiscal no documento (dCompet, YYYY-MM). Vazio = mês da emissão. |
{
"type": "object",
"required": [
"valor",
"discriminacao"
],
"properties": {
"valor": {
"type": "string",
"description": "Valor do serviço em reais, ex.: \"1250,00\"."
},
"tomador_id": {
"type": "string",
"description": "Id de um tomador salvo (listar_tomadores)."
},
"competencia": {
"type": "string",
"description": "Mês de referência YYYY-MM. Vazio = mês atual."
},
"tomador_doc": {
"type": "string",
"description": "CNPJ (14 dígitos) ou CPF (11) do tomador."
},
"configuracao": {
"type": "object",
"properties": {
"ctrib_mun": {
"type": "string",
"description": "Código de tributação definido pela prefeitura; vazio quando não houver."
},
"codigo_nbs": {
"type": "string",
"description": "NBS, se aplicável."
},
"codigo_cnae": {
"type": "string",
"description": "CNAE do serviço, com 7 dígitos."
},
"aliquota_iss": {
"type": "string",
"description": "Percentual do ISS quando destacado."
},
"calcular_iss": {
"type": "boolean"
},
"trib_federal": {
"type": "string",
"description": "Tributos federais aproximados (%)."
},
"codigo_servico": {
"type": "string",
"description": "Item da LC 116, ex.: 17.06 ou 17.06.01. Não é CNAE."
},
"trib_municipal": {
"type": "string",
"description": "Tributos municipais aproximados (%)."
},
"aliquota_simples": {
"type": "string",
"description": "Percentual efetivo do Simples."
}
},
"description": "Configuração fiscal só desta nota. Campos omitidos herdam o cadastro/configuracao_id. Códigos fiscais vêm do emitente ou do contador."
},
"tomador_pais": {
"type": "string",
"description": "País ISO2 do tomador estrangeiro (ex.: \"SG\")."
},
"tomador_tipo": {
"enum": [
"",
"exterior"
],
"type": "string",
"description": "\"exterior\" para tomador estrangeiro."
},
"discriminacao": {
"type": "string",
"description": "Descrição do serviço, como sai impressa na nota."
},
"tomador_razao": {
"type": "string",
"description": "Razão social ou nome do tomador."
},
"configuracao_id": {
"type": "string",
"description": "Id de uma combinação devolvida por listar_configuracoes."
},
"competencia_fiscal": {
"type": "string",
"description": "Mês de competência fiscal no documento (dCompet, YYYY-MM). Vazio = mês da emissão."
}
}
}| string |
| pagamentos | array |
| transporte | object |
| destinatario | object |
| intermediador | object |
| autorizados_xml | array |
| consumidor_final | boolean |
| informacoes_fisco | string |
| natureza_operacao | string |
| notas_referenciadas | array |
| informacoes_complementares | string |
{
"type": "object",
"required": [
"itens"
],
"properties": {
"tipo": {
"enum": [
"nfe",
"nfce"
],
"type": "string"
},
"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"
}
]
}
}
},
"itens": {
"type": "array",
"items": {
"type": "object",
"required": [
"descricao",
"ncm",
"cfop",
"quantidade",
"valor_unitario"
],
"properties": {
"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"
}
]
}
},
"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"
}
]
}
},
"ncm": {
"type": "string",
"maxLength": 10,
"minLength": 1
},
"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"
}
]
}
},
"cest": {
"type": "string",
"maxLength": 9,
"minLength": 1
},
"cfop": {
"anyOf": [
{
"type": "string",
"maxLength": 5,
"minLength": 1
},
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
]
},
"gtin": {
"type": "string",
"maxLength": 14,
"minLength": 1
},
"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"
}
]
}
},
"frete": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"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"
}
]
}
},
"codigo": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"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"
}
]
}
},
"origem": {
"type": "integer",
"maximum": 8,
"minimum": 0
},
"pedido": {
"type": "string",
"maxLength": 15,
"minLength": 1
},
"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"
}
]
}
},
"seguro": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"unidade": {
"type": "string",
"maxLength": 6,
"minLength": 1
},
"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"
}
]
}
},
"desconto": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"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"
}
]
}
},
"descricao": {
"type": "string",
"maxLength": 120,
"minLength": 1
},
"quantidade": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"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"
}
]
}
},
"item_pedido": {
"anyOf": [
{
"type": "string",
"maxLength": 6,
"minLength": 1
},
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
]
},
"valor_total": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"compoe_total": {
"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"
}
]
}
},
"valor_unitario": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"gtin_tributavel": {
"type": "string",
"maxLength": 14,
"minLength": 1
},
"outras_despesas": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"codigo_beneficio": {
"type": "string",
"maxLength": 10,
"minLength": 1
},
"unidade_tributavel": {
"type": "string",
"maxLength": 6,
"minLength": 1
},
"quantidade_tributavel": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"informacoes_adicionais": {
"type": "string",
"maxLength": 500,
"minLength": 1
},
"valor_tributos_aproximado": {
"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})?$"
}
]
}
},
"additionalProperties": false
},
"maxItems": 990,
"minItems": 1
},
"serie": {
"type": "integer",
"maximum": 889,
"minimum": 0
},
"troco": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"numero": {
"type": "integer",
"maximum": 999999999,
"minimum": 1
},
"ambiente": {
"enum": [
"producao",
"homologacao"
],
"type": "string"
},
"cobranca": {
"type": "object",
"properties": {
"fatura": {
"type": "object",
"properties": {
"numero": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"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})?$"
}
]
},
"valor_original": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
}
},
"additionalProperties": false
},
"duplicatas": {
"type": "array",
"items": {
"type": "object",
"required": [
"vencimento",
"valor"
],
"properties": {
"valor": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"numero": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"vencimento": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
}
},
"additionalProperties": false
},
"maxItems": 120
}
},
"additionalProperties": false
},
"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
}
]
},
"finalidade": {
"enum": [
"normal",
"complementar",
"ajuste",
"devolucao"
],
"type": "string"
},
"pagamentos": {
"type": "array",
"items": {
"type": "object",
"required": [
"forma",
"valor"
],
"properties": {
"forma": {
"type": "string",
"maxLength": 20,
"minLength": 1
},
"valor": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"cartao": {
"type": "object",
"properties": {
"bandeira": {
"type": "string",
"maxLength": 2,
"minLength": 1
},
"integracao": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,2}$"
}
]
},
"autorizacao": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"cnpj_credenciadora": {
"type": "string",
"maxLength": 18,
"minLength": 11
}
},
"additionalProperties": false
},
"a_prazo": {
"type": "boolean"
},
"descricao": {
"type": "string",
"maxLength": 60,
"minLength": 1
}
},
"additionalProperties": false
},
"maxItems": 100,
"minItems": 1
},
"transporte": {
"type": "object",
"properties": {
"veiculo": {
"type": "object",
"properties": {
"uf": {
"type": "string",
"maxLength": 2,
"minLength": 2
},
"rntc": {
"type": "string",
"maxLength": 20,
"minLength": 1
},
"placa": {
"type": "string",
"maxLength": 8,
"minLength": 1
}
},
"additionalProperties": false
},
"volumes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"marca": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"especie": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"numeracao": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"peso_bruto": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
},
"quantidade": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"peso_liquido": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^\\d{1,13}([.,]\\d{1,10})?$"
}
]
}
},
"additionalProperties": false
},
"maxItems": 100
},
"transportadora": {
"type": "object",
"properties": {
"ie": {
"type": "string",
"maxLength": 20,
"minLength": 1
},
"uf": {
"type": "string",
"maxLength": 2,
"minLength": 2
},
"cpf": {
"type": "string",
"maxLength": 18,
"minLength": 11
},
"cnpj": {
"type": "string",
"maxLength": 18,
"minLength": 11
},
"nome": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"endereco": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"municipio": {
"type": "string",
"maxLength": 60,
"minLength": 1
}
},
"additionalProperties": false
},
"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
}
]
}
},
"additionalProperties": false
},
"destinatario": {
"type": "object",
"properties": {
"ie": {
"type": "string",
"maxLength": 20,
"minLength": 1
},
"cpf": {
"type": "string",
"maxLength": 18,
"minLength": 11
},
"cnpj": {
"type": "string",
"maxLength": 18,
"minLength": 11
},
"nome": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"email": {
"type": "string",
"maxLength": 60
},
"ind_ie": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
},
{
"type": "number",
"const": 9
}
]
},
"suframa": {
"type": "string",
"maxLength": 9,
"minLength": 1
},
"endereco": {
"type": "object",
"properties": {
"uf": {
"type": "string",
"maxLength": 2,
"minLength": 2
},
"cep": {
"type": "string",
"maxLength": 9,
"minLength": 1
},
"pais": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"bairro": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"numero": {
"anyOf": [
{
"type": "string",
"maxLength": 60,
"minLength": 1
},
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
]
},
"telefone": {
"type": "string",
"maxLength": 20,
"minLength": 1
},
"municipio": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"logradouro": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"codigo_pais": {
"anyOf": [
{
"type": "string",
"maxLength": 4,
"minLength": 1
},
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
]
},
"complemento": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"codigo_municipio": {
"anyOf": [
{
"type": "string",
"maxLength": 7,
"minLength": 1
},
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
]
}
},
"additionalProperties": false
},
"id_estrangeiro": {
"type": "string",
"maxLength": 20,
"minLength": 1
},
"inscricao_municipal": {
"type": "string",
"maxLength": 15,
"minLength": 1
}
},
"additionalProperties": false
},
"intermediador": {
"type": "object",
"required": [
"cnpj",
"identificador"
],
"properties": {
"cnpj": {
"type": "string",
"maxLength": 18,
"minLength": 11
},
"identificador": {
"type": "string",
"maxLength": 60,
"minLength": 1
}
},
"additionalProperties": false
},
"autorizados_xml": {
"type": "array",
"items": {
"type": "string",
"maxLength": 18,
"minLength": 11
},
"maxItems": 10
},
"consumidor_final": {
"type": "boolean"
},
"informacoes_fisco": {
"type": "string",
"maxLength": 2000,
"minLength": 1
},
"natureza_operacao": {
"type": "string",
"maxLength": 60,
"minLength": 1
},
"notas_referenciadas": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d{44}$"
},
"maxItems": 500
},
"informacoes_complementares": {
"type": "string",
"maxLength": 5000,
"minLength": 1
}
},
"additionalProperties": false
}