# Vietnam FX Revaluation (TT 99) API

> 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.

- Endpoint: `POST | GET https://apibox.io.vn/v1/vn-fx-revaluation`
- Category: Data & JSON
- HTML docs: https://apibox.io.vn/docs/vn-fx-revaluation/ (Vietnamese: https://apibox.io.vn/vi/docs/vn-fx-revaluation/)
- Online tool: https://apibox.io.vn/tools/vn-fx-revaluation/
- Authentication: `Authorization: Bearer <API key>` or `X-API-Key: <API key>` (free key: https://apibox.io.vn/dashboard/#signup)

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.

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `items` | body | array | yes |  | Balances: `{ account, currency, amount, book_value \| book_rate, name?, kind?, advance?, rate? \| buy? sell? }` (up to 2,000). `kind` (cash, receivable, payable, other_asset, other_liability) is inferred from the account. |
| `rates` | body | object | no |  | Closing rates by currency: a number (average transfer rate) or `{ "buy", "sell" }`. |
| `date` | body | string | no |  | Period-end date (default 31/12 of the year being closed). |
| `chart` | body | string | no | `tt99` | `tt99` (TT 99/2025) or `tt133` (SMEs, TT 133/2016: through 413). |
| `rate_basis` | body | string | no | `average` | `average` (current rule) or `buy_sell` (former TT 200 rule, comparison). |
| `reverse_next_period` | body | boolean | no |  | Add the reversal entries on the next day (company policy). |
| `format` | body | string | no | `json` | `json` or `xlsx`. |

## Example request

```bash
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}}}'
```

## Example response

```json
{
  "date": "2026-12-31",
  "chart": "tt99",
  "circular": "99/2025/TT-BTC",
  "rate_basis": "average",
  "items": [
    {
      "index": 0,
      "account": "1122",
      "account_name": "Tiền gửi không kỳ hạn",
      "name": "VCB",
      "kind": "cash",
      "currency": "USD",
      "amount": 10000,
      "book_value": 254000000,
      "book_rate": 25400,
      "closing_rate": 26250,
      "rate_source": "(buy + sell) / 2",
      "revalued_value": 262500000,
      "difference": 8500000,
      "result": "gain",
      "gain_loss": 8500000,
      "cit_treatment": "excluded"
    },
    {
      "index": 1,
      "account": "331",
      "account_name": "Phải trả cho người bán",
      "name": "Supplier A",
      "kind": "payable",
      "currency": "USD",
      "amount": 5000,
      "book_value": 128000000,
      "book_rate": 25600,
      "closing_rate": 26250,
      "rate_source": "(buy + sell) / 2",
      "revalued_value": 131250000,
      "difference": 3250000,
      "result": "loss",
      "gain_loss": -3250000,
      "cit_treatment": "included"
    }
  ],
  "excluded": [],
  "totals": {
    "gains": 8500000,
    "losses": 3250000,
    "net": 5250000,
    "result": "net_gain",
    "presented_as": "Doanh thu hoạt động tài chính (515)"
  },
  "entries": [
    {
      "debit": "1122",
      "credit": "515",
      "amount": 8500000,
      "memo_vi": "Đánh giá lại 1122 (VCB) 10,000 USD theo tỷ giá 26,250",
      "debit_name": "Tiền gửi không kỳ hạn",
      "credit_name": "Doanh thu hoạt động tài chính"
    },
    {
      "debit": "635",
      "credit": "331",
      "amount": 3250000,
      "memo_vi": "Đánh giá lại 331 (Supplier A) 5,000 USD theo tỷ giá 26,250",
      "debit_name": "Chi phí tài chính",
      "credit_name": "Phải trả cho người bán"
    }
  ],
  "cit": {
    "revaluation_net": 5250000,
    "excluded_net": 8500000,
    "included_net": -3250000,
    "adjustment": {
      "add_back_losses": 0,
      "deduct_gains": 8500000
    }
  },
  "reviewed": "2026-11-16",
  "disclaimer": "Reference only, not legal / tax / accounting advice and not a substitute for an audit; check the official text."
}
```

## Use cases

- Close the books at month, quarter or year end for an import-export or FDI company
- Generate the revaluation entries in a small accounting app
- Check the CIT adjustment for unrealised FX gains and losses
- Prepare the revaluation working paper for the auditor

## 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.
