Go to example tasks

Mask Account Numbers in BAI2 & OFX Statements for AI Agents

Sanitize BAI2 and OFX/QFX bank or card statements with last-4 account masking (******4300) and exact Decimal control-total verification before feeding financial records into LLM bookkeeping or external audit agents.

Try for free
BAI2 & OFX/QFX Bank Statement to JSON & camt.053 Bridge
BAI2 & OFX/QFX Bank Statement to JSON & camt.053 Bridgebifrost-data/bai2-ofx-bank-statement-bridge
Statement ID
Format
Account
CCY
+8 fields
Text
Number
Boolean
List
Object

Input

Statement Format Detection Mode:auto_detect
Raw BAI2 or OFX / QFX Statement Payloads:01,021000021,ACMETREASURY,261123,2359,0001,80,1,2/ 02,ACMETREASURY,021000021,1,261123,2359,USD,2/ 03,8800194300,USD,010,25000000,,,015,26425050,,,100,1850050,2,,400,425000,2,/ 16,195,1500000,0,FED20261123001,INV-2026-8801,INCOMING FEDWIRE FROM GLOBAL RETAIL CORP/ 88,ORIG: GLOBAL RETAIL CORP OBI: ENTERPRISE LICENSE Q4/ 16,115,350050,0,LBX2026112309,LOCKBOX-4412,LOCKBOX BATCH DEPOSIT CHICAGO/ 16,455,175000,0,ACH2026112377,AWS-NOV-2026,PREAUTHORIZED ACH DEBIT CLOUD INFRA/ 16,475,250000,0,CHK00009841,9841,CHECK PAID VENDOR SETTLEMENT/ 49,55975150,7/ 98,55975150,1,9/ 99,55975150,1,11/
Audit BAI2 Trailer Control Totals (49/98/99) & Duplicate OFX FITIDs:true
Generate Canonical ISO 20022 camt.053.001.08 XML:false
Mask Account Numbers Except Last 4 Digits (Optional Privacy Mode):true
Maximum Verified Account Statements per Run:25

Output fields

Statement ID
Format
Account
CCY
As-Of Date
Audit Status
Compliant?
Opening Bal
Total Credits
Total Debits
Closing Bal
Tx Count

How it works

Sign up on Apify or log in

The BAI2 & OFX/QFX Bank Statement to JSON & camt.053 Bridge Actor is ready to run with the inputs already set for "Mask Account Numbers in BAI2 & OFX Statements for AI Agents". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Mask Account Numbers in BAI2 & OFX Statements for AI Agents" task

The BAI2 & OFX/QFX Bank Statement to JSON & camt.053 Bridge Actor will start running based on the input automatically. You can also change all the input fields, like statement format detection mode, raw bai2 or ofx / qfx statement payloads, and more, to match your specific use case.

Receive the "Mask Account Numbers in BAI2 & OFX Statements for AI Agents" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as statement id, format, account, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Mask Account Numbers in BAI2 & OFX Statements for AI Agents" task via API.

Image

Integrate "Mask Account Numbers in BAI2 & OFX Statements for AI Agents" into your workflow

Connect "Mask Account Numbers in BAI2 & OFX Statements for AI Agents" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

Account and card numbers are masked in-memory so only the trailing 4 digits appear in both the JSON dataset and optional camt.053 XML output.

LLMs hallucinate on implied-decimal BAI2 integers and unclosed OFX SGML tags. Deterministic parsing guarantees 100% exact balances and control-total audits first.

Yes. It runs under strict LIMITED_PERMISSIONS with zero external network access, making it safe for autonomous MCP and x402 agent pipelines.