AutomationFlowsData & Sheets › Venuepro - Log Payment Action

Venuepro - Log Payment Action

VenuePro - Log Payment Action. Uses postgres. Webhook trigger; 3 nodes.

Webhook trigger★☆☆☆☆ complexity3 nodesPostgres
Data & Sheets Trigger: Webhook Nodes: 3 Complexity: ★☆☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "VenuePro - Log Payment Action",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "log-payment-action",
        "authentication": "none",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "wh-log-001",
      "name": "Webhook: Log Payment Action",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -400,
        200
      ],
      "credentials": {}
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "INSERT INTO bookings.audit_log (tenant_id, action, entity, entity_id, payload, staff_user, source, created_at) VALUES ($1, $2, $3, $4, $5::jsonb, $6, $7, NOW()) RETURNING id",
        "options": {
          "queryReplacement": "={{ [\n  parseInt($('Webhook: Log Payment Action').first().json.body.tenant_id || $('Webhook: Log Payment Action').first().json.query.tenant_id || '0'),\n  ($('Webhook: Log Payment Action').first().json.body.action || 'manual_payment').substring(0, 100),\n  ($('Webhook: Log Payment Action').first().json.body.entity || 'booking').substring(0, 50),\n  ($('Webhook: Log Payment Action').first().json.body.entity_id || null),\n  JSON.stringify({\n    amount:         $('Webhook: Log Payment Action').first().json.body.amount || null,\n    method:         $('Webhook: Log Payment Action').first().json.body.payment_method || null,\n    payment_type:   $('Webhook: Log Payment Action').first().json.body.payment_type || null,\n    reference:      $('Webhook: Log Payment Action').first().json.body.reference_number || null,\n    customer_id:    $('Webhook: Log Payment Action').first().json.body.customer_id || null\n  }),\n  ($('Webhook: Log Payment Action').first().json.body.staff_user || null),\n  ($('Webhook: Log Payment Action').first().json.body.source || 'dashboard').substring(0, 50)\n] }}"
        }
      },
      "id": "db-log-001",
      "name": "DB: Insert Audit Log",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.6,
      "position": [
        -160,
        200
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={\"status\":\"logged\",\"id\":\"{{ $json.id }}\"}",
        "options": {}
      },
      "id": "re-log-001",
      "name": "Respond: OK",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        80,
        200
      ]
    }
  ],
  "active": true,
  "connections": {
    "Webhook: Log Payment Action": {
      "main": [
        [
          {
            "node": "DB: Insert Audit Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DB: Insert Audit Log": {
      "main": [
        [
          {
            "node": "Respond: OK",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a9f3c2d1-b4e5-6789-cdef-012345678901",
  "id": "LogPaymentActionWF01",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

VenuePro - Log Payment Action. Uses postgres. Webhook trigger; 3 nodes.

Source: https://github.com/AndyJay72/VenueDesk/blob/main/n8n-workflows/LogPaymentActionWF.json — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

Text-to-SQL: Check Status. Uses postgres. Webhook trigger; 5 nodes.

Postgres
Data & Sheets

Anadir_Cliente. Uses postgres. Webhook trigger; 4 nodes.

Postgres
Data & Sheets

Register Company Workflow. Uses start, postgres. Webhook trigger; 4 nodes.

Start, Postgres
Data & Sheets

Tool: Get Postgres Tables. Uses postgres. Webhook trigger; 4 nodes.

Postgres
Data & Sheets

Track Complaint Status. Uses postgres. Webhook trigger; 4 nodes.

Postgres