{
  "name": "Lookup Lightning Invoice",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "lookup-invoice",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "webhook-trigger",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "operation": "lookupInvoice",
        "invoiceOrHash": "={{ $json.invoice_or_hash }}"
      },
      "id": "nwc-lookup",
      "name": "Lookup Invoice",
      "type": "n8n-nodes-nwc.nwc",
      "typeVersion": 1,
      "position": [
        460,
        300
      ],
      "credentials": {
        "nwcUrl": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ { success: $json.success, invoice_details: $json } }}",
        "options": {}
      },
      "id": "respond",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        680,
        300
      ]
    }
  ],
  "connections": {
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Lookup Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lookup Invoice": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "versionId": "1"
}