Vietnamese Contract & Form Generator
45 Vietnamese document templates – labour contracts, probation, power of attorney, leases, sales contracts, minutes, decisions – from JSON to DOCX / PDF.
Result
Press “Run” to see the result.
GET /v1/vn-doc-templates lists the templates (labour and HR: fixed-term and indefinite labour contracts, probation contract, annex, freelance agreement, termination agreement / decision / notice, resignation and leave requests, handover minutes, hiring, raise, appointment and disciplinary decisions, NDA, employment confirmation, training agreement, holiday notice; civil: power of attorney and its contract, residential lease, loan, deposit, equipment rental, cash receipt, undertaking; commercial: sale of goods, services, processing, acceptance and liquidation minutes; administrative: introduction letter, meeting minutes, decision, official letter, proposal memo, request letter; accounting: advance and payment requests, travel policy). ?template=<id> returns its fields, types and legal basis.
POST with template and data fills it: amounts are written in figures and in Vietnamese words, dates as “ngày … tháng … năm …”, list fields become tables, empty optional lines are dropped and missing required fields are reported (or rejected with strict=true). Each template cites its legal basis, and legal checks flag common mistakes: definite-term contracts over 36 months, wages below the regional minimum, probation pay below 85 % or longer than allowed, loan interest above 20 % a year, contract penalties above 8 %, fines used as discipline.
format=json (default) returns the text preview and checks (base64=true adds the DOCX), format=docx a Word file in Times New Roman 13 with A4 margins of Nghị định 30/2020, and format=pdf a PDF. The templates are APIBox’s own reference drafts; have a lawyer review them before signing.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/vn-doc-templates" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"template":"giay-uy-quyen","data":{"principal_name":"Nguyễn Văn An","principal_id_number":"001085000123","principal_address":"Phường Ba Đình, Hà Nội","agent_name":"Trần Thị Bình","agent_id_number":"001195000456","agent_address":"Phường Cầu Giấy, Hà Nội","scope":"Nhận hồ sơ và kết quả thủ tục hành chính tại Trung tâm phục vụ hành chính công.","from_date":"2026-11-11","to_date":"2026-12-31","place":"Hà Nội","date":"2026-11-11"}}'const res = await fetch('https://apibox.io.vn/v1/vn-doc-templates', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"template": "giay-uy-quyen",
"data": {
"principal_name": "Nguyễn Văn An",
"principal_id_number": "001085000123",
"principal_address": "Phường Ba Đình, Hà Nội",
"agent_name": "Trần Thị Bình",
"agent_id_number": "001195000456",
"agent_address": "Phường Cầu Giấy, Hà Nội",
"scope": "Nhận hồ sơ và kết quả thủ tục hành chính tại Trung tâm phục vụ hành chính công.",
"from_date": "2026-11-11",
"to_date": "2026-12-31",
"place": "Hà Nội",
"date": "2026-11-11"
}
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-doc-templates",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"template": "giay-uy-quyen", "data": {"principal_name": "Nguyễn Văn An", "principal_id_number": "001085000123", "principal_address": "Phường Ba Đình, Hà Nội", "agent_name": "Trần Thị Bình", "agent_id_number": "001195000456", "agent_address": "Phường Cầu Giấy, Hà Nội", "scope": "Nhận hồ sơ và kết quả thủ tục hành chính tại Trung tâm phục vụ hành chính công.", "from_date": "2026-11-11", "to_date": "2026-12-31", "place": "Hà Nội", "date": "2026-11-11"}},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-doc-templates');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"template":"giay-uy-quyen","data":{"principal_name":"Nguyễn Văn An","principal_id_number":"001085000123","principal_address":"Phường Ba Đình, Hà Nội","agent_name":"Trần Thị Bình","agent_id_number":"001195000456","agent_address":"Phường Cầu Giấy, Hà Nội","scope":"Nhận hồ sơ và kết quả thủ tục hành chính tại Trung tâm phục vụ hành chính công.","from_date":"2026-11-11","to_date":"2026-12-31","place":"Hà Nội","date":"2026-11-11"}}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Are the templates legally valid?
They follow the current laws cited with each template, but they are reference drafts: adapt them to your case and have a lawyer review them.
Can I use my own Word template instead?
Yes, use /v1/docx-template to fill any .docx with {placeholders}.
Is my data stored?
No. Documents are generated in memory and returned in the response.