Finance template

UAE Tax Invoice

Federal Tax Authority (FTA) compliant bilingual tax invoice for UAE businesses. VAT 5%, Cabinet Decision 52/2017.

Pro, Business & Scale plansCountry: AELanguage: ar+enUAE-FTA
slug: uae-tax-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": "uae-tax-invoice",
    "data": {
      "invoiceNumber": "TI-2026-00471",
      "issueDate": "2026-04-15",
      "supplyDate": "2026-04-12",
      "placeOfSupply": "Dubai, UAE",
      "reverseCharge": false,
      "currency": "AED",
      "supplier": {
        "name": "Falcon Digital Solutions LLC",
        "trn": "100123456700003",
        "address": [
          "Office 1402, Boulevard Plaza Tower 1",
          "Sheikh Mohammed bin Rashid Boulevard",
          "Downtown Dubai, Dubai, UAE"
        ],
        "email": "[email protected]",
        "phone": "+971 4 555 0184",
        "iban": "AE07 0331 2345 6789 0123 456"
      },
      "recipient": {
        "name": "Emirates Logistics Group",
        "trn": "100987654300001",
        "address": [
          "Jebel Ali Free Zone South",
          "Plot S30205",
          "Dubai, UAE"
        ],
        "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: "uae-tax-invoice",
  data: {
    "invoiceNumber": "TI-2026-00471",
    "issueDate": "2026-04-15",
    "supplyDate": "2026-04-12",
    "placeOfSupply": "Dubai, UAE",
    "reverseCharge": false,
    "currency": "AED",
    "supplier": {
      "name": "Falcon Digital Solutions LLC",
      "trn": "100123456700003",
      "address": [
        "Office 1402, Boulevard Plaza Tower 1",
        "Sheikh Mohammed bin Rashid Boulevard",
        "Downtown Dubai, Dubai, UAE"
      ],
      "email": "[email protected]",
      "phone": "+971 4 555 0184",
      "iban": "AE07 0331 2345 6789 0123 456"
    },
    "recipient": {
      "name": "Emirates Logistics Group",
      "trn": "100987654300001",
      "address": [
        "Jebel Ali Free Zone South",
        "Plot S30205",
        "Dubai, UAE"
      ],
      "email": "[email protected]"
    // …
  },
});

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": "uae-tax-invoice",
        "data": {
          "invoiceNumber": "TI-2026-00471",
          "issueDate": "2026-04-15",
          "supplyDate": "2026-04-12",
          "placeOfSupply": "Dubai, UAE",
          "reverseCharge": false,
          "currency": "AED",
          "supplier": {
            "name": "Falcon Digital Solutions LLC",
            "trn": "100123456700003",
            "address": [
              "Office 1402, Boulevard Plaza Tower 1",
              "Sheikh Mohammed bin Rashid Boulevard",
              "Downtown Dubai, Dubai, UAE"
            ],
            "email": "[email protected]",
            "phone": "+971 4 555 0184",
            "iban": "AE07 0331 2345 6789 0123 456"
          },
          "recipient": {
            "name": "Emirates Logistics Group",
            "trn": "100987654300001",
            "address": [
              "Jebel Ali Free Zone South",
              "Plot S30205",
              "Dubai, UAE"
            ],
            "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": "TI-2026-00471",
  "issueDate": "2026-04-15",
  "supplyDate": "2026-04-12",
  "placeOfSupply": "Dubai, UAE",
  "reverseCharge": false,
  "currency": "AED",
  "supplier": {
    "name": "Falcon Digital Solutions LLC",
    "trn": "100123456700003",
    "address": [
      "Office 1402, Boulevard Plaza Tower 1",
      "Sheikh Mohammed bin Rashid Boulevard",
      "Downtown Dubai, Dubai, UAE"
    ],
    "email": "[email protected]",
    "phone": "+971 4 555 0184",
    "iban": "AE07 0331 2345 6789 0123 456"
  },
  "recipient": {
    "name": "Emirates Logistics Group",
    "trn": "100987654300001",
    "address": [
      "Jebel Ali Free Zone South",
      "Plot S30205",
      "Dubai, UAE"
    ],
    "email": "[email protected]"
  },
  "lineItems": [
    {
      "description": "Cloud infrastructure consulting — March 2026",
      "quantity": 40,
      "unitPrice": 450,
      "netAmount": 18000,
      "vatRate": 5,
      "vatAmount": 900,
      "lineTotal": 18900
    },
    {
      "description": "Quarterly security audit & remediation report",
      "quantity": 1,
      "unitPrice": 12500,
      "netAmount": 12500,
      "vatRate": 5,
      "vatAmount": 625,
      "lineTotal": 13125
    },
    {
      "description": "On-site training workshop (2 days)",
      "quantity": 2,
      "unitPrice": 4200,
      "netAmount": 8400,
      "vatRate": 5,
      "vatAmount": 420,
      "lineTotal": 8820
    }
  ],
  "subtotal": 38900,
  "discountAmount": 0,
  "totalVat": 1945,
  "total": 40845,
  "paymentTerms": "Net 30 from invoice date. Late payment fee 1.5%/month.",
  "notes": "Thank you for your continued partnership."
}
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"
    },
    "placeOfSupply": {
      "type": "string"
    },
    "reverseCharge": {
      "type": "boolean"
    },
    "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]{15}$"
        },
        "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",
          "pattern": "^[0-9]{15}$"
        },
        "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"
    }
  }
}
UAE Tax Invoice template — Kamy PDF API — Kamy