Your AI agent rounds Japanese consumption tax per line. Japan says round once per rate.
Description and use
AI agents drafting invoices for Japan often round consumption tax per line, violating the rule to round once per invoice per rate. JP Invoice Check validates invoices and flags rounding errors.
Problem
AI agents drafting invoices for Japanese customers often round consumption tax per line, violating Japan’s rule that tax must be rounded once per invoice per rate.
Outcome
Invoices pass the checker with no rounding errors, aligning with Japanese tax regulations and preventing accounting mismatches.
Workflow
- 1. Install JP Invoice Check via pip. 2. Configure the company policy JSON with the rounding method and tax inclusion/exclusion. 3. Run the checker against the generated invoice. 4. Review the output for any E_TAX_LINE_ROUNDING errors. 5. Correct the invoice if needed and re‑run the checker.
- 6. (Optional) For received invoices, note the supplier’s rounding method and the difference in yen.
Evidence
Since October 2023, a "qualified invoice" in Japan must round the tax once per invoice for each tax rate, not line by line
Language models tend to compute the tax on every line and add it up.
JP Invoice Check is a small MCP server, CLI and Agent Skill (Python standard library only, no network, MIT). It checks the six items a qualified invoice must carry, the 8% reduced-rate marks, the totals per rate, and the rounding rule.
The company rule (rounding method, tax included or excluded) is loaded once, when a person starts the server. No tool call can change it.
pip install "git+https://github.com/ayatrader/jp-invoice-check"
- Record date: 2026-11-02T15:14:02.286Z