Finance template
Oman VAT Invoice
Oman Tax Authority (OTA) compliant bilingual tax invoice. VAT 5%, Royal Decree 121 / 2020.
Pro, Business & Scale plansCountry: OMLanguage: ar+enOM-OTA
slug: om-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": "om-vat-invoice",
"data": {
"invoiceNumber": "OM-2026-00721",
"issueDate": "2026-04-15",
"supplyDate": "2026-04-12",
"currency": "OMR",
"supplier": {
"name": "Muscat Cloud Networks LLC",
"trn": "OM1100022345",
"address": [
"Office 408, Al Khuwair Plaza",
"Muscat 112, Sultanate of Oman"
],
"email": "[email protected]",
"phone": "+968 2477 8800",
"iban": "OM81 0001 8000 0001 2345 6789"
},
"recipient": {
"name": "Salalah Logistics SAOC",
"trn": "OM1100099876",
"address": [
"Salalah Free Zone, Block 3",
"Salalah 211, Oman"
],
"email": "[email protected]"
},
"lineItems": [
{
"description": "SD-WAN deployment — 6 sites",
// …
}
}'node.js
import { Kamy } from "@kamydev/sdk";
const kamy = new Kamy({ apiKey: process.env.KAMY_API_KEY! });
const { url } = await kamy.render({
templateSlug: "om-vat-invoice",
data: {
"invoiceNumber": "OM-2026-00721",
"issueDate": "2026-04-15",
"supplyDate": "2026-04-12",
"currency": "OMR",
"supplier": {
"name": "Muscat Cloud Networks LLC",
"trn": "OM1100022345",
"address": [
"Office 408, Al Khuwair Plaza",
"Muscat 112, Sultanate of Oman"
],
"email": "[email protected]",
"phone": "+968 2477 8800",
"iban": "OM81 0001 8000 0001 2345 6789"
},
"recipient": {
"name": "Salalah Logistics SAOC",
"trn": "OM1100099876",
"address": [
"Salalah Free Zone, Block 3",
"Salalah 211, Oman"
],
"email": "[email protected]"
},
"lineItems": [
{
"description": "SD-WAN deployment — 6 sites",
// …
},
});
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": "om-vat-invoice",
"data": {
"invoiceNumber": "OM-2026-00721",
"issueDate": "2026-04-15",
"supplyDate": "2026-04-12",
"currency": "OMR",
"supplier": {
"name": "Muscat Cloud Networks LLC",
"trn": "OM1100022345",
"address": [
"Office 408, Al Khuwair Plaza",
"Muscat 112, Sultanate of Oman"
],
"email": "[email protected]",
"phone": "+968 2477 8800",
"iban": "OM81 0001 8000 0001 2345 6789"
},
"recipient": {
"name": "Salalah Logistics SAOC",
"trn": "OM1100099876",
"address": [
"Salalah Free Zone, Block 3",
"Salalah 211, Oman"
],
"email": "[email protected]"
},
"lineItems": [
{
"description": "SD-WAN deployment — 6 sites",
// …
},
},
)
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": "OM-2026-00721",
"issueDate": "2026-04-15",
"supplyDate": "2026-04-12",
"currency": "OMR",
"supplier": {
"name": "Muscat Cloud Networks LLC",
"trn": "OM1100022345",
"address": [
"Office 408, Al Khuwair Plaza",
"Muscat 112, Sultanate of Oman"
],
"email": "[email protected]",
"phone": "+968 2477 8800",
"iban": "OM81 0001 8000 0001 2345 6789"
},
"recipient": {
"name": "Salalah Logistics SAOC",
"trn": "OM1100099876",
"address": [
"Salalah Free Zone, Block 3",
"Salalah 211, Oman"
],
"email": "[email protected]"
},
"lineItems": [
{
"description": "SD-WAN deployment — 6 sites",
"quantity": 6,
"unitPrice": 850,
"netAmount": 5100,
"vatRate": 5,
"vatAmount": 255,
"lineTotal": 5355
},
{
"description": "Annual managed services",
"quantity": 1,
"unitPrice": 2400,
"netAmount": 2400,
"vatRate": 5,
"vatAmount": 120,
"lineTotal": 2520
}
],
"subtotal": 7500,
"discountAmount": 0,
"totalVat": 375,
"total": 7875,
"paymentTerms": "Net 30 from issue date.",
"notes": "VAT 5% per Royal Decree 121/2020."
}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": "^OM[0-9]{10}$|^[0-9A-Z]{10,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"
},
"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"
}
}
}