BAI2 Bank Statement Parser API - US Treasury
bai2_parserParse US BAI2 cash management bank statement files (01/02/03/16/88/49/98/99 records) into structured JSON accounts, opening and closing balances, credit and debit totals, BAI type codes, continuation lines and optional CSV. Deterministic server-side parsing, zero AI, nothing stored, sub-second response for ERP and corporate treasury pipelines. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/bai2-parser.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"limit": 50,
"content": "01,CHASUS33,ACMECORP,261115,0800,1,,,2/\r\n02,ACMECORP,CHASUS33,1,261114,2359,USD,2/\r\n03,000123456789,USD,010,2500000,,,015,2795000,,,/\r\n16,165,450000,0,BNKREF001,INV-2026-88,ACH CREDIT NORTHWIND TRADING LLC/\r\n88,PAYMENT FOR INVOICE 2026-88/\r\n16,475,125000,0,BNKREF002,CHK-4012,CHECK PAID OFFICE LEASE/\r\n16,698,30000,0,BNKREF003,FEE-NOV,MONTHLY TREASURY ACCOUNT FEE/\r\n49,5900000,5/\r\n98,5900000,1,7/\r\n99,5900000,1,9/\r\n"
},
"name": "bai2_parser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of transactions to return per account (1-2000). | |
| content | No | Raw statement text content (UTF-8/ASCII). Provide either content or fileBase64. | |
| fileBase64 | No | Base64-encoded statement file (alternative to content, max 15 MB). | |
| includeCsv | No | When true, also return transactions serialized as a ready-to-import CSV string. |