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. Required by mode (default invoice_totals): invoice_totals -> lines; validate_invoice -> document; simplified -> taxable_sales_excl_yen, category; two_percent -> taxable_sales_excl_yen, taxable_period_start, taxable_period_end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Required by mode (default invoice_totals): invoice_totals -> lines; validate_invoice -> document; simplified -> taxable_sales_excl_yen, category; two_percent -> taxable_sales_excl_yen, taxable_period_start, taxable_period_end. | invoice_totals |
| 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | JSON body of the underlying call (see /samples/{product} for each product's shape) | |
| status | Yes | HTTP status of the underlying call (200 result, 402 payment terms, 4xx input error) | |
| how_to_pay | No | ||
| receipt_id | No | set on paid results; free re-fetch via get_receipt | |
| payment_required | No | true when status is 402: body holds x402 payment terms, not a result. Pay and call again with x_payment |