Create e-invoice
About this tool
How to use it
- Choose this tool.
- Type or paste your invoice details: number, date, seller, buyer and lines.
- Choose the standard and profile, and whether you want a data file or a PDF.
- Press Generate.
- Download the invoice file.
What you get back
Try Create e-invoice in the Studio
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;