Finance template
Qatar Commercial Invoice
Bilingual EN/AR commercial invoice for B2B trade in Qatar. Uses Commercial Registration (CR) numbers; no VAT — Qatar has not yet implemented the GCC VAT framework.
Pro, Business & Scale plansCountry: QALanguage: ar+en
slug: qa-commercial-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": "qa-commercial-invoice",
"data": {
"invoiceNumber": "QA-2026-00214",
"issueDate": "2026-04-15",
"supplyDate": "2026-04-15",
"currency": "QAR",
"supplier": {
"name": "Doha Trading & Logistics W.L.L.",
"cr": "112233",
"address": [
"Office 1801, Tornado Tower",
"West Bay, P.O. Box 22117",
"Doha, State of Qatar"
],
"email": "[email protected]",
"phone": "+974 4441 9988",
"iban": "QA58 DOHB 0000 0000 0012 3456 7890 1"
},
"recipient": {
"name": "Qatar Steel Industries Q.S.C.",
"cr": "445566",
"address": [
"Mesaieed Industrial City",
"Mesaieed, Qatar"
],
"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: "qa-commercial-invoice",
data: {
"invoiceNumber": "QA-2026-00214",
"issueDate": "2026-04-15",
"supplyDate": "2026-04-15",
"currency": "QAR",
"supplier": {
"name": "Doha Trading & Logistics W.L.L.",
"cr": "112233",
"address": [
"Office 1801, Tornado Tower",
"West Bay, P.O. Box 22117",
"Doha, State of Qatar"
],
"email": "[email protected]",
"phone": "+974 4441 9988",
"iban": "QA58 DOHB 0000 0000 0012 3456 7890 1"
},
"recipient": {
"name": "Qatar Steel Industries Q.S.C.",
"cr": "445566",
"address": [
"Mesaieed Industrial City",
"Mesaieed, Qatar"
],
"email": "[email protected]"
},
"lineItems": [
{
// …
},
});
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": "qa-commercial-invoice",
"data": {
"invoiceNumber": "QA-2026-00214",
"issueDate": "2026-04-15",
"supplyDate": "2026-04-15",
"currency": "QAR",
"supplier": {
"name": "Doha Trading & Logistics W.L.L.",
"cr": "112233",
"address": [
"Office 1801, Tornado Tower",
"West Bay, P.O. Box 22117",
"Doha, State of Qatar"
],
"email": "[email protected]",
"phone": "+974 4441 9988",
"iban": "QA58 DOHB 0000 0000 0012 3456 7890 1"
},
"recipient": {
"name": "Qatar Steel Industries Q.S.C.",
"cr": "445566",
"address": [
"Mesaieed Industrial City",
"Mesaieed, Qatar"
],
"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": "QA-2026-00214",
"issueDate": "2026-04-15",
"supplyDate": "2026-04-15",
"currency": "QAR",
"supplier": {
"name": "Doha Trading & Logistics W.L.L.",
"cr": "112233",
"address": [
"Office 1801, Tornado Tower",
"West Bay, P.O. Box 22117",
"Doha, State of Qatar"
],
"email": "[email protected]",
"phone": "+974 4441 9988",
"iban": "QA58 DOHB 0000 0000 0012 3456 7890 1"
},
"recipient": {
"name": "Qatar Steel Industries Q.S.C.",
"cr": "445566",
"address": [
"Mesaieed Industrial City",
"Mesaieed, Qatar"
],
"email": "[email protected]"
},
"lineItems": [
{
"description": "Industrial fasteners — bulk supply Q2 2026",
"quantity": 5000,
"unitPrice": 2.4,
"lineTotal": 12000
},
{
"description": "Freight & customs clearance",
"quantity": 1,
"unitPrice": 1850,
"lineTotal": 1850
}
],
"subtotal": 13850,
"discountAmount": 0,
"total": 13850,
"paymentTerms": "Net 30 from issue date.",
"notes": "Goods delivered DDP per Incoterms 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",
"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"
],
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"cr": {
"type": "string",
"minLength": 1
},
"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
},
"cr": {
"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",
"lineTotal"
],
"properties": {
"description": {
"type": "string",
"minLength": 1
},
"quantity": {
"type": "number"
},
"unitPrice": {
"type": "number"
},
"lineTotal": {
"type": "number"
}
}
}
},
"subtotal": {
"type": "number"
},
"discountAmount": {
"type": "number"
},
"total": {
"type": "number"
},
"notes": {
"type": "string"
},
"paymentTerms": {
"type": "string"
}
}
}