> This page is for Unified.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Train AI with accounting data

> How to ingest accounting data for AI model training and financial forecasting using the Merge Accounting API.

---

#### User authorizes accounting access

Your users authorize your application to access their accounting platform by going through an authorization flow using Merge Link.

#### Retrieve comprehensive accounting data

Utilize Merge's API endpoints, such as [**GET** /balance-sheets](https://docs.merge.dev/accounting/balance-sheets/#balance_sheets_list), [**GET** /cash-flow-statements](https://docs.merge.dev/accounting/cash-flow-statements/#cash_flow_statements_list) and [**GET** /invoices](https://docs.merge.dev/accounting/invoices/#invoices_list), to retrieve comprehensive accounting data.

#### Clean and transform data

Clean the data by removing duplicates in your customer data, handling missing values, and filtering out irrelevant fields.
Transform data into a format suitable for AI training, possibly involving normalization, encoding, or feature engineering.

#### Validate model performance

Validate the model's performance using the testing set. Compute relevant metrics to gauge the model's effectiveness.

#### Monitor and retrain

Continuously monitor accounting data for updates, changes, and new information. Implement a feedback loop for model retraining and improvement to adapt.

#### Surface insights to customers

Build a UI to provide your customers with valuable insights generated by the AI models, such as forecasts on cash flow, recommendations for cost optimization, or identification of potential financial risks.

#### Get started in automatically pulling accounting data to train AI with Merge

Integrate today or talk to our sales team to learn how Merge unlocks hundreds of integrations in days - not years.

\


Get a demo **

\
\