{ "name": "Verify Receipt on Webhook with Slack Alert (Signatrust)", "nodes": [ { "parameters": { "httpMethod": "POST", "path": "verify-and-alert", "options": {}, "responseMode": "responseNode" }, "id": "23532931-c82e-407e-a9f7-ffc2d50563cc", "name": "Inbound Receipt", "type": "n8n-nodes-base.webhook", "typeVersion": 2.1, "position": [ 0, 300 ], "webhookId": "41f0e95f-a2c8-4e5b-8ab9-68a5f795b344" }, { "parameters": { "operation": "verifyReceipt", "receiptId": "={{ $json.body.receipt_id }}" }, "id": "158f816a-c182-4c1b-9f3b-dbd09134711e", "name": "Signatrust: Verify", "type": "n8n-nodes-signatrust.signatrust", "typeVersion": 1, "position": [ 220, 300 ], "credentials": { "signatrustApi": { "id": "REPLACE_SIGNATRUST_CRED_ID", "name": "Signatrust API account" } } }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "loose" }, "conditions": [ { "id": "c4525dbf-623c-4054-b043-f660b50e39c1", "leftValue": "={{ $json.valid }}", "rightValue": "true", "operator": { "type": "boolean", "operation": "true" } } ], "combinator": "and" }, "options": {} }, "id": "688461ef-3bf6-4127-a0dc-9e99484b82b1", "name": "IF Valid", "type": "n8n-nodes-base.if", "typeVersion": 2.2, "position": [ 440, 300 ] }, { "parameters": { "select": "channel", "channelId": { "__rl": true, "mode": "name", "value": "#audit" }, "text": "={{ 'Receipt ' + $('Inbound Receipt').item.json.body.receipt_id + ' is VALID' }}", "otherOptions": {} }, "id": "8a756b2e-d202-45f8-9688-45a59054f88e", "name": "Slack: Valid", "type": "n8n-nodes-base.slack", "typeVersion": 2.3, "position": [ 660, 200 ], "credentials": { "slackApi": { "id": "REPLACE_SLACK_CRED_ID", "name": "Slack account" } } }, { "parameters": { "select": "channel", "channelId": { "__rl": true, "mode": "name", "value": "#audit" }, "text": "={{ '⚠ Receipt ' + $('Inbound Receipt').item.json.body.receipt_id + ' FAILED verification' }}", "otherOptions": {} }, "id": "a810da6a-ddbb-40e7-bff8-f09cdd43cd3e", "name": "Slack: INVALID", "type": "n8n-nodes-base.slack", "typeVersion": 2.3, "position": [ 660, 440 ], "credentials": { "slackApi": { "id": "REPLACE_SLACK_CRED_ID", "name": "Slack account" } } }, { "parameters": { "content": "## Verify-on-Webhook + Alert\nWhenever a receipt is submitted, verify it and post the result to Slack. Turns Signatrust verification into a real-time integrity monitor.", "height": 180, "width": 430, "color": 6 }, "id": "513186b5-f32e-42ca-9322-15f334d7ef46", "name": "Sticky Note 192cfe", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ -40, 30 ] } ], "connections": { "Inbound Receipt": { "main": [ [ { "node": "Signatrust: Verify", "type": "main", "index": 0 } ] ] }, "Signatrust: Verify": { "main": [ [ { "node": "IF Valid", "type": "main", "index": 0 } ] ] }, "IF Valid": { "main": [ [ { "node": "Slack: Valid", "type": "main", "index": 0 } ], [ { "node": "Slack: INVALID", "type": "main", "index": 0 } ] ] } }, "active": false, "pinData": {}, "settings": { "executionOrder": "v1" }, "tags": [ { "name": "Verify Receipt on Webhook — Verification" }, { "name": "Verify Receipt on Webhook — Monitoring" }, { "name": "Signatrust (24)" } ], "meta": { "templateCredsSetupCompleted": false }, "versionId": "ec44e34b-38ad-4fe8-9641-5bdcb8994f07" }