Japan Bank Transfer Validation API

Validate Japanese bank transfer account details against the Zengin format before submission. Catches mistakes early to prevent costly transfer reversals.

Endpoint

GET https://torify.dev/v1/bank/transfer/validate

Parameters

NameTypeRequiredDescriptionExample
bankCode string Yes 4-digit bank code 0001
branchCode string Yes 3-digit branch code 001
accountType string Yes 1=普通, 2=当座, 4=貯蓄 1
accountNumber string Yes 1-7 digit account number 1234567

Response example

{ "ok": true, "data": { "valid": true, "accountTypeName": "普通", "isYucho": false } }

Code examples

curl

curl "https://torify.dev/v1/bank/transfer/validate?bankCode=0001&branchCode=001&accountType=1&accountNumber=1234567"

TypeScript (x402-fetch)

import { wrapFetchWithPayment } from 'x402-fetch';
import { privateKeyToAccount } from 'viem/accounts';

const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPayment(
  'https://torify.dev/v1/bank/transfer/validate?bankCode=0001&branchCode=001&accountType=1&accountNumber=1234567'
);
const data = await res.json();
console.log(data); // { ok: true, data: { ... } }

Python (requests)

import requests

# Free MCP tier (no auth) or API key (X-API-Key header)
res = requests.get(
    "https://torify.dev/v1/bank/transfer/validate?bankCode=0001&branchCode=001&accountType=1&accountNumber=1234567",
    headers={"X-API-Key": "your_torify_pro_key"}
)
print(res.json())

Related endpoints

← All 36 endpoints

Pricing

$0.02 per call via x402 (USDC on Base). Or use a Pro API key ($49/mo, 10,000 calls/month).