{
  "name": "Prometiam: check a supplier",
  "nodes": [
    {
      "parameters": {},
      "id": "6a1d7a0e-1b0e-4c53-9f0a-5d2f0c0a0001",
      "name": "When clicking Execute workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [0, 0]
    },
    {
      "parameters": {
        "resource": "company",
        "operation": "search",
        "returnAll": false,
        "limit": 1,
        "filters": {
          "country": "ES",
          "companyNumber": "A46103834"
        }
      },
      "id": "6a1d7a0e-1b0e-4c53-9f0a-5d2f0c0a0002",
      "name": "Find the company",
      "type": "n8n-nodes-prometiam.prometiam",
      "typeVersion": 1,
      "position": [240, 0]
    },
    {
      "parameters": {
        "resource": "validation",
        "operation": "vat",
        "vatNumber": "={{ $json.vat_number }}"
      },
      "id": "6a1d7a0e-1b0e-4c53-9f0a-5d2f0c0a0003",
      "name": "Validate the VAT number",
      "type": "n8n-nodes-prometiam.prometiam",
      "typeVersion": 1,
      "position": [480, -80]
    },
    {
      "parameters": {
        "resource": "insolvency",
        "operation": "search",
        "returnAll": false,
        "limit": 10,
        "filters": {
          "country": "ES",
          "companyNumber": "={{ $('Find the company').item.json.company_number }}"
        }
      },
      "id": "6a1d7a0e-1b0e-4c53-9f0a-5d2f0c0a0004",
      "name": "Search insolvency notices",
      "type": "n8n-nodes-prometiam.prometiam",
      "typeVersion": 1,
      "position": [480, 100]
    }
  ],
  "connections": {
    "When clicking Execute workflow": {
      "main": [[{ "node": "Find the company", "type": "main", "index": 0 }]]
    },
    "Find the company": {
      "main": [[
        { "node": "Validate the VAT number", "type": "main", "index": 0 },
        { "node": "Search insolvency notices", "type": "main", "index": 0 }
      ]]
    }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "pinData": {}
}
