Labour Use Report 01/PLI (VN) API
Build the 6-month / annual labour-use report Mẫu 01/PLI (NĐ 145/2020) from an employee list: XLSX in the official layout, totals, checks and the deadline.
Send your employee list as a JSON array (employees), CSV text or an uploaded CSV / XLSX file with English or Vietnamese headers (Họ tên, Giới tính, Ngày sinh, Mã số BHXH, Số CCCD, Chức vụ, Trình độ, Loại HĐ, Ngày vào làm, Ngày nghỉ việc, Ngày bắt đầu đóng BHXH…). The API keeps the employees who worked during the period, maps each one to the job-position groups of the form (manager, high-skilled with a university degree, mid-skilled with college / intermediate training, other; inferred from the position and education when you do not send job_group) and to the contract columns (indefinite, definite, other: under 1 month or probation).
format=xlsx returns the 27-column table of Mẫu số 01/PLI Phụ lục I Nghị định 145/2020/NĐ-CP with the official header, numbering row, totals and signature block, plus a summary sheet (start, hired, left, end of period, women, over 35, compulsory BHXH, contract types) and a list of foreign workers. format=json returns the same data, the deadline (before 05/06 for the 6-month report, before 05/12 for the annual one) and the checks: missing dates or gender, definite contracts longer than 36 months, CCCD / BHXH code formats, missing BHXH start dates, foreign workers without a work permit number.
The decree fixes the deadlines but not the months covered: by default the period runs from 1 December of the previous year to 31 May (6 months) or 30 November (annual); change it with period_from / period_to. Reports go to Sở Nội vụ and the BHXH office through the National Public Service Portal. Employee data is processed in memory only and never stored.
Markdown · OpenAPI · Postman · llms.txt
Parameters
| Name | In | Type | Required | Default | |
|---|---|---|---|---|---|
employees | body | array | yes | Employee rows: [{ name, gender, dob, bhxh_code?, id_number?, position?, education?, job_group? (manager|high|mid|other), salary?, contract_type, contract_start, contract_end?, hire_date?, leave_date?, insurance_start?, insurance_end?, hazardous_start?, nationality?, work_permit?, note? }], CSV text, or upload file (CSV / XLSX). Vietnamese headers accepted. | |
period | body | string | no | h1 (6-month report, due before 05/06) or year (due before 05/12). Default depends on today. | |
year | body | number | no | Report year (default this year). | |
period_from | body | string | no | Start of the period (default 1 December of the previous year). | |
period_to | body | string | no | End of the period (default 31 May or 30 November). | |
company | body | object | no | { name, tax_code, address, phone, email, website, business_line, recipient, place } for the form header. | |
format | body | string | no | json | json or xlsx. |
force | body | boolean | no | false | Build the XLSX even when rows have errors. |
Example
curl -X POST "https://apibox.io.vn/v1/vn-labour-report" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"period":"year","year":2026,"company":{"name":"Công ty TNHH Ví Dụ","tax_code":"0101234567"},"employees":[{"name":"Nguyễn Văn An","gender":"Nam","dob":"1985-03-02","position":"Giám đốc","contract_type":"không xác định thời hạn","contract_start":"2020-01-01","insurance_start":"2020-01-01"},{"name":"Trần Thị Bình","gender":"Nữ","dob":"1995-07-10","position":"Kế toán","education":"Đại học","contract_type":"xác định thời hạn","contract_start":"2026-01-05","contract_end":"2027-01-04","insurance_start":"2026-01-01"},{"name":"Lê Văn Cường","gender":"Nam","dob":"2000-01-01","position":"Kỹ thuật viên","education":"Cao đẳng","contract_type":"xác định thời hạn","contract_start":"2025-06-01","contract_end":"2026-05-31","leave_date":"2026-06-01","insurance_start":"2025-06-01"}]}'const res = await fetch('https://apibox.io.vn/v1/vn-labour-report', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"period": "year",
"year": 2026,
"company": {
"name": "Công ty TNHH Ví Dụ",
"tax_code": "0101234567"
},
"employees": [
{
"name": "Nguyễn Văn An",
"gender": "Nam",
"dob": "1985-03-02",
"position": "Giám đốc",
"contract_type": "không xác định thời hạn",
"contract_start": "2020-01-01",
"insurance_start": "2020-01-01"
},
{
"name": "Trần Thị Bình",
"gender": "Nữ",
"dob": "1995-07-10",
"position": "Kế toán",
"education": "Đại học",
"contract_type": "xác định thời hạn",
"contract_start": "2026-01-05",
"contract_end": "2027-01-04",
"insurance_start": "2026-01-01"
},
{
"name": "Lê Văn Cường",
"gender": "Nam",
"dob": "2000-01-01",
"position": "Kỹ thuật viên",
"education": "Cao đẳng",
"contract_type": "xác định thời hạn",
"contract_start": "2025-06-01",
"contract_end": "2026-05-31",
"leave_date": "2026-06-01",
"insurance_start": "2025-06-01"
}
]
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-labour-report",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"period": "year", "year": 2026, "company": {"name": "Công ty TNHH Ví Dụ", "tax_code": "0101234567"}, "employees": [{"name": "Nguyễn Văn An", "gender": "Nam", "dob": "1985-03-02", "position": "Giám đốc", "contract_type": "không xác định thời hạn", "contract_start": "2020-01-01", "insurance_start": "2020-01-01"}, {"name": "Trần Thị Bình", "gender": "Nữ", "dob": "1995-07-10", "position": "Kế toán", "education": "Đại học", "contract_type": "xác định thời hạn", "contract_start": "2026-01-05", "contract_end": "2027-01-04", "insurance_start": "2026-01-01"}, {"name": "Lê Văn Cường", "gender": "Nam", "dob": "2000-01-01", "position": "Kỹ thuật viên", "education": "Cao đẳng", "contract_type": "xác định thời hạn", "contract_start": "2025-06-01", "contract_end": "2026-05-31", "leave_date": "2026-06-01", "insurance_start": "2025-06-01"}]},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-labour-report');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"period":"year","year":2026,"company":{"name":"Công ty TNHH Ví Dụ","tax_code":"0101234567"},"employees":[{"name":"Nguyễn Văn An","gender":"Nam","dob":"1985-03-02","position":"Giám đốc","contract_type":"không xác định thời hạn","contract_start":"2020-01-01","insurance_start":"2020-01-01"},{"name":"Trần Thị Bình","gender":"Nữ","dob":"1995-07-10","position":"Kế toán","education":"Đại học","contract_type":"xác định thời hạn","contract_start":"2026-01-05","contract_end":"2027-01-04","insurance_start":"2026-01-01"},{"name":"Lê Văn Cường","gender":"Nam","dob":"2000-01-01","position":"Kỹ thuật viên","education":"Cao đẳng","contract_type":"xác định thời hạn","contract_start":"2025-06-01","contract_end":"2026-05-31","leave_date":"2026-06-01","insurance_start":"2025-06-01"}]}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));Response
{
"report": "Mẫu số 01/PLI – Báo cáo tình hình sử dụng lao động",
"source": "json",
"deadline": {
"deadline": "2026-12-04",
"rule": "trước ngày 05/12",
"days_left": 23,
"channel": "Cổng Dịch vụ công quốc gia (dichvucong.gov.vn), gửi Sở Nội vụ và cơ quan BHXH nơi đặt trụ sở / chi nhánh"
},
"summary": {
"period": {
"type": "year",
"from": "2025-12-01",
"to": "2026-11-30"
},
"at_start": 2,
"hired": 1,
"left": 1,
"at_end": 2,
"at_end_breakdown": {
"female": 1,
"over_35": 1,
"compulsory_social_insurance": 2,
"foreign": 0,
"job_groups": {
"manager": 1,
"high_skilled": 1,
"mid_skilled": 0,
"other": 0
},
"contracts": {
"indefinite": 1,
"definite": 1,
"other_under_1_month_or_probation": 0
},
"hazardous_jobs": 0
},
"job_group_inferred": 3
},
"employees": [
{
"no": 1,
"name": "Nguyễn Văn An",
"dob": "02/03/1985",
"gender": "Nam",
"position": "Giám đốc",
"job_group": "manager",
"contract_type": "indefinite",
"contract_start": "01/01/2020",
"insurance_start": "01/01/2020",
"status": "continuing"
},
"…"
],
"errors": [],
"warnings": [],
"disclaimer": "Reference only, not legal advice; check the official text."
}
Use cases
- File the year-end labour report before 5 December from your HR export
- Check an employee list for missing dates and contract problems
- Add a Mẫu 01/PLI export to HRM or payroll software
- Prepare the six-month report due before 5 June
FAQ
Which form does it produce?
Mẫu số 01/PLI of Nghị định 145/2020/NĐ-CP (Báo cáo tình hình sử dụng lao động), in its 27-column layout. Mẫu 02/PLI is the aggregate report of the provincial department, not of employers.
Is my employee data kept?
No. The list is processed in memory for the request and nothing is stored.
What is the fine for not reporting?
Under Nghị định 283/2026/NĐ-CP (from 10/9/2026), Điều 11.2.c: 5–10 million VND for individuals, double for organisations.
Related APIs
JSON Validator
Check JSON syntax with exact line and column of errors, and validate data against a JSON Schema (draft 4, 7, 2019-09 or 2020-12).
{ }JSON Formatter
Pretty print JSON with 0-8 spaces or tabs, minify it, or sort object keys recursively. Syntax errors are reported with line and column.
CSVCSV to JSON
Convert CSV into an array of JSON objects using the header row, with delimiter auto-detection, number and boolean typing, and row-level errors.