Templates / Create draft Moloni invoice-receipts with Portuguese NIF validation

Create draft Moloni invoice-receipts with Portuguese NIF validation

Ready for 3.0

by Fluxo Pronto · 1 views · created 2026-10-07 · Invoice Processing

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 17 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Sample payment data (Edit Fields (Set)): sets 9 fields: nome, email, nif…
  2. Configuration (Edit Fields (Set)): sets 14 fields: moloni_base_url, moloni_company_id, moloni_document_set_id…
  3. Prepare payment (Code): runs custom JavaScript code
  4. Validate payment and NIF (Code): runs custom JavaScript code
  5. Moloni: get access token (HTTP Request): calls an HTTP API
  6. Moloni: list VAT rates (HTTP Request): calls an HTTP API (POST)
  7. Check configured VAT rates (Code): runs custom JavaScript code
  8. Moloni: find customer by NIF (HTTP Request): calls an HTTP API (POST)
  9. Read customer search result (Code): runs custom JavaScript code
  10. Customer exists? (If): checks a condition and branches into true / false

…plus 6 more steps. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

Quick overview This workflow runs manually with sample payment data, validates a Portuguese NIF and VAT configuration, then uses the Moloni API to find or create the customer and generate a draft invoice-receipt (fatura-recibo) with the payment lines and tax…

Excerpt from Fluxo Pronto's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.