# Convert Corporate Card OFX & QFX Feeds to JSON & camt.053

**Use case:** 

Parse OFX 2.x XML and QFX <CREDITCARDMSGSRSV1> corporate credit-card statements into clean expense JSON rows and ISO 20022 camt.053 XML with FITID uniqueness checks and ledger balance verification.

## Input

```json
{
  "format_mode": "ofx_qfx_only",
  "statements": [
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?><?OFX OFXHEADER=\"200\" VERSION=\"220\"?><OFX><CREDITCARDMSGSRSV1><CCSTMTTRNRS><CCSTMTRS><CURDEF>USD</CURDEF><CCACCTFROM><ACCTID>5544332211008842</ACCTID></CCACCTFROM><BANKTRANLIST><DTSTART>20261101</DTSTART><DTEND>20261124</DTEND><STMTTRN><TRNTYPE>DEBIT</TRNTYPE><DTPOSTED>20261115</DTPOSTED><TRNAMT>-249.00</TRNAMT><FITID>CC2026111501</FITID><NAME>AWS CLOUD SERVICES</NAME><MEMO>PROD CLUSTER</MEMO></STMTTRN><STMTTRN><TRNTYPE>DEBIT</TRNTYPE><DTPOSTED>20261118</DTPOSTED><TRNAMT>-89.00</TRNAMT><FITID>CC2026111802</FITID><NAME>GITHUB ENTERPRISE</NAME><MEMO>DEV SEATS</MEMO></STMTTRN></BANKTRANLIST><LEDGERBAL><BALAMT>-338.00</BALAMT><DTASOF>20261124</DTASOF></LEDGERBAL></CCSTMTRS></CCSTMTTRNRS></CREDITCARDMSGSRSV1></OFX>"
  ],
  "strict_control_totals": true,
  "include_camt053_xml": true,
  "mask_account_numbers": false,
  "max_items": 25
}
```

## Output

```json
{
  "record_id": {
    "label": "Statement ID",
    "format": "string"
  },
  "source_format": {
    "label": "Format",
    "format": "string"
  },
  "account_id": {
    "label": "Account",
    "format": "string"
  },
  "currency": {
    "label": "CCY",
    "format": "string"
  },
  "as_of_date": {
    "label": "As-Of Date",
    "format": "string"
  },
  "validation_status": {
    "label": "Audit Status",
    "format": "string"
  },
  "is_compliant": {
    "label": "Compliant?",
    "format": "boolean"
  },
  "opening_ledger_balance": {
    "label": "Opening Bal",
    "format": "number"
  },
  "total_credits": {
    "label": "Total Credits",
    "format": "number"
  },
  "total_debits": {
    "label": "Total Debits",
    "format": "number"
  },
  "closing_ledger_balance": {
    "label": "Closing Bal",
    "format": "number"
  },
  "transaction_count": {
    "label": "Tx Count",
    "format": "integer"
  }
}
```

## How it works

### 1. 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 "Convert Corporate Card OFX & QFX Feeds to JSON & camt.053". [Sign up or log in](https://console.apify.com/create-task-from-example/HdylnGsQAUTBYZz7q) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert Corporate Card OFX & QFX Feeds to JSON & camt.053" 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.

### 3. Receive the "Convert Corporate Card OFX & QFX Feeds to JSON & camt.053" 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.

### 4. 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 "Convert Corporate Card OFX & QFX Feeds to JSON & camt.053" task via API](https://apify.com/bifrost-data/bai2-ofx-bank-statement-bridge.md).

## FAQ

### Does this support both checking (<BANKMSGSRSV1>) and credit card (<CREDITCARDMSGSRSV1>) OFX files?

Yes. Both bank checking/savings statements and corporate credit-card statements are normalized into one unified JSON schema with statement_type clearly labeled.

### How are OFX timezones like [-5:EST] normalized?

All OFX timestamps and posting dates are normalized into clean ISO-8601 calendar dates so downstream accounting scripts never break on bank timezone suffixes.

### Can I mask corporate card numbers before exporting to BI dashboards?

Yes. Set mask_account_numbers=true to redact card and account identifiers down to the last 4 digits (e.g., ******8842).

## About this Actor

This example demonstrates how to use [BAI2 & OFX/QFX Bank Statement to JSON & camt.053 Bridge](https://apify.com/bifrost-data/bai2-ofx-bank-statement-bridge.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/bifrost-data/bai2-ofx-bank-statement-bridge.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/bifrost-data/bai2-ofx-bank-statement-bridge.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
