79trust / 100

Jp Consumption Tax

by Mart402 in Markets & finance

x402 APIPassing, checked 48 min ago

Japan consumption tax: per-rate invoice rounding (one rounding per rate), qualified invoice (T+13) field validation, simplified taxation, 20-percent special (taxable periods that include a day 2023-10-01..2026-09-30). $0.01/call.

POST
https://mart402.com/v1/jp-consumption-tax
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
449 ms
559 ms slowest 5%
Last check
Passed
48 min ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

How to call it

POST https://mart402.com/v1/jp-consumption-tax

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://mart402.com/v1/jp-consumption-tax
content-type: application/json

{
  "mode": "two_percent",
  "taxable_period_end": "2026-12-31",
  "taxable_period_start": "2026-01-01",
  "taxable_sales_excl_yen": 5000000
}

Parameters

ParameterTypeRequiredDescription
modestringNo
taxable_period_endstringNo
taxable_period_startstringNo
taxable_sales_excl_yennumberNo

Example response

The provider's example. We can't check it without paying.

Example response, 40 lines
{
  "as_of": "2026-09-26",
  "assumptions": [],
  "billable": true,
  "breakdown": [],
  "carried_forward": [],
  "disclaimer": "仮定条件に基づく概算試算。税務相談・手続代行・法律相談ではない。申告・届出への使用不可。確定額は官公署または税理士・社会保険労務士等に確認のこと。",
  "not_covered": [
    "リバースチャージ",
    "課税売上割合・個別対応方式",
    "軽減税率の個別品目判定",
    "輸出免税"
  ],
  "note": "SAMPLE RESPONSE generated by the exact deterministic engine that serves production (jp-statutory has no LLM: same input always produces this byte-identical result, carrying the same rules_version and cited primary sources). Served free at /samples/{product} so you can verify the response shape, the rules_version field and the source citations before paying. No payment was taken. The sample_input shown is the catalog example input that produced this output.",
  "ok": true,
  "result": {
    "caveat": "適用期間の終期が近い。年度判定を必ず行うこと",
    "days_left": null,
    "effective_to": "2026-09-30",
    "eligibility_basis": "taxable_period 2026-01-01..2026-12-31 overlaps 2023-10-01..2026-09-30",
    "output_tax_yen": 500000,
    "payable_yen": 100000,
    "period": "2023-10-01 から 2026-09-30 を含む課税期間"
  },
  "rules_version": "2026.08.18",
  "sample": true,
  "sample_input": {
    "mode": "two_percent",
    "taxable_period_end": "2026-12-31",
    "taxable_period_start": "2026-01-01",
    "taxable_sales_excl_yen": 5000000
  },
  "sources": [
    "https://www.nta.go.jp/taxes/shiraberu/taxanswer/shohi/6303.htm",
    "https://www.nta.go.jp/taxes/shiraberu/zeimokubetsu/shohi/keigenzeiritsu/invoice.htm"
  ],
  "summary": "2割特例: 納付税額100,000円(売上税額500,000円の20%)",
  "tool": "jp-consumption-tax",
  "unverified_rules": []
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://mart402.com/v1/jp-consumption-tax' \
  -H 'content-type: application/json' \
  --data-raw '{"mode":"two_percent","taxable_period_end":"2026-12-31","taxable_period_start":"2026-01-01","taxable_sales_excl_yen":5000000}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://mart402.com/v1/jp-consumption-tax' \
  -H 'content-type: application/json' \
  --data-raw '{"mode":"two_percent","taxable_period_end":"2026-12-31","taxable_period_start":"2026-01-01","taxable_sales_excl_yen":5000000}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmart402.com%2Fv1%2Fjp-consumption-tax&method=POST
const res = await pay("https://mart402.com/v1/jp-consumption-tax", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "mode": "two_percent",
    "taxable_period_end": "2026-12-31",
    "taxable_period_start": "2026-01-01",
    "taxable_sales_excl_yen": 5000000
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://mart402.com/v1/jp-consumption-tax",
        json={
            "mode": "two_percent",
            "taxable_period_end": "2026-12-31",
            "taxable_period_start": "2026-01-01",
            "taxable_sales_excl_yen": 5000000,
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
48 min agoPassed402449 ms$0.01
5 h agoPassed402470 ms$0.01
9 h agoPassed402494 ms$0.01
14 h agoPassed402444 ms$0.01
18 h agoPassed402521 ms$0.01
Show 10 older checks
22 h agoPassed402460 ms$0.01
26 h agoPassed402362 ms$0.01
30 h agoPassed402453 ms$0.01
34 h agoPassed402459 ms$0.01
38 h agoPassed402396 ms$0.01
41 h agoPassed4021.5 s$0.01
45 h agoPassed402427 ms$0.01
2 days agoPassed402457 ms$0.01
2 days agoPassed402461 ms$0.01
2 days agoPassed402384 ms$0.01