Finance template

UK VAT Invoice

HMRC compliant VAT invoice (VAT Notice 700/21) with VRN, tax point, multi-rate line items, and reverse-charge support for B2B services.

Pro, Business & Scale plansCountry: GBLanguage: enUK-HMRC
slug: uk-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": "uk-vat-invoice",
    "data": {
      "invoiceNumber": "INV-UK-2026-0312",
      "issueDate": "2026-04-15",
      "taxPoint": "2026-04-12",
      "currency": "GBP",
      "reverseCharge": false,
      "supplier": {
        "name": "Northwind Software Ltd.",
        "vrn": "GB123456789",
        "address": [
          "12 Old Brompton Road",
          "London SW7 3DJ",
          "United Kingdom"
        ],
        "email": "[email protected]",
        "phone": "+44 20 7946 0184",
        "iban": "GB29 NWBK 6016 1331 9268 19"
      },
      "customer": {
        "name": "Globex UK Ltd.",
        "vrn": "GB987654321",
        "address": [
          "100 Queen Victoria St",
          "London EC4V 4DH"
        ],
        "email": "[email protected]"
      },
      "lineItems": [
      // …
    }
  }'
node.js
import { Kamy } from "@kamydev/sdk";

const kamy = new Kamy({ apiKey: process.env.KAMY_API_KEY! });

const { url } = await kamy.render({
  templateSlug: "uk-vat-invoice",
  data: {
    "invoiceNumber": "INV-UK-2026-0312",
    "issueDate": "2026-04-15",
    "taxPoint": "2026-04-12",
    "currency": "GBP",
    "reverseCharge": false,
    "supplier": {
      "name": "Northwind Software Ltd.",
      "vrn": "GB123456789",
      "address": [
        "12 Old Brompton Road",
        "London SW7 3DJ",
        "United Kingdom"
      ],
      "email": "[email protected]",
      "phone": "+44 20 7946 0184",
      "iban": "GB29 NWBK 6016 1331 9268 19"
    },
    "customer": {
      "name": "Globex UK Ltd.",
      "vrn": "GB987654321",
      "address": [
        "100 Queen Victoria St",
        "London EC4V 4DH"
      ],
      "email": "[email protected]"
    },
    "lineItems": [
    // …
  },
});

console.log(url); // signed URL, valid for 1 hour
python
import os, requests

resp = requests.post(
    "https://kamy.dev/api/v1/render",
    headers={"Authorization": f"Bearer {os.environ['KAMY_API_KEY']}"},
    json={
        "templateSlug": "uk-vat-invoice",
        "data": {
          "invoiceNumber": "INV-UK-2026-0312",
          "issueDate": "2026-04-15",
          "taxPoint": "2026-04-12",
          "currency": "GBP",
          "reverseCharge": false,
          "supplier": {
            "name": "Northwind Software Ltd.",
            "vrn": "GB123456789",
            "address": [
              "12 Old Brompton Road",
              "London SW7 3DJ",
              "United Kingdom"
            ],
            "email": "[email protected]",
            "phone": "+44 20 7946 0184",
            "iban": "GB29 NWBK 6016 1331 9268 19"
          },
          "customer": {
            "name": "Globex UK Ltd.",
            "vrn": "GB987654321",
            "address": [
              "100 Queen Victoria St",
              "London EC4V 4DH"
            ],
            "email": "[email protected]"
          },
          "lineItems": [
          // …
        },
    },
)
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-UK-2026-0312",
  "issueDate": "2026-04-15",
  "taxPoint": "2026-04-12",
  "currency": "GBP",
  "reverseCharge": false,
  "supplier": {
    "name": "Northwind Software Ltd.",
    "vrn": "GB123456789",
    "address": [
      "12 Old Brompton Road",
      "London SW7 3DJ",
      "United Kingdom"
    ],
    "email": "[email protected]",
    "phone": "+44 20 7946 0184",
    "iban": "GB29 NWBK 6016 1331 9268 19"
  },
  "customer": {
    "name": "Globex UK Ltd.",
    "vrn": "GB987654321",
    "address": [
      "100 Queen Victoria St",
      "London EC4V 4DH"
    ],
    "email": "[email protected]"
  },
  "lineItems": [
    {
      "description": "Cloud platform subscription · Q2 2026",
      "quantity": 3,
      "unitPrice": 1200,
      "netAmount": 3600,
      "vatRate": 20,
      "vatAmount": 720,
      "lineTotal": 4320
    },
    {
      "description": "Implementation consulting (16h)",
      "quantity": 16,
      "unitPrice": 180,
      "netAmount": 2880,
      "vatRate": 20,
      "vatAmount": 576,
      "lineTotal": 3456
    }
  ],
  "subtotal": 6480,
  "discountAmount": 0,
  "totalVat": 1296,
  "total": 7776,
  "paymentTerms": "Net 30 from issue date.",
  "notes": "Standard rate VAT (20%) applied per VAT Notice 700/21."
}
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
    },
    "exchangeRate": {
      "type": "number"
    },
    "reverseCharge": {
      "type": "boolean"
    },
    "supplier": {
      "type": "object",
      "required": [
        "name",
        "vrn"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "vrn": {
          "type": "string",
          "pattern": "^GB[0-9]{9}([0-9]{3})?$"
        },
        "address": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "phone": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        }
      }
    },
    "customer": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "vrn": {
          "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"
          }
        }
      }
    },
    "subtotal": {
      "type": "number"
    },
    "discountAmount": {
      "type": "number"
    },
    "totalVat": {
      "type": "number"
    },
    "total": {
      "type": "number"
    },
    "notes": {
      "type": "string"
    },
    "paymentTerms": {
      "type": "string"
    }
  }
}
UK VAT Invoice template — Kamy PDF API — Kamy