npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-invoice-api-xhub

v1.2.1

Published

n8n community nodes for invoice-api.xhub E-Invoice API - Generate, parse, convert, and validate e-invoices across 37 countries with 18+ formats

Readme

n8n-nodes-invoice-api-xhub

npm version npm downloads License: MIT n8n

This is the official invoice-api.xhub community node for n8n. Generate, parse, convert, and validate e-invoices across 37 countries and 18+ formats — including XRechnung, ZUGFeRD, Factur-X, FatturaPA, and Peppol — directly from your n8n workflows.

Full documentation | API Playground | OpenAPI Reference | YouTube

Why invoice-api.xhub?

  • 37 countries, 18+ formats — one unified JSON schema for XRechnung, ZUGFeRD, Factur-X, FatturaPA, UBL, Peppol, and more
  • Compliance built in — validation against country-specific rules (EN 16931, B2G/B2B mandates)
  • No-code automation — drag-and-drop n8n node with auto-detect parsing, binary file support, and batch processing
  • AI-ready — usable as a tool in n8n AI Agent workflows
  • Free sandbox — test with sk_test_* keys, no credit card required

See the full feature overview and n8n workflow templates.

Table of Contents

Installation

Follow the installation guide in the n8n community nodes documentation.

The package name is n8n-nodes-invoice-api-xhub.

For a step-by-step walkthrough, see the n8n Integration Guide or watch the video walkthrough on YouTube.

Operations

Convert

  • Convert an e-invoice between formats (e.g. XRechnung → ZUGFeRD / Factur-X, or back to XRechnung) — source format and country are auto-detected, fields that cannot be carried across are reported as conversionWarnings

Generate

  • Create e-invoice from JSON data (XRechnung, ZUGFeRD, Factur-X, FatturaPA, and more)

Parse

  • Extract structured invoice data from XML or PDF documents

Parse (Auto-Detect)

  • Parse an invoice with automatic country and format detection — no configuration needed

Validate

  • Validate invoice JSON against country-specific rules and return errors/warnings
  • valid reflects the object-level country rules only (required fields, totals, VAT IDs)
  • results[] has one entry per e-invoice format: the generated XML checked against XSD + Schematron, each with its own valid and errors[]
  • An invoice can be valid: true while results[n].valid is false — enable Fail on Errors and check results when you need format-level conformance

Get Formats

  • Retrieve all supported countries and formats, or formats for a specific country

Credentials

This node requires an API key from invoice-api.xhub.io.

  1. Register at invoice-api.xhub.io and navigate to Dashboard → API Keys
  2. Create a new API key — keys follow the format sk_live_... (production) or sk_test_... (sandbox)
  3. In n8n, go to Credentials → New Credential, search for "invoice-api.xhub API", and enter your key

The credential test automatically verifies the connection by calling GET /api/v1/invoice/formats.

Compatibility

Tested with n8n 1.94.0 and later.

Requires Node.js ≥ 22.0.

Usage

Supported Countries (37)

| Region | Countries | | -------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | DACH | Germany (DE), Austria (AT), Switzerland (CH), Liechtenstein (LI) | | Western Europe | France (FR), Belgium (BE), Netherlands (NL), Luxembourg (LU), Ireland (IE), United Kingdom (GB) | | Southern Europe | Italy (IT), Spain (ES), Portugal (PT), Greece (GR), Cyprus (CY), Malta (MT) | | Northern Europe | Denmark (DK), Sweden (SE), Finland (FI), Norway (NO), Iceland (IS) | | Baltics | Estonia (EE), Latvia (LV), Lithuania (LT) | | Central & Eastern Europe | Poland (PL), Czech Republic (CZ), Slovakia (SK), Hungary (HU), Slovenia (SI), Croatia (HR), Romania (RO), Bulgaria (BG) | | Middle East & Asia-Pacific | United Arab Emirates (AE), Oman (OM), Japan (JP), Australia (AU), New Zealand (NZ) |

Supported Formats

pdf · ubl · peppol-ubl · zugferd · xrechnung · ebinterface · qr-bill · facturx · fatturapa · facturae · isdoc · nav · mydata · cii · ksef · efactura · saft

For format details and country-specific requirements, see the API documentation.

Minimal Example: Generate a German XRechnung

{
	"operation": "generate",
	"countryCode": "DE",
	"format": "xrechnung",
	"invoiceData": {
		"type": "invoice",
		"invoiceNumber": "INV-2025-001",
		"issueDate": "2025-01-15",
		"dueDate": "2025-02-14",
		"currency": "EUR",
		"seller": {
			"name": "ACME GmbH",
			"street": "Hauptstraße 1",
			"city": "Berlin",
			"postalCode": "10115",
			"countryCode": "DE",
			"vatId": "DE123456789"
		},
		"buyer": {
			"name": "Customer AG",
			"street": "Nebenstraße 2",
			"city": "München",
			"postalCode": "80331",
			"countryCode": "DE"
		},
		"countrySpecific": { "buyerReference": "BUYER-REF-001" },
		"items": [
			{
				"position": 1,
				"description": "Consulting",
				"quantity": 10,
				"unit": "HUR",
				"unitPrice": 150.0,
				"netAmount": 1500.0,
				"taxRate": 19,
				"taxAmount": 285.0,
				"grossAmount": 1785.0
			}
		],
		"taxSummary": [{ "taxRate": 19, "netAmount": 1500.0, "taxAmount": 285.0 }],
		"subtotal": 1500.0,
		"total": 1785.0,
		"paymentTerms": { "dueDays": 30 }
	}
}

For the full invoice data schema, all parameters, and workflow examples see the API Reference and n8n workflow templates.

Troubleshooting

| Issue | Solution | | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 401 Unauthorized | Check your API key format (sk_live_* or sk_test_*) and that it's entered in the credential | | Invalid VAT ID | Ensure VAT IDs include the country prefix (e.g., DE123456789) | | Binary output is empty | Set "Output Binary" to true and check the binary property name (default: data) | | Request timeout | For large batches, increase the n8n node timeout or process invoices in smaller chunks | | Format not found | Use the "Get Formats" operation to list available formats for a country | | Fields from the previous node are gone after this node | Every operation replaces the item JSON with the API response (success, valid, results, data, …). Read upstream data explicitly, e.g. $('Build Invoice').item.json.department, instead of expecting it on $json | | API error never reaches the Error Output | With "On Error → Continue" (regular or error output) the node catches API errors itself and emits { success: false, error, httpCode, errors[], complianceErrors[] } on the main output. Add an IF on {{ $json.success }} right after the node to route failures; the Error Output only fires for exceptions the node does not catch |

For more help, see the full troubleshooting guide or contact [email protected].

Resources

Version History

See Releases for the full changelog.

License

MIT