Finance template
EU VAT Invoice
Generic EU VAT invoice compliant with Article 226 of Directive 2006/112/EC. Per-line VAT rates + per-rate breakdown, reverse-charge support for cross-border B2B services.
Pro, Business & Scale plansLanguage: enEU-2006-112
slug: eu-vat-invoiceRendered with sample data
01
Quick start
Reference the template by its slug and pass your data. The same call works from any language; pick whichever fits your stack. Replace $KAMY_API_KEY with a key from the dashboard.
curl
curl https://kamy.dev/api/v1/render \
-H "Authorization: Bearer $KAMY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"templateSlug": "eu-vat-invoice",
"data": {
"invoiceNumber": "INV-EU-2026-1142",
"issueDate": "2026-04-15",
"taxPoint": "2026-04-12",
"currency": "EUR",
"reverseCharge": true,
"supplier": {
"name": "Berliner Daten GmbH",
"vatId": "DE123456789",
"country": "Germany",
"address": [
"Friedrichstraße 200",
"10117 Berlin"
],
"email": "[email protected]",
"iban": "DE89 3704 0044 0532 0130 00",
"bic": "COBADEFFXXX"
},
"customer": {
"name": "Atelier Lumière SARL",
"vatId": "FR40123456824",
"country": "France",
"address": [
"27 Rue du Chemin Vert",
"75011 Paris"
],
"email": "[email protected]"
},
// …
}
}'node.js
import { Kamy } from "@kamydev/sdk";
const kamy = new Kamy({ apiKey: process.env.KAMY_API_KEY! });
const { url } = await kamy.render({
templateSlug: "eu-vat-invoice",
data: {
"invoiceNumber": "INV-EU-2026-1142",
"issueDate": "2026-04-15",
"taxPoint": "2026-04-12",
"currency": "EUR",
"reverseCharge": true,
"supplier": {
"name": "Berliner Daten GmbH",
"vatId": "DE123456789",
"country": "Germany",
"address": [
"Friedrichstraße 200",
"10117 Berlin"
],
"email": "[email protected]",
"iban": "DE89 3704 0044 0532 0130 00",
"bic": "COBADEFFXXX"
},
"customer": {
"name": "Atelier Lumière SARL",
"vatId": "FR40123456824",
"country": "France",
"address": [
"27 Rue du Chemin Vert",
"75011 Paris"
],
"email": "[email protected]"
},
// …
},
});
console.log(url); // signed URL, valid for 1 hourpython
import os, requests
resp = requests.post(
"https://kamy.dev/api/v1/render",
headers={"Authorization": f"Bearer {os.environ['KAMY_API_KEY']}"},
json={
"templateSlug": "eu-vat-invoice",
"data": {
"invoiceNumber": "INV-EU-2026-1142",
"issueDate": "2026-04-15",
"taxPoint": "2026-04-12",
"currency": "EUR",
"reverseCharge": true,
"supplier": {
"name": "Berliner Daten GmbH",
"vatId": "DE123456789",
"country": "Germany",
"address": [
"Friedrichstraße 200",
"10117 Berlin"
],
"email": "[email protected]",
"iban": "DE89 3704 0044 0532 0130 00",
"bic": "COBADEFFXXX"
},
"customer": {
"name": "Atelier Lumière SARL",
"vatId": "FR40123456824",
"country": "France",
"address": [
"27 Rue du Chemin Vert",
"75011 Paris"
],
"email": "[email protected]"
},
// …
},
},
)
resp.raise_for_status()
print(resp.json()["url"])02
Sample payload
The full sample data the live preview above renders from. Use it as a starting point for your own integration — every field is optional except those marked required in the schema below.
json
{
"invoiceNumber": "INV-EU-2026-1142",
"issueDate": "2026-04-15",
"taxPoint": "2026-04-12",
"currency": "EUR",
"reverseCharge": true,
"supplier": {
"name": "Berliner Daten GmbH",
"vatId": "DE123456789",
"country": "Germany",
"address": [
"Friedrichstraße 200",
"10117 Berlin"
],
"email": "[email protected]",
"iban": "DE89 3704 0044 0532 0130 00",
"bic": "COBADEFFXXX"
},
"customer": {
"name": "Atelier Lumière SARL",
"vatId": "FR40123456824",
"country": "France",
"address": [
"27 Rue du Chemin Vert",
"75011 Paris"
],
"email": "[email protected]"
},
"lineItems": [
{
"description": "Data warehousing services · April 2026",
"quantity": 1,
"unitPrice": 4800,
"netAmount": 4800,
"vatRate": 0,
"vatAmount": 0,
"lineTotal": 4800
},
{
"description": "Migration support (24h)",
"quantity": 24,
"unitPrice": 145,
"netAmount": 3480,
"vatRate": 0,
"vatAmount": 0,
"lineTotal": 3480
}
],
"vatBreakdown": [
{
"rate": 0,
"net": 8280,
"vat": 0
}
],
"subtotal": 8280,
"discountAmount": 0,
"totalVat": 0,
"total": 8280,
"paymentTerms": "Net 30 from issue date.",
"notes": "Reverse charge — VAT to be accounted for by the recipient under Article 196."
}03
JSON Schema
The render endpoint validates your payload against this JSON Schema before queuing the render. Validation errors come back with HTTP 400 and a VALIDATION_FAILED code listing every offending path.
json
{
"type": "object",
"required": [
"invoiceNumber",
"issueDate",
"supplier",
"customer",
"lineItems",
"subtotal",
"totalVat",
"total"
],
"properties": {
"invoiceNumber": {
"type": "string",
"minLength": 1
},
"issueDate": {
"type": "string"
},
"taxPoint": {
"type": "string"
},
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3
},
"reverseCharge": {
"type": "boolean"
},
"supplier": {
"type": "object",
"required": [
"name",
"vatId",
"country"
],
"properties": {
"name": {
"type": "string"
},
"vatId": {
"type": "string",
"pattern": "^[A-Z]{2}[A-Z0-9]{2,12}$"
},
"country": {
"type": "string",
"minLength": 2
},
"address": {
"type": "array",
"items": {
"type": "string"
}
},
"email": {
"type": "string",
"format": "email"
},
"iban": {
"type": "string"
},
"bic": {
"type": "string"
}
}
},
"customer": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"vatId": {
"type": "string"
},
"country": {
"type": "string"
},
"address": {
"type": "array",
"items": {
"type": "string"
}
},
"email": {
"type": "string",
"format": "email"
}
}
},
"lineItems": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"description",
"quantity",
"unitPrice",
"netAmount",
"vatRate",
"vatAmount",
"lineTotal"
],
"properties": {
"description": {
"type": "string",
"minLength": 1
},
"quantity": {
"type": "number",
"minimum": 0
},
"unitPrice": {
"type": "number"
},
"netAmount": {
"type": "number"
},
"vatRate": {
"type": "number",
"minimum": 0
},
"vatAmount": {
"type": "number",
"minimum": 0
},
"lineTotal": {
"type": "number"
}
}
}
},
"vatBreakdown": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rate": {
"type": "number"
},
"net": {
"type": "number"
},
"vat": {
"type": "number"
}
}
}
},
"subtotal": {
"type": "number"
},
"discountAmount": {
"type": "number"
},
"totalVat": {
"type": "number"
},
"total": {
"type": "number"
},
"notes": {
"type": "string"
},
"paymentTerms": {
"type": "string"
}
}
}