{
  "name": "Receipt Verification Endpoint (Signatrust)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "verify-receipt",
        "options": {},
        "responseMode": "responseNode"
      },
      "id": "a35cdd51-0d74-4d84-b897-3c2d65a79d02",
      "name": "Verify Request",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        300
      ]
    },
    {
      "parameters": {
        "operation": "verifyReceipt",
        "receiptId": "={{ $json.body.receipt_id }}"
      },
      "id": "8fedf185-6855-4e91-a003-a359a234841d",
      "name": "Signatrust: Verify",
      "type": "n8n-nodes-signatrust.signatrust",
      "typeVersion": 1,
      "position": [
        220,
        300
      ],
      "credentials": {
        "signatrustApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json) }}",
        "options": {}
      },
      "id": "02ff5af9-c741-4e41-b06e-ec75f1161c36",
      "name": "Respond Verification",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        440,
        300
      ]
    },
    {
      "parameters": {
        "content": "## Receipt Verification Endpoint\nExpose an endpoint that anyone (auditor, partner, regulator) can call with a `receipt_id` to **independently verify** the Ed25519 signature and integrity of a Signatrust receipt.",
        "height": 190,
        "width": 430,
        "color": 6
      },
      "id": "dd0a8fae-dace-4d53-bff4-d26b124c51d2",
      "name": "Sticky Note dfd66a",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        30
      ]
    }
  ],
  "connections": {
    "Verify Request": {
      "main": [
        [
          {
            "node": "Signatrust: Verify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Signatrust: Verify": {
      "main": [
        [
          {
            "node": "Respond Verification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": [
    {
      "name": "Receipt Verification Endpoint \u2014 Verification"
    },
    {
      "name": "Receipt Verification Endpoint \u2014 Audit"
    },
    {
      "name": "Signatrust (22)"
    }
  ],
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "versionId": "e4eb0724-baba-4210-9813-94151355a715"
}