{
  "name": "Conota — Consultar CNPJ",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "ef15e11a-4d49-45d0-adca-67215a3cc805",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "content": "## O começo\nAqui você aperta **Execute workflow** para testar.\n\nNum fluxo de verdade, este bloco vira um **Webhook** — quem dispara é a sua loja, o seu ERP ou a sua planilha.",
        "height": 352,
        "width": 432,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -160
      ],
      "typeVersion": 1,
      "id": "8f032c78-dd7a-4ec0-974b-8f393cb190ab",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "url": "=https://api.conota.dev/v1/cnpj/{{ $json.CNPJexemplo }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        592,
        0
      ],
      "id": "ee6d4a4b-fc98-4aa3-b98b-0fada2a65f2c",
      "name": "CONOTA - Consultar CNPJ"
    },
    {
      "parameters": {
        "content": "## Consultar CNPJ\nDigite **sem a barra**: `00000000000191`.\n\nA barra da máscara separa o endereço da chamada e faria a rota não ser encontrada. CNPJ alfanumérico é aceito. [Ver na referência](https://api.conota.dev/docs#tag/CNPJ/paths/~1v1~1cnpj~1%7Bcnpj%7D/get)",
        "height": 304,
        "width": 608,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -112
      ],
      "typeVersion": 1,
      "id": "1b96047c-e6d3-45ae-8d82-6f35fd29864a",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "{\n  \"CNPJexemplo\": \"00000000000191\"\n}\n",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        336,
        0
      ],
      "id": "1dce5b5d-4389-41fb-8efe-0e4caf365af4",
      "name": "CNPJexemplo"
    }
  ],
  "pinData": {},
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "CNPJexemplo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CONOTA - Consultar CNPJ": {
      "main": [
        []
      ]
    },
    "CNPJexemplo": {
      "main": [
        [
          {
            "node": "CONOTA - Consultar CNPJ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": []
}
