Jp Retirement Tax
by Mart402 in Markets & finance
Japan retirement income tax: deduction by years of service, half-taxation with short-term/officer exceptions, exact withholding rounding (1-yen floor), resident tax 6+4 percent split. $0.02/call.
https://mart402.com/v1/jp-retirement-tax- Price
- $0.02
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 413 ms
- 973 ms slowest 5%
- Last check
- Passed
- 1 h ago, next any minute now
Reliability
How to call it
POST https://mart402.com/v1/jp-retirement-tax
Each call costs $0.02 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-retirement-tax
content-type: application/json
{
"payout_yen": 20000000,
"years_of_service": 30
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
payout_yen | number | No | |
years_of_service | number | No |
Example response
The provider's example. We can't check it without paying.
Example response, 49 lines
{
"as_of": null,
"assumptions": [],
"billable": true,
"breakdown": [],
"carried_forward": [],
"disclaimer": "仮定条件に基づく概算試算。税務相談・手続代行・法律相談ではない。申告・届出への使用不可。確定額は官公署または税理士・社会保険労務士等に確認のこと。",
"not_covered": [
"106万円の壁の2026年以降の要件見直し",
"乙欄・丙欄",
"住宅ローン控除以外の税額控除",
"分離課税(株式・不動産譲渡)",
"合計所得2350万円超の基礎控除逓減",
"固定残業代の有効性判断",
"変形労働時間制",
"年の中途の年末調整",
"従たる給与",
"扶養手当等の企業independent基準",
"日額表",
"管理監督者の判定",
"自治体独自の超過課税(横浜市・名古屋市等)",
"裁量労働制",
"非居住者・年の中途入退社の年調"
],
"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": {
"deduction_yen": 15000000,
"half_taxation": true,
"income_tax_yen": 155702,
"net_yen": 19594298,
"resident_tax_yen": 250000,
"taxable_yen": 2500000
},
"rules_version": "2026.08.18",
"sample": true,
"sample_input": {
"payout_yen": 20000000,
"years_of_service": 30
},
"sources": [
"https://www.nta.go.jp/publication/pamph/gensen/zeigakuhyo2026/data/17-18.pdf",
"https://www.nta.go.jp/taxes/shiraberu/taxanswer/shotoku/2260.htm",
"https://www.tax.metro.tokyo.lg.jp/kazei/kojin_ju.html"
],
"summary": "退職金20,000,000円(勤続30年) -> 手取り19,594,298円(退職所得控除15,000,000円・所得税155,702円・住民税250,000円)",
"tool": "jp-retirement-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.02.
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-retirement-tax' \
-H 'content-type: application/json' \
--data-raw '{"payout_yen":20000000,"years_of_service":30}'
# 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-retirement-tax' \
-H 'content-type: application/json' \
--data-raw '{"payout_yen":20000000,"years_of_service":30}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: 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.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
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.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmart402.com%2Fv1%2Fjp-retirement-tax&method=POST
const res = await pay("https://mart402.com/v1/jp-retirement-tax", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"payout_yen": 20000000,
"years_of_service": 30
}),
});
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.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
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-retirement-tax",
json={
"payout_yen": 20000000,
"years_of_service": 30,
},
)
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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 455 ms | $0.02 |
| 6 h ago | Passed | 402 | 427 ms | $0.02 |
| 10 h ago | Passed | 402 | 445 ms | $0.02 |
| 14 h ago | Passed | 402 | 134 ms | $0.02 |
| 18 h ago | Passed | 402 | 973 ms | $0.02 |
Show 10 older checks
| 23 h ago | Passed | 402 | 414 ms | $0.02 |
| 27 h ago | Passed | 402 | 174 ms | $0.02 |
| 31 h ago | Passed | 402 | 419 ms | $0.02 |
| 35 h ago | Passed | 402 | 404 ms | $0.02 |
| 39 h ago | Passed | 402 | 370 ms | $0.02 |
| 42 h ago | Passed | 402 | 1.9 s | $0.02 |
| 46 h ago | Passed | 402 | 404 ms | $0.02 |
| 2 days ago | Passed | 402 | 501 ms | $0.02 |
| 2 days ago | Passed | 402 | 394 ms | $0.02 |
| 2 days ago | Passed | 402 | 413 ms | $0.02 |