Billing & metering

Lago n8n Node

An n8n community package for Lago billing. Manage customers and subscriptions, send usage events, work with invoices and wallets, and receive signed billing webhooks.

Published on npm · v0.1.3MIT-licensed project codeIndependent community integration

Using the integration

Usage events use a transaction ID for Lago deduplication. The node’s default combines the n8n execution ID and item index. Reusing the same ID can protect retries within that execution; a new execution produces a different default. Supply a stable ID from the original business event when you need deduplication across replays.

The trigger verifies JWT or HMAC signatures. Optional duplicate filtering remembers the last 200 delivery keys in workflow static data when a delivery key is present. It is a bounded filter, not a guarantee of exactly-once processing.

Some actions depend on Lago licensing. Credit-note creation and estimation require premium features. Automatic wallet top-up configuration is not exposed. Check the operation and the Lago edition before designing a workflow around it.

Supported resources and operations

ResourceOperations
Billable MetricCreate, Delete, Evaluate Expression, Get, Get Many, Update
CouponApply to Customer, Create, Delete, Get, Get Many, Get Many Applied, Remove From Customer, Update
Credit NoteCreate, Download, Estimate, Get, Get Many, Void
CustomerCreate or Update, Delete, Get, Get Many
EventEstimate Fees, Get, Get Many, Send, Send Batch
InvoiceCreate One-Off, Download, Finalize, Get, Get Many, Retry Payment, Update, Void
PlanCreate, Delete, Get, Get Many, Update
Plan ChargeCreate, Delete, Get, Get Many, Update
SubscriptionCreate, Get, Get Many, Terminate, Update
WalletCreate, Get, Get Many, Terminate, Update
Wallet TransactionCreate, Get Many
Webhook EndpointCreate, Delete, Get, Get Many, Update

Trigger setup

Lago Trigger registers or reuses an endpoint for its URL and removes it on deactivation. Configure the signature mode and event selection for your Lago instance.

Reviewed 2026-09-15 against release source 7f21e16. See the repository for tests and detailed limitations.

Free workflow templates

See Lago n8n Node in a complete workflow.

All workflows on n8n ↗
Interactive n8n workflow

Run bounded dunning for Lago payment failures with email alerts

This workflow listens to Lago payment webhooks, retries failed invoice collections up to three times, stores a durable dunning state in an n8n Data Table, and emails billing when a retry is requested, customer action is required, or a payment is recovered.

Open full viewer ↗
Loading interactive workflow…
Click to activate, then pan, zoom, or double-click a node.
View on n8n ↗
Interactive n8n workflow

Meter AI token usage and prepaid Lago credits with webhook receipts

This workflow receives AI token usage via a webhook, estimates the prepaid cost and projected credit balance in Lago, records the usage as a Lago event, and returns a receipt that warns when credits are at or below a configurable threshold.

Open full viewer ↗
Loading interactive workflow…