Finance template

Egypt VAT Invoice

Egyptian Tax Authority (ETA) compliant bilingual tax invoice. Standard VAT 14%, schedule tax 10% per line, Law 67 / 2016.

Pro, Business & Scale plansCountry: EGLanguage: ar+enEG-ETA
slug: eg-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": "eg-vat-invoice",
    "data": {
      "invoiceNumber": "EG-2026-00482",
      "issueDate": "2026-04-15",
      "supplyDate": "2026-04-12",
      "currency": "EGP",
      "supplier": {
        "name": "Cairo Software House SAE",
        "trn": "451873291",
        "address": [
          "Smart Village, Building B-12",
          "Giza 12577, Egypt"
        ],
        "email": "[email protected]",
        "phone": "+20 2 3535 8800",
        "iban": "EG13 0010 0000 0000 1234 5678 901"
      },
      "recipient": {
        "name": "Alexandria Trading Group",
        "trn": "338294015",
        "address": [
          "Sidi Gaber, Office Tower 4",
          "Alexandria 21523, Egypt"
        ],
        "email": "[email protected]"
      },
      "lineItems": [
        {
          "description": "ERP customization — Q2 2026",
      // …
    }
  }'
node.js
import { Kamy } from "@kamydev/sdk";

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

const { url } = await kamy.render({
  templateSlug: "eg-vat-invoice",
  data: {
    "invoiceNumber": "EG-2026-00482",
    "issueDate": "2026-04-15",
    "supplyDate": "2026-04-12",
    "currency": "EGP",
    "supplier": {
      "name": "Cairo Software House SAE",
      "trn": "451873291",
      "address": [
        "Smart Village, Building B-12",
        "Giza 12577, Egypt"
      ],
      "email": "[email protected]",
      "phone": "+20 2 3535 8800",
      "iban": "EG13 0010 0000 0000 1234 5678 901"
    },
    "recipient": {
      "name": "Alexandria Trading Group",
      "trn": "338294015",
      "address": [
        "Sidi Gaber, Office Tower 4",
        "Alexandria 21523, Egypt"
      ],
      "email": "[email protected]"
    },
    "lineItems": [
      {
        "description": "ERP customization — Q2 2026",
    // …
  },
});

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": "eg-vat-invoice",
        "data": {
          "invoiceNumber": "EG-2026-00482",
          "issueDate": "2026-04-15",
          "supplyDate": "2026-04-12",
          "currency": "EGP",
          "supplier": {
            "name": "Cairo Software House SAE",
            "trn": "451873291",
            "address": [
              "Smart Village, Building B-12",
              "Giza 12577, Egypt"
            ],
            "email": "[email protected]",
            "phone": "+20 2 3535 8800",
            "iban": "EG13 0010 0000 0000 1234 5678 901"
          },
          "recipient": {
            "name": "Alexandria Trading Group",
            "trn": "338294015",
            "address": [
              "Sidi Gaber, Office Tower 4",
              "Alexandria 21523, Egypt"
            ],
            "email": "[email protected]"
          },
          "lineItems": [
            {
              "description": "ERP customization — Q2 2026",
          // …
        },
    },
)
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": "EG-2026-00482",
  "issueDate": "2026-04-15",
  "supplyDate": "2026-04-12",
  "currency": "EGP",
  "supplier": {
    "name": "Cairo Software House SAE",
    "trn": "451873291",
    "address": [
      "Smart Village, Building B-12",
      "Giza 12577, Egypt"
    ],
    "email": "[email protected]",
    "phone": "+20 2 3535 8800",
    "iban": "EG13 0010 0000 0000 1234 5678 901"
  },
  "recipient": {
    "name": "Alexandria Trading Group",
    "trn": "338294015",
    "address": [
      "Sidi Gaber, Office Tower 4",
      "Alexandria 21523, Egypt"
    ],
    "email": "[email protected]"
  },
  "lineItems": [
    {
      "description": "ERP customization — Q2 2026",
      "quantity": 1,
      "unitPrice": 80000,
      "netAmount": 80000,
      "vatRate": 14,
      "vatAmount": 11200,
      "lineTotal": 91200
    },
    {
      "description": "Quarterly support retainer",
      "quantity": 1,
      "unitPrice": 18000,
      "netAmount": 18000,
      "vatRate": 14,
      "vatAmount": 2520,
      "lineTotal": 20520
    }
  ],
  "subtotal": 98000,
  "discountAmount": 0,
  "totalVat": 13720,
  "total": 111720,
  "paymentTerms": "Net 30 from issue date.",
  "notes": "VAT 14% per Law 67/2016. E-invoiced via the ETA portal."
}
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",
    "recipient",
    "lineItems",
    "subtotal",
    "totalVat",
    "total"
  ],
  "properties": {
    "invoiceNumber": {
      "type": "string",
      "minLength": 1
    },
    "issueDate": {
      "type": "string"
    },
    "supplyDate": {
      "type": "string"
    },
    "currency": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3
    },
    "exchangeRate": {
      "type": "number"
    },
    "supplier": {
      "type": "object",
      "required": [
        "name",
        "trn"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1
        },
        "trn": {
          "type": "string",
          "pattern": "^[0-9]{9}$|^[0-9]{14}$"
        },
        "address": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "phone": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        }
      }
    },
    "recipient": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1
        },
        "trn": {
          "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"
    }
  }
}
Egypt VAT Invoice template — Kamy PDF API — Kamy