Check a Japanese qualified invoice (適格請求書)
jp_invoice_checkValidate a Japanese qualified invoice against the six required NTA items, reduced-rate markings, per-rate totals, and once-per-invoice tax rounding to catch line-by-line rounding mistakes.
Instructions
Check a Japanese qualified invoice against the six required items of the National Tax Agency (issuer name + registration number, date, description with reduced-rate marks, total per rate, tax per rate, buyer name) and the rounding rule: consumption tax is rounded ONCE per invoice per rate, not per line. Catches the common mistake of summing per-line rounded tax. Input: issuer{name, registration_number}, date, buyer{name}, price_basis (exclusive|inclusive), items[{description, amount, rate 10|8, reduced}], totals[{rate, amount, tax}], optional rounding (floor|half_up|ceil). Returns ok, errors and warnings (code, field, message in English and Japanese), required_items, by_rate (expected tax for each rounding). Offline: it does not check whether the number is currently registered. 適格請求書の6項目と端数処理を検査。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | The invoice as described above |