Foreign-Currency Revaluation Calculator (TT 99/2025)
Revalue foreign-currency cash, receivables and payables at period end under TT 99/2025: gain / loss per line, 515 / 635 entries, CIT add-backs, XLSX.
Result
Press “Run” to see the result.
Send the foreign-currency balances (items: account, currency, amount in the currency, book value in VND or book rate) and the closing rates of the bank you regularly deal with. Under Thông tư 99/2025/TT-BTC (from 1/1/2026) every monetary item is revalued at the average of the buying and selling transfer rates; demand deposits at the rate of the bank holding the account. Give rates as a number (the average) or { "buy", "sell" } and the API averages them; a per-item rate overrides it.
The answer lists each line (asset or liability, gain or loss), the net result, the journal entries (TT 99: straight to 515 / 635; chart=tt133: through 413 then the net to 515 / 635), an optional reversal on the next day, and the CIT treatment: revaluation differences of cash, deposits and receivables are excluded from taxable income, those of payables stay in (NĐ 320/2025/NĐ-CP Điều 3.3.h). Advances paid / received (advance: true) and monetary gold are excluded. rate_basis=buy_sell reproduces the former TT 200 rule for comparison. format=xlsx returns the revaluation sheet.
Reference only, not an audit or tax advice; each answer cites the rules and the review date.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/vn-fx-revaluation" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date":"2026-12-31","items":[{"account":"1122","currency":"USD","amount":10000,"book_value":254000000,"name":"VCB"},{"account":"331","currency":"USD","amount":5000,"book_rate":25600,"name":"Supplier A"}],"rates":{"USD":{"buy":26100,"sell":26400}}}'const res = await fetch('https://apibox.io.vn/v1/vn-fx-revaluation', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"date": "2026-12-31",
"items": [
{
"account": "1122",
"currency": "USD",
"amount": 10000,
"book_value": 254000000,
"name": "VCB"
},
{
"account": "331",
"currency": "USD",
"amount": 5000,
"book_rate": 25600,
"name": "Supplier A"
}
],
"rates": {
"USD": {
"buy": 26100,
"sell": 26400
}
}
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-fx-revaluation",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"date": "2026-12-31", "items": [{"account": "1122", "currency": "USD", "amount": 10000, "book_value": 254000000, "name": "VCB"}, {"account": "331", "currency": "USD", "amount": 5000, "book_rate": 25600, "name": "Supplier A"}], "rates": {"USD": {"buy": 26100, "sell": 26400}}},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-fx-revaluation');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"date":"2026-12-31","items":[{"account":"1122","currency":"USD","amount":10000,"book_value":254000000,"name":"VCB"},{"account":"331","currency":"USD","amount":5000,"book_rate":25600,"name":"Supplier A"}],"rates":{"USD":{"buy":26100,"sell":26400}}}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Which exchange rate must be used from 2026?
TT 99/2025: the average of the buying and selling transfer rates of the commercial bank the enterprise regularly deals with at the period end; demand deposits use the rate of the bank holding the account.
Are unrealised FX gains taxable?
Not for cash, deposits and receivables: their revaluation differences are excluded from taxable income and deductible cost. Differences on payables stay in (NĐ 320/2025 Điều 3.3.h).
What about advances to suppliers?
Advances paid or received are non-monetary items and keep the historical rate; mark them with advance: true and they are listed as excluded.