Vietnam journal entries API
Reference debit / credit entries for ~110 common transactions with TT 99/2025 or TT 133/2016 accounts, amounts and VAT filled in, and an entry check.
Search with q in Vietnamese (accents optional) or English – "mua hàng nhập kho chưa thanh toán", "trích khấu hao", "trả lương", "chiết khấu thương mại", "kết chuyển doanh thu" – and get the matching entries with their Nợ / Có lines, account names from the chart of the circular and the guidance they follow (basis). Send amount with vat_rate (and inclusive) to fill the values and VAT, or amounts per role for multi-line entries (insurance: bhxh, bhyt, bhtn, kpcd). id returns one entry, list=true (or group) the library.
chart=tt99 (default) uses Thông tư 99/2025/TT-BTC, in force from 1/1/2026 (e.g. 242 "chi phí chờ phân bổ", 3387 "doanh thu chờ phân bổ", 621/622/627 kept, no 611); chart=tt133 maps to Thông tư 133/2016/TT-BTC for SMEs (154 for production costs, 6421/6422, no 521, 3385 for unemployment insurance) with notes where the treatment differs.
POST entry (lines with side Nợ/Có, account, amount) to check it: accounts exist in the chart, debits equal credits, and the pairing matches an entry of the library. A reference written from the account guidance of the circulars – not an official template: several treatments can be valid, have your accountant review it.
Markdown · OpenAPI · Postman · llms.txt
Parameters
| Name | In | Type | Required | Default | |
|---|---|---|---|---|---|
q | query|body | string | no | Transaction description (Vietnamese with or without accents, or English). | |
chart | query|body | string | no | tt99 | tt99 (TT 99/2025) or tt133 (TT 133/2016). |
amount | query|body | number | no | Amount before VAT (or including VAT with inclusive=true). | |
vat_rate | query|body | number | no | VAT rate (0, 5, 8, 10) to split / add the VAT line. | |
amounts | body | object | no | Values per role for multi-line entries, e.g. {bhxh, bhyt, bhtn, kpcd, total}. | |
id | query|body | string | no | One entry by id (list=true for ids). | |
list / group | query | string | no | List the library (groups: cash, purchase, sales, inventory, assets, payroll, tax, finance, equity, closing, other). | |
entry | body | array | no | Check an entry: [{side: "Nợ"|"Có", account, amount}]. | |
limit | query | number | no | 3 | Results for q (1–10). |
Example
curl "https://apibox.io.vn/v1/vn-journal-entries?q=mua%20h%C3%A0ng%20nh%E1%BA%ADp%20kho%20ch%C6%B0a%20thanh%20to%C3%A1n&amount=10000000&vat_rate=10&limit=1" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/vn-journal-entries?q=mua%20h%C3%A0ng%20nh%E1%BA%ADp%20kho%20ch%C6%B0a%20thanh%20to%C3%A1n&amount=10000000&vat_rate=10&limit=1', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/vn-journal-entries?q=mua%20h%C3%A0ng%20nh%E1%BA%ADp%20kho%20ch%C6%B0a%20thanh%20to%C3%A1n&amount=10000000&vat_rate=10&limit=1",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-journal-entries?q=mua%20h%C3%A0ng%20nh%E1%BA%ADp%20kho%20ch%C6%B0a%20thanh%20to%C3%A1n&amount=10000000&vat_rate=10&limit=1');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));Response
{
"q": "mua hàng nhập kho chưa thanh toán",
"count": 1,
"results": [
{
"score": 2.71,
"id": "buy_goods_credit",
"group": "purchase",
"description_vi": "Mua hàng hóa nhập kho chưa thanh toán (có hóa đơn GTGT)",
"lines": [
{
"side": "debit",
"side_vi": "Nợ",
"account": "156",
"account_name": "Hàng hóa",
"role": "amount",
"value": 10000000
},
{
"side": "debit",
"side_vi": "Nợ",
"account": "1331",
"account_name": "Thuế GTGT được khấu trừ của hàng hóa, dịch vụ",
"role": "vat",
"value": 1000000
},
{
"side": "credit",
"side_vi": "Có",
"account": "331",
"account_name": "Phải trả cho người bán",
"role": "total",
"value": 11000000
}
],
"totals": {
"debit": 11000000,
"credit": 11000000,
"balanced": true
},
"basis": "Thông tư 99/2025/TT-BTC, Phụ lục II – hướng dẫn kế toán các tài khoản 156, 133, 331"
}
],
"chart": "tt99",
"reference_only": true,
"reviewed": "2026-11-11"
}
Use cases
- Suggest postings in a small accounting or expense app
- Help students and new accountants learn TT 99 entries
- Auto-post bank-statement lines after classification
- Validate entries imported from another system
FAQ
Which circular should I use?
TT 99/2025/TT-BTC applies to all enterprises from 1 January 2026 and replaces TT 200/2014. Small and medium enterprises may keep TT 133/2016/TT-BTC, which is still in force (a replacement is in draft).
Are these entries official?
No. They are written by APIBox from the account guidance of the circulars, cite the accounts they follow and are reference only; check unusual transactions with an accountant.
Can it check an entry I wrote?
Yes: POST entry=[{side, account, amount}]. It checks the accounts exist in the chosen chart, the entry balances, and whether the account pairing is a known one.
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.