Jp Consumption Tax
jp_consumption_taxConsumption tax: per-rate invoice rounding, qualified-invoice validation, simplified taxation, 20% special. $0.01/call. Deterministic, cites primary sources; errors and unverified rules are never billed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | One of: invoice_totals, validate_invoice, simplified, two_percent | |
| as_of | No | Calculation reference date YYYY-MM-DD (default today); selects the rules version | |
| lines | No | Invoice lines [{amount_yen, qty, rate_key: standard|reduced}] | |
| category | No | Simplified-taxation business class 1-6 | |
| document | No | Qualified-invoice fields to validate (registration_number etc.) | |
| x_payment | No | Optional: base64 X-PAYMENT header value (x402 exact scheme, USDC on Base mainnet). Omit it to receive the payment requirements (accepts[] + docs) for this call without being charged. | |
| taxable_period_end | No | Taxable period last day YYYY-MM-DD (two_percent) | |
| taxable_period_start | No | Taxable period first day YYYY-MM-DD (two_percent) | |
| taxable_sales_excl_yen | No | Taxable sales excluding tax, in yen |