Free plan

Create e-invoice

Make an electronic invoice that accounting programs can read
POST
/v1/documents/einvoice-create

About this tool

An e-invoice is an invoice with its details stored in a standard form that computers read by themselves. This tool builds one from the details you type: seller, buyer, lines, tax and totals. You choose the standard (such as UBL, or Factur-X and ZUGFeRD) and whether you want the data file or a readable PDF. Totals are calculated exactly and the result is checked.
For example, a customer in Germany asks for an invoice in the XRechnung form, so you create one from your invoice details.

How to use it

  1. Choose this tool.
  2. Type or paste your invoice details: number, date, seller, buyer and lines.
  3. Choose the standard and profile, and whether you want a data file or a PDF.
  4. Press Generate.
  5. Download the invoice file.

What you get back

You get an e-invoice file to download, either the data file (XML) or a PDF with the data inside. Any problems found are listed.
GOOD TO KNOW
The data is checked by the business rules of the European standard; the official XSD and Schematron files are not part of this server, so run them in your own pipeline before sending to a tax authority. The PDF is not PDF/A-3. No file is needed. Counts as one document.
TEST IT LIVE

Try Create e-invoice in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Documents
Plan
Free
Method
POST
Endpoint
/v1/documents/einvoice-create
Tool ID
documents.einvoice-create
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Documents
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/documents/einvoice-create" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'invoice={"number":"INV-1","date":"2026-11-01","currency":"EUR","seller":{"name":"Acme GmbH","street":"Hauptstr 1","city":"Berlin","postal_code":"10115","country":"DE","vat_id":"DE123456789"},"buyer":{"name":"Buyer SA","street":"Rue 2","city":"Paris","postal_code":"75001","country":"FR"},"items":[{"description":"Widget","quantity":3,"unit_price":19.99,"tax_rate":19}]}' \
  -F 'syntax=ubl' \
  -F 'profile=en16931'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.einvoiceCreate({
    "invoice": "{\"number\":\"INV-1\",\"date\":\"2026-11-01\",\"currency\":\"EUR\",\"seller\":{\"name\":\"Acme GmbH\",\"street\":\"Hauptstr 1\",\"city\":\"Berlin\",\"postal_code\":\"10115\",\"country\":\"DE\",\"vat_id\":\"DE123456789\"},\"buyer\":{\"name\":\"Buyer SA\",\"street\":\"Rue 2\",\"city\":\"Paris\",\"postal_code\":\"75001\",\"country\":\"FR\"},\"items\":[{\"description\":\"Widget\",\"quantity\":3,\"unit_price\":19.99,\"tax_rate\":19}]}",
    "syntax": "ubl",
    "profile": "en16931"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->einvoiceCreate([
    'invoice' => '{"number":"INV-1","date":"2026-11-01","currency":"EUR","seller":{"name":"Acme GmbH","street":"Hauptstr 1","city":"Berlin","postal_code":"10115","country":"DE","vat_id":"DE123456789"},"buyer":{"name":"Buyer SA","street":"Rue 2","city":"Paris","postal_code":"75001","country":"FR"},"items":[{"description":"Widget","quantity":3,"unit_price":19.99,"tax_rate":19}]}',
    'syntax' => 'ubl',
    'profile' => 'en16931',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Make a structured e-invoice (EN 16931) from invoice data: UBL 2.1 (Peppol BIS 3.0, XRechnung) or UN/CEFACT CII (Factur-X / ZUGFeRD profiles), as XML or as a readable PDF with the XML attached. Totals are exact to the cent, line by line and per VAT group, and the result is read back and checked.

Create e-invoice works from text and settings, so no file is needed. The required inputs are invoice.

Create e-invoice is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/documents/einvoice-create with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.