Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Coordinate Invoices, Payment Events and Refund Records

Overview

Build an n8n workflow that receives payment and refund events from your payment provider, prepares draft invoices, and logs each event with the invoice PDF link and a timestamp for a person to review.

Problem or Objective

More in Finance and Admin

AI Agents and Models

Tools and Integrations

Prerequisites
An n8n instance (self-hosted or n8n cloud), a payment provider that can send event notifications to a webhook URL, and an invoicing system and records store that n8n can write to; check each on its own documentation.

How It Works

In n8n, start a workflow with a Webhook node, require authentication on it, and point your payment provider's event notifications at its test URL; check in the provider's own settings which payment and refund events it can send. Branch on the event type. For a successful payment, look up the customer and order, create the invoice as a draft in your invoicing system, and add a row to a records sheet or database with the event ID, invoice number, PDF link, amount and time received. For a refund event, find the original row by payment ID and add the refund amount and time instead of overwriting it. Skip event IDs that are already logged. A person reviews the drafts and the day's log, then sends the invoices from the invoicing system. Check first whether your invoicing system can create drafts and return a PDF link; if not, have the workflow log the payment only and create the invoice by hand. Test with the provider's test events, then publish the workflow to use the production URL.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up n8n.
  2. Check the prerequisitesAn n8n instance (self-hosted or n8n cloud), a payment provider that can send event notifications to a webhook URL, and an invoicing system and records store that n8n can write to; check each on its own documentation.
  3. Gather your detailsCollect what the prompt asks for: Business name, Payment provider, Invoicing system, Where records are kept.
  4. Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
  5. Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.

Practical Starter Prompt: Plan the payment events workflow

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
Help me set up an n8n workflow for [Business name]. It starts with a Webhook node, with authentication required, that receives payment and refund events from [Payment provider]. For each payment, create a draft invoice in [Invoicing system] and add a row to [Where records are kept] with the event ID, invoice number, PDF link, amount and time received. For each refund, update the original row with the refund amount and time. Skip event IDs already logged. Never send invoices or issue refunds: a person reviews the drafts and the log and sends invoices after approval. Use test events only until I approve going live.

Keep the workflow to drafts and logging: a person reviews the drafts and the log and sends invoices after approval. Run it on test events first, and publish it only after the test rows look right.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. The n8n Webhook node page says the node receives data from apps and services when an event occurs, can require authentication from callers, and registers its production URL when you publish the workflow. The payment provider, invoicing system and records store are separate systems that were not verified here; whether they send these events, create draft invoices or return a PDF link depends on what each offers.

Limitations and Considerations

The workflow only records payment and refund events: it does not issue refunds or move money, and invoices reach customers only after a person sends them. Check whether your provider can deliver the same event more than once; keying the log on the event ID keeps a repeat from being logged twice. Require authentication on the webhook so that only your provider can trigger it. Compare the log with the provider's own reports regularly before relying on it for bookkeeping, and treat it as a record, not accounting or tax advice. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Official Website

The official site of the main tool or project in this use case.

Visit Website (opens in a new tab)n8n.io

Related Videos

About n8n-io/n8n

About n8n-io/n8n

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. Webhook | Nodes | n8n Docs (opens in a new tab)

    Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 15:59 UTC

    What this source supports
    • Use the Webhook node to create webhooks , which can receive data from apps and services when an event occurs.
    • The webhook allows you to trigger workflows from services that don't have a dedicated app trigger node.
    • You can require authentication for any service calling your webhook URL.
    • The production URL registers when you publish the workflow, and it doesn't display data in the editor.
  2. n8n-io/n8n README (opens in a new tab)

    Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC

    What this source supports
    • Fair-code platform to build and deploy AI agents and workflows.
Report a problem

More with n8n

Planned, not done

Support Customers Through Telegram Messages

An n8n workflow turns new customer emails and contact-form messages into tasks with draft replies, and sends each draft to the owner in Telegram with Approve and Decline buttons before anything goes out.

docs.n8n.ion8n-io/n8n
Planned, not done

Capture Restaurant Orders With a Conversational Agent

Build an n8n chat that takes a customer's food order from your menu, reads it back, and records it in a data table only after a staff member approves it in Slack.

docs.n8n.ion8n-io/n8n
Reported by source

Build a self-hosted AI agent workflow with human approval

Use n8n's visual canvas to wire an LLM agent to your apps, add tools and memory, and pause for human approval before it acts.

github.comn8n-io/n8n

View all: n8n