Mart402 Jp Consumption Tax API
The Jp Consumption Tax API from Mart402 — 1 operation(s) for jp consumption tax.
The Jp Consumption Tax API from Mart402 — 1 operation(s) for jp consumption tax.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mart402-com:mart402-com-jp-consumption-tax-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mart402 Jp Consumption Tax API
description: 'Pay-per-call APIs for AI agents with verifiable results, in three lines: documents & web (extract, PDF parsing with hallucination-guarded OCR, invoice verification, company enrichment), Japan statutory calculations (deterministic, primary-source cited) and calibrated vision. Payment via x402 (USDC on Base) - no account, no API key. Docs: /agents.md'
version: 0.1.0
tags:
- name: Jp Consumption Tax
paths:
/v1/jp-consumption-tax:
post:
summary: Jp Jp Consumption Tax Endpoint
operationId: jp_jp_consumption_tax_endpoint_v1_jp_consumption_tax_post
requestBody:
content:
application/json:
schema:
allOf:
- if:
properties:
mode:
const: invoice_totals
then:
required:
- lines
- if:
properties:
mode:
const: validate_invoice
required:
- mode
then:
required:
- document
- if:
properties:
mode:
const: simplified
required:
- mode
then:
required:
- taxable_sales_excl_yen
- category
- if:
properties:
mode:
const: two_percent
required:
- mode
then:
required:
- taxable_sales_excl_yen
- taxable_period_start
- taxable_period_end
properties:
mode:
type: string
enum:
- invoice_totals
- validate_invoice
- simplified
- two_percent
default: invoice_totals
lines:
type: array
description: 'Invoice lines [{amount_yen, qty, rate_key: standard|reduced}]'
document:
type: object
description: Qualified-invoice fields to validate (registration_number etc.)
taxable_sales_excl_yen:
type: integer
description: Taxable sales excluding tax, in yen
category:
type: string
description: Simplified-taxation business class 1-6
taxable_period_start:
type: string
format: date
description: Taxable period first day YYYY-MM-DD (two_percent)
taxable_period_end:
type: string
format: date
description: Taxable period last day YYYY-MM-DD (two_percent)
as_of:
type: string
format: date
description: Calculation reference date YYYY-MM-DD (default today); selects the rules version
additionalProperties: true
type: object
required: []
title: Payload
x-mode-default: invoice_totals
x-required-by-mode:
invoice_totals:
- lines
validate_invoice:
- document
simplified:
- taxable_sales_excl_yen
- category
two_percent:
- taxable_sales_excl_yen
- taxable_period_start
- taxable_period_end
example:
mode: two_percent
taxable_sales_excl_yen: 5000000
taxable_period_start: '2026-01-01'
taxable_period_end: '2026-12-31'
required: true
responses:
'200':
description: Successful Response
content:
application/json; charset=utf-8:
schema: {}
'422':
description: Input error (action fix_input). Not charged.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'402':
description: Payment required (x402). No charge until a valid payment is attached; work failures after payment are not settled.
headers:
PAYMENT-REQUIRED:
schema:
type: string
description: base64 JSON of the challenge
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentRequired'
'409':
description: The same payment is already being processed (payment_in_flight). Retry shortly; you are not charged twice.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'503':
description: Temporarily unavailable (Retry-After header). Not charged.
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
tags:
- Jp Consumption Tax
get:
summary: Payment terms for discovery (use POST with a JSON body to call)
operationId: discover_v1_jp_consumption_tax
responses:
'402':
description: x402 payment terms (same as an unpaid POST).
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentRequired'
'405':
description: 'Sent with a payment header: use_post_with_json_body.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
tags:
- Jp Consumption Tax
components:
schemas:
PaymentRequired:
type: object
description: x402 payment challenge. The same JSON is base64-encoded in the PAYMENT-REQUIRED header. Pay with the PAYMENT-SIGNATURE header (x402 v2) or X-PAYMENT (v1) and retry the same request.
required:
- x402Version
- accepts
properties:
x402Version:
type: integer
error:
type: string
resource:
type: object
accepts:
type: array
items:
type: object
properties:
scheme:
type: string
network:
type: string
amount:
type: string
description: Atomic units of the asset (USDC has 6 decimals).
maxAmountRequired:
type: string
asset:
type: string
payTo:
type: string
maxTimeoutSeconds:
type: integer
description:
type: string
extra:
type: object
outputSchema:
type: object
docs:
type: object
extensions:
type: object
additionalProperties: true
ErrorEnvelope:
type: object
required:
- ok
- code
- retryable
- action
- billed_usd
properties:
ok:
type: boolean
const: false
code:
type: string
description: Machine-readable error code; see GET /catalog errors and error_http.
retryable:
type: boolean
action:
type: string
enum:
- fix_input
- retry
- requote
- retry_payment
- wait
- slow_down
- contact
billed_usd:
type: number
const: 0
description: 'Always 0: errors are never charged.'
detail:
description: 'Human-readable string, or an object with field-level info (jp line: {missing:[...]} or {field, got, ...}).'
oneOf:
- type: string
- type: object
hint:
type: string
description: Legacy alias of detail on some endpoints.
error:
type: object
description: 'jp line only: nested copy {code, retryable, action}.'
additionalProperties: true