# Analytics Source: https://docs.lendpathway.com/api-reference/endpoint/analytics Read normalized bank metrics, transactions, positions, screening, and tax cash flow. Analytics are computed from the current Book every time you request them. The response reflects transaction tags, excluded documents and accounts, excluded positions, organization revenue rules, business-day settings, and screening policy. ## Bank analytics ```http theme={null} GET /books/{book_id}/analytics ``` Call this after the Book reaches `parse_status: "completed"` and contains bank statement or Plaid data. ```python Python theme={null} import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = "pat_your_token_here" BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" response = requests.get( f"{API_BASE}/books/{BOOK_ID}/analytics", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=60, ) response.raise_for_status() analytics = response.json() print("True revenue:", analytics["true_revenue"]) print("Average daily balance:", analytics["average_daily_balance"]) print("Debt positions:", len(analytics["positions"])) ``` ```javascript JavaScript theme={null} const API_BASE = "https://api.lendpathway.com/api"; const TOKEN = "pat_your_token_here"; const BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78"; const response = await fetch(`${API_BASE}/books/${BOOK_ID}/analytics`, { headers: { Authorization: `Bearer ${TOKEN}` }, }); if (!response.ok) { throw new Error(`${response.status}: ${await response.text()}`); } const analytics = await response.json(); console.log({ trueRevenue: analytics.true_revenue, averageDailyBalance: analytics.average_daily_balance, positions: analytics.positions.length, }); ``` ```bash cURL theme={null} curl --fail-with-body \ "https://api.lendpathway.com/api/books/99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78/analytics" \ -H "Authorization: Bearer pat_your_token_here" ``` ### How to read the response The response has several useful levels: * Book totals such as `true_revenue`, `average_daily_balance`, `total_loan_payments`, and `debt_to_income_ratio` * `statements`, organized by statement period with an account breakdown inside each period * `merged_accounts`, containing the transaction history enriched with cleaned tags and position information * `positions`, containing detected debt relationships and their payment schedules * `screening_metrics` and `screening_result`, containing the fact sheet and current organization policy decision All monetary values are dollar amounts. Ratios such as `debt_to_income_ratio` and `holdback_pct` are percentage values, so `12.5` means 12.5%. ## Response models These models mirror the current public response. Default values are included because older Books can have sparse data. > [accordion] BookAnalytics > > ```python theme={null} > from typing import Any > > from pydantic import BaseModel, Field > > > class NegativeAccountDay(BaseModel): > account_id: int > date: str > balance: float > > > class BalanceStats(BaseModel): > average: float | None = None > lowest: float > peak: float > > > class BookAnalytics(BaseModel): > statements: list[StatementAnalytics] > merged_accounts: dict[str, MergedAccount] | None = None > loan_summary: list[LoanSummary] = Field(default_factory=list) > positions: list[DebtPosition] = Field(default_factory=list) > > total_deposits: float > total_withdrawals: float > total_loan_disbursements: float = 0.0 > total_loan_payments: float = 0.0 > > opening_balance: float = 0.0 > closing_balance: float = 0.0 > peak_balance: float = 0.0 > lowest_balance: float = 0.0 > largest_deposit: float = 0.0 > avg_deposit: float = 0.0 > largest_withdrawal: float = 0.0 > avg_withdrawal: float = 0.0 > num_deposits: int = 0 > num_withdrawals: int = 0 > avg_transaction: float = 0.0 > total_days: int = 0 > average_daily_balance: float | None = None > # Account-days below zero (or under the threshold), summed across accounts > days_negative_balance: int = 0 > days_under_threshold: int = 0 > low_balance_threshold: float | None = None > # Each counted account-day: {account_id, date, balance} > negative_account_days: list[NegativeAccountDay] = Field(default_factory=list) > under_threshold_account_days: list[NegativeAccountDay] = Field(default_factory=list) > # Per-account {average, lowest, peak} of its end-of-day balances > account_balance_stats: dict[str, BalanceStats] = Field(default_factory=dict) > > true_revenue: float = 0.0 > num_true_revenue_transactions: int = 0 > > nsf_total: float = 0.0 > num_nsf: int = 0 > overdraft_total: float = 0.0 > num_overdraft: int = 0 > owner_transaction_total: float = 0.0 > num_owner_transaction: int = 0 > internal_transfer_total: float = 0.0 > num_internal_transfer: int = 0 > bank_fee_total: float = 0.0 > num_bank_fee: int = 0 > payment_processor_total: float = 0.0 > num_payment_processor: int = 0 > stop_payment_total: float = 0.0 > num_stop_payment: int = 0 > reversal_total: float = 0.0 > num_reversal: int = 0 > > num_loan_disbursements: int = 0 > num_loan_payments: int = 0 > debt_to_income_ratio: float | None = None > num_mca_positions: int = 0 > num_active_mca_positions: int = 0 > num_factoring_positions: int = 0 > num_reversal_credits: int = 0 > num_missed_payments: int = 0 > num_modified_payments: int = 0 > > total_mca_daily_remit: float = 0.0 > total_mca_monthly_remit: float = 0.0 > total_mca_paid_net: float = 0.0 > total_mca_holdback_pct: float | None = None > > reconciliation_results: list[ReconciliationResult] = Field(default_factory=list) > revenue_exclusion_tags: list[str] = Field(default_factory=list) > excluded_position_ids: list[str] = Field(default_factory=list) > excluded_document_ids: list[str] = Field(default_factory=list) > average_statement_metrics: AccountStatementMetrics | None = None > counterparty_clusters: list[CounterpartyCluster] = Field(default_factory=list) > > deposits_by_weekday: dict[str, float] = Field(default_factory=dict) > withdrawals_by_weekday: dict[str, float] = Field(default_factory=dict) > deposit_count_by_weekday: dict[str, int] = Field(default_factory=dict) > withdrawal_count_by_weekday: dict[str, int] = Field(default_factory=dict) > bank_holidays: list[dict[str, str]] = Field(default_factory=list) > > most_recent_transaction_date: str | None = None > most_recent_statement_end_date: str | None = None > most_recent_mca_disbursement_date: str | None = None > most_recent_mca_payment_date: str | None = None > > screening_metrics: ScreeningMetrics | None = None > screening_result: ScreeningResult | None = None > ``` > [accordion] Statements and account metrics > > ```python theme={null} > from typing import Literal > > from pydantic import BaseModel, Field > > > class AccountStatementMetrics(BaseModel): > account_id: int > account_name: str > account_number: str > document_id: str | None = None > starting_balance: float > ending_balance: float > num_deposits: int > total_deposits: float > num_withdrawals: int > total_withdrawals: float > > is_reconciled: bool > reconciliation_skipped: bool = False > discrepancy: float | None = None > reconciliation_message: str | None = None > computed_ending_balance: float | None = None > expected_ending_balance: float | None = None > > loan_disbursements: float = 0.0 > loan_payments: float = 0.0 > average_daily_balance: float | None = None > days_negative_balance: int = 0 > days_under_threshold: int = 0 > days_in_period: int = 0 > true_revenue: float = 0.0 > num_true_revenue_transactions: int = 0 > > nsf_total: float = 0.0 > num_nsf: int = 0 > overdraft_total: float = 0.0 > num_overdraft: int = 0 > owner_transaction_total: float = 0.0 > num_owner_transaction: int = 0 > internal_transfer_total: float = 0.0 > num_internal_transfer: int = 0 > bank_fee_total: float = 0.0 > num_bank_fee: int = 0 > payment_processor_total: float = 0.0 > num_payment_processor: int = 0 > stop_payment_total: float = 0.0 > num_stop_payment: int = 0 > reversal_total: float = 0.0 > num_reversal: int = 0 > debt_to_income_ratio: float | None = None > > > class StatementAnalytics(BaseModel): > document_id: str > document_ids: list[str] = Field(default_factory=list) > document_name: str > document_type: str | None = None > statement_start_date: str > statement_end_date: str > statement_period: str > accounts: list[AccountStatementMetrics] > > > class LoanSummary(BaseModel): > loan_type: str > total_disbursements: float > total_payments: float > disbursement_count: int > payment_count: int > is_excluded: bool = False > > > class CounterpartyCluster(BaseModel): > cluster_id: str > counterparty: str > direction: Literal["credit", "debit"] > total: float > count: int > transaction_ids: list[int] > > > class ReconciliationResult(BaseModel): > month: str > account_name: str > reconciled: bool > reconciliation_skipped: bool = False > discrepancy: float > attempts_made: int > reason: str | None = None > ``` > > Each statement normally contains individual account rows plus an `account_id: 0` row named `COMBINED`. The combined row represents the period-wide cash line across included accounts. > [accordion] Transactions > > ```python theme={null} > from typing import Literal > > from pydantic import BaseModel, Field > > > class TransactionPosition(BaseModel): > position_id: str > position_name: str > loan_type: str > funder_title: str | None = None > > > class EnrichedTransaction(BaseModel): > transaction_id: int > document_id: str | None = None > transaction_date: str > description: str > amount: float > transaction_type: Literal["credit", "debit"] > ledger_balance: float | None = None > tag: list[str] = Field(default_factory=list) > position: TransactionPosition | None = None > > > class MergedAccount(BaseModel): > account_number: str > account_name: str | None = None > transactions: list[EnrichedTransaction] = Field(default_factory=list) > ``` > > `merged_accounts` is keyed by the account ID serialized as a string. Transaction tags have already been cleaned for credit/debit direction. Qualifying credits also receive the synthetic `true_revenue` tag, and transactions without another tag receive `untagged`. > [accordion] Debt positions and payment schedules > > ```python theme={null} > from typing import Literal > > from pydantic import BaseModel, Field > > Frequency = Literal["daily", "weekly", "monthly", "irregular"] > ScheduleState = Literal["active", "closed"] > EpisodeState = Literal["pending", "active", "closed"] > EpisodeRole = Literal["initial", "renewal", "stack", "orphan"] > PositionStatus = Literal["just_funded", "active", "closed"] > > > class Disbursement(BaseModel): > disbursement_id: str > transaction_ids: list[int] = Field(default_factory=list) > date: str > amount: float > is_merged: bool = False > > > class ReversalCredit(BaseModel): > transaction_id: int > date: str > amount: float > description: str = "" > attributed_schedule_id: str | None = None > > > class Miss(BaseModel): > evidence: Literal["reversal", "gap"] > date: str | None = None > date_window: tuple[str, str] | None = None > expected_amount: float > count_estimate: int = 1 > reversal_txn_id: int | None = None > severity: Literal["single", "multi", "long"] = "single" > schedule_id: str | None = None > > > class Modification(BaseModel): > date: str > before_amount: float > after_amount: float > delta_pct: float > type: Literal["cross_stream", "within_stream"] > schedule_id: str > > > class PaymentSchedule(BaseModel): > schedule_id: str > transaction_ids: list[int] = Field(default_factory=list) > avg_amount: float = 0.0 > frequency: Frequency = "irregular" > pull_day: str | None = None > remit_daily: float | None = None > amount_variance: float = 0.0 > is_holdback_style: bool = False > first_payment: str = "" > last_payment: str = "" > payment_count: int = 0 > total_paid: float = 0.0 > total_paid_net: float = 0.0 > term_est_days: int | None = None > state: ScheduleState = "active" > misses: list[Miss] = Field(default_factory=list) > modifications: list[Modification] = Field(default_factory=list) > > > class Episode(BaseModel): > episode_id: str > advance: Disbursement | None = None > schedules: list[PaymentSchedule] = Field(default_factory=list) > role: EpisodeRole = "initial" > state: EpisodeState = "pending" > first_payment: str | None = None > last_payment: str | None = None > > > class PositionTransaction(BaseModel): > transaction_id: str > document_id: str | None = None > date: str > description: str > amount: float > type: str > > > class DebtPosition(BaseModel): > position_id: str > name: str > loan_type: str > is_excluded: bool = False > > funder_uuid: str | None = None > funder_title: str | None = None > funder_link: str | None = None > funder_contact: str | None = None > funder_email: str | None = None > transactions: list[PositionTransaction] = Field(default_factory=list) > > total_disbursements: float = 0.0 > total_payments: float = 0.0 > transaction_count: int = 0 > disbursement_count: int = 0 > payment_count: int = 0 > avg_disbursement: float = 0.0 > avg_payment: float = 0.0 > first_disbursement_date: str | None = None > last_disbursement_date: str | None = None > last_payment_date: str | None = None > returns_count: int = 0 > returns_total: float = 0.0 > > episodes: list[Episode] = Field(default_factory=list) > reversal_credits: list[ReversalCredit] = Field(default_factory=list) > status: PositionStatus = "closed" > daily_remit_burden: float = 0.0 > monthly_remit_burden: float = 0.0 > holdback_pct: float | None = None > n_active_schedules: int = 0 > n_active_episodes: int = 0 > est_total_payback: float | None = None > total_paid_net: float = 0.0 > progress_pct: float | None = None > has_renewal: bool = False > has_stack: bool = False > potential_missed_payments: list[Miss] = Field(default_factory=list) > potential_modified_payments: list[Modification] = Field(default_factory=list) > ``` > > An episode represents one observed advance and its payment streams. `renewal` and `stack` describe how a later advance relates to earlier active schedules. `orphan` means payments are visible but the original advance predates the statement window. > [accordion] Screening > > ```python theme={null} > from typing import Any, Literal > > from pydantic import BaseModel, Field > > > class ScreeningMetrics(BaseModel): > avg_daily_balance: float | None = None > negative_days: float | None = None > days_under_threshold: float | None = None > true_revenue: float | None = None > avg_monthly_revenue: float | None = None > avg_monthly_deposits: float | None = None > total_loan_payments: float | None = None > debt_to_income_ratio: float | None = None > closing_balance: float | None = None > opening_balance: float | None = None > total_days: float | None = None > lowest_balance: float | None = None > num_deposits: float | None = None > num_withdrawals: float | None = None > num_true_revenue_transactions: float | None = None > num_mca_positions: float | None = None > time_in_business_in_days: float | None = None > account_holder_ownership_percentage: float | None = None > requested_loan_amount: float | None = None > most_recent_month_revenue: float | None = None > most_recent_month_negative_days: float | None = None > most_recent_month_avg_daily_balance: float | None = None > most_recent_month_deposits: float | None = None > most_recent_month_loan_payments: float | None = None > num_nsf: float | None = None > num_overdraft: float | None = None > num_active_mca_positions: float | None = None > num_factoring_positions: float | None = None > days_since_last_transaction: float | None = None > days_since_last_statement_end: float | None = None > days_since_last_mca_disbursement: float | None = None > days_since_last_mca_payment: float | None = None > total_deposits: float | None = None > total_withdrawals: float | None = None > avg_monthly_withdrawals: float | None = None > avg_monthly_deposit_count: float | None = None > avg_monthly_negative_days: float | None = None > avg_monthly_loan_payments: float | None = None > nsf_total: float | None = None > overdraft_total: float | None = None > num_reversal_credits: float | None = None > num_missed_payments: float | None = None > num_modified_payments: float | None = None > business_name: str | None = None > business_state: str | None = None # "TX", "ON" > business_country: str | None = None # "US", "CA" or "GB" > industry: str | None = None > > > class ResolvedScreeningRule(BaseModel): > when: dict[str, Any] # the rule's condition tree; it rejects when this is true > lendsaas_decline_reason_ids: list[str] | None = None > lendsaas_hard_decline: bool = False > result: Literal["PASS", "REJECT"] > tone: Literal["fail", "pass", "skipped", "unavailable"] > reason: str > rule_as_variables: str > rule_after_substituting: str > > > class ScreeningResult(BaseModel): > result: Literal["PASS", "REJECT"] > num_passed: int > num_total: int > resolved_rules: list[ResolvedScreeningRule] = Field(default_factory=list) > ``` > > `screening_result` can be absent when screening is disabled or when a fact sheet cannot be built. A missing metric causes the individual rule that needs it to pass. ## Account-first statement view ```http theme={null} GET /books/{book_id}/statements ``` This view groups data by account and then by month. It includes daily balance maps and monthly lender activity. It does not apply organization-level document, account, or revenue exclusions. ```python theme={null} from typing import Any from pydantic import BaseModel, Field class SimpleFunder(BaseModel): position_id: str name: str loan_type: str funder_uuid: str | None = None funder_title: str | None = None funder_link: str | None = None funder_contact: str | None = None funder_email: str | None = None transaction_count: int total_disbursements: float total_payments: float funded_date: str | None = None first_payment_date: str | None = None last_payment_date: str | None = None payment_count: int = 0 avg_payment_amount: float | None = None payment_frequency: str | None = None class SimpleStatement(BaseModel): document_id: str document_name: str statement_start_date: str statement_end_date: str starting_balance: float ending_balance: float min_balance: float | None = None max_balance: float | None = None sum_credits: float sum_debits: float net_deposits: float num_deposits: int num_withdrawals: int average_daily_balance: float | None = None days_negative_balance: int = 0 days_in_period: int = 0 revenue_credits: float = 0.0 loan_disbursements: float = 0.0 total_mca_disbursements: float = 0.0 loan_payments: float = 0.0 debt_to_income_ratio: float | None = None transactions: list[dict[str, Any]] daily_balances: dict[str, float] = Field(default_factory=dict) funders: list[SimpleFunder] = Field(default_factory=list) class SimpleAccount(BaseModel): account_id: int account_name: str account_number: str bank_name: str routing_number: str | None = None account_type: str business_name: str business_address: dict[str, Any] | None = None # an Address, as documented under Books statements: list[SimpleStatement] ``` ## Tax cash-flow analysis ```http theme={null} GET /books/{book_id}/tax-analytics ``` Returns qualifying-income analysis derived from the tax forms stored on the Book. ```python theme={null} from typing import Any, Literal from pydantic import BaseModel, Field class TaxEntity(BaseModel): name: str tin: str | None = None address: str | None = None class IncomeSource(BaseModel): source_type: Literal["wages", "schedule_c", "partnership", "s_corp"] source_name: str entity: TaxEntity | None = None ownership_pct: float | None = None ordinary_income: float = 0 rental_income: float = 0 guaranteed_payments: float = 0 depreciation_addback: float = 0 other_income: float | None = None other_deductions: float | None = None subtotal: float = 0 has_k1: bool = False has_return: bool = False k1_return_match: bool | None = None class ReconciliationWarning(BaseModel): entity_name: str warning_type: Literal[ "missing_k1", "missing_return", "income_mismatch", "missing_from_schedule_e", ] message: str class ParsedFormField(BaseModel): key: str label: str value: Any format: Literal["currency", "percent", "text", "count"] class ParsedFormCard(BaseModel): title: str entity_name: str | None = None entity_tin: str | None = None badge: str | None = None fields: list[ParsedFormField] = Field(default_factory=list) class TaxYearAnalysis(BaseModel): tax_year: int borrower: TaxEntity | None = None wage_sources: list[IncomeSource] = Field(default_factory=list) schedule_c_sources: list[IncomeSource] = Field(default_factory=list) partnership_sources: list[IncomeSource] = Field(default_factory=list) s_corp_sources: list[IncomeSource] = Field(default_factory=list) schedule_e_entity_count: int = 0 k1_count: int = 0 warnings: list[ReconciliationWarning] = Field(default_factory=list) parsed_forms: list[ParsedFormCard] = Field(default_factory=list) total_wages: float = 0 total_schedule_c: float = 0 total_partnership: float = 0 total_s_corp: float = 0 total_depreciation_addback: float = 0 total_qualifying_income: float = 0 reported_agi: float | None = None class TaxCashFlowAnalysis(BaseModel): years: list[TaxYearAnalysis] = Field(default_factory=list) most_recent_year: int | None = None avg_qualifying_income: float | None = None ``` ## Response conditions | Status | Meaning | | - | - | | `400` | The Book has not completed parsing or does not contain the required data | | `401` | Missing or invalid PAT | | `403` | The token cannot access this Book | | `404` | The Book does not exist in the token's organization | For practical selection and aggregation patterns, continue with [Working with analytics data](/cookbook/working-with-analytics). # Authentication and access Source: https://docs.lendpathway.com/api-reference/endpoint/authentication The credentials the API accepts, and what each one can do. Every request carries one credential. The credential decides who is calling, in which organization, and what the call may do. ## Credentials | Credential | Header | Scope | Can write | | - | - | - | - | | Personal Access Token (PAT), read-write | `Authorization: Bearer pat_...` | One user in one organization | Yes, up to the user's role | | PAT, read-only | `Authorization: Bearer pat_...` | One user in one organization | No | | Embed token | `X-Embed-Token: ...` | One Book | No | | Browser session | Set by the Pathway app | The signed-in user | Yes, up to the user's role | Use a PAT for an integration, a script, or an agent. Use an [embed token](/api-reference/endpoint/embed) to show one Book inside your own application. The browser session is what the Pathway app uses; you do not create one yourself. ## What a token can do A PAT acts as the user who created it. It never has more access than that user. Access has three levels. A user's role in the organization grants them: | Role | Read | Write | Manage | | - | - | - | - | | Guest | Yes | No | No | | Member | Yes | Yes | No | | Admin | Yes | Yes | Yes | * **Read**: view Books, documents, analytics, metrics, settings, members, and whether a system is connected. * **Write**: create and edit Books, upload and parse documents, edit tags and positions, fill contracts, send deals. * **Manage**: invite members and change roles, change organization and analysis settings, buy credits, and edit screening rules, funders, funding partners, tag rules, contract templates, intake settings, senders and sender groups, and connectors. One read is not a guest's: what a connected system holds, such as LendSaaS leads and Salesforce opportunities. Members and admins can read it, with a read-only PAT too; a guest's requests for it return `403`. A read-only PAT is held to Read, whatever the user's role. Its `POST`, `PATCH`, `PUT`, and `DELETE` requests return `403`. A few `POST` routes only read and are allowed, such as `POST /books/batch` and `POST /documents/bulk-download`. | Token | Guest | Member | Admin | | - | - | - | - | | Read-only | Read | Read | Read | | Read-write | Read | Read, Write | Read, Write, Manage | ## What a token can reach A PAT reaches the whole product: Books, documents, parsing, analytics, exports, contracts, email templates, screening rules, funders, funding partners, tag rules, intake, organization settings, members, usage and credits, Baselayer, LendSaaS, Salesforce, OrgMeter, Ramp, and Slack. The [product map](/api-reference/product-map) lists every route family. These need the browser, not a token: | Not available to a token | Why | | - | - | | Creating, listing, and revoking tokens | A token must not create more tokens | | Connecting an account (Google, Salesforce, Ramp sign-in) | It is a sign-in redirect in a browser | | Sending from a connected Gmail inbox | Mail is sent from the app, where you see and approve it | | Starting a chat and sending chat messages | Chat runs in the app | A PAT can read its own user's connected Gmail, read-only, through `GET /google-inbox/proxy/...`. It is that one person's inbox, and members and admins only. ## Actions that cost credits or leave Pathway These work with a read-write PAT exactly as they do in the app: * A parse, a Baselayer search, and web research use credits. `GET /usage/credits` returns the balance; `GET /usage/activity` lists what was charged. * A push to LendSaaS, Salesforce, or OrgMeter, and a Ramp referral, change data in that system. A read-only PAT cannot start any of them. ## The chat agent's token Each reply from Pathway's chat agent gets its own read-only PAT for the user who sent the message, in the organization they are working in. It reads what that user can read, changes nothing, and is deleted when the reply ends. It never appears in your token list. See [Chat engine](/platform/chat-engine#scoped-platform-access). ## Create a token 1. Open **Settings → Account → API tokens** in the Pathway app. 2. Click **New token** and name it. Choose its **Access**, read and write or read only, and when it **Expires**: 7 days (the default), 30 days, 90 days, 1 year, or never. 3. Copy the token. It begins with `pat_` and is shown once. Pathway stores only a hash of the token and cannot show it again. ## Send and verify it Send the token on every request. `GET /auth/me` returns the user and organization it belongs to. ```bash cURL theme={null} curl --fail-with-body \ "https://api.lendpathway.com/api/auth/me" \ -H "Authorization: Bearer pat_your_token_here" ``` ```python Python theme={null} import requests response = requests.get( "https://api.lendpathway.com/api/auth/me", headers={"Authorization": "Bearer pat_your_token_here"}, timeout=30, ) response.raise_for_status() print(response.json()) ``` ```javascript JavaScript theme={null} const response = await fetch("https://api.lendpathway.com/api/auth/me", { headers: { Authorization: "Bearer pat_your_token_here" }, }); if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`); console.log(await response.json()); ``` ```json theme={null} { "org_id": "c4f9dda9-7875-4115-961f-0ac4b9630526", "org_name": "Acme Funding", "user_id": "fa576914-9590-40af-bbb8-c3af6f500859", "user_name": "John Doe" } ``` A PAT always acts in the organization shown here. You do not send `X-Org-Id`; if you do, it must match. ## Store and revoke it Keep the token on a server, in a secret manager or an environment variable. Do not put it in browser code, a mobile app, a repository, a log, or a screenshot. A PAT works until it expires, is revoked, its user is removed, or the organization is deleted. The token list shows when each one expires and when it was last used; an expired token stays listed, marked **Expired**, so you can see why an integration stopped. To keep an integration running, create a new token before the old one expires. Tokens created before November 9, 2026 never expire. To revoke a token, delete it in **Settings → Account → API tokens**. Revocation is immediate. Give each integration its own token, so that you can tell their usage apart and revoke one without stopping the others. ## Limits and errors A PAT may make about 300 requests a minute. The count is kept per server, so the exact number varies. Past it, requests return `429`; wait and retry. | Status | Meaning | | - | - | | `401` | The token is missing, malformed, invalid, revoked, or expired | | `403` | The token is valid but may not do this: a write from a read-only token, an action above the user's role, or a route that needs the browser | | `404` | The item does not exist in this organization | | `422` | A parameter is misspelled or has a bad value; the response names it | | `429` | Too many requests in a minute (about 300) | # Books Source: https://docs.lendpathway.com/api-reference/endpoint/books Check parse status and read the raw output for a deal. A Book is the complete stored deal. It carries the deal's identity, parse status, source, user edits, exclusions, and raw output from every parser that ran across its documents. Bank-statement data has several representations. Choosing one should be deliberate: | Data | Where it lives | What it contains | | - | - | - | | Complete Book | `GET /books/{book_id}` | Book fields and the entire `book_meta` object | | Canonical raw bank result | Inside `book_meta` | Extracted business, owners, accounts, statement ledgers, transactions, and stored positions | | Computed underwriting result | `GET /books/{book_id}/analytics` | Current metrics, normalized transactions, enriched positions, counterparties, and screening | | Simple statement history | `GET /books/{book_id}/statements` | Accounts first, with their statements and daily balances nested underneath | Credit reports, tax forms, loan applications, photo IDs, and voided checks are also returned inside the full Book's `book_meta`. ## Get a Book ```http theme={null} GET /books/{book_id} ``` ```python Python theme={null} import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = "pat_your_token_here" BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" response = requests.get( f"{API_BASE}/books/{BOOK_ID}", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=30, ) response.raise_for_status() book = response.json() print(book["parse_status"], book["parse_status_message"]) ``` ```javascript JavaScript theme={null} const API_BASE = "https://api.lendpathway.com/api"; const TOKEN = "pat_your_token_here"; const BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78"; const response = await fetch(`${API_BASE}/books/${BOOK_ID}`, { headers: { Authorization: `Bearer ${TOKEN}` }, }); if (!response.ok) { throw new Error(`${response.status}: ${await response.text()}`); } const book = await response.json(); console.log(book.parse_status, book.parse_status_message); ``` ```bash cURL theme={null} curl --fail-with-body \ "https://api.lendpathway.com/api/books/99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" \ -H "Authorization: Bearer pat_your_token_here" ``` ## Parse status `parse_status` follows this state flow: ```mermaid theme={null} flowchart LR N["new"] --> P["processing"] P --> C["completed"] P --> F["failed"] P --> X["cancelled"] ``` | Status | Meaning | | - | - | | `new` | The Book exists and has not started parsing | | `processing` | Files are being uploaded, classified, or parsed | | `completed` | Parsing finished. Available parser outputs are attached to `book_meta` | | `failed` | Parsing could not finish. Inspect `parse_status_message` and document statuses | | `cancelled` | A running parse was stopped | The API can complete a Book when one document-specific pipeline fails and another succeeds. Inspect the parser keys you need rather than assuming every uploaded document produced output. ## Complete Book response The following models describe the JSON returned by `GET /books/{book_id}`. This call returns the complete stored Book, including `book_meta`. > [accordion] Book > > ```python theme={null} > from datetime import datetime > from typing import Any, Literal > from uuid import UUID > > from pydantic import BaseModel, Field > > ParseStatus = Literal["new", "processing", "completed", "failed", "cancelled"] > BookOrigin = Literal["email", "manual", "api", "lendsaas", "salesforce"] > > > class UserSummary(BaseModel): > id: UUID > name: str | None = None > email: str | None = None > picture: str | None = None > > > class EmailAddress(BaseModel): > email: str > name: str | None = None > > > class BookLineageMeta(BaseModel): > origin: BookOrigin = "manual" > sender_email: str | None = None > sender_name: str | None = None > originator_group_id: UUID | None = None > email_thread_id: str | None = None > additional_addresses: list[EmailAddress] = Field(default_factory=list) > > > class Book(BaseModel): > id: UUID > org_id: UUID | None = None > parse_status: ParseStatus | None = "new" > parse_status_message: str | None = None > > name: str > description: str | None = None > book_tag: str | None = None > is_starred: bool = False > is_deleted: bool = False > created_by: UUID | None = None > created_by_user: UserSummary | None = None > created_at: datetime > updated_at: datetime > > document_count: int | None = None # deprecated > book_meta: BookMeta = Field(default_factory=BookMeta) > last_parsed_at: datetime | None = None > parse_job_id: UUID | None = None > > email_thread_id: str | None = None > salesforce_opportunity_id: str | None = None > lendsaas_lead_id: str | None = None > orgmeter_lead_id: str | None = None > lineage_meta: BookLineageMeta = Field(default_factory=BookLineageMeta) > > is_legacy: bool = False > notes: str | None = None > eval_baseline: dict[str, Any] | None = None > web_research_running: bool = False > ``` > [accordion] BookMeta > > ```python theme={null} > from typing import Any > > from pydantic import BaseModel, Field > > > class BookMeta(BaseModel): > # Raw output written by the document-specific parsers > parser_v2_mca_result: dict[str, Any] | None = None > parser_v2_credit_report: dict[str, Any] | None = None > parser_v2_tax_forms: dict[str, Any] | None = None > parser_v2_loan_application: dict[str, Any] | None = None > parser_v2_identity_documents: dict[str, Any] | None = None > parser_v2_plaid_result: dict[str, Any] | None = None > > # Explicit user and organization configuration applied at analytics time > excluded_document_ids: list[str] = Field(default_factory=list) > excluded_account_ids: list[int] = Field(default_factory=list) > excluded_position_ids: list[str] = Field(default_factory=list) > revenue_exclusion_tags: list[str] | None = None > selected_credit_bureau: str | None = None > ``` ### Raw parser keys | Key | Content | | - | - | | `parser_v2_mca_result` | Uploaded bank statement extraction with businesses, accounts, statement ledgers, transactions, and stored debt positions | | `parser_v2_plaid_result` | Plaid Asset Report data and its normalized bank-statement representation. When present, it is the canonical bank source | | `parser_v2_credit_report` | Subject identity, bureau data, credit scores, inquiries, and tradelines | | `parser_v2_tax_forms` | Extracted 1040, Schedule C, 1065, 1120-S, and K-1 forms | | `parser_v2_loan_application` | Fields extracted from the application, including requested amount and applicant information | | `parser_v2_identity_documents` | Extracted photo ID and voided-check data | `book_meta` stores parser output and explicit edits. Computed metrics are generated when you call `/analytics` and are not stored here. ## Canonical raw bank result Bank data can arrive from uploaded statements or a Plaid Asset Report. Pathway uses the normalized Plaid result when it exists. Uploaded-statement output is the fallback. ```python theme={null} book = requests.get( f"{API_BASE}/books/{BOOK_ID}", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=30, ).json() meta = book["book_meta"] plaid = meta.get("parser_v2_plaid_result") or {} canonical_mca = plaid.get("holy_mca") or meta.get("parser_v2_mca_result") if canonical_mca: print(canonical_mca["business"]) print(canonical_mca["merged_accounts"]) ``` `merged_accounts` is the most direct raw transaction view. It combines transactions from every statement by account number. `bank_statements` preserves the source-document and statement-period hierarchy. > [accordion] Complete HolyMCAResult model > > ```python theme={null} > from typing import Any, Literal > > from pydantic import BaseModel, Field > > > class PhoneNumber(BaseModel): > country_code: str = "+1" > area_code: str > phone_number: str > extension: str | None = None > > > class Address(BaseModel): > """Every address in a Book has this shape: on the loan application, the > bank statements, a credit report. Every field is optional.""" > > as_written: str | None = None # the address as the document printed it > line_1: str | None = None > line_2: str | None = None > city: str | None = None > state: str | None = None # code of a US state or territory, or a Canadian province or territory: "TX", "ON" > postal_code: str | None = None > country: str | None = None # "US", "CA" or "GB"; null when it could not be told > > > class Human(BaseModel): > full_name: str > phone_number: PhoneNumber | None = None > human_address: Address | None = None > human_relationship_to_business: str | None = None > > > class Business(BaseModel): > business_name: str > legal_business_name: str | None = None > business_phone_number: PhoneNumber | None = None > business_address: Address | None = None > > > class AccountLedger(BaseModel): > account_id: int > account_name: str > account_number: str > account_type: str > bank_name: str > routing_number: str | None = None > > > class HolyTransaction(BaseModel): > transaction_id: int | None = None > document_id: str | None = None > transaction_date: str | None = None > description: str | None = None > amount: float | None = None > transaction_type: Literal["credit", "debit"] | str | None = None > ledger_balance: float | None = None > tag: list[str] | None = None > position: dict[str, Any] | None = None > > > class ReconciliationResult(BaseModel): > reconciled: bool = False > reconciliation_skipped: bool = False > attempts_made: int = 0 > sum_transactions: float = 0.0 > computed_ending_balance: float = 0.0 > expected_ending_balance: float = 0.0 > discrepancy: float = 0.0 > last_error: str | None = None > > > class HolyLedger(BaseModel): > account_id: int | None = None > account_name: str | None = None > account_number: str | None = None > account_type: str | None = None > bank_name: str | None = None > routing_number: str | None = None > statement_starting_balance: float | None = None > statement_ending_balance: float | None = None > statement_num_credits: int | None = None > statement_num_debits: int | None = None > transactions: list[HolyTransaction] | None = None > reconciliation_result: ReconciliationResult | None = None > > > class HolyBankStatement(BaseModel): > document_id: str | None = None > document_name: str | None = None > document_type: str | None = None > statement_start_date: str | None = None > statement_end_date: str | None = None > ledgers: list[HolyLedger] | None = None > > > class MergedMCAAccount(BaseModel): > account_number: str | None = None > account_name: str | None = None > transactions: list[HolyTransaction] | None = None > > > class StoredPosition(BaseModel): > position_id: str > name: str | None = None > loan_type: str = "merchant_cash_advance" > transaction_ids: list[int] = Field(default_factory=list) > funder_uuid: str | None = None > funder_title: str | None = None > funder_link: str | None = None > funder_contact: str | None = None > funder_email: str | None = None > > > class HolyMCAResult(BaseModel): > business: Business | None = None > humans: list[Human] | None = None > account_ledgers: list[AccountLedger] | None = None > bank_statements: list[HolyBankStatement] | None = None > merged_accounts: dict[str, MergedMCAAccount] | None = None > positions: list[StoredPosition] = Field(default_factory=list) > total_disbursements: float = 0.0 > total_payments: float = 0.0 > transaction_count: int = 0 > web_research: str | None = None > tampering_analysis: Any | None = None > ``` These values reflect parser output and stored edits. For metrics such as true revenue, average daily balance, debt-to-income ratio, normalized position schedules, and screening decisions, request the full [`BookAnalytics`](/api-reference/endpoint/analytics#response-models). > [!WARNING] > > A reparse replaces `book_meta`. Any manual transaction tags, debt-position edits, and exclusions on the existing parse are discarded. ## List Books ```http theme={null} GET /books/ ``` Returns every active Book in the token's organization, newest first. ```python theme={null} response = requests.get( f"{API_BASE}/books/", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=30, ) response.raise_for_status() for book in response.json(): print(book["id"], book["name"], book["parse_status"]) ``` The list endpoint deliberately returns `book_meta` as an empty object because raw parser output can be large. Fetch a specific Book when you need its full metadata. ### Find the Book for a CRM record ```http theme={null} GET /books/?salesforce_opportunity_id={opportunity_id} ``` Pass a connected system's id to return only the Books linked to that record, instead of the whole list. The parameters match the Book fields: `salesforce_opportunity_id` (the 18-character Opportunity Id), `lendsaas_lead_id`, and `orgmeter_lead_id`. The result is the same list shape, usually with a single Book, and an empty list when nothing is linked. ```python theme={null} response = requests.get( f"{API_BASE}/books/", headers={"Authorization": f"Bearer {TOKEN}"}, params={"salesforce_opportunity_id": OPPORTUNITY_ID}, timeout=30, ) response.raise_for_status() books = response.json() book_id = books[0]["id"] if books else None ``` ## Update Book fields ```http theme={null} PATCH /books/{book_id} Content-Type: application/json ``` Send only the fields you want to change. The supported content fields are `name`, `description`, `book_tag`, and `notes`. ```python theme={null} response = requests.patch( f"{API_BASE}/books/{BOOK_ID}", headers={"Authorization": f"Bearer {TOKEN}"}, json={ "name": "Acme Coffee Renewal", "book_tag": "priority", }, timeout=30, ) response.raise_for_status() ``` The default response omits the large parser payload. Add `?include_meta=true` when the updated response also needs the complete `book_meta`. `DELETE /books/{book_id}` soft-deletes the Book and cancels an active parse. `POST /books/{book_id}/toggle-star` toggles the starred state without sending a request body. ## Read document-oriented results The Book endpoint is the entry point for raw credit, tax, application, and identity output. Computed endpoints are available when you want normalized results: | Request | Use it for | | - | - | | `GET /books/{book_id}/analytics` | Bank metrics, enriched transactions, positions, cash-flow patterns, and screening | | `GET /books/{book_id}/statements` | Account-first bank statement history with daily balances | | `GET /books/{book_id}/tax-analytics` | Qualifying-income analysis across parsed tax years | | `GET /books/{book_id}/csv-export` | Bank-underwriting CSV | | `GET /artifacts/{book_id}/export?template_id=` | A template rendered for the Book: Excel, PDF or HTML | For transaction tags, debt positions, and underwriting exclusions, continue with [Underwriting edits](/api-reference/endpoint/underwriting-edits). ## Response conditions | Status | Meaning | | - | - | | `401` | Missing or invalid PAT | | `403` | The token cannot access this organization or Book | | `404` | The Book does not exist in the token's organization | # Documents and parsing Source: https://docs.lendpathway.com/api-reference/endpoint/documents-and-parsing Create a Book, upload its files, and control parsing as separate API calls. Use these endpoints when your application needs to control each part of the Book lifecycle. You can create an empty Book, add files over time, inspect the uploaded documents, and start parsing when the package is ready. For a single request that creates, uploads, and starts parsing, use [`POST /submit-book`](/api-reference/endpoint/submit-book). ## Complete manual flow ```python theme={null} import time from pathlib import Path import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = "pat_your_token_here" HEADERS = {"Authorization": f"Bearer {TOKEN}"} # 1. Create the Book. response = requests.post( f"{API_BASE}/books/", headers=HEADERS, json={"name": "Acme Coffee", "description": "March renewal review"}, timeout=30, ) response.raise_for_status() book_id = response.json()["id"] # 2. Upload one or more documents. paths = [Path("january.pdf"), Path("february.pdf")] handles = [path.open("rb") for path in paths] try: response = requests.post( f"{API_BASE}/documents/", headers=HEADERS, params={"book_id": book_id}, files=[("files", (path.name, handle, "application/pdf")) for path, handle in zip(paths, handles)], timeout=120, ) response.raise_for_status() documents = response.json() finally: for handle in handles: handle.close() # 3. Start parsing. response = requests.post( f"{API_BASE}/parse/{book_id}/parse-book", headers=HEADERS, timeout=30, ) response.raise_for_status() parse_job_id = response.json()["parse_job_id"] # 4. Wait for a terminal status. while True: response = requests.get( f"{API_BASE}/books/{book_id}", headers=HEADERS, timeout=30, ) response.raise_for_status() book = response.json() if book["parse_status"] in {"completed", "failed", "cancelled"}: break time.sleep(3) print(book["parse_status"], book.get("parse_status_message")) ``` ## Create an empty Book ```http theme={null} POST /books/ Content-Type: application/json ``` ```json theme={null} { "name": "Acme Coffee", "description": "March renewal review" } ``` The response is the newly created [`Book`](/api-reference/endpoint/books#complete-book-response). Its initial `parse_status` is `new`. ## Upload documents ```http theme={null} POST /documents/?book_id={book_id} Content-Type: multipart/form-data ``` Repeat the `files` form field for every file. A ZIP file is expanded during upload. The response contains every Document currently attached to the Book. ```python Python theme={null} with open("statement.pdf", "rb") as statement: response = requests.post( f"{API_BASE}/documents/", headers=HEADERS, params={"book_id": BOOK_ID}, files={"files": ("statement.pdf", statement, "application/pdf")}, timeout=120, ) response.raise_for_status() print(response.json()) ``` ```javascript JavaScript theme={null} import { openAsBlob } from "node:fs"; const form = new FormData(); form.append("files", await openAsBlob("statement.pdf"), "statement.pdf"); const response = await fetch(`${API_BASE}/documents/?book_id=${BOOK_ID}`, { method: "POST", headers: { Authorization: `Bearer ${TOKEN}` }, body: form, }); if (!response.ok) { throw new Error(`${response.status}: ${await response.text()}`); } console.log(await response.json()); ``` ```bash cURL theme={null} curl --fail-with-body \ -X POST \ "https://api.lendpathway.com/api/documents/?book_id=99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" \ -H "Authorization: Bearer pat_your_token_here" \ -F "files=@statement.pdf" ``` > [accordion] Document response model > > ```python theme={null} > from datetime import datetime > from typing import Literal > from uuid import UUID > > from pydantic import BaseModel > > DocumentType = Literal[ > "pending", > "bank_statement", > "month_to_date", > "plaid_asset_report", > "loan_application_form", > "receipt", > "decisionlogic", > "credit_report", > "tax_form", > "ar_report", > "photo_id", > "voided_check", > "unsupported_file", > ] > DocumentStatus = Literal["pending", "new", "processing", "completed", "failed"] > > > class DocumentMeta(BaseModel): > failure_reason: str | None = None > > > class Document(BaseModel): > id: UUID > org_id: UUID | None = None > book_id: UUID | None = None > document_type: DocumentType = "pending" > document_status: DocumentStatus = "pending" > uploaded_file_name: str > original_filename: str > file_size: int | None = None > document_meta: DocumentMeta | None = None > is_deleted: bool = False > created_by: UUID | None = None > created_at: datetime > updated_at: datetime > presigned_url: str | None = None > presigned_url_expires: datetime | None = None > mime_type: str | None = None > page_count: int | None = None > ``` ## Inspect and download documents | Request | Result | | - | - | | `GET /documents/?book_id={book_id}` | Every active document attached to the Book | | `GET /documents/{document_id}` | One Document with its latest classification and status | | `GET /documents/{document_id}/download` | A fresh one-hour `download_url` for the source file | Document classification happens during parsing. Before that work runs, `document_type` can be `pending` and `document_status` can be `new`. ## Start parsing ```http theme={null} POST /parse/{book_id}/parse-book ``` ```json theme={null} { "parse_job_id": "d1f05046-b5ba-45a2-8f3b-ae3acc08fd11" } ``` The request atomically moves the Book into `processing` and returns immediately. A Book already processing returns `400`. Poll either resource: | Request | Use | | - | - | | `GET /books/{book_id}` | Status plus the complete Book. Fetch this when you will read the result after completion | | `GET /parse/{book_id}/parse-book-status` | Lightweight status for one Book | | `GET /parse/books/statuses` | Lightweight status for every Book in the organization; `active_only=true` returns parses running now or ended in the last ten minutes | The terminal states are `completed`, `failed`, and `cancelled`. Once completed, choose the response that fits the job: * [`GET /books/{book_id}`](/api-reference/endpoint/books) for the entire stored Book and raw parser results * [`GET /books/{book_id}/analytics`](/api-reference/endpoint/analytics) for complete computed underwriting data * `GET /books/{book_id}/statements` for the smaller account-first bank view ## Stop an active parse ```http theme={null} POST /parse/{book_id}/stop-parse ``` The response is `{"message": "Parse cancelled"}` when a running parse was cancelled, or `{"message": "No active parse"}` when there was nothing to stop. > [!WARNING] > > Starting a new parse replaces the Book's existing `book_meta`. Transaction tags, position edits, and exclusions stored with the previous parse are discarded. # Embed Source: https://docs.lendpathway.com/api-reference/endpoint/embed Create a read-only Book URL for your application. The embed flow renders Pathway's Book interface inside your application. The person viewing it does not need a Pathway login or API token. Your server creates a book-scoped `emb_...` token with its PAT. Your frontend places that embed token in an iframe URL. > [!WARNING] > > Create embed tokens on your server. The PAT used to create them must never be shipped to the browser. ## Create an embed token ```http theme={null} POST /embed/token Content-Type: application/json ``` **book\_id** `string` *required* UUID of the Book the viewer can access. **permanent** `boolean` (default: false) Temporary tokens expire after 24 hours. Permanent tokens have no scheduled expiration. ```python Python theme={null} import requests API_BASE = "https://api.lendpathway.com/api" APP_BASE = "https://app.lendpathway.com" TOKEN = "pat_your_token_here" BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" response = requests.post( f"{API_BASE}/embed/token", headers={"Authorization": f"Bearer {TOKEN}"}, json={"book_id": BOOK_ID, "permanent": False}, timeout=30, ) response.raise_for_status() embed = response.json() embed_url = f"{APP_BASE}/embed/book/{embed['embed_token']}?theme=light" print(embed_url) ``` ```javascript JavaScript theme={null} const API_BASE = "https://api.lendpathway.com/api"; const APP_BASE = "https://app.lendpathway.com"; const TOKEN = "pat_your_token_here"; const BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78"; const response = await fetch(`${API_BASE}/embed/token`, { method: "POST", headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json", }, body: JSON.stringify({ book_id: BOOK_ID, permanent: false }), }); if (!response.ok) { throw new Error(`${response.status}: ${await response.text()}`); } const embed = await response.json(); const embedUrl = `${APP_BASE}/embed/book/${embed.embed_token}?theme=light`; console.log(embedUrl); ``` ```bash cURL theme={null} curl --fail-with-body \ "https://api.lendpathway.com/api/embed/token" \ -H "Authorization: Bearer pat_your_token_here" \ -H "Content-Type: application/json" \ --data '{"book_id":"99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78","permanent":false}' ``` ### Response ```python theme={null} class EmbedTokenResponse(BaseModel): embed_token: str book_id: str expires_at: str | None = None ``` ```json theme={null} { "embed_token": "emb_VWUCi3ml0L05CSkgZNBli4hKs8ObZrzaO9XGRUySJ8A", "book_id": "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78", "expires_at": "2026-07-22T18:30:00+00:00" } ``` `expires_at` is `null` for a permanent token. Pathway keeps one active embed token per Book. When a valid token already exists, the endpoint returns that token and its current expiration. ## Render the Book ```html theme={null} ``` ### URL parameters **theme** `string` Set `light` or `dark`. Set this explicitly when the embed should match the surrounding application. **tab** `string` Opens the Book on a specific available tab. Omit it to use the Book's normal default. The embedded Book reuses the same synopsis, transactions, credit, tax, application, file, and contract surfaces as the Pathway app. Available tabs depend on the parsed document types. ## Render the funder directory The same token can render the organization funder directory: ```html theme={null} ``` The directory is read-only under an embed token. ## Fetch the embed payload directly ```http theme={null} GET /embed/book/{embed_token} ``` The embed token in the URL is the credential. Do not send the PAT. ```python theme={null} from typing import Any from pydantic import BaseModel class EmbedBookResponse(BaseModel): book: Book analytics: BookAnalytics | None tagConfig: dict[str, Any] documents: list[Document] ``` ```python theme={null} response = requests.get( f"{API_BASE}/embed/book/{embed_token}", timeout=60, ) response.raise_for_status() payload = response.json() print(payload["book"]["name"]) print(payload["analytics"]) ``` `analytics` is `null` when the Book does not contain canonical bank data. Document objects include temporary presigned URLs used by the embedded viewer. ## Validate a token ```http theme={null} GET /embed/validate/{embed_token} ``` ```python theme={null} class EmbedValidateResponse(BaseModel): valid: bool org_id: str book_id: str ``` An invalid or expired token returns `401`. A valid token returns the Book and organization context used by the iframe. ## Security model * An embed token can read one Book and organization-level read surfaces used by the embed. * Mutating requests made with `X-Embed-Token` return `403`. * Temporary tokens live for 24 hours. * Permanent tokens persist until removed from Pathway's storage. * Anyone holding the embed URL can open it, so handle the URL as a secret share link. Prefer temporary tokens for short sessions. Use permanent tokens when the same embedded report must remain available across visits. # Exports Source: https://docs.lendpathway.com/api-reference/endpoint/exports Download underwriting CSVs and generate files from the artifact gallery. Pathway exposes a stable bank-underwriting CSV and a gallery of artifact templates: generated Excel workbooks, PDF reports and HTML pages. Gallery availability can vary by organization, so integrations should discover templates before requesting one by ID. ## List available templates ```http theme={null} GET /artifacts/templates ``` ```python theme={null} import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = "pat_your_token_here" headers = {"Authorization": f"Bearer {TOKEN}"} response = requests.get( f"{API_BASE}/artifacts/templates", headers=headers, timeout=30, ) response.raise_for_status() for template in response.json()["templates"]: print(template["id"], template["subject"], template["format"]) ``` ```python theme={null} from typing import Literal from pydantic import BaseModel, Field class ArtifactTemplate(BaseModel): id: str name: str subject: Literal["bank_statements", "credit_report", "tax_returns"] format: Literal["excel", "pdf", "html"] description: str class ArtifactTemplatesConfig(BaseModel): templates: list[ArtifactTemplate] = Field(default_factory=list) ``` The response excludes private templates that do not belong to the token's organization. A template's `subject` is the parsed data it reads, and every ID starts with its subject. ### Public gallery | ID | Name | Data | Format | | - | - | - | - | | `bank_statements_stack_view` | MCA Stack View | Bank statements and detected debt positions | Excel | | `bank_statements_monthly_columns` | MCA Monthly Columns | Monthly deposits, true revenue, DTI, and payment analysis | Excel | | `bank_statements_stacking_pro` | Debt Stacking Drilldown | Advances, schedules, remittance burden, misses, and modifications | Excel | | `bank_statements_sample_report` | Sample Bank Statement Report | Rendered bank statement analysis | PDF | | `bank_statements_intake_email` | Intake Email | The intake inbox's reply: screening verdict, snapshot, MCA stack, accounts, and red flags | HTML | | `credit_report_full` | Credit Report Full | Bureau tabs, credit scores, accounts, utilization, and inquiries | Excel | | `credit_report_summary` | Credit Report Summary | Compact score and account summary | Excel | | `credit_report_loc_scrub` | Credit Report LOC Scrub | Revolving utilization, unsecured loans, derogatory history, and a cross-bureau Combined tab | Excel | | `tax_returns_qualifying_income` | Tax Qualifying Income | Wages, Schedule C, pass-through entities, and qualifying income | Excel | The discovery endpoint is authoritative. New public templates can appear without a client release. ## Download bank analytics as CSV ```http theme={null} GET /books/{book_id}/csv-export ``` **table\_format** `string` (default: month\_as\_row) `month_as_row` writes one row per statement period and account. `month_as_col` writes metrics as rows and statement periods as columns. ```python Python theme={null} from pathlib import Path import requests url = f"{API_BASE}/books/{BOOK_ID}/csv-export" response = requests.get( url, headers=headers, params={"table_format": "month_as_row"}, timeout=60, ) response.raise_for_status() Path("underwriting.csv").write_bytes(response.content) ``` ```javascript JavaScript theme={null} import { writeFile } from "node:fs/promises"; const url = new URL(`${API_BASE}/books/${BOOK_ID}/csv-export`); url.searchParams.set("table_format", "month_as_row"); const response = await fetch(url, { headers: { Authorization: `Bearer ${TOKEN}` }, }); if (!response.ok) { throw new Error(`${response.status}: ${await response.text()}`); } await writeFile("underwriting.csv", Buffer.from(await response.arrayBuffer())); ``` ```bash cURL theme={null} curl --fail-with-body \ "https://api.lendpathway.com/api/books/{book_id}/csv-export?table_format=month_as_row" \ -H "Authorization: Bearer pat_your_token_here" \ --output underwriting.csv ``` ### `month_as_row` The file contains individual account rows followed by `NET` and `Average` summary rows. ```text theme={null} Period,Document,Account,Starting Balance,Deposits,Deposit Count,Withdrawals,Withdrawal Count,Ending Balance,Loan In,Loan Out,Avg Daily Balance,Days Negative,True Revenue,DTI % Jan 2026,january.pdf,Business Checking,8149.06,101019.45,83,94510.22,106,14658.29,20000.00,12440.00,11281.33,0,81587.45,15.2% NET,,1 Account,8149.06,101019.45,83,94510.22,106,14658.29,20000.00,12440.00,11281.33,0,81587.45,15.2% Average,,1 Account,8149.06,101019.45,83,94510.22,106,14658.29,20000.00,12440.00,11281.33,0,81587.45,15.2% ``` ### `month_as_col` The file uses the combined cash row for each statement period. ```text theme={null} Metric,Jan 2026,Feb 2026,Mar 2026 Starting Balance,8149.06,14658.29,12211.08 Deposits,101019.45,97004.12,108440.90 True Revenue,81587.45,79220.83,90118.70 DTI %,15.2%,13.8%,17.1% ``` Both formats use the same exclusions and analytics configuration as `GET /books/{book_id}/analytics`. ## Generate an artifact ```http theme={null} GET /artifacts/{book_id}/export ``` **template\_id** `string` *required* A template returned by `GET /artifacts/templates`. To follow the default selected in Pathway settings, read it from `GET /artifact-defaults` first. ```python theme={null} from pathlib import Path import requests response = requests.get( f"{API_BASE}/artifacts/{BOOK_ID}/export", headers=headers, params={"template_id": "bank_statements_stacking_pro"}, timeout=120, ) response.raise_for_status() content_type = response.headers.get("content-type", "") suffix = ".pdf" if "pdf" in content_type else ".html" if "html" in content_type else ".xlsx" Path(f"deal{suffix}").write_bytes(response.content) ``` The template must be visible to the token's organization, and the Book must have the parsed data its subject reads. An HTML artifact downloads as a page a browser can open, with its images embedded. > [!TIP] > > `GET /artifact-defaults` returns the organization's default template for each subject. Pass an explicit ID when another system depends on a fixed layout. ## Get a browser-ready artifact ```http theme={null} GET /artifacts/{book_id}/embed ``` This endpoint accepts the same `template_id` parameter. It generates the file, uploads a temporary copy, and returns URLs suitable for an embedded preview or download. ```python theme={null} class ArtifactEmbedResponse(BaseModel): embed_url: str download_url: str drive_file_url: str | None = None drive_embed_url: str | None = None drive_synced_at: str | None = None ``` ```python theme={null} response = requests.get( f"{API_BASE}/artifacts/{BOOK_ID}/embed", headers=headers, params={"template_id": "credit_report_full"}, timeout=120, ) response.raise_for_status() print(response.json()["embed_url"]) ``` `download_url` is temporary. Generate a new response when the old URL expires or when the Book changes. ## Response conditions | Status | Meaning | | - | - | | `400` | The Book lacks the parsed data the template reads, or the template ID is unknown | | `401` | Missing or invalid PAT | | `403` | The token cannot access the Book or the requested template | | `404` | The Book or template does not exist | | `500` | The selected template could not be rendered | For multi-file packaging and filename handling, see [Export data](/cookbook/export-data). # Submit a Book Source: https://docs.lendpathway.com/api-reference/endpoint/submit-book Upload a deal package and start parsing in one request. ```http theme={null} POST /submit-book Content-Type: multipart/form-data ``` This endpoint creates a Book, attaches every uploaded file, and starts parsing in the background. The response arrives before parsing finishes. Use one request per deal. Files submitted together are classified and parsed as one package. ## Request **files** `file[]` *required* One or more financial documents. Send multiple files by repeating the `files` field. **book\_name** `string` *required* A recognizable name for the deal. The parser may later replace it with the extracted business name. **description** `string` Optional context stored on the Book. **webhook\_url** `string` Optional HTTPS URL that receives the final parse status. Omit it when you plan to poll. PDF is the normal format for bank statements, credit reports, applications, and tax forms. Supported document images can also be classified. Files that cannot be classified remain visible on the Book with a failed or unsupported status. ## Example ```python Python theme={null} from pathlib import Path import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = "pat_your_token_here" paths = [Path("jan.pdf"), Path("feb.pdf"), Path("application.pdf")] with requests.Session() as session: session.headers["Authorization"] = f"Bearer {TOKEN}" opened = [path.open("rb") for path in paths] try: files = [ ("files", (path.name, handle, "application/pdf")) for path, handle in zip(paths, opened) ] response = session.post( f"{API_BASE}/submit-book", files=files, data={ "book_name": "Smith Auto Body", "webhook_url": "https://example.com/webhooks/pathway", }, timeout=120, ) response.raise_for_status() print(response.json()) finally: for handle in opened: handle.close() ``` ```javascript JavaScript theme={null} import { openAsBlob } from "node:fs"; const API_BASE = "https://api.lendpathway.com/api"; const TOKEN = "pat_your_token_here"; const form = new FormData(); form.set("book_name", "Smith Auto Body"); form.set("webhook_url", "https://example.com/webhooks/pathway"); for (const filename of ["jan.pdf", "feb.pdf", "application.pdf"]) { const file = await openAsBlob(filename, { type: "application/pdf" }); form.append("files", file, filename); } const response = await fetch(`${API_BASE}/submit-book`, { method: "POST", headers: { Authorization: `Bearer ${TOKEN}`, }, body: form, }); if (!response.ok) { throw new Error(`${response.status}: ${await response.text()}`); } console.log(await response.json()); ``` ```bash cURL theme={null} curl --fail-with-body \ "https://api.lendpathway.com/api/submit-book" \ -H "Authorization: Bearer pat_your_token_here" \ -F "book_name=Smith Auto Body" \ -F "webhook_url=https://example.com/webhooks/pathway" \ -F "files=@jan.pdf;type=application/pdf" \ -F "files=@feb.pdf;type=application/pdf" \ -F "files=@application.pdf;type=application/pdf" ``` Do not set `Content-Type` manually in Python or JavaScript. The HTTP client adds the multipart boundary when it builds the body. ## Response ```python theme={null} class SubmitBookResponse(BaseModel): book_id: str status: str message: str ``` ```json theme={null} { "book_id": "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78", "status": "processing", "message": "Processing started" } ``` Save `book_id`. You use it to read status, analytics, exports, and embeds. > [!NOTE] > > `status: "processing"` means the files are stored and the parse has started. Continue checking the Book until its stored `parse_status` becomes `completed`, `failed`, or `cancelled`. ## Completion webhook When `webhook_url` is present, Pathway sends one JSON `POST` after the parse reaches its final database status. ```python theme={null} class ParseWebhook(BaseModel): book_id: str status: Literal["completed", "failed", "cancelled"] book_url: str error: str | None = None ``` ```json theme={null} { "book_id": "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78", "status": "completed", "book_url": "https://app.lendpathway.com/books/99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" } ``` Return a `2xx` response quickly and move any result fetching into your own background job. > [!WARNING] > > Completion webhooks are currently unsigned and are sent once. Treat the Book ID as a lookup key, then call the authenticated Book endpoint to confirm the current status before moving a deal forward. ## Poll instead Call `GET /books/{book_id}` every few seconds and stop on a terminal status. The full implementation, including timeouts and failure handling, is in [Parse documents and get results](/cookbook/parse-and-poll). ## Common failures | Status | Cause | | - | - | | `401` | Missing or invalid PAT | | `403` | Read-only token or insufficient access | | `422` | Required multipart fields are missing or malformed | | `500` | Pathway could not stage the Book or its documents | Individual file failures occur after this request returns. Read the Book and its documents for the final outcome. # Underwriting edits Source: https://docs.lendpathway.com/api-reference/endpoint/underwriting-edits Update transaction tags, debt positions, funder matches, and analytics exclusions. A read-write PAT can make the same stored underwriting edits available in the Pathway app. These routes update the canonical bank result inside the Book. The next `GET /books/{book_id}/analytics` call calculates from the new state immediately. Fetch the current analytics after a mutation when your application needs the resulting true revenue, debt metrics, schedules, or screening decision. ## Update transaction tags Get the current tag registry from: ```http theme={null} GET /parse/tags ``` Then apply additions, removals, and replacements to any set of transaction IDs. ```http theme={null} PATCH /books/{book_id}/transactions-v2/tags Content-Type: application/json ``` ```python Python theme={null} response = requests.patch( f"{API_BASE}/books/{BOOK_ID}/transactions-v2/tags", headers={"Authorization": f"Bearer {TOKEN}"}, json={ "transaction_ids": [1021, 1022], "operation": { "add": ["payment_processor"], "remove": ["internal_transfer"], "replace": [], }, }, timeout=30, ) response.raise_for_status() print(response.json()) ``` ```javascript JavaScript theme={null} const response = await fetch( `${API_BASE}/books/${BOOK_ID}/transactions-v2/tags`, { method: "PATCH", headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json", }, body: JSON.stringify({ transaction_ids: [1021, 1022], operation: { add: ["payment_processor"], remove: ["internal_transfer"], replace: [], }, }), }, ); if (!response.ok) { throw new Error(`${response.status}: ${await response.text()}`); } console.log(await response.json()); ``` ```bash cURL theme={null} curl --fail-with-body \ -X PATCH \ "https://api.lendpathway.com/api/books/{book_id}/transactions-v2/tags" \ -H "Authorization: Bearer pat_your_token_here" \ -H "Content-Type: application/json" \ --data '{ "transaction_ids": [1021, 1022], "operation": { "add": ["payment_processor"], "remove": ["internal_transfer"], "replace": [] } }' ``` ```json theme={null} { "message": "Tags updated", "transactions_updated": 2 } ``` Invalid values in `add` are ignored. A replacement only removes `old_tag` when `new_tag` is valid. Use the registry response instead of hard-coding the available set. ## Manage debt positions A stored position groups transactions that belong to one debt relationship. Analytics enrich that stored group with payment schedules, episodes, remittance burden, misses, modifications, and status. | Operation | Request | | - | - | | Create a position | `POST /books/{book_id}/positions` | | Assign or unassign transactions | `PATCH /books/{book_id}/transactions-v2/position` | | Merge positions | `POST /books/{book_id}/positions/merge` | | Match or clear a funder | `PATCH /books/{book_id}/positions/{position_id}/funder` | | Change the loan type | `PATCH /books/{book_id}/positions/{position_id}/loan-type` | | Delete positions | `DELETE /books/{book_id}/positions` | ### Create and populate a position ```python theme={null} # Create the stored position. response = requests.post( f"{API_BASE}/books/{BOOK_ID}/positions", headers={"Authorization": f"Bearer {TOKEN}"}, json={ "name": "OnDeck", "loan_type": "merchant_cash_advance", "funder_id": "a6f59ae3-f423-4acc-841d-1c73297f35e2", }, timeout=30, ) response.raise_for_status() # Read the Book to obtain the new position_id. book = requests.get( f"{API_BASE}/books/{BOOK_ID}", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=30, ).json() meta = book["book_meta"] plaid = meta.get("parser_v2_plaid_result") or {} mca = plaid.get("holy_mca") or meta["parser_v2_mca_result"] position_id = next(p["position_id"] for p in mca["positions"] if p["name"] == "OnDeck") # Attach the funding and payment transactions. response = requests.patch( f"{API_BASE}/books/{BOOK_ID}/transactions-v2/position", headers={"Authorization": f"Bearer {TOKEN}"}, json={"position_id": position_id, "transaction_ids": [118, 142, 165]}, timeout=30, ) response.raise_for_status() ``` Send `position_id: null` to the assignment endpoint to remove the listed transactions from every position. > [accordion] Position request models > > ```python theme={null} > from pydantic import BaseModel, Field > > > class CreatePosition(BaseModel): > name: str > loan_type: str = "merchant_cash_advance" > funder_id: str | None = None > > > class PositionAssignment(BaseModel): > transaction_ids: list[int] > position_id: str | None = None > > > class MergePositions(BaseModel): > position_ids: list[str] > merged_name: str > > > class UpdatePositionFunder(BaseModel): > funder_id: str | None = None > > > class MovePositionLoanType(BaseModel): > new_loan_type: str > > > class DeletePositions(BaseModel): > position_ids: list[str] > remove_tag: bool = True > ``` Changing a position's loan type also replaces the old loan tag on its assigned transactions. Deleting with `remove_tag: true` removes that position's loan tag from its transactions. ## Control analytics exclusions ```http theme={null} PATCH /books/{book_id}/exclusions Content-Type: application/json ``` Each supplied field replaces the complete stored list for that field. Omitted fields remain unchanged. Send an empty list to clear one. ```python theme={null} response = requests.patch( f"{API_BASE}/books/{BOOK_ID}/exclusions", headers={"Authorization": f"Bearer {TOKEN}"}, json={ "excluded_document_ids": ["edb70371-5d2c-45f7-b3c1-c19cbf97d5e8"], "excluded_account_ids": [], "excluded_position_ids": ["74ce93ee-0127-4831-95ed-810333e41e34"], "revenue_exclusion_tags": ["internal_transfer", "merchant_cash_advance"], }, timeout=30, ) response.raise_for_status() analytics = requests.get( f"{API_BASE}/books/{BOOK_ID}/analytics", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=60, ) analytics.raise_for_status() print(analytics.json()["true_revenue"]) ``` ```python theme={null} class UpdateExclusions(BaseModel): excluded_document_ids: list[str] | None = None excluded_account_ids: list[int] | None = None excluded_position_ids: list[str] | None = None revenue_exclusion_tags: list[str] | None = None class ExclusionsAck(BaseModel): message: str excluded_document_ids: list[str] excluded_account_ids: list[int] excluded_position_ids: list[str] revenue_exclusion_tags: list[str] | None = None ``` > [!WARNING] > > A reparse replaces `book_meta`, including transaction tags, stored positions, and these exclusion lists. Apply edits after the parse you intend to keep. # API overview Source: https://docs.lendpathway.com/api-reference/introduction Use the full Pathway product from your own application or agent. The Pathway API can manage the full underwriting workspace. Create Books, upload documents, run parses, read and edit extracted data, calculate analytics, apply screening rules, match funders, generate exports, and connect deal data to the rest of your system. Pathway's web app uses this API. The built-in chat agent also uses it to work across Books, documents, analytics, funders, screening settings, intake email, and organization data. The web app authenticates with a signed-in user session. Your application or agent authenticates with a Personal Access Token and receives the same organization-scoped access allowed by that user and token. ```text Copy into your AI agent wrap theme={null} Read the Pathway API documentation: https://docs.lendpathway.com/api-reference/introduction.md Use the live OpenAPI schema for exact API details: https://api.lendpathway.com/openapi.json ``` ## What the API covers | Surface | What you can do | | - | - | | Books and documents | Create and manage deals, upload files, inspect source documents, and track where each deal came from | | Parsing and extracted data | Start or stop a parse, follow its status, read bank statements, credit reports, tax forms, applications, IDs, and checks | | Underwriting | Work with transactions, account history, debt positions, cash-flow analytics, screening results, and exports | | Workspace | Read and manage funders, matching rules, inbox data, organization settings, CRM records, and connected product integrations | The [live OpenAPI explorer](https://api.lendpathway.com/docs) contains every route and generated request schema. This guide explains the main objects and gives you complete working paths through the product. ## Base URL All API requests begin with: ```text theme={null} https://api.lendpathway.com/api ``` Keep the final `/api`. Endpoint paths in this reference begin with `/`, so the authentication check resolves to: ```text theme={null} https://api.lendpathway.com/api/auth/me ``` ## Create an API key Create a Personal Access Token in **Settings → Account → API tokens**. Tokens begin with `pat_`, are shown once, and expire after 7 days unless you choose longer. Use a read-write token for uploads, parsing, edits, and other mutations. A read-only token can safely power an agent, reporting job, or data warehouse sync. [Authentication and access](/api-reference/endpoint/authentication) explains what each token can do. > [!NOTE] > > The UI calls this an API Access Token. The credential is a Personal Access Token, or PAT. It is the API key used in every example here. ## Make your first request Call `GET /auth/me` before doing any work. It returns the user and organization attached to the token, confirming the host, final `/api`, authorization header, and organization scope in one request. ```python Python theme={null} import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = "pat_your_token_here" response = requests.get( f"{API_BASE}/auth/me", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=30, ) response.raise_for_status() print(response.json()) ``` ```javascript JavaScript theme={null} const API_BASE = "https://api.lendpathway.com/api"; const TOKEN = "pat_your_token_here"; const response = await fetch(`${API_BASE}/auth/me`, { headers: { Authorization: `Bearer ${TOKEN}`, }, }); if (!response.ok) { throw new Error(`${response.status}: ${await response.text()}`); } console.log(await response.json()); ``` ```bash cURL theme={null} curl --fail-with-body \ "https://api.lendpathway.com/api/auth/me" \ -H "Authorization: Bearer pat_your_token_here" ``` **Response** ```json theme={null} { "org_id": "c4f9dda9-7875-4115-961f-0ac4b9630526", "org_name": "Acme Funding", "user_id": "fa576914-9590-40af-bbb8-c3af6f500859", "user_name": "John Doe" } ``` ## Get one deal through the API `POST /submit-book` is the shortest path from files to a parsed Book. It creates the Book, uploads every file in the multipart request, and starts parsing. This Python example waits for completion and reads the simple account-first bank statement result. ```python theme={null} import time from pathlib import Path import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = "pat_your_token_here" HEADERS = {"Authorization": f"Bearer {TOKEN}"} paths = [Path("january.pdf"), Path("february.pdf")] handles = [path.open("rb") for path in paths] try: response = requests.post( f"{API_BASE}/submit-book", headers=HEADERS, data={"book_name": "Acme Coffee"}, files=[("files", (path.name, handle, "application/pdf")) for path, handle in zip(paths, handles)], timeout=120, ) response.raise_for_status() book_id = response.json()["book_id"] finally: for handle in handles: handle.close() while True: response = requests.get( f"{API_BASE}/books/{book_id}", headers=HEADERS, timeout=30, ) response.raise_for_status() book = response.json() if book["parse_status"] in {"completed", "failed", "cancelled"}: break time.sleep(3) if book["parse_status"] != "completed": raise RuntimeError(book.get("parse_status_message") or "Parse did not complete") response = requests.get( f"{API_BASE}/books/{book_id}/statements", headers=HEADERS, timeout=60, ) response.raise_for_status() for account in response.json(): print(account["bank_name"], account["account_number"]) for statement in account["statements"]: print(statement["statement_end_date"], statement["ending_balance"]) ``` Use [Documents and parsing](/api-reference/endpoint/documents-and-parsing) when your application needs to control Book creation, file uploads, and parsing separately. The complete [parse and retrieve cookbook](/cookbook/parse-and-poll) includes Python and webhook flows. ## Understand the result There are four useful views of a parsed bank-statement Book. They serve different jobs. | Request or field | Shape | Best use | | - | - | - | | `GET /books/{book_id}` | Complete Book, including `book_meta` | Status, provenance, user edits, and every raw parser result | | Canonical MCA result inside `book_meta` | Raw business, owners, accounts, statements, transactions, and stored positions | Exact extracted data and transaction-level work | | `GET /books/{book_id}/analytics` | Full computed `BookAnalytics` | Underwriting metrics, enriched positions, cash-flow patterns, and screening | | `GET /books/{book_id}/statements` | Compact account-first statement history | A simple account and balance view with very little transformation code | The [Books reference](/api-reference/endpoint/books) defines the complete Book and canonical raw MCA models. The [Analytics reference](/api-reference/endpoint/analytics) defines the full computed response, including its nested transaction, position, and screening models. ## Main references > [card] [Submit a Book](/api-reference/endpoint/submit-book) > > Upload a complete deal package and start parsing in one request. > [card] [Documents and parsing](/api-reference/endpoint/documents-and-parsing) > > Create a Book, upload documents, and control parsing as separate calls. > [card] [Books](/api-reference/endpoint/books) > > Read status, provenance, raw parser output, and the canonical bank result. > [card] [Analytics](/api-reference/endpoint/analytics) > > Read computed bank metrics, transactions, debt positions, and screening results. > [card] [Exports](/api-reference/endpoint/exports) > > Download CSV, choose an Excel template, or fetch an embeddable spreadsheet URL. > [card] [Embed](/api-reference/endpoint/embed) > > Render one read-only Book inside your application. ## Request conventions * Send the PAT in `Authorization: Bearer `. * Send JSON for normal request bodies and multipart form data for file uploads. * Dates are ISO strings. Parser dates use `YYYY-MM-DD`. Timestamps include a timezone. * Currency values are JSON numbers in dollars. * JSON endpoints return the response body directly, without an outer `data` envelope. * Error responses use `{"detail": "..."}`. Validation failures return a structured list in `detail`. A PAT may make 300 requests a minute. A rate-limited request returns `429`. Parsing runs asynchronously, so submission and parse-start requests return before the work is complete. # Product API map Source: https://docs.lendpathway.com/api-reference/product-map The main route families behind the Pathway application. Pathway's application and built-in agent use the same product API described here. A Personal Access Token is scoped to its user and organization. Read-only tokens can inspect the workspace. Read-write tokens can use the mutations allowed by that user's role. This page is the wide map. The rest of the guide goes deeper on the underwriting paths most integrations need. Use the [live OpenAPI explorer](https://api.lendpathway.com/docs) for every operation and generated schema within a family. ## Deals and documents | Route family | Product surface | | - | - | | `/books/` | Books, status, metadata, provenance, tags, raw parser results, and Book-level mutations | | `/documents/` | Uploaded documents, classifications, source-file downloads, and bulk downloads | | `/parse/` | Parse start, stop, status, supported document types, and tags | | `/submit-book` | Public integration shortcut that creates, uploads, and starts parsing | ## Underwriting data | Route | Result | | - | - | | `/books/{book_id}/analytics` | Complete computed bank-statement analytics | | `/books/{book_id}/statements` | Compact account-first bank history | | `/books/{book_id}/tax-analytics` | Tax cash-flow and qualifying-income analysis | | `/books/{book_id}/csv-export` | Underwriting summary CSV | | `/artifacts/templates` | Artifact templates available to the organization | | `/artifacts/{book_id}/export` | A template rendered for the Book: Excel, PDF or HTML | | `/artifacts/{book_id}/embed` | Temporary URL for viewing a rendered artifact | Transaction tags, debt positions, exclusions, screening, and web research are also managed through Book routes. Those mutations feed the next analytics request, which always calculates from the Book's current stored state and organization settings. ## Underwriting configuration | Route family | Product surface | | - | - | | `/screening/` | Screening settings, thresholds, and available rule fields | | `/funders` | Funder directory and transaction-description aliases used for position matching | | `/funding-partners` | Downstream funding relationships and deal matching | | `/financial-institutions` | Financial-institution registry | | `/tag-rules/` | Organization transaction-tag rules and rule previews | | `/parser-settings` | Organization parser behavior | | `/artifact-defaults` | Organization default artifact templates | ## Intake and organization data | Route family | Product surface | | - | - | | `/intake-inbox/` | Intake settings, email threads, messages, attachments, originators, and forwarders | | `/email-originators/` | Managed sender records | | `/originator-groups/` | Sender groups and their settings | | `/orgs/` | Organization metadata, members, invitations, and role management | | `/usage` | The organization's credit balance and its usage, action by action | | `/billing` | Plans, credit purchases, and invoices (admins) | | `/auth/me` | The user and organization attached to the current PAT | ## CRM and connected systems | Route family | Product surface | | - | - | | `/contracts` | Contract templates and filling one for a Book | | `/composer` | Email templates and a composed email for a Book | | `/baselayer` | Business and person verification, liens, dockets, and what each search cost | | `/salesforce`, `/sf` | The Salesforce connection, opportunities, field mapping, and pushing a Book | | `/lendsaas` | The LendSaaS connection, leads, creating a Book from a lead, and pushing a Book | | `/orgmeter` | The OrgMeter connection and pushing a Book | | `/ramp` | Ramp referrals for a Book and their status | | `/slack-integration` | Connected Slack channels | | `/google-drive` | A Book's exported Google Sheets | | `/chats` | Chat history and message search | A few things need the browser instead of a token: creating tokens, connecting an account, a connected Gmail inbox, and sending chat messages. [Authentication and access](/api-reference/endpoint/authentication) lists them and explains roles. A `403` means the credential is valid and may not do that operation. # Bank Statements & ISO App Source: https://docs.lendpathway.com/bank-statements What you see after parsing bank statements and loan applications. > When you parse a book consisting of bank statments and (optionally) a loan application you will be presented with an output consisting of the following tabs # Bank Statements Tab The Bank Statements tab is the main view after parsing bank statements. It's a single scrollable page made up of **draggable, reorderable sections** (you can grab the grip icon on the left edge of any section and drag it to rearrange the layout). A sticky sidebar navigation appears on the right to jump between sections. There are also **info badges** that sit in the top-right corner of the page, next to the tab bar. These are covered at the end of this section. ![Screenshot2026 03 02at3 30 07PM](https://mintcdn.com/pathwaysystemsllc/45Tje654SJtwpQlo/images/Screenshot2026-03-02at3.43.46PM.png?fit=max\&auto=format\&n=45Tje654SJtwpQlo\&q=85\&s=3dfaf2e92d9f9d7c070923d531c942f1) Bank Statements Tab Selection *** ### **Debt Summary** At the top of the Bank Statements tab. Shows total **funded** and **paid** amounts across all detected debt positions. Positions are organized into columns by **loan type** (e.g. "Merchant Cash Advance", "Lease"). Each column shows total funded/paid for that type, and contains **position cards**: one per detected lender/funder. Each position card shows: * Funder name * Amount funded (green) and amount paid (red) * Active/Inactive badge * Last funded and last paid dates * Payment pattern summary (e.g. "33 weekly (Wed) \$2,206.00, 30 daily \$450.00") You can: * **Click a position card** to see all its transactions in a modal * **Click a loan type header** to see all transactions for that loan type * **Drag positions** between loan type sections to reclassify them * **+ Add** new positions manually * **Select multiple positions** to merge or delete them * **Exclude/include** individual positions or entire loan types from revenue calculations using the eye icon () * **Sort** positions by most recent payment, most recent funding, largest funded, etc. * Toggle between **expanded** (detailed cards ) and **sparse** (compact ) view ![Screenshot 2026 02 26 At 6 03 57 PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at6.07.20PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=1e37dc760498021cb5410912cc6a894c) Debt Summary *** ### **Metrics** A grid of clickable metric cards showing aggregate numbers across all statements. **Clicking any card** opens a modal with the underlying transactions for that metric. **Row 1 (primary):** | Card | Shows | | :- | :- | | **Deposits** | Total deposit amount, number of transactions | | **Withdrawals** | Total withdrawal amount, number of transactions | | **Loan In** | Total loan-in (disbursements) amount and count | | **Loan Out** | Total loan-out (payments) amount and count | **Row 2:** | Card | Shows | | :- | :- | | **Avg Daily Balance** | Average daily balance (click to see daily balance chart) | | **Days Negative** | Days an account ended below zero, summed across accounts (click to see each day) | | **True Revenue** | Revenue after excluding loan activity (click to see transactions) | | **Excluded Revenue** | Revenue excluded from True Revenue calculation | > [!WARNING] > > The True Revenue card also has an **abacus icon** () in the top right that opens the **True Revenue Configuration** modal, where you can choose which loan types are excluded from revenue. > > *(see screenshot below)* **Row 3 (flagged activity):** | Card | Shows | | :- | :- | | **NSF** | Non-sufficient funds count and total | | **Overdraft** | Overdraft count and total | | **Owner Transactions** | Owner draw/deposit count and total | | **Internal Transfers** | Internal transfer count and total | **Row 4:** | Card | Shows | | :- | :- | | **Bank Fees** | Bank fee count and total | | **Payment Processor** | Payment processor volume and count | | **Stop Payments** | Stop payment count and total | | **Reversals** | Reversal count and total | ![Hero Dark](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at6.10.37PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=01856fb40a5bff17f42684c2b4d82942) Metrics Grid ![Screenshot2026 02 26at6 16 30PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at6.16.17PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=3d7b6da6170ae0db79450cbdd3b3d7c0) True Revenue Configuration Modal *** ### **Bank Statements** A table with **one row per statement period per account**. Shows the month-by-month breakdown plus an **Average** row at the bottom. **Default visible columns:** Period, Acct, Start, Deposits, Withdrawals, End, Loan In, Loan Out, Avg Daily, Neg, Revenue, DTI, Status (reconciliation check mark). **Additional columns** (toggle via the column picker gear icon): Days, Discrepancy, NSF, Overdraft, Owner Txn, Internal Xfer, Bank Fees, Payment Processor, Stop Payments, Reversals. You can: * **Sort** by period (newest or oldest first) * **Toggle between Rows and Pivoted** view (icon toggle in top-right) * **Export CSV** of the table * **Click a row** to open the corresponding document in the side panel * **Expand a row** to see a per-account breakdown (if multiple accounts exist) ![Screenshot2026 02 26at8 10 55PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.11.08PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=412fcbee66a01b28f90d6f818fd9d3cc) Bank Statements Table ![Create Org Dark](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.36.23PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=e87b37ee2f46fa39cc7dace40faf8dbb) Example of expanded per-account breakdown *** ### **Book Summary** Three-column summary card: | Balance Flow | Transaction Insights | Activity Summary | | :- | :- | :- | | Opening balance | Largest Deposit | Total Deposits (count) | | Closing balance | Avg Deposit | Total Withdrawals (count) | | Peak Balance | Largest Withdrawal | Avg Transaction | | Lowest Balance | Avg Withdrawal | Daily Avg Txns | This section is display only: no clickable elements. ![Screenshot2026 02 26at8 14 40PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.14.50PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=392e80a1fb11db65f3aed246bfeb5b90) Book Summary *** ### **Top Counterparties** Shows the most significant counterparties (entities you transact with), split into **Credits** and **Debits** columns. Each counterparty shows name, total dollar amount, and transaction count. You can: * Toggle between **grid** and **list** view * **Click a counterparty** to open a modal with all transactions for that counterparty ![Screenshot2026 02 26at8 16 33PM 1](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.16.47PM-1.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=391c71c275f456c4e79f07064317c800) Top Counterparties *** ### **Cash Flow by Day of Week** Bar chart showing deposit and withdrawal activity broken down by day of week (Mon–Sun). Credits on the left, Debits on the right. You can toggle between **Amount** and **Count** using the dropdown. ![Screenshot2026 02 26at8 16 33PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.20.21PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=6d24e598c1f9eec4e14e7f8aa6c72984) Cash Flow by Day of Week *** ### **Daily Balance Calendar** A month-by-month calendar view showing the **end-of-day balance** for each day. Navigate between months using the left/right arrows. Bank holidays are labeled (e.g. "New Year's Day"). MCA disbursement & repayment events will be labeled on days they occur. ![Screenshot2026 02 26at8 23 05PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.23.23PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=3bda5dcbdbc68158dd3ee8fec744ab24) Daily Balance Calendar *** ### **AI Deep Research** An AI-generated report that cross-references the extracted business identity (name, address, phone) against web sources to verify legitimacy. Shows match/mismatch findings for each identifier. ![Screenshot2026 02 26at8 24 58PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.25.07PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=ea3f3d7dba99b1817dcb3ca672337acb) AI Deep Research *** ### **Tampering Analysis** Analyzes the uploaded PDF files for signs of fabrication or tampering. Shows: * A **risk score** (e.g. "6/7 - High Risk") in the top-right * A written summary of findings (e.g. identical metadata, programmatic PDF generation signals, temporal impossibilities) * **PDF Metadata** section listing each document with expandable details (producer, creator, creation dates) ![Screenshot2026 02 26at8 28 54PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.28.30PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=1de132ff6ad2cfbaef3266d4ab1f797c) Tampering Analysis *** ### **Loan Application** Only appears if a **loan application** was uploaded alongside the bank statements. Displays extracted fields in three groups: * **Business Information**: Business Name, DBA, EIN, Entity Type, Industry, Business Started, Employees, Address, Phone, Email, Website * **Financial Information**: Requested Amount, Loan Purpose, Annual Revenue, Monthly Revenue, Current MCA Balance, Avg Daily Balance, Monthly CC Sales * **Owner Information**: Owner Name, Ownership %, Owner SSN, Owner Address, Credit Score ![Screenshot2026 02 26at8 30 48PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.31.04PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=37a5af674c1b49fffd94a814fdcfda03) Loan Application Section *** ### **Info Badges (top-right corner)** These popover badges sit next to the tab bar and are always visible on the Bank Statements tab: **1. Identity (****)** — Business name, tax ID, address, phone. Principal(s) with name, role, address, phone. ![Screenshot2026 02 26at8 41 39PM 1](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.42.06PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=6b440509b706e074024b77982d6c7049) Identity Tab **2. Accounts** **(****)** — Number of bank accounts detected. Account name, bank name. Eye icon to exclude/include an account from analytics. Expandable "Full details" for account and routing numbers. ![Screenshot2026 02 26at8 46 32PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.46.52PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=af2f6dbe92d362916e856d976f6f8fe5) Accounts Tab **3. Documents (****)** — Count of documents and reconciliation status (e.g. "12 Documents - All Reconciled"). Each document listed with period, filename, status, and eye icon to exclude/include from analytics. ![Screenshot2026 02 26at8 50 20PM](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.49.14PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=caf126744bd4edbb1e381738e45626a3) Documents Tab **4. Pass / Autodeny** **(****)**— Screening result badge (green "Pass" or red "Autodeny"). Shows reason and target. Based on auto-screening org settings. See the Autodeny Section for more information ![Screenshot2026 02 26at8 50 20PM 1](https://mintcdn.com/pathwaysystemsllc/5mr22-5xxEaH4SAN/images/Screenshot2026-02-26at8.50.41PM.png?fit=max\&auto=format\&n=5mr22-5xxEaH4SAN\&q=85\&s=e1f10402705e236ad61200b49dd9fbe3) Autodeny Tab **5. Salesforce** *(if linked)* — Push-to-Salesforce button with mapped field preview. > See the Integrations page for more information # Transactions Tab > The Transactions tab shows every individual transaction extracted from the bank statements in a searchable, filterable, sortable table. ![Screenshot2026 02 27at12 00 15AM](https://mintcdn.com/pathwaysystemsllc/45Tje654SJtwpQlo/images/Screenshot2026-03-02at3.45.38PM.png?fit=max\&auto=format\&n=45Tje654SJtwpQlo\&q=85\&s=a33e50e58fc27b6ed69668d00789024b) Transactions Tab *** ### **Table Columns** Each row is a single transaction. The columns are: | Column | What it shows | | :- | :- | | **Checkbox** | Select individual transactions (or select all/ multiple with the header checkbox) | | **Date** | Transaction date (e.g. "Jan 15, 2024") | | **Account** | Account name (shown when multiple accounts exist; hidden by default for single-account books) | | **Description** | Full transaction description — search matches are highlighted | | **Amount** | Dollar amount, color-coded: green for credits, red (with minus sign) for debits | | **Balance** | Running ledger balance after this transaction (red if negative) | | **Tags** | Color-coded badges showing the tags assigned to this transaction (e.g. "Merchant Cash Advance", "NSF", "Owner Draw"). Loan-type tags appear first, followed by other tags. | | **Position** | If the transaction is assigned to a debt position, shows the funder name (with favicon if available) | | **Doc ID** | First 8 characters of the source document ID (hidden by default) | **Clicking a row** opens the source PDF document in the side panel so you can see exactly where the transaction came from. ![Screenshot2026 02 27at12 09 45AM](https://mintcdn.com/pathwaysystemsllc/R0d2vLMj08b6vEpS/images/Screenshot2026-02-27at12.09.45AM.png?fit=max\&auto=format\&n=R0d2vLMj08b6vEpS\&q=85\&s=ea3799bc5e5788c01c7c509479090464) Split View with Corresponding PDF Open *** ### **Toolbar (Filtering & Search)** The toolbar sits above the table and lets you narrow down transactions: | Filter | What it does | | :- | :- | | **Search** | Free-text filter on the Description column (type to search, e.g. "stripe" or "prime funding") | | **Date** | Date range picker — only show transactions within a specific window | | **Type** | Filter by Credits or Debits | | **Account** | Filter by account (only appears when there are multiple bank accounts) | | **Tags** | Filter by one or more tags — shows a list of all tags present in the data with transaction counts | | **Positions** | Filter by debt position — shows all detected positions with transaction counts | Filters stack — you can combine date + type + tag + search at the same time. ![Screenshot2026 02 27at12 11 34AM](https://mintcdn.com/pathwaysystemsllc/R0d2vLMj08b6vEpS/images/Screenshot2026-02-27at12.12.00AM.png?fit=max\&auto=format\&n=R0d2vLMj08b6vEpS\&q=85\&s=9fccd858b1aaf64e038fbf65fff1fc80) Transaction List with Filters Applied *** ### **Actions (Right Side of Toolbar)** Three buttons appear on the right side of the toolbar: **1. Edit Tags (****)** — Select one or more transactions using the checkboxes, then click **Edit Tags**. This opens a modal titled **"Edit Tags (****)"** with three sections: **Replace Current Tags** Lists every unique tag across your selected transactions with a count (e.g. "Merchant Cash Advance (12)"). For each tag you can: * Click the **arrow slot** to replace it with a different tag (searchable dropdown, grouped into "Loan Types" and "Other Tags") * Click the **trash icon** to remove it entirely **Add Tags** A multi-select dropdown to add one or more new tags to all selected transactions. Tags are searchable. **Assign to Position** A dropdown listing all detected debt positions. Select a position to assign all selected transactions to it, or choose **"Unassign from all positions"** to remove the position assignment. Click **Save Changes** to apply. All changes (tag replacements, additions, removals, and position reassignment) are saved in one action. ![Screenshot2026 02 27at12 16 29AM](https://mintcdn.com/pathwaysystemsllc/R0d2vLMj08b6vEpS/images/Screenshot2026-02-27at12.16.29AM.png?fit=max\&auto=format\&n=R0d2vLMj08b6vEpS\&q=85\&s=1e8910b585380a14297a03f8ecc1ff3b) Bulk Editing Tags ![Screenshot2026 02 27at12 19 13AM](https://mintcdn.com/pathwaysystemsllc/R0d2vLMj08b6vEpS/images/Screenshot2026-02-27at12.19.36AM.png?fit=max\&auto=format\&n=R0d2vLMj08b6vEpS\&q=85\&s=dff06b19d864c1c0a7d7dab45796b38c) Edit Tags Modal **2. Summary (****)** — opens the Filtered Transactions Summary modal showing a quick breakdown of whatever transactions are currently visible (after filters). Displays: * **Total Credits** — sum and count * **Total Debits** — sum and count * **Net Amount** — credits minus debits * **Date Range** — first to last date and number of days The number in the button reflects how many transactions match your current filters. **3. Download (****)** — exports the currently filtered transactions as a **CSV** file with columns: Date, Description, Type, Amount, Balance, Tags, Account, and Document ID. The number shows how many rows will be exported. ![Screenshot2026 02 27at12 31 26AM](https://mintcdn.com/pathwaysystemsllc/R0d2vLMj08b6vEpS/images/Screenshot2026-02-27at12.31.04AM.png?fit=max\&auto=format\&n=R0d2vLMj08b6vEpS\&q=85\&s=6c8bd47fab027f2e756c1be994a36763) *** ### **Tag Reference (Global)** In the **top-right corner of the app header** (visible on every page, not just Transactions), there's a **tag icon** button. Clicking it opens the **Tag Reference** modal — a full gallery of every tag in your org's configuration. Each tag card shows: * **Tag name** with its color * **Description** — what the tag means and the rules for when it's applied * **Examples** — sample transaction descriptions that would receive this tag You can **search** tags by name, description, or example text. Tags are organized with loan types first, then other tags. This is useful when you're reviewing transactions and want to understand what a specific tag means or why a transaction was tagged a certain way. ![Screenshot2026 02 27at12 39 49AM](https://mintcdn.com/pathwaysystemsllc/R0d2vLMj08b6vEpS/images/Screenshot2026-02-27at12.40.15AM.png?fit=max\&auto=format\&n=R0d2vLMj08b6vEpS\&q=85\&s=0b2eecef5194a52030d8ae3a5e2a50b5) Tag Reference Modal # Bank Spreadsheet Tab > The Bank Spreadsheet tab shows an auto-generated Excel workbook built from the parsed bank statement data. It opens directly in the browser — no download required. > [!TIP] > > This tab only appears if your org has the Bank Spreadsheet enabled in settings. *** ### **Template Selector** A **template selector** will appear in the floating toolbar at the bottom of the screen. Click it to switch between templates. For bank statements, the available templates are: **1. MCA Stack View** — One row per payment schedule across all MCA positions: funder, amount funded, frequency, number of payments, returns, remit daily, remittance %, and active/renewal status. ![Hero Dark](https://mintcdn.com/pathwaysystemsllc/1Z2V_krbtz1a63GG/images/Screenshot2026-03-02at1.15.17AM.png?fit=max\&auto=format\&n=1Z2V_krbtz1a63GG\&q=85\&s=62690d71caf314f00be32bf6662ce1b2) MCA Stack View **2. Monthly Columns** — Monthly deposit totals, true revenue, DTI metrics, ending balance, NSF, negative days, CC deposits, number of credits, average ledger balance — broken out by month. Also includes business identity fields (legal name, DBA, address, Tax ID, owner name), an MCA Stacking Analysis section, and an Offer Calculator. ![Screenshot2026 03 02at1 12 20AM 2](https://mintcdn.com/pathwaysystemsllc/1Z2V_krbtz1a63GG/images/Screenshot2026-03-02at1.12.28AM-3.png?fit=max\&auto=format\&n=1Z2V_krbtz1a63GG\&q=85\&s=ba2e78b600b8a3dd78c3f07fe6abaa97) MCA Monthly Columns Template > [!TIP] > > When you select a template, it becomes your **default** for bank spreadsheets going forward. The spreadsheet regenerates automatically with the new layout. *** ### **Toolbar Actions** The floating toolbar sits at the bottom center of the spreadsheet view and has three controls: **1. Template selector** — Switch between spreadsheet layouts (described above). **2. Download** — Downloads the spreadsheet as an **.xlsx** file to your computer. Ready to send to a funder or attach to a file. **3. Open in Drive** — Opens the spreadsheet in **Google Sheets** in a new tab. Requires the Google Drive integration to be connected (see Integrations). Creates a copy in your Google Drive that you can edit, share, or collaborate on. ![Screenshot2026 03 02at1 22 01AM](https://mintcdn.com/pathwaysystemsllc/1Z2V_krbtz1a63GG/images/Screenshot2026-03-02at1.24.27AM.png?fit=max\&auto=format\&n=1Z2V_krbtz1a63GG\&q=85\&s=f44dfda33dac896e2c1b8cf8bec519d5) Bank Spreadsheet Toolbar # Files Tab > The Files tab shows all uploaded documents in a visual grid with thumbnails. This is where you manage, preview, download, and exclude/include individual files. > [!TIP] > > The Files tab is always available, regardless of what document types were uploaded. ![Screenshot2026 03 02at1 33 45AM](https://mintcdn.com/pathwaysystemsllc/45Tje654SJtwpQlo/images/Screenshot2026-03-02at3.41.03PM.png?fit=max\&auto=format\&n=45Tje654SJtwpQlo\&q=85\&s=f663da931ee39944306d72dfa86cedfe) Files Tab *** ### **Document Cards** Each file is a card with a **thumbnail preview**, **filename**, **status dot** (green = parsed, red = failed), **file size**, and **upload time**. * **Click** to select (for bulk actions). **Shift+click** to select a range. * **Double-click** to open a full PDF preview modal. Once parsed, files are automatically **grouped by category** (Bank Statements, Credit Reports, Tax Forms, Loan Applications, etc.) with counts. *** ### **Toolbar** **1. Search** — Filter by filename. **2. File Type** — Filter by extension (PDF, XLSX, etc.). Only shows when multiple types exist. **3. Category** — Filter by document type (Bank Statement, Credit Report, etc.). Only shows after classification. **4. Status** — Filter by Parsed, Failed, Processing, New. *** ### **Selecting & Bulk Actions** Select one or more cards and a toolbar appears: **1. Download** — Two options: plain zip or **watermarked** zip (applies a watermark to each file). **2. Show / Hide** — Exclude or re-include selected documents from analytics. Excluded documents appear dimmed with an X overlay. Same as toggling the eye icon from the Documents info badge. **3. Delete** — Remove selected files from the book. Press **Escape** to clear selection. ![Screenshot2026 03 02at1 38 40AM](https://mintcdn.com/pathwaysystemsllc/1LsRiP1xDJKAsrLs/images/Screenshot2026-03-02at1.39.59AM.png?fit=max\&auto=format\&n=1LsRiP1xDJKAsrLs\&q=85\&s=17f775da2676db7e6371262373f1b5f6) Download / Download with Watermark Options # Changelog Source: https://docs.lendpathway.com/changelog/changelog Everything we ship, week by week. ## November 9–13, 2026 latest ### API: address fields renamed This affects API integrations only. Nothing changes in the app. Every address the API returns now has one shape, and four facts were renamed. Numbers such as revenue, balances and debt are unchanged. | Where | Before | Now | | - | - | - | | Any address (bank statements, loan application, credit report) | `street_address` or `address_line_1`, `state_province: "Ontario"`, `zip_code`, `country: "Canada"` | `line_1`, `line_2`, `city`, `state: "ON"`, `postal_code`, `country: "CA"`, `as_written` | | Business state fact | `state_code` | `business_state` | | ZIP facts | names ending in `_zip` | the same names ending in `_postal_code` | | New facts | | `business_country`, and a `_country` fact beside each `_state` fact | The address is documented under [Books](/api-reference/endpoint/books) and the facts under [Analytics](/api-reference/endpoint/analytics). ### Any metric on the Books table The Books table can now show any of a Book's metrics, not a fixed seven. Open the table options, choose **Add metrics…**, and pick from the same list screening rules use: revenue, balances, debt, the business, its owners, the application, the selected offer. Each metric you show can be sorted and filtered, numbers by range and text by value. Your column choices reset once with this release. Metrics for older Books fill in when a Book is opened or reparsed, or all at once when an admin runs **Refresh metrics** in settings. ### Chat reads across all your Books Chat answers questions over a whole portfolio in one step. "Every Book over \$50k in monthly revenue, with the owner's name and state" now reads the Books' saved metrics instead of opening each Book, so it finishes in seconds for tens of thousands of Books. Chat also links each Book it mentions; click one to open it over the conversation. New chats start on GPT-6.1 Terra. The session details show the credits and tokens a chat has used. ### Chat reads LendSaaS If your organization has connected LendSaaS, chat can now read it: offers, underwriting status, stips, funding, payments, fees and the rest of LendSaaS's reporting data. Ask across both systems, for example "which funded deals from last quarter had more than three NSFs on their statements". Access is read-only and your LendSaaS key never leaves Pathway's servers. See [Chat engine](/platform/chat-engine#lendsaas). Files chat makes now download under the name chat gave them. Chat no longer publishes Streamlit dashboards. For an interactive view, ask for a widget, which runs in the chat itself. ### Widgets rebuilt Chat widgets work again and are safer. A widget now runs with no network access and never holds a token: chat computes the data first and writes it into the widget. See [Chat engine](/platform/chat-engine#widgets). ### API: Book metrics on the list `GET /api/books/` returns each Book's metrics as `metrics.facts`, with the facts you name in `fields`, and its screening verdict as `metrics.screening`. Any fact filters (`avg_monthly_revenue_min=50000`, `business_state=TX,CA`) and sorts (`sort_by=num_nsf`). This replaces `metrics.bank_statements` and `metrics.credit_report` on list rows; `average_daily_balance` is now `avg_daily_balance` and `fico_score` is now `credit_score`. `GET /api/books/metrics` is removed. ### Chat searches the web On GPT models, chat now searches the web for anything current or outside your data, and cites its sources as links in the answer. Each search shows as a step you can open to see the pages it read. See [Chat engine](/platform/chat-engine#web-search). Chat now asks before posting to Slack, as it does before sending an email. ### Chat works for up to an hour A reply can now run for up to an hour, up from five minutes, so chat can finish large jobs in one go. Long jobs run in the background while chat keeps working, and chat is told the moment one ends. A count beside the chat's menu shows the jobs running; open it to read a job's output or stop it. A running command counts up to the exact moment it will be stopped, and a command that hits its limit is marked **Timed out**. Each finished step shows how long it took. Long output is no longer cut: chat reads the end of it and keeps the whole of it in a file it can search. A reply you stop is marked **Stopped by user** and keeps what it had written. ### Chat credit limit A chat may use up to 10,000 credits across all its replies, so a runaway conversation can't drain your organization's balance. The usage ring beside the send button now shows the chat's credits next to its context. At the limit, the chat says so; start a new one to keep going. ### API tokens expire A new API token expires in 7 days unless you choose 30 days, 90 days, 1 year, or never when you create it. The token list shows when each token expires and when it was last used, and keeps expired tokens marked **Expired** until you revoke them. Tokens made before this release do not expire. Chat no longer keeps a token per conversation: each reply gets its own read-only token, deleted when the reply ends. See [Authentication](/api-reference/endpoint/authentication). ## November 2–6, 2026 ### Daily balance chart, by account Clicking Avg Daily Balance now opens a chart of each account's balance. It opens on Candles: one account, day by day. The bar runs from where the balance opened to where it closed, green when it ended higher and red when lower. The thin line shows how far it ran as that day's transactions posted, in the order the statement lists them, so a dip that recovered before the close is visible. Pick the account in the legend, which reads out the day's open, high, low and close. ![The Daily Balance chart in Candles view for one checking account, with its peak and low labeled and the legend showing the day's open, high, low and close](https://mintcdn.com/pathwaysystemsllc/mqVtU4Ywb3JMRlYE/changelog/images/daily-balance-candles.webp?fit=max\&auto=format\&n=mqVtU4Ywb3JMRlYE\&q=85\&s=86c0c992771639c3858bee1aa18f9312) Line view draws every account's end-of-day balance as its own line, with the combined line beside them. The legend shows each account's balance on the day under your pointer, with its average. Click an account to hide it. Each line's low and peak are labeled, and a line turns red where it dips below zero. ![The Daily Balance chart in Line view, with the combined line and three account lines, each labeled at its low and peak](https://mintcdn.com/pathwaysystemsllc/mqVtU4Ywb3JMRlYE/changelog/images/daily-balance-lines.webp?fit=max\&auto=format\&n=mqVtU4Ywb3JMRlYE\&q=85\&s=ae0fa94a737b0ac159523902e68d92f7) In both views, scroll to zoom, drag to pan, or pick 1M, 3M, 6M or All. The analytics API adds `account_balance_stats`. ### Negative day counting fixed for multi-account books Days Negative and Days Under Threshold are now the sum of each account's own count. Before, the book number netted the accounts' balances first, so an operating account that bounced eighteen days showed zero when savings had the cash. A negative day is a day an account ended below zero, read off the statement. Two accounts negative on the same day is two negative days. The COMBINED row is the sum of the account rows, the card is the sum for the book, the Average row averages the months. Balances still net (average daily, peak, lowest). Days don't. Single-account books don't move. Want the operating account only? Scope the rule to the primary account. Clicking Days Negative or Days Under opens a calendar of every month the book covers with those days marked. Click a day, or step through them with the arrows, to see the account that ended below and that day's transactions, down to its ending balance. ![The Days Negative calendar with 39 days marked across eight months, and one day's payroll transactions and ending balance on the right](https://mintcdn.com/pathwaysystemsllc/mqVtU4Ywb3JMRlYE/changelog/images/days-negative-calendar.webp?fit=max\&auto=format\&n=mqVtU4Ywb3JMRlYE\&q=85\&s=1ce12dbe89ac0468e2f8e835a0c19a0c) Affected: the five negative-day screening facts (Negative Balance Days, Days Under Low Balance Threshold, Most Recent Month Negative Days, Average Monthly Negative Days, Most Negative Days in a Month), so a multi-account book that passed can now fail. Salesforce, the intake email, CSV, PDF and the UW spreadsheets follow. LendSaaS worksheets are per account and don't change. The analytics API adds `negative_account_days` and `under_threshold_account_days`. Re-run the metrics backfill in Settings to update the Books table. ### New metrics Metrics are what you map into contract fields, insert into composer templates, push to Salesforce, and compare in screening rules. These were added. **Bank accounts.** Account number, routing number, bank name, account type and account name for each account, up to five. Account 1 is the primary account. Routing number is blank when the statements don't print one. Plaid books have the last four digits of the account number and no routing number. **Owners 2, 3 and 4.** Name, address, SSN, ownership percentage, phone, date of birth and stated credit score, the same fields the primary owner has. Owners are numbered in the order the application lists them. The primary owner also gets phone, date of birth and credit score as written on the form. Added from the application: ISO name, email, phone, website and address, number of owners, months in business as written, and application date. **MCA positions 1 to 5.** Funder, status, payment frequency, monthly remit, last disbursement amount, last disbursement date and total paid. Positions still pulling come first, then by monthly remit. Book-level: number of positions that are just funded, closed, stacked, renewed, or were funded before the first statement; total MCA disbursements; net MCA paid; MCA reversal total; the largest position's funder and remit; the first funding date of the oldest active position. Estimated payback and payback progress assume a 1.5 factor rate. **Dates.** Today, earliest statement start, latest statement end, last transaction, last MCA disbursement, last MCA payment. Format is YYYY-MM-DD. **Balances and counts.** Peak balance, average beginning balance, average ending balance, low balance threshold, largest withdrawal, average withdrawal, average monthly withdrawal count, loan payment count, and counts of owner, internal transfer, card processor and reversal transactions. Number metrics work in screening rules. Text and date metrics fill contracts, composer and Salesforce but can't be compared in a rule. **Fixed:** The screening rule builder wouldn't let you pick the same metric on both sides of a rule, so "most recent month revenue \< 0.7 × last 3 months revenue" couldn't be built. It can now. ### Debt position math corrected Three numbers on MCA positions were wrong and are fixed. Payback progress on a renewed position counted the pulls that paid off the old advance, so a fresh renewal could read over 100% paid with $0 remaining; progress now measures the active advance against its own pulls. A position pulling on no fixed cadence reported $0 daily, \$0 monthly and 0.0% holdback; it now reports what it actually pulled per business day, and holdback shows as unknown when there is nothing to go on. A payment that bounced after the last successful pull was not taken off the net paid total; every bounce now is. Stack View used 21 business days a month and a different payback formula from the position card; both now match the rest of the product (22 days, advance × 1.5). *** ## October 19–23, 2026 ### Spreadsheets Spreadsheet templates now have their own page, and a book's Spreadsheets tab opens straight to your organization's default. **Choose your defaults on the Spreadsheets page.** Open **Actions → Spreadsheets** in the sidebar to see every spreadsheet and PDF template available to your organization, grouped into bank statements, credit reports and tax returns. Search by name, filter by type, and click a template to see a larger sample. Each type has one default, marked with a gold star. Org admins change it by clicking the star on another template; everyone else sees which one is the default. ![The Spreadsheets page, listing bank statement templates with MCA Monthly Columns starred as the default](https://mintcdn.com/pathwaysystemsllc/iPi_qwpqTggYkX_4/changelog/images/spreadsheets-page.webp?fit=max\&auto=format\&n=iPi_qwpqTggYkX_4\&q=85\&s=72513bcc26ed7e7ff4b497df975fd115) **A book's Spreadsheets tab opens on the default.** The tab, formerly Spreadsheet Gallery, now shows one sheet filling the page, starting with your organization's default, instead of a grid of cards. To see another, open the picker at the top left. It lists the templates for each document type in the book, with the default starred and the one you're viewing checked, and you can type to search. Picking a template there changes only what you're viewing, not the default. For a book with more than one document type, such as bank statements and a credit report, the same picker switches between them; the button shows which one you're on, for example **Bank statements / MCA Monthly Columns**. **Manage templates and defaults**, at the bottom of the picker, opens the Spreadsheets page. ![A book's Spreadsheets tab with the template picker open, showing bank statement and credit report templates](https://mintcdn.com/pathwaysystemsllc/iPi_qwpqTggYkX_4/changelog/images/spreadsheets-tab-picker.webp?fit=max\&auto=format\&n=iPi_qwpqTggYkX_4\&q=85\&s=06930faf353d7b00ca1e4a31b6b18556) **Keep your own copy in Google Drive.** On a spreadsheet template, **Save to Drive** makes your own copy in your Google Drive and opens it in a new tab. From then on, the tab opens on that copy, with your edits, under **Google Drive**, and the button becomes **Open in Drive**. Switch to **Pathway preview** to see the same template filled with the book's current data. Pathway never overwrites your copy, so later changes to the book show in Pathway preview and in **Download**, not in your Drive copy. Hover over either view's name for a reminder of what it shows. Drive copies are personal: teammates each save their own. PDF templates can be downloaded but not saved to Drive. ![Hovering over Google Drive shows: Your copy in Google Drive, with your edits. Pathway doesn't update it when the book changes.](https://mintcdn.com/pathwaysystemsllc/iPi_qwpqTggYkX_4/changelog/images/spreadsheets-drive-tooltip.png?fit=max\&auto=format\&n=iPi_qwpqTggYkX_4\&q=85\&s=0901942fd522287a71253a66a6d7de6f) **Find every copy on the Google Drive page.** **Integrations → Google Drive** lists each spreadsheet you've saved to Drive with its book, template, document type and when you saved it, and you can search and filter by type. Click a book's name to open the book, or **Open in Drive** to open the sheet. **Fixed:** Saving a spreadsheet to Drive could open a blank tab instead of the new sheet. *** ## October 5–9, 2026 ### Credit report fixes **Books with a separate file for each bureau show every bureau again.** Since September 11, a book built from separate bureau files, such as an Equifax, an Experian and a TransUnion report uploaded together, could show only one bureau, and parsing it again could show a different one. Single-bureau reports from the same provider look nearly identical, and some consumer-app printouts carry one company's name on every page even when the data belongs to another bureau. The parser searched every file for each bureau, and when it couldn't tell the files apart, it left the bureau out rather than risk mislabeling it. It now identifies the bureau in each file first, then reads each bureau only from its own file. Tri-merge reports weren't affected. Parse affected books again to recover their missing bureaus. **Loan amounts are back on the Credit Sheet.** The Limit column was blank for installment loans and mortgages. Reports label the original loan amount in different ways ("Orig Amt", "Original balance", "High Credit"), and not all of them were recognized. They are now, so each loan shows its original amount again, greyed out and struck through because loans don't count toward utilization. **The LOC scrub's Combined tab lists each account once and shows late payments.** Bureaus spell the same creditor differently, such as "AMERICAN HERITAGE FCU" and "AMER HER FCU". The Combined tab matched accounts by name, so one loan could appear on two or three rows and be counted more than once in the totals. Accounts are now matched by their open date together with the account number, the creditor name or matching amounts, so each one appears once, and Not Reported By names the bureaus that don't report it. The Combined tab also gains a Delinquencies section, so late payments appear there as they do on each bureau's tab. ### Public records Bankruptcies, judgments and liens are now read from each bureau's public records section, with their filing date, status and resolution date. The LOC scrub lists them at the top of Delinquencies, for example "(PUBLIC RECORD) Chapter 7 Bankruptcy, Discharged 06/2019", and the Combined tab shows each record once. Before, a bankruptcy only showed up through the accounts marked as included in it. ### More accurate account data * **Open and closed.** An account counts as closed when any part of its entry says so, even beside an "Open" column (for example "Account closed by credit grantor"), and when it was transferred, sold, charged off, repossessed, settled or included in bankruptcy. A charged-off card no longer appears as an open card. Closed accounts aren't marked delinquent; their past late payments stay in their history. * **What secures a loan.** Loans are classified by what the report says secures them: auto loans and leases, home equity lines, student loans, and RV or boat loans. A loan whose report names no collateral counts as unsecured, and on the Combined tab a loan that any bureau reports as secured stays out of Unsecured Loans. Home equity lines are marked "(LOC)" on the LOC scrub, and the Credit Sheet keeps them out of card utilization. * **Cards and limits.** A card's limit is read from the report's credit limit column, and every open card with a limit counts toward utilization, including store cards some reports call "Charge Account". * **Names and balances.** Creditor names drop the code some reports print after a slash, so "CAPITAL ONE/01DTV001" reads "CAPITAL ONE". On the Combined tab, each row shows the fullest name and the most recent balance any bureau reports. * **Scores.** FICO 8 is recognized under each vendor's name for it, such as "FICO SCORE 8-TU", so it's used as a bureau's score whenever that bureau's report includes it. * **Late payments** are also read from the digit payment patterns some reports print, and every account a report lists is captured, including one a bureau lists twice. LOC scrub changes apply the next time you open or export it. Changes to how reports are read apply when a book is parsed, so parse an existing book again to bring it up to date. ### For API users Each bureau in `parser_v2_credit_report` has a new `public_records` list. The unused account fields `recent_balance_date`, `date_of_first_report` and `date_last_active` are no longer returned. *** ## September 21–25, 2026 ### Screening: statement filters and additional metrics Screening rules already let you select a window and accounts. Each side of a rule now also lets you select **All statements**, **Exclude month-to-date**, or **Month-to-date only**. Previously, an MTD statement could be the period used by “Most recent month,” with no separate setting to leave it out. The statement filter applies before the window. **Most recent month + Exclude month-to-date** uses the latest regular statement period. This lets a revenue-decline rule compare the latest full period with the latest three full periods without mixing in an unfinished MTD. The three-period average includes the latest period. Existing rules default to **All statements**. **Revenue, deposits, and balances** * **Lowest Monthly True Revenue, Lowest Monthly Deposits, and Lowest Monthly Deposit Count:** the lowest value in any included statement period, with included accounts combined. * **Lowest Monthly Avg Daily Balance and Most Negative Days in a Month:** the lowest average balance or highest negative-day count in any included period. Periods without the required balance data are skipped. * **Number of Statements:** the number of evaluated statement periods, not uploaded files. MTD counts as a period unless excluded. Windows use available statement periods, not necessarily calendar months. * **P2P, Card Processor, and Cash Deposit Share of Revenue:** the percentage of true revenue attributed to each payment method. * **Largest Single Deposit, Largest Deposit Share of Deposits, and Average Deposit Size:** the largest credit, its share of total deposits, and total deposits divided by deposit count. These include all credits, including loan funding and transfers. **MCA payments and funding** * **Total MCA Payments and MCA Debt to Income Ratio:** observed MCA payments and those payments as a percentage of true revenue. Other loan types are excluded. * **MCA Daily Remit and MCA Monthly Remit:** estimated payment burden from active MCA payment schedules. Weekly and monthly schedules are converted to a daily equivalent using business days; schedules that stopped paying contribute nothing. * **MCA Holdback:** estimated monthly MCA remit divided by Average Monthly True Revenue, expressed as a percentage. Unlike MCA Debt to Income Ratio, it uses estimated payment burden rather than payments already observed. * **MCA Positions Paid in Latest Month:** positions with at least one payment over \$50 in the latest regular statement or subsequent MTD period. A newly funded position with no qualifying payment does not count. * **Last MCA Disbursement Amount:** total MCA funding credits on the most recent funding date. Available alongside Days Since Last MCA Disbursement. * **Total Loan Disbursements and Loan Disbursement Count:** the amount and number of funding credits for loan types your revenue settings count as debt. A recent-month scope limits these to funding received in that period. * **Missed Payments and Modified Payments:** separate counts for active and closed MCA positions, so rules can distinguish current payment behavior from past history. These are inferred from transactions. * **Loan Types Present:** the types of detected positions, including factoring, bank loans, and debt collection. User-excluded positions are left out. **Other additions** * **Stop Payment Count and Stop Payment Total:** the number and amount of transactions tagged as stop payments. * **Bank Fee Count and Bank Fee Total:** bank service fee transactions and their total amount. NSF and overdraft fees have separate metrics. * **Reversal Total, Owner Transaction Total, and Internal Transfer Total:** summed amounts of credits and debits carrying each tag, not net cash movement. * **Card Processor Deposits:** total credits tagged as payment-processor deposits. * **Credit Score (Credit Report):** the same headline score shown in the Books table. * **Tampering Score:** the bank-statement tampering detector's score from 0–7. It is an inferred signal and remains unavailable when detection has not run. Also available: MCA monthly and daily remit, MCA holdback (remit as a share of average monthly revenue), total loan disbursements and count, largest single deposit and its share of total deposits, average deposit size, and dollar totals for reversals, bank fees, owner transactions, internal transfers, and card-processor deposits. **More reliable results** * **Missing balances stay unavailable.** Missing balance evidence no longer becomes \$0 or a false zero negative-day count. Averages omit unavailable values, and a rule cannot reject solely because a required value is missing. * **Factoring is visible regardless of revenue settings.** Previously, factoring positions and funders could be hidden from screening when factoring was not counted as debt. * **Position counts respect the selected window.** Positions without transactions in the evaluated scope are left out. The paying-position metric applies the additional payment-over-\$50 requirement. * **Reversed payments are not new funding.** Credits tagged as reversals no longer count as loan disbursements in the loan summary. The UI still does not combine multiple conditions into one rule, such as recent funding **and** a funding amount above a threshold. Floor-plan and debt-consolidator screening still require additional funder categories. ### Reverse consolidations are recognized as positions A reverse consolidation funder does not advance a lump sum. It deposits money on a weekly or daily schedule, sized to cover the merchant's existing MCA pulls, and takes a smaller payment back over a longer term. The old positions keep pulling. Depending on how the deposits happened to space out, that used to read as one ever-growing advance or as a funder advancing again every week or two, so the debt board showed a pile of renewals and stacks. Position detection now reads the funder's deposits as one funding stream. An MCA position is marked as a reverse consolidation when the funder made at least four deposits at a daily or weekly cadence over three or more weeks, was pulling payments during the same span, put in more than it took back, and the book's other MCA positions were also being paid during those weeks. When all of that holds: * **On the debt board,** the position shows a **Reverse consolidation** pill with the deposit pace, for example "\$6,000/wk in", and its funding history collapses to one advance dated at the first deposit. Payment schedules, remit, holdback, misses, and modifications are computed exactly as for any other position. * **In screening,** two new signals: **Reverse Consolidation Positions** (deny if at least one) and **Reverse Consolidation Monthly Inflow**, what the consolidator is currently depositing per month. While the deposits continue, the merchant's real MCA burden is roughly MCA Monthly Remit minus this inflow. * **In exports and stack views,** the position appears with a single funded row instead of one per deposit. Positions funded by a lump sum are not affected. A funder that only deposits, such as a lockbox forwarding card sales, a funder that credits small weekly true-ups while pulling daily, and a line of credit with irregular draws are all still read as ordinary positions. Deposits every other week are not yet recognized. Detection needs enough statements to see the cadence, so use the new signals on whole-book rules rather than a one-month window. Existing books pick this up the next time they are opened; no reparse is needed. ### Documents across books The new Documents page lists files from all your books in one place. Search by filename or filter by date, file type, document category, or processing status. You can open, download, or remove a file from the list. ### Edit loan applications You can now correct business and owner details directly in the Application tab, or enter an application when there is no parsed form. Changes save to the book and feed subsequent screening results and filled templates. A full reparse replaces these edits. ### Offer worksheet Books with parsed bank statements now have an Offer tab. Enter an MCA offer's terms to see its payback, payment schedule, fees, and payment burden against the book's revenue and existing MCA remittances. Save multiple offers, compare them side by side, and choose a primary offer. The primary offer's terms and calculated values are available as screening metrics. You can use them in screening rules, Composer emails, and contract templates—for example, to put the funded amount, first payment date, or estimated payoff date into a document. Choosing a different primary offer changes which offer details those features use. ### ![Ramp](https://mintcdn.com/pathwaysystemsllc/GD_S-gw5b8l72GRg/images/ramp/ramp-logo-light.svg?fit=max\&auto=format\&n=GD_S-gw5b8l72GRg\&q=85\&s=2dac197bfe425aed1200298f53e826e0) LendPathway is now partnered with Ramp. Ramp uses Pathway to pre-screen businesses you refer and recognize them as coming from your firm. [Learn more about Ramp referrals](https://docs.lendpathway.com/platform/partner-programs/ramp). *** ## September 14–18, 2026 ### Email intake **Connected Gmail: forwards from your own team were being skipped. Fixed.** The poll that reads a connected inbox excludes mail sent by the inbox itself, so Pathway's reply emails never get ingested. That exclusion was written as Gmail's "me", and Gmail expands "me" to include every "send mail as" alias on the account. If a teammate had their own address set up as an alias on the shared inbox, everything they forwarded into it was excluded too. The exclusion now names the connected mailbox's exact address and nothing else. **Each poll now covers the previous hour.** Polls used to look back a few minutes past the previous one. An email that Gmail's search index surfaced late, or whose download failed once, could fall outside the window and never be seen. Polls now look back 60 minutes. Emails already in intake are skipped by id before any download, so the wider window adds no work. **The Intake Inbox page reports when polling is stopped.** A banner appears when the poller could not complete a cycle in the last 10 minutes or is idling for a known reason: no inbox selected, the inbox owner left the organization or disconnected Gmail, or Gmail revoked access. The banner shows the reason and clears when polling resumes. ### Email intake settings Three additions in the Email Intake settings dialog. **Which emails to process.** Decides whether an email becomes a book, based on the types of files attached. Zip files are expanded and links in the body are downloaded before the check, and file types are detected from the file contents, not the filename. * **Has a PDF or image.** The email is processed when at least one attached file is a PDF or an image. Every file on a qualifying email is processed. An email whose files are all something else, such as HTML download stubs, spreadsheets, or a signature logo, is recorded with the status "no attachments" and the skipped filenames, and no book is created. This is now the default for every organization. Before this change such emails created a book that failed with "No supported documents found." * **Has a PDF.** Same, but only a PDF qualifies. * **Every email.** Any attachment creates a book. This was the previous behavior. **Ignored senders.** A list of email addresses. Mail from these addresses is never processed, in either intake mode. The connected inbox's own address is always treated as ignored and does not need to be added. **Who can change the connected inbox.** The connected inbox can be changed or removed only by the user who connected it. Other admins see the inbox address and the owner's name in place of the selector, and can change every other setting. Saving intake settings now requires the admin role. *** ## September 7–11, 2026 ### Screening rules can match categories A screening rule used to do one thing: compare a number against a threshold or against another number, optionally limited to one state or industry. Rules can now also check what kind of business a book is. In the rule builder, choose **Match a category** instead of **Compare a number**, pick the category, and pick the values it must be one of, or must not be one of. What you can match on: * **Entity type.** The legal structure on the loan application: sole proprietorship, LLC, corporation, partnership, nonprofit, or other. "Reject sole proprietorships in California" is one rule: target California, then require Entity Type to be one of Sole Proprietorship. * **Position funders.** The funders behind the loan positions found in the bank statements. Pick funders from your directory, with their logos, and say whether any position or every position must match. **Active Position Funders** looks only at MCA positions still pulling payments. **Position Funders** looks at every position, active or closed. "Reject if any active position is from OnDeck or Bitty" is one rule. * **Business state.** The state on the loan application, the primary owner's home state, and the state printed on the bank statements, each as its own category. **How funder matching works.** A position matches a funder when it has been attributed to that funder in your directory, whether by the parser, by a tag rule, or by you on Edit Position. A position the parser could only name, with no directory match, never matches a rule. If a funder keeps showing up unattributed, add it to the directory with the transaction descriptions it appears under, or add a tag rule for it. Deleting a funder does not delete the rules that name it; those rules show "Unknown funder" and stop matching on new parses. Resetting the directory to defaults keeps every funder whose name is still in the defaults, so rules, tag rules, and positions stay attached. **Every rule now reports one of four outcomes:** it failed, it passed, it was skipped because the book is outside the rule's state or industry, or it could not be evaluated because the book is missing something the rule needs. A rule that cannot be evaluated never rejects a book. Two changes to where values come from. Both apply to existing books the next time they are viewed: * **The state a rule targets now comes from the loan application.** It used to come from the bank statement address, which is now used only when the book has no application. A book whose application and statements disagree on state may match different state rules than before. * **Business name is now the legal name on the loan application,** with the bank statement name as the fallback. This applies to composer templates, Salesforce pushes, and contract fields, and matches what LendSaaS and OrgMeter already sent. Business Name and Business Name (Bank Statements) can both be picked in contracts, the composer, and the Salesforce mapping. One more correction: a book with no included bank statements now reports its bank metrics as unavailable rather than zero. A rule like "average monthly revenue below \$10,000" no longer rejects a book that simply has no statements yet, and LendSaaS and OrgMeter pushes for that book send the revenue reported on the application instead of zero. Existing rules keep working exactly as before. There is nothing to redo. The funder field on **Edit Position** was rebuilt with the same picker: a search box, logos, and the current funder shown by name even if it has since been removed from the directory. ### Credit report parser The parser used to look for a FICO 8 score only. Reports that print a different score, most often VantageScore 3.0, sometimes came back with a bureau's score missing. The parser now extracts every score printed for each bureau along with its scoring model (FICO 8, FICO 9, other FICO models, VantageScore 3.0 or 4.0), and picks one as the bureau's score: FICO 8 if printed, otherwise another FICO model, otherwise VantageScore. The model is shown next to the score on the Credit Report tab, in the credit exports, and on hover in the books list. Books parsed before this release show the score without a model until they are parsed again. A bureau that prints a score or inquiries but lists no accounts, as with a thin or frozen file, used to be dropped from the book entirely. It now stays. The worst days-late figure on an account is now taken from the late payment events the parser captured, and is empty when there are none, so an account cannot show a delinquency the report does not print. A closed or paid account whose payment status still reads "Current" is now recorded as closed. The LOC scrub export treats an account as closed if the report marks it closed or its status is closed, so a closed account with a derogatory status shows as closed, with its full balance as the paydown. Export changes: * Credit Full: the score block is titled "Credit Score" and shows the model under each score. A bureau with no score shows a dash instead of 0. Credit history and highest limit no longer use functions that older Excel versions and some viewers cannot evaluate, which showed as `#NAME?`. * Credit Summary: the scores table has a Model column. * LOC scrub: a Model row under the scores, the inquiry count labeled with its six-month window, and a new Combined tab, placed first. It lists every revolving account and unsecured loan across all bureaus once, in the same layout as the bureau tabs, with a Not Reported By column naming the bureaus that do not carry the account. Blank means every bureau reports it; only bureaus in the report are considered, and a line under the scores says which bureaus those are when the report has fewer than three. Its DTI panel sums the merged accounts, so a debt reported by one bureau counts once. Accounts are matched across bureaus by creditor name and month opened, and each row takes its figures from the bureau that reported it most recently. On the Credit Report tab, the score card is labeled "Credit Score" with the model under the number, and the inquiry count no longer says twelve months; it is the count on the report. *** ## August 31 – September 4, 2026 ### Loan application parser update The loan application parser pulls more out of an ISO application and stores it in a cleaner structure. What's new on the parsed application: * **All owners, not just one.** Every owner listed on the form is captured, each with name, address, SSN, ownership percentage, credit score, phone, and date of birth. One is marked as the primary owner. * **The originating ISO.** If the form carries the broker's branding, the ISO or shop name, email, phone, website, and address are parsed out. * **Stated time in business.** Forms that say "5 years in business" instead of a start date now get that captured too. Screening's time-in-business metric uses the start date when present and falls back to the stated duration. * **Application date.** The date the form was completed, when shown. * **Entity type as a fixed value.** LLC, corporation, sole proprietorship, partnership, nonprofit, other, or not stated, instead of free text. Business details, address, contact info, tax ID, industry, requested amount, use of funds, and the self-reported financials (monthly and annual revenue, cash advance balance, daily balance, credit card sales, employee count) are all still there, now grouped under the business instead of mixed in with owner fields. Application metrics in screening were renamed to match. The self-reported financials are now "Reported Monthly Revenue (ISO App)" and so on, and owner fields are "Primary Owner Name (ISO App)" and so on. Screening rules, contract field mappings, and composer templates that used the old names were updated in place. LendSaaS pushes now send every owner from the application, including date of birth and phone. **Existing books were migrated.** Every loan application parsed before this release was converted to the new structure in place, so older books keep their screening metrics and template exports exactly as before. Fields the old parser never captured, such as owner date of birth, additional owners, and the originating ISO, are empty on those books until the application is parsed again. A few values the new structure doesn't accept were cleared rather than guessed: non-US states, ownership percentages over 100, and unreadable dates. ### Hard declines in LendSaaS Screening rules can now hard-decline a LendSaaS deal. Each rule has a **Hard decline** toggle in the LendSaaS Decline Reasons modal. When a hard-decline rule rejects a book, the auto-created deal is forced straight to **Declined** in LendSaaS, with the mapped decline reasons attached in the same call. A hard decline also triggers LendSaaS's decline email to the ISO (never to the merchant). This is different from the default behavior, which still applies: a normal rejection attaches the mapped reasons to the deal and moves it to whatever "fail status" you configured in auto-create settings. A hard decline skips that status entirely — the deal lands on Declined, full stop. One requirement, imposed by LendSaaS itself: a decline must carry at least one reason. The toggle stays disabled until the rule has a decline reason mapped, and clearing a rule's last reason disarms it. If several rules reject the same book and any one of them is a hard decline, the deal is hard-declined with the combined reasons from every rejecting rule. ### Book and deal IDs in the completion email The parse-complete email now shows the Pathway book ID in the footer, and — when the book is linked to a LendSaaS deal — the LendSaaS deal number next to it. Previously the book ID only existed inside the button links, so any system (or person) trying to reconcile an email with a book or deal had to dig through URLs. Now it's printed plainly above the copyright line. *** ## August 24–28, 2026 ### Parses survive provider overloads When the model provider returns an overload error mid-parse, the pipeline now steps down to a fallback model for the remaining attempts instead of retrying the overloaded one until the parse fails. Rate limits still retry the same model and genuine errors still fail fast; the fallback only engages on capacity errors. Parses that would have failed during a provider incident now complete. ### The changelog, in the app This changelog now lives inside Pathway. Open it from the user menu and it slides over whatever you're working on, synced from the docs site. *** ## August 17–21, 2026 ### Liens and litigation through Baselayer Business verification now starts from the book. Book Actions has a Baselayer section that prefills the business name, address, EIN, and website from the parsed application, so a verification runs without retyping anything, and the latest search is stored against the book across refreshes. From a completed verification you can order two follow-on checks: a lien search and a litigation/bankruptcy search. Results render in Liens, Litigation, Website, and Industry tabs on the book and on the Baselayer page. Lien filings list the states searched, docket results list the cases, and long-running searches now resolve through webhooks instead of sitting on pending. The report also reads plainer: both grade boxes explain their A–F scale, and match results say "Exact match", "Same city", or "Similar" instead of raw codes. ### Theme Studio The theme picker grew into a studio: seven color presets with swatch previews, four font options, and a Theme Studio that generates a complete light and dark palette from any seed color, in styles like Balanced, Pastel, Bold, and Muted. Custom themes persist per browser. ### Monthly columns layout In the monthly columns export, the offer calculator now sits to the right of the deposits and stacking tables, matching the classic underwriting sheet layout, with the notes boxes directly under the stacking table. *** ## August 10–14, 2026 ### Credit card statements Pathway parses credit card statements now. Upload one and it's recognized automatically; a dedicated pipeline extracts the issuer, card product, statement period, balances, and every line item, typed as purchase, payment, credit, fee, interest, or cash advance. Statements that group spend by employee card keep per-cardholder attribution. Books with parsed card statements get a Credit Cards tab: total spend, a spend-over-time chart, a category breakdown, a recurring-charges panel, an account selector for multi-card books, and a full transactions table filterable by category, month, type, and one-time versus recurring. ### Simple synopsis, rebuilt The Simple layout of the Overview tab was rebuilt end to end: a header listing each bank account, cash flow over time (monthly revenue and withdrawals with average daily cash), a cash health panel, debt commitments with funder, loan type, and estimated payoff progress, and a statement history table with a link to the source statement on every row. ### Credit reports: derogatories need printed evidence The credit report parser no longer takes a derogatory status on faith. It captures dated late-payment events and verbatim remarks per account, and a final check downgrades any derogatory it can't back with captured evidence. Statuses printed on the report, like "Collection", are never downgraded. Counter-format lates ("Times 30/60/90 Days Late: 1/0/2") count as evidence for vendors that print counters instead of a history grid, ambiguous years resolve against the report's own date, and an account whose bureau column is blank is skipped for that bureau rather than borrowed from a neighboring column. The LOC scrub export builds on this: derog sections are scoped per bureau, a Late Date column shows when the worst late happened, "Late N Days" replaces the generic "Delinquent" whenever the severity is known, inquiry counts anchor to the report date over a six-month window, cards with no printed limit fall back to high credit with a "(NO LIMIT)" tag, and authorized-user derog rows carry an "(AUTH)" prefix. *** ## August 3–7, 2026 ### Composer A new Composer page under Actions. Organizations write their own email templates instead of using fixed built-ins. Templates use `{{token}}` placeholders that fill from the book's metrics, plus business name, book name, and months of statements; an "Insert metric" picker targets the subject or body, and a live mockup previews exactly what will be sent. A token with no value renders as "N/A", never raw braces. Each surface that sends email picks its own default template. ### Partner matching remembers what you sent Every deal email sent to a funding partner is now recorded. The Send Deal dialog shows a Sent badge with relative time on each partner, and the default selection seeds to passed partners who haven't already received the deal. There's a partner search box, a one-click filter to passed partners, and each partner shows its passed criteria as N of M. ### Plaid balance accuracy Monthly balances from Plaid asset reports now anchor on the institution's last stated ending daily balance instead of the "data as of" current balance, which can include pending activity and offset every derived number by a constant. Accounts whose ledger fails balance reconciliation are excluded from analytics entirely rather than contributing wrong numbers. The extractor also handles dates that wrap across two lines and merged adjacent value cells. ### Reconciliation warnings on the book page When statements fail balance reconciliation, an amber banner appears on the book with a "Review issues" popover grouping failures by document: the account, the statement period, the dollar discrepancy, and the reason. Excluded documents don't trigger it, and a dismissal holds until a new failure appears. *** ## July 27–31, 2026 ### Send deals to funding partners A Send button on the book's Partner Matching section opens a Send Deal dialog. Matched partners are listed as recipients at their submission emails with their rules-passed counts, the subject and body prefill from a deal-submission template, and you pick which of the book's documents to attach, plus an optional rendered underwriting spreadsheet. A pixel-accurate preview shows the exact branded email per recipient. Sends go out from your own connected Gmail, one individually addressed copy per partner, with per-recipient success reported. ### Metrics in the books list The books table can show real underwriting numbers. A snapshot of key metrics is stored at parse time, and a "Show metrics" menu adds optional columns: true revenue, average monthly revenue, average daily balance, most recent month revenue, average monthly negative days, debt-to-income, active MCA positions, FICO, and a screening column with pass/fail and rules-passed counts. A Metrics filter sets minimum and maximum ranges on any of them, so "passing books with true revenue over \$50k" is a filter on the list, not an export. A one-time backfill in Settings computes the snapshot for existing books, with a progress bar you can leave and come back to. ### Screening reads the application Thirty-three application facts now flow through the platform. The numeric ones are screening criteria: stated monthly and annual revenue, requested amount, ownership percentage, stated credit score, employee count, current advance balance, stated average daily balance, and monthly card sales. Rules can compare what the applicant claims against what the statements show. The string facts (legal name, DBA, EIN, addresses, owner details) fill contract templates, and a book with only a loan application can now fill a contract; bank statements are no longer required. ### Queued and Stopping parse states Parse badges distinguish Queued and Stopping from Processing, and stopping works while a parse is still queued. Status polling now fetches only active parses, so open pages refresh promptly when a parse finishes, with far less background traffic. *** ## July 20–24, 2026 ### Partner matching A new Partner Matching page under Actions. Build a directory of funding partners, and give each one guidelines: screening rules written with the same rule builder your org policy uses. On any parsed book, the Partner Matching section evaluates the deal against every partner's guidelines and shows a verdict per partner, with each rule's resolved reason. Rules outside their target or missing a metric show as quiet skips rather than failures, and a Re-run button re-evaluates on demand. ### OrgMeter A new OrgMeter card on the Integrations page. Connect with a Lead API key (verified before saving), and any parsed book gets a Push to OrgMeter action that creates a lead carrying the business fields, contacts, requested amount, and industry, with statement-derived numbers overriding self-reported figures where both exist. All of the book's documents upload to the lead, typed. Pushed books show a "Pushed to OrgMeter · Lead #N" badge, duplicate pushes are blocked, and an auto-push toggle sends every book that parses with real bank data. ### A dedicated Screening page Screening policy moved out of settings into its own page: an on/off switch for the whole policy, a Rules tab with the rule builder, and an Industries tab for prohibited industries. ### Reference pages Two new pages. Financial Institutions is a searchable directory of US banks and credit unions: logo, type, headquarters, assets, registry ID, website. Reference is a gallery of every transaction tag Pathway uses, with color chip, description, and examples, loan tags first. The Funders directory was also rebuilt as a ranked, searchable table with detail dialogs, and table search across the app now ranks results by relevance instead of plain substring filtering. ### Also this week Contracts, Partner Matching, and Notes grouped into a single Actions tab on the book page. The books table gained a filterable Source column: Email, Salesforce, LendSaaS, API, or Manual. Chat's model lineup moved up a generation across Lightning, Classic, and Pro, tuned to answer quick questions directly. *** ## July 13–17, 2026 ### Templates backed by live Google Sheets Spreadsheet gallery templates can now be backed by an externally maintained Google Sheet. Pathway exports the sheet and fills its named ranges with book data instead of rebuilding the workbook in code, so a template tracks the workbook its owner actually maintains. Templates using modern Excel functions (XLOOKUP, IFS, FILTER) no longer render as #NAME? errors when the export opens in Excel. ### LendSaaS deals get their worksheet filled The LendSaaS connector accepts a Google service-account key. When a push creates a new deal, the deal's Google worksheet fills once with a Pathway-generated workbook, and the link posts as a note on the deal. The auto-fill deliberately never overwrites underwriter edits; a Replace Google Sheet action on the book regenerates the full sheet explicitly, with confirmation. ### Plaid: duplicate reports handled Books with multiple Plaid asset reports covering the same account no longer double-count transactions. The best-coverage instance of each account is kept, and a fully redundant report is marked with a clear message saying every account in it is already covered. Hiding a Plaid document in the Files tab now hides all of its per-month statements everywhere: the statements table, the CSV export, the templates. ### White-label watermark logo Settings → Organization gained a Watermark Logo upload. When set, PDF exports render your logo in the header instead of Pathway's, starting with the Bank Statement Report. Credit report extraction also moved to a stronger model this week. *** ## July 6–10, 2026 ### Screening rules with windows and account scope Each side of a rule equation can now be scoped: a window (whole book, most recent month, previous month, last 3 months) and an account scope (all accounts or primary only). Cross-window rules become directly expressible, like `most recent month revenue < 0.7 × last-3-months revenue`. Every metric works under every scope because analytics recomputes over the slice, and an empty scoped period reports the metric as unavailable rather than zero. The rules table shows scope badges like "Last 3 mo · Primary acct". ### A clearer screening verdict The screening popover on the book page was redesigned. It states plainly whether deny rules triggered, and each rule renders its equation twice: as variables, and with the book's actual numbers substituted in. Rules that didn't apply show as Skipped rather than silently passing, with scope chips on scoped rules. ### Balances from the combined cash position Negative days, average daily balance, days under threshold, and peak and lowest balance are now computed from the combined end-of-day cash position summed across all included accounts. A book with three accounts gets one honest book-level balance curve instead of per-account numbers folded together after the fact. *** ## June 29 – July 3, 2026 ### Baselayer business verification A new integration: Baselayer, for KYB. Connect it from the Integrations page and a Baselayer page appears in the sidebar. Run a business search with the legal name, address, and optionally EIN and website, and get back a verification report: KYB and risk scores, match indicators for name, address, TIN, and officers, entity type, incorporation date, and time in business, with tabs for details, addresses, SOS filings, officers, and watchlists. Searches complete in the background and past searches recall from a history dropdown. ### Contracts fill from the book Every book has a Contracts tab now. Your contract templates show as cards with PDF thumbnails and mapping badges; clicking one generates a filled PDF from that book's metrics and opens a preview with download. In the contract designer, a new Metric field type maps any spot on the PDF to a Pathway metric through a searchable picker, and generated values format exactly as screening formats them. Unparsed books show a hint to parse first, and encrypted PDF templates are normalized on upload so they no longer break generation. ### One metric picker everywhere The metric dropdown in the screening rule builder became a full dialog: search, subject groups, highlighted matches, and a plain-English description for every metric. Contract field mapping uses the same picker. ### Intake through your own Gmail Intake settings gained a second way to receive deals: Connected Gmail. Instead of forwarding to your Pathway address, the inbox polls a team member's connected Gmail directly, and replies to submitters send from that person's own address rather than the bot. Reply routing is snapshotted at ingest, so switching modes mid-parse can't misroute a reply. The sender whitelist can also be switched off entirely for dedicated deals mailboxes. *** ## June 22–26, 2026 ### Faster bulk downloads Bulk ZIP downloads of a book's documents got noticeably faster: files fetch from storage in one batched call, watermarking and zipping run off the main thread, and already-compressed PDFs skip pointless re-compression. The watermark itself looks better, keeping the logo's aspect ratio and rendering at double resolution. ### Filter transactions by document The transactions tab gained a Document filter: one option per statement file, titled by its statement period, with the accounts it covers and the original filename underneath. The old truncated Doc ID column became a readable Document column showing the period, and account filter options show the bank name and masked number, primary account first. ### Full transactions inside the document viewer Opening a document and flipping to its transactions now shows the complete transactions table, with filters, tag editing, and bulk selection, scoped to that document. The viewer header shows a status pill: Reconciled, N failed, MTD reconciliation skipped, or the failure reason. The bank statements table highlights the row of whichever document is open. ### Per-account cash flow calendar The daily balance calendar gained an account selector on multi-account books: view any single account or the combined position. It's purely a view lens and never touches exclusions. ### Readable web research The web research card renders its report with real typographic hierarchy: headings, lists, quotes. Every link shows its destination's favicon inline. *** ## June 15–19, 2026 ### Statement rows open the source PDF In the synopsis bank statements table, clicking any row opens that statement's PDF. Periods merged from several PDFs (banks that emit one file per account per month) expand into per-account rows, each opening its own source document. Every number on the page is one click from the statement it came from. ### Plaid parsing fixes Asset-report PDFs whose header labels arrive concatenated on one line ("INSTITUTION: X ACCOUNT NAME: Y", seen with Navy Federal among others) now parse correctly, and institution headers no longer bleed into the previous account's last transaction description. ### Fixes The per-account CSV export and the copyable bank statements table skip the synthetic combined row that duplicated the individual accounts in multi-account periods. Org admins can remove members again; the action was wrongly restricted. *** ## June 8–12, 2026 ### Originators group themselves When a new originator emails the intake inbox, Pathway auto-creates an originator group named after the firm's email domain, with the website attached and a domain matcher claiming the root, so every mailbox and subdomain of the same firm lands in one group. Personal addresses (Gmail, Yahoo, and about a hundred other freemail domains) are never grouped. Creating or editing a group's matcher rules immediately claims all existing ungrouped originators that match, and deleting a group frees its members to re-match later. The originator dialog gained a searchable group picker for manual assignment. ### LendSaaS reliability Declines now go through LendSaaS's dedicated decline-reasons endpoint, with your configured decline status taking precedence, and the document-upload timeout went from 15 to 60 seconds so large syncs stop failing mid-transfer. *** ## June 1–5, 2026 ### Guest role Organizations have a third role: Guest, read-only. Guests see everything (books, analytics, documents), can download documents, and can export to Google Sheets, but every write is blocked server-side. ### The book page works on a phone On phones and portrait tablets, the transactions table becomes a card stack: each transaction is a tappable card with the date, account, full description, funder badge, tag chips, and the amount with running balance. Filters, sorting, and pagination carry over from the desktop table, and the tab bar becomes a scrollable strip. *** ## May 25–29, 2026 ### Originator Groups Senders are now called Originators, and firms became first-class. A new Originator Groups page joined the Intake section: a group is the shop that individual originators belong to, with a name, website, notes, and matcher rules (exact email, domain, or domain suffix) that automatically assign incoming originators. An originator's group is derived from those rules, existing data was backfilled, and every new book snapshots which group submitted it at creation, so "which firm sent this deal" stays accurate even if the rules later change. ### Multi-account negative days, corrected For merchants with multiple bank accounts, days negative and days under threshold in the combined row are now the maximum across accounts per month instead of the sum. Calendar days aren't additive: five negative days on each of three accounts is five days, not fifteen. Event counts like NSF still sum. This corrects displayed analytics, screening inputs, and exports. ### Hide month-to-date statements A new option in Settings → Document Parser auto-excludes MTD bank statements from totals, averages, and downstream calculations at parse time. They still parse; they just don't weight any aggregates. *** ## May 18–22, 2026 ### The Application tab Books with a parsed loan application get a dedicated Application tab: parsed fields on the left, the original PDF rendered beside them, with a document picker when there are several. You verify extracted values against the source without leaving the page. ### Contract designer autosave The contract designer autosaves your field layout three seconds after you stop editing and warns before you navigate away with unsaved changes. ### Business info accuracy Bank statements proved an unreliable source for EINs, so the EIN field no longer appears on statement-derived surfaces: the book badges, the synopsis email, the monthly columns export. Address fields are optional in extraction rather than forced, and Plaid parsing no longer fabricates "Unknown" city values. Blank shows as blank instead of wrong. ### Monthly columns refinements ISO/Broker now auto-fills from the book's intake lineage and Bank and Account # from the parsed ledgers, a Pathway Link cell points back to the book, and the business-info table gained Google Maps, Yelp, Facebook, and Instagram rows plus a Total Deposits row. A notes grid sized for handwriting sits under the offer calculator, and the stacking sheet shows a row for just-funded advances with no payment schedule yet, so brand-new positions stay visible. *** ## May 11–15, 2026 ### Contract templates A new Contracts page in the sidebar. Upload a PDF to create a reusable funding-contract template, then open the visual designer and drag fields onto the pages: text, signature, image, date, checkbox. Templates save, rename, and delete from the same page. ### Vanta theme A sixth theme: pure black. A true 0% black canvas with tuned greys and a barely-lifted sidebar, alongside Ocean, Ember, Forest, Violet, and Rose. ### Forwarded mail resolves correctly Emails routed through Google Workspace address-map forwarding now resolve to the original recipient, fixing originator attribution on forwarded submissions. *** ## May 4–8, 2026 ### Twelve new screening metrics The rule builder gained Total Deposits, Total Withdrawals, Average Monthly Withdrawals, Average Monthly Deposit Count, Average Monthly Negative Days, Average Monthly Loan Payments, NSF Total, and Overdraft Total, plus three debt-health metrics read straight off the ledger: reversal credits (the bank rejected a pull), missed payments (bounced credits plus gaps in the payment cadence, where a long gap counts as multiple misses), and modified payments (amount changes in an active cadence, indicating renegotiated terms). Every metric carries a plain-English description in the builder. ### Salesforce gets the full catalog Opportunity field mapping now draws from the same metrics registry as screening, so every screening metric can push to a mapped Salesforce field. Pushed values compute from the same canonical metrics object screening evaluates, so what Salesforce receives always agrees with the screening verdict. ### LendSaaS declines carry reasons A Decline Reasons modal on the LendSaaS page attaches decline reasons from your LendSaaS tenant to each screening rule, picked by name from a synced catalog. When a screened deal rejects and a rejecting rule has reasons configured, Pathway files the decline on the deal with those reasons, moving it to Declined in LendSaaS. ### ISO matching: subdomains and CCs Subdomains count as the same shop, so an originator on acme.com matches reps on mail.acme.com. Colleagues on the CC line attribute as secondary reps when their domain matches any of the ISO's listed domains, and freemail domains are still refused so a gmail.com entry can't over-match. Fewer deals land in LendSaaS unattributed. ### Intake inbox: spam recovery and HTML mining The poller now retrieves messages Gmail classified as spam, with the originator whitelist still gating ingestion, so a legitimate submission caught by the filter still becomes a book. Address extraction reads HTML bodies and mailto: links in addition to plain text; CRM-generated submissions are often HTML-only, and forwarded deals carry the original CC list in the quoted body. Industry mapping on loan applications is now hard-constrained to your org's industry list, so it cannot invent a category that isn't there. *** ## April 27 – May 1, 2026 ### Payment schedule detection A ground-up rebuild of how debt positions are analyzed. Each funder position breaks into episodes (initial, renewal, stack), each with its triggering advance and its payment schedules: average amount, frequency, pull day, daily-equivalent remit, term estimate. From the schedules come two risk reads: missed payments, detected as gaps in the cadence and cross-referenced with reversal credits, and payment modifications, detected as amount steps not explained by a new advance. Positions carry a status (just funded, active, closed) and rollups: holdback percentage, daily and monthly remit burden, estimated total payback, progress. All of it feeds the debt board, the synopsis, the spreadsheets, and screening. The debt cards were redesigned around the engine: status pills, holdback and daily remit up front, a flags row for misses and modifications, an episode timeline showing each advance's role, and a paid-versus-estimated-payback progress bar. The MCA column shows book-level totals for daily remit, monthly remit, and combined holdback. ### MCA Stacking Pro A new Excel template built directly on the engine: per-funder blocks listing every payment schedule, position rollup rows, risk-note rows carrying the miss and modification dates, an editable Active toggle driving live footer totals, and holdback as a live formula against the revenue cell. ### Bounced payments net out Everywhere an MCA position's paid amount appears (debt cards, synopsis, reply email, spreadsheets, the PDF report), the figure is now net of attributed bounced payments, so remaining balance and progress stop overstating repayment. Just-funded advances with no payments yet also get a row in stack spreadsheets instead of disappearing. ### One period, however many PDFs Banks that emit one PDF per account per period no longer splinter the analytics. Statements sharing the same start date, end date, and document type fold into one combined period holding all the account ledgers, with duplicate-account protection so nothing double-counts. Monthly tables, the synopsis, and exports see one row per period either way. ### Plaid asset reports The classifier recognizes Plaid asset reports as a supported document type, and a dedicated pipeline extracts the report's accounts, holders, and full transaction history with daily balances, multi-account and multi-institution PDFs included. ### Screening picker and NAICS industries The rule builder's metric picker groups metrics by subject, searches across labels and descriptions, and describes each one in plain English. New most-recent-month criteria landed (negative days, average daily balance, deposits, loan payments) plus NSF and overdraft counts. The industries list moved to a curated NAICS-aligned catalog of about fifty industries with real codes, which is what gets pushed to LendSaaS, with search, bulk import with preview, and reset-to-defaults. ### Google Sheets, one file per template "Open in Google Sheets" keeps one Drive file per book per template, so switching templates doesn't clobber your synced sheet. Export filenames became `{Book name} - {Template name}`. *** ## April 20–24, 2026 ### The Intake Inbox, rebuilt Emails to your intake address now group by conversation thread. Follow-up replies stay attached to the original submission, and each thread shows the subject, status, message count, and every book it produced with live parse status. Opening a thread shows every message with its attachments, per-message processing status, and three resolved identities: the author (the raw From line), the forwarder (the mailbox that relayed it), and the originator (the true sender, resolved by walking forward chains, authentication headers, forward blocks in the body, and attached .eml files). New settings let CC'd mail ingest, and let emails create books and upload documents without auto-parsing. A built-in glossary explains every status. When the parse finishes, the reply lands on the same thread with the deal synopsis, and can carry the org's rendered spreadsheet or PDF report as a real attachment. ### Senders A new page: one managed row per unique originator ever seen in intake, with book count, first and last seen, and editable name, company, and notes. Edited names stick across future ingests. ### LendSaaS: auto-create and ISO attribution Every book that finishes parsing with real bank data can automatically become a LendSaaS deal, with business fields, owners, documents, and worksheet data pushed up, no manual step. Emailed deals attribute to the right ISO by matching the sender's domain against the LendSaaS ISO directory, colleagues on the CC line attach as secondary reps, and a link back to the Pathway book posts as a note on the deal. The deal browser got richer too: per-month worksheet breakdowns, funding details, position status, and notes with authors. ### Slack Connect Slack channels on the new Slack page, and chat can post into them: plain messages or rich blocks, including files it generated. ### Tag Rules A new page for org-level tagging rules: a phrase maps to a tag, matched by contains, exact, or regex. Loan-tag rules replace the transaction's loan tag and can attribute the transaction to a specific funder; other tags stack. Rules apply at parse time to every future parse, and positions reconcile automatically. ### Web research on demand Web research no longer forces itself into every parse. The card on the synopsis has a trigger button, research runs against the parsed business in about two minutes, and an org setting restores automatic runs during parse for those who want them. The research models also moved up a generation. ### Also this week Text and code files (CSV, JSON, SQL, source files) render inline with syntax highlighting instead of failing to preview. The Funders page gained faceted filters, sorting, and a guarded reset-to-defaults. *** ## April 13–17, 2026 ### LendSaaS A full two-way LendSaaS integration. Connect with your base URL and API key, and a LendSaaS page appears listing your deals and leads with a detail view. Any deal can pull into Pathway: its files become a new linked book. Any parsed book can push up as a new deal, with a full preview of the business fields, owners, and documents before anything is created. Linked books sync monthly bank worksheet data to the deal and carry View Deal and Open in LendSaaS buttons. ### Chat: widgets and starters Chat can render live interactive components inline: charts, sortable tables, calculators, running in a sandbox that inherits the app's exact theme and can fetch live data with the chat's own token. The new-chat view offers starter templates that prefill a prompt and enable the right tools, like an MCA ledger tracker that builds a portfolio view (position cards, payback progress, transaction ledgers) from a book's analytics. ### Also this week The books list gained a created-date filter, page sizes up to All, and virtualized rows so All stays fast. Any document can now be deleted from the Files tab, parsed or not. The connected Gmail inbox transparently refreshes expired tokens, so it stops asking to reconnect. Bank statements missing a start or end date display as the known month or "Unknown" and degrade gracefully instead of erroring. *** ## April 2–10, 2026 ### Chat lives on the book The chat on a book page is now scoped to that book. It resumes the book's most recent chat automatically, New Chat starts a fresh one, and any chat can attach other books as context through a searchable picker. A Pathway API toggle gives the assistant org-scoped read-only access to your live data, and books it mentions render as clickable cards that open in the app. Chat search landed too: instant title filtering plus full-text search across message content that tolerates typos. Attachments now show real previews and persist across sessions. ### Read-only API tokens The personal access token dialog gained a Read-only switch, so you can hand out API credentials that can't change anything. ### The Simple synopsis Right-click the Overview tab to switch between Standard and Simple layouts. Simple is one page: hero numbers for true revenue, deposits, and withdrawals; a revenue card with the most recent month trending green or red against the average; balances; a flags card that only appears when there are flags; the application; and the debt positions. ### Seven new screening criteria Most recent month revenue, number of active MCA positions, number of factoring positions, and four recency metrics: days since last transaction, days since last statement end, days since last MCA disbursement, and days since last MCA payment. ### Industry mapping on applications The applicant's free-text industry ("pizza shop") now maps automatically to the closest category in your org's screening industry list ("restaurant"), so industry rules fire on real-world application text instead of only exact matches. ### Five themes Right-click the light/dark toggle for a theme menu: Ocean, Ember, Forest, Violet, and Rose. Each restyles the whole app, composes with light and dark mode, and persists per browser. The Credit Full, LOC Scrub, and Monthly Columns exports also dropped their embedded logo this week, so workbooks come out white-label. *** ## March 30 – April 1, 2026 ### Screening rules Screening rules now evaluate as an equation: **metric → operator → value**. You pick a metric on the left, an operator in the middle (greater than, less than, etc.), and a value on the right. If the condition is true, the application is rejected. The right side can be a fixed number or another metric. Click "Use metric instead" to switch. When comparing two metrics, a multiplier is applied to the right side. For example: avg daily balance \< 0.3 × avg monthly revenue — this rejects any book where the average daily balance is less than 30% of average monthly revenue. When a book is screened, every rule is evaluated individually. Each one shows whether it passed or failed, the equation that was checked, and the actual numbers that were plugged in. The overall result is pass only if every rule passes. Screening is now computed live — updating a rule takes effect immediately on all books without re-parsing. ### Email inbox reply control New "Send Replies" toggle in inbox settings. When disabled, incoming emails are still parsed and screened, but no completion or failure emails are sent back. *** ## March 16–20, 2026 ### Email synopsis Rebuilt the completion email to mirror the synopsis page. Overview with business info and account chips, cash flow cards (avg monthly revenue, avg daily balance, true revenue, days negative, NSF, overdraft), debt positions table with funded/paid totals, monthly bank statement breakdown with negative days and DTI, book summary, and a web research preview. All metrics respect exclusions. Preview at `/api/books/{id}/email-preview`. *** ## March 9–13, 2026 ### Screening rules Screening rules let you set conditions against the metrics the parser extracts. They run on every scrub — the deal passes or gets flagged with the exact reason. Supported metrics: avg daily balance, negative days, true revenue, avg monthly revenue, avg monthly deposits, total loan payments, DTI ratio, closing balance, opening balance, total days, lowest balance, deposit count, withdrawal count, true revenue transaction count, MCA position count, state code. Operators: greater than, less than, equal, not equal, greater or equal, less or equal. Rules can target all states or specific states. A deal is rejected if any rule's condition is met. Changing a rule re-screens every book the org has ever parsed — the metrics were already stored from parsing. **Import from document.** Drag in a PDF, spreadsheet, screenshot, or Google Doc containing a funder's criteria. A constrained agent reads the document, maps requirements onto the supported metrics and operators, and inverts each requirement into its denial form ("minimum \$25k monthly revenue" becomes `avg_monthly_revenue < 25000`). Anything that doesn't map to a real metric is dropped — structurally impossible to express. You review checkboxes and approve what applies. ### Credit report parser * **Authorized user detection.** The parser now only sets `is_authorized_user=true` when the report explicitly says "Authorized User" or "AU." Joint, co-signer, and individual accounts are no longer misclassified. * **Collateral type on revolving accounts.** `collateral_type=unsecured` is now only assigned to installment personal/term loans. Credit lines, LOCs, and HELOCs get `None` collateral, keeping them out of the Unsecured Loans section. * **Last Reported date accuracy.** Field description clarified to point at the "Last Reported" / "Date Reported" label specifically, reducing misreads. * **Creditor name extraction.** The extraction prompt now uses realistic creditor name examples (`SYNCB/AMAZON`, `BK OF AMER`, `THD/CBNA`) and explicitly tells the parser that abbreviated/slash-delimited names are valid accounts. * **Fraud alert and security freeze detection.** New optional fields `has_fraud_alert` and `has_security_freeze` on the entity model. Existing templates are unaffected. * **Bureau extraction model upgrade.** Bureau extraction was running on an older model. Upgraded to match the rest of the parsing pipeline for better accuracy and reliability. * **Late payment history field.** New `worst_delinquency_days` field captures the worst number of days late (30, 60, 90, etc.) independently of account status. Accounts that are closed but have late history now surface in the delinquencies section of both templates. ### LOC Scrub template * **Charge cards in revolving section.** Charge accounts (e.g. Amex) were not showing up. The revolving filter now includes both `revolving` and `charge` account types. * **Revolving account classification guard.** The unsecured loans filter now rejects revolving accounts as a safeguard against parser mislabeling. * **Closed revolving accounts with balances.** Closed cards that still carry a balance now appear in the Revolving Accounts table, marked with `(CLOSED)` prefix and red highlight. Paydown columns show the full balance (pay to zero) instead of 25% utilization. * **Fraud and security freeze alerts.** If the credit report contains a fraud alert or security freeze, a red bold warning appears in the header area under the logo. ### Credit Full template * **AU accounts excluded from DTI by default.** Authorized user accounts now default to `In DTI? = No`, matching the LOC Scrub behavior. The toggle remains editable. * **Inquiries filtered to last 12 months.** The inquiries section now only shows hard pulls from the last 12 months, sorted newest first. *** ## February 23–27, 2026 ### NSF and Overdraft tag split The combined `nsf_overdraft` tag has been split into two separate tags: `nsf` and `overdraft`. * **NSF** = the payment was rejected. It did not go through. The money never left the account. * **Overdraft** = the payment went through, but pushed the account balance negative. The bank covered it. Both tags are still deterministic (regex, no LLM), debit-only, and have the same $0.01–$200 amount guard. Both remain in the revenue exclusion set. A transaction like "NSF OD FEE" can match both tags simultaneously. Analytics, metric cards, the bank statements table, and the pivoted deposits view now report NSF and Overdraft as separate columns and metrics. The monthly spreadsheet export has two rows instead of one. Old books that were parsed before this change still have `nsf_overdraft` in their tag arrays. The backend analytics layer treats legacy `nsf_overdraft` tags as matching both `nsf` and `overdraft` so existing books do not lose their data. The frontend renders the old tag with its original "NSF/Overdraft" label and color. On reparse, the old tag is replaced with the split tags automatically. ### French-Canadian bank support All five deterministic tagging functions (check, wire, NSF, overdraft, stop payment) now recognize French-language transaction descriptions from Quebec credit unions and Canadian banks. **Check patterns:** * `Chèque #740`, `Chèque, NO.740`, `Dépôt chèque`, `Chèque certifié` **Wire patterns:** * `Virement entrant` (incoming wire), `Virement sortant` (outgoing wire), `Virement électronique` (electronic wire), `Virement interbancaire` (interbank wire) **NSF patterns:** * `Fonds manquants` (missing funds), `Fonds insuffisants` (insufficient funds), `Sans provision` (without provision), `Chèque retourné` (returned cheque), `Effet retourné` (returned item) **Overdraft patterns:** * `Découvert` (overdraft), `À découvert` (overdrawn), `Solde négatif` (negative balance) **Stop payment patterns:** * `Arrêt de paiement` (stop payment), `Opposition` (European French banking term for stop payment) ### Monthly spreadsheet restructure The monthly bank statement spreadsheet layout was restructured. The stacking table and offer calculator now flow vertically below the pivoted deposits table instead of being placed side-by-side. Stacking rows are grouped and sorted by loan type. Conditional formatting highlights active vs. inactive positions. NSF and Overdraft are separate rows in the pivoted deposits table. ### File management New file list view replaces the old files tab. Documents have a dedicated panel component with PDF, CSV, and image viewing, plus a toggle to the parsed transaction sidebar. File uploads, downloads, and document exclusion are handled inline. ### Book page layout The book page tab bar collapses into a popover on narrow screens. BookInfoBadges supports a compact mode. The document viewer was refactored into a standalone DocumentPanel component. Debt board defaults to expanded view and is responsive on mobile. ### MIME detection File type detection switched from manual magic-byte checks to libmagic with filename extension as fallback. Fixes misclassification of edge-case file types during document upload and parsing. ### Analytics: payment processor and stop payment metrics Payment processor totals/counts and stop payment totals/counts are now tracked at the statement and book level alongside existing tag-based metrics (NSF, overdraft, owner transaction, internal transfer, bank fee). *** ## February 16–20, 2026 ### LOC Scrub template rebuild The Credit Report LOC Scrub spreadsheet template was rewritten from scratch. * Each bureau tab has a structured header block with customer info, underwriter, and estimated BLOC summary * Delinquencies surface in their own section before the revolving accounts table. Charged off, collection, bankruptcy, and delinquent accounts are separated * Revolving accounts table highlights closed accounts in light red and authorized-user accounts in light blue. 50%/25% utilization columns are live Excel formulas * DTI panel in columns K-L pulls total monthly debts from the hidden `_RawAccounts` sheet via SUMIFS. Annual income is a user-input cell; monthly income and DTI ratio calculate automatically * Logo positioning fixed with pixel-level offsets so it renders correctly across Excel versions and zoom levels *** ## February 9–13, 2026 ### Open in Google Sheets Spreadsheets can now be opened directly in Google Sheets. One click uploads the generated workbook to Drive and opens it in a new tab. ### Chat overhaul Chat UI rebuilt. The input bar supports file attachments and multi-line messages. The message list handles streaming and non-streaming responses more reliably. The chat panel layout was reworked with better status indicators, cleaner thread separation, and improved scroll behavior. ### Funder directory embed The funder directory can be embedded as a public, token-authenticated iframe. Partners can drop an embed route directly into their own portals. # Known Issues Source: https://docs.lendpathway.com/changelog/known-issues Current bugs and limitations we're tracking. Things we know about and are working on. If you're hitting something not listed here, email [support@lendpathway.com](mailto:support@lendpathway.com). ## UI **Mobile and responsive breakpoints.** The app is designed for desktop. We've done a pass on responsive layouts for the book page, debt board, and tab bar, but there are still places where spacing, column visibility, and component sizing break down on smaller screens. Ongoing. ## CRM **Lender matching and screening per funder.** The autodeny/screening system currently applies a single set of screening settings at the org level. We are working on moving this to per-funder screening, where each funder can have its own criteria, its own industry list, and its own exclusions. This requires a mapping layer that canonicalizes our internal industry types to each funder's industry enums so we can support their specific underwriting workflows. **Programmatic lender submission.** Working with multiple lender portals and APIs to configure programmatic deal submission to funders through a single API layer. **Book deduplication and ingestion.** Documents and parsed results that come through ingestion (email, Drive, manual upload) need to be deduplicated and routed cleanly into the businesses tab. Merging logic for when the same merchant appears across multiple books is in progress. # Our Stack Source: https://docs.lendpathway.com/changelog/stack What we're building and thinking about. ## In Progress **NSF/Overdraft source tracing.** When an NSF or overdraft occurs, find the corresponding credit that was declined or the reversal where the bounced money came back. Link the return credit to the original debit (e.g., RETURN NSF CHEQUE 131.19 traced to ACH DEBIT FORWARD FUNDING 131.19). Dual-tag the linked transaction with both `nsf` and the position tag (e.g., `merchant_cash_advance`). Shows which positions are getting hit. **Configurable book-level metric cards.** The bank statements table already supports configurable columns in both standard and pivoted views. Same pattern applied to the deposits/withdrawals metric cards at the book level. Users pick which tag-based or computed metrics show as cards in the overview. **CRM: per-funder screening and industry mapping.** Screening settings move from org-level to per-funder. Each funder gets its own criteria, industry list, and exclusions. Requires a mapping layer to canonicalize internal industry types to funder-specific industry enums. **CRM: programmatic lender submission.** Integrating with lender portals and APIs for programmatic deal submission. **CRM: book deduplication and ingestion routing.** Merging duplicate merchants across books and routing ingested documents into the businesses tab. **Responsive UI.** Continued work on mobile and tablet breakpoints. ## Up Next Things committed but not yet started. ## Ideas Not committed. Just thinking. # Work with credit reports Source: https://docs.lendpathway.com/cookbook/credit-reports Read identity, credit scores, inquiries, and tradelines without double-counting bureaus. Credit report output is stored on the Book at `book_meta.parser_v2_credit_report`. It preserves each bureau as its own view of the subject's credit file. ```python theme={null} import os import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = os.environ["PATHWAY_API_TOKEN"] BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" response = requests.get( f"{API_BASE}/books/{BOOK_ID}", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=30, ) response.raise_for_status() book = response.json() credit = book["book_meta"].get("parser_v2_credit_report") if credit is None: raise RuntimeError("This Book has no parsed credit report") ``` ## Response model The following models describe the complete credit report payload. ```python theme={null} from typing import Literal from pydantic import BaseModel, Field BureauName = Literal[ "equifax", "experian", "transunion", "innovis", "lexisnexis", "other", ] AccountType = Literal["revolving", "installment", "mortgage", "charge", "other"] CollateralType = Literal[ "unsecured", "real_estate", "vehicle", "cash_deposit", "education", "misc_asset", ] AccountStatus = Literal[ "current", "delinquent", "charged_off", "collection", "bankruptcy", "foreclosure", "repossession", "settled", "closed", "unknown", ] class CreditReportAddress(BaseModel): as_written: str | None = None line_1: str | None = None line_2: str | None = None city: str | None = None state: str | None = None # "TX", "ON" postal_code: str | None = None country: str | None = None # "US", "CA" or "GB" is_primary: bool | None = None class CREntity(BaseModel): full_name: str | None = None address: list[CreditReportAddress] | None = None date_of_birth: str | None = None has_fraud_alert: bool | None = None has_security_freeze: bool | None = None class CreditInquiry(BaseModel): creditor_name: str | None = None inquiry_date: str | None = None class CreditBureau(BaseModel): name: BureauName display_name: str | None = None inquiries: list[CreditInquiry] | None = None class CreditAccount(BaseModel): account_name: str | None = None account_number: str | None = None is_open: bool | None = None is_authorized_user: bool | None = None is_self_reported: bool | None = None account_type_normalized: AccountType | None = None account_status_normalized: AccountStatus | None = None collateral_type: CollateralType | None = None date_opened: str | None = None date_closed: str | None = None recent_balance: float | None = None credit_limit: float | None = None date_of_most_recent_report: str | None = None worst_delinquency_days: int | None = None payment_status: str | None = None monthly_payment: float | None = None high_credit_balance: float | None = None class CreditScore(BaseModel): score: int | None = None # fico_8 | fico_9 | fico_other | vantage_3 | vantage_4 | other | unknown score_model: str | None = None score_model_raw: str | None = None # model name exactly as printed score_model_display: str | None = None # "FICO 8", "VantageScore 3.0", ... date_of_score: str | None = None class PublicRecord(BaseModel): record_type: str | None = None # bankruptcy | judgment | lien | other description: str | None = None # as printed: "Chapter 7 Bankruptcy" status: str | None = None # as printed: "Discharged", "Dismissed", "Satisfied" date_filed: str | None = None date_resolved: str | None = None # discharged, dismissed, satisfied or released amount: float | None = None class BureauReport(BaseModel): credit_bureau: CreditBureau underwritten_accounts: list[CreditAccount] = Field(default_factory=list) scores: list[CreditScore] = Field(default_factory=list) # every score printed fico_score: CreditScore | None = None # headline score picked from scores public_records: list[PublicRecord] = Field(default_factory=list) class CRMeta(BaseModel): primary_entity: CREntity | None = None credit_report_body: list[BureauReport] | None = None ``` All extracted fields are optional because report formats vary. Check for missing values at the boundary of your workflow. ## Read the subject ```python theme={null} entity = credit.get("primary_entity") or {} print("Subject", entity.get("full_name")) print("Date of birth", entity.get("date_of_birth")) print("Fraud alert", entity.get("has_fraud_alert")) print("Security freeze", entity.get("has_security_freeze")) primary_address = next( ( address for address in entity.get("address") or [] if address.get("is_primary") ), None, ) ``` The fraud-alert and security-freeze fields are `null` when the report does not provide enough information to decide. ## Read credit scores ```python theme={null} for report in credit.get("credit_report_body") or []: bureau = report["credit_bureau"] headline = report.get("fico_score") or {} print( bureau.get("display_name") or bureau["name"], headline.get("score"), headline.get("score_model_display"), headline.get("date_of_score"), ) ``` `fico_score` is the bureau's headline score. Reports can print more than one score per bureau (FICO 8 next to FICO 9, or a VantageScore); `scores` holds every one, and the headline is chosen from it with FICO 8 first, then other FICO models, then VantageScore. `score_model_display` names the model, and is `null` when the report never names one. A multi-bureau report can return several scores. Keep the bureau name attached to every score instead of collapsing them into one unexplained number. ## Select one bureau for account totals The same tradeline commonly appears under Experian, Equifax, and TransUnion. Summing every bureau together can count one debt several times. Pathway stores the bureau chosen in the UI at `book_meta.selected_credit_bureau`. Your integration can use that value or apply its own explicit bureau policy. ```python theme={null} reports = credit.get("credit_report_body") or [] selected_name = book["book_meta"].get("selected_credit_bureau") def choose_bureau(reports: list[dict], preferred: str | None) -> dict | None: if preferred: match = next( ( report for report in reports if report["credit_bureau"]["name"] == preferred ), None, ) if match: return match priority = ["experian", "equifax", "transunion"] for bureau_name in priority: match = next( ( report for report in reports if report["credit_bureau"]["name"] == bureau_name ), None, ) if match: return match return reports[0] if reports else None selected = choose_bureau(reports, selected_name) accounts = selected["underwritten_accounts"] if selected else [] ``` This keeps account balances, payments, and counts internally consistent. You can still display every bureau side by side. ## Work with tradelines ```python theme={null} for account in accounts: print({ "name": account.get("account_name"), "type": account.get("account_type_normalized"), "status": account.get("account_status_normalized"), "open": account.get("is_open"), "balance": account.get("recent_balance"), "limit": account.get("credit_limit"), "monthly_payment": account.get("monthly_payment"), "worst_delinquency_days": account.get("worst_delinquency_days"), }) ``` ### Derogatory history `account_status_normalized` describes the current account state. `worst_delinquency_days` preserves late-payment history even when the account is currently closed or paid. ```python theme={null} derogatory_statuses = { "delinquent", "charged_off", "collection", "bankruptcy", "foreclosure", "repossession", "settled", } accounts_with_risk = [ account for account in accounts if account.get("account_status_normalized") in derogatory_statuses or (account.get("worst_delinquency_days") or 0) > 0 ] ``` ### Authorized-user and self-reported accounts Pathway flags accounts that should often be handled separately in underwriting. ```python theme={null} borrower_accounts = [ account for account in accounts if not account.get("is_authorized_user") and not account.get("is_self_reported") ] ``` The flags preserve the report's account role. Your credit policy decides whether to exclude them from a particular calculation. ### Monthly obligations ```python theme={null} monthly_obligations = sum( account.get("monthly_payment") or 0 for account in borrower_accounts if account.get("is_open") ) print("Monthly obligations", round(monthly_obligations, 2)) ``` This is a selected-bureau total. Avoid combining it with the same accounts from other bureaus. ### Revolving utilization ```python theme={null} revolving = [ account for account in borrower_accounts if account.get("is_open") and account.get("account_type_normalized") in {"revolving", "charge"} ] balance = sum(account.get("recent_balance") or 0 for account in revolving) limit = sum(account.get("credit_limit") or 0 for account in revolving) utilization = (balance / limit * 100) if limit else None ``` Charge accounts can have no conventional credit limit. Keep utilization nullable when a denominator is unavailable. ## Read hard inquiries Inquiries live inside each `credit_bureau` object. ```python theme={null} if selected: inquiries = selected["credit_bureau"].get("inquiries") or [] for inquiry in inquiries: print(inquiry.get("inquiry_date"), inquiry.get("creditor_name")) ``` The API returns the inquiries visible in the source report. Apply any recency window required by your own credit policy. ## Produce a selected-bureau summary ```python theme={null} def summarize_credit(book: dict) -> dict | None: credit = book["book_meta"].get("parser_v2_credit_report") if not credit: return None reports = credit.get("credit_report_body") or [] selected = choose_bureau( reports, book["book_meta"].get("selected_credit_bureau"), ) if not selected: return None accounts = [ account for account in selected["underwritten_accounts"] if not account.get("is_authorized_user") and not account.get("is_self_reported") ] derogatory = { "delinquent", "charged_off", "collection", "bankruptcy", "foreclosure", "repossession", "settled", } fico = selected.get("fico_score") or {} return { "subject": (credit.get("primary_entity") or {}).get("full_name"), "bureau": selected["credit_bureau"]["name"], "fico": fico.get("score"), "open_accounts": sum(bool(account.get("is_open")) for account in accounts), "monthly_obligations": sum( account.get("monthly_payment") or 0 for account in accounts if account.get("is_open") ), "derogatory_accounts": sum( account.get("account_status_normalized") in derogatory or (account.get("worst_delinquency_days") or 0) > 0 for account in accounts ), "fraud_alert": (credit.get("primary_entity") or {}).get("has_fraud_alert"), "security_freeze": (credit.get("primary_entity") or {}).get("has_security_freeze"), } ``` For a formatted workbook, use the `credit_report_full`, `credit_report_summary`, or `credit_report_loc_scrub` templates described in [Exports](/api-reference/endpoint/exports). # Export data Source: https://docs.lendpathway.com/cookbook/export-data Move Book data into pandas, CSV, Excel, PDF, or your own storage. Pathway exposes the same Book through several export shapes. Pick the shape your next system can consume directly. | Need | Request | | - | - | | Complete stored deal and raw parser output | `GET /books/{book_id}` | | Computed underwriting data as JSON | `GET /books/{book_id}/analytics` | | Rows ready for a database or dataframe | `GET /books/{book_id}/csv-export` | | An underwriter-facing workbook, report or page | `GET /artifacts/{book_id}/export` | | Original uploaded files | `GET /documents/{document_id}/download` | The [Exports reference](/api-reference/endpoint/exports) lists every public template and the full request parameters. ## Load the underwriting table into pandas The CSV endpoint can go directly into a dataframe. `month_as_row` gives you one row per statement period and account, followed by the summary rows `NET` and `Average`. ```python theme={null} from io import BytesIO import pandas as pd import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = "pat_your_token_here" BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" HEADERS = {"Authorization": f"Bearer {TOKEN}"} response = requests.get( f"{API_BASE}/books/{BOOK_ID}/csv-export", headers=HEADERS, params={"table_format": "month_as_row"}, timeout=60, ) response.raise_for_status() underwriting = pd.read_csv(BytesIO(response.content)) # Keep statement/account rows for analysis. The final two rows are rollups. detail = underwriting[~underwriting["Period"].isin(["NET", "Average"])] print(detail[["Period", "Account", "Deposits", "True Revenue", "DTI %"]]) ``` Use `month_as_col` when a human wants periods across columns. The row-oriented file is easier to load into a database or combine across Books. ## Save an artifact Discover templates at runtime. Organizations can have private templates, and new public templates can be added without changing the API. ```python theme={null} from pathlib import Path import requests def get_template(template_id: str) -> dict: response = requests.get( f"{API_BASE}/artifacts/templates", headers=HEADERS, timeout=30, ) response.raise_for_status() templates = response.json()["templates"] return next(template for template in templates if template["id"] == template_id) EXPECTED = { "excel": ("spreadsheet", ".xlsx"), "pdf": ("application/pdf", ".pdf"), "html": ("text/html", ".html"), } def save_artifact(book_id: str, template_id: str, destination: Path) -> Path: template = get_template(template_id) response = requests.get( f"{API_BASE}/artifacts/{book_id}/export", headers=HEADERS, params={"template_id": template_id}, timeout=120, ) response.raise_for_status() expected_type, suffix = EXPECTED[template["format"]] content_type = response.headers.get("content-type", "").lower() if expected_type not in content_type: raise RuntimeError(f"Unexpected export content type: {content_type}") output = destination.with_suffix(suffix) output.write_bytes(response.content) return output path = save_artifact( BOOK_ID, template_id="bank_statements_stacking_pro", destination=Path("acme-coffee-underwriting"), ) print(path) ``` Omit `template_id` when the export should follow the organization's current default. Pass an explicit ID when another process depends on the workbook layout. ## Store a JSON snapshot Save the Book and analytics separately. The Book contains raw parser output and stored edits. Analytics contain the computed state at the time of export. ```python theme={null} import json from datetime import UTC, datetime from pathlib import Path import requests def get_json(path: str) -> dict | list: response = requests.get( f"{API_BASE}{path}", headers=HEADERS, timeout=60, ) response.raise_for_status() return response.json() output = Path("acme-coffee") output.mkdir(exist_ok=True) book = get_json(f"/books/{BOOK_ID}") analytics = get_json(f"/books/{BOOK_ID}/analytics") documents = get_json(f"/documents/?book_id={BOOK_ID}") (output / "book.json").write_text(json.dumps(book, indent=2), encoding="utf-8") (output / "analytics.json").write_text(json.dumps(analytics, indent=2), encoding="utf-8") (output / "documents.json").write_text(json.dumps(documents, indent=2), encoding="utf-8") (output / "manifest.json").write_text( json.dumps( { "book_id": BOOK_ID, "exported_at": datetime.now(UTC).isoformat(), "parse_status": book["parse_status"], "last_parsed_at": book.get("last_parsed_at"), }, indent=2, ), encoding="utf-8", ) ``` The analytics snapshot can change after a user edits a transaction tag, position, exclusion, or organization rule. Keep `last_parsed_at` and your own export timestamp when the files need an audit trail. ## Download the original documents The document download endpoint returns a fresh one-hour URL. Request it shortly before downloading the file. ```python theme={null} from pathlib import Path import requests def safe_filename(name: str) -> str: return Path(name).name.replace("\x00", "") documents = requests.get( f"{API_BASE}/documents/", headers=HEADERS, params={"book_id": BOOK_ID}, timeout=30, ) documents.raise_for_status() source_dir = Path("acme-coffee/source-documents") source_dir.mkdir(parents=True, exist_ok=True) for document in documents.json(): response = requests.get( f"{API_BASE}/documents/{document['id']}/download", headers=HEADERS, timeout=30, ) response.raise_for_status() download_url = response.json()["download_url"] file_response = requests.get(download_url, timeout=120) file_response.raise_for_status() destination = source_dir / safe_filename(document["original_filename"]) destination.write_bytes(file_response.content) ``` For many documents, `POST /documents/bulk-download` can return one ZIP. Its request includes `document_ids`, `book_id`, `book_name`, and an optional `with_watermark` flag. # Parse documents and get results Source: https://docs.lendpathway.com/cookbook/parse-and-poll A complete Python integration for submitting a deal, waiting for parsing, and fetching analytics. This guide builds the smallest useful Pathway integration in Python. It submits a deal package, waits for the asynchronous parse, and retrieves bank analytics. Use a webhook when your application already has a public callback endpoint. Use polling for local scripts, jobs, and the first version of an integration. ## Install the client ```bash theme={null} python -m pip install requests ``` Set the token in your environment: ```bash theme={null} export PATHWAY_API_TOKEN="pat_your_token_here" ``` The examples use this shared setup: ```python theme={null} import os from pathlib import Path import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = os.environ["PATHWAY_API_TOKEN"] session = requests.Session() session.headers["Authorization"] = f"Bearer {TOKEN}" ``` ## Submit the deal Send every file for one deal in the same multipart request. ```python theme={null} def submit_book( paths: list[Path], book_name: str, webhook_url: str | None = None, ) -> str: opened = [path.open("rb") for path in paths] try: files = [ ("files", (path.name, handle, "application/pdf")) for path, handle in zip(paths, opened) ] data = {"book_name": book_name} if webhook_url: data["webhook_url"] = webhook_url response = session.post( f"{API_BASE}/submit-book", files=files, data=data, timeout=120, ) response.raise_for_status() return response.json()["book_id"] finally: for handle in opened: handle.close() book_id = submit_book( paths=[ Path("jan_statement.pdf"), Path("feb_statement.pdf"), Path("credit_report.pdf"), Path("application.pdf"), ], book_name="Smith Auto Body", ) print("Submitted", book_id) ``` The response only confirms that Pathway accepted the asynchronous workflow. The new Book continues through upload, classification, and parsing after the request closes. ## Wait with polling Poll the Book every few seconds. Stop when the status reaches `completed`, `failed`, or `cancelled`, and put a timeout around the whole wait. ```python theme={null} import time class ParseFailed(RuntimeError): pass def wait_for_book( book_id: str, *, poll_every: float = 5, timeout: float = 15 * 60, ) -> dict: deadline = time.monotonic() + timeout while time.monotonic() < deadline: response = session.get( f"{API_BASE}/books/{book_id}", timeout=30, ) response.raise_for_status() book = response.json() status = book["parse_status"] message = book.get("parse_status_message") or "" print(f"[{status}] {message}") if status == "completed": return book if status in {"failed", "cancelled"}: raise ParseFailed(f"{status}: {message}") time.sleep(poll_every) raise TimeoutError(f"Book {book_id} did not finish within {timeout} seconds") book = wait_for_book(book_id) ``` Five seconds is a reasonable polling interval. Faster polling rarely makes the result arrive meaningfully sooner and uses the PAT's request budget. ## Fetch the result After a completed parse, request the output your workflow needs. ```python theme={null} def get_json(path: str) -> dict | list: response = session.get(f"{API_BASE}{path}", timeout=60) response.raise_for_status() return response.json() analytics = get_json(f"/books/{book_id}/analytics") print("True revenue:", analytics["true_revenue"]) print("Average daily balance:", analytics["average_daily_balance"]) print("Debt-to-income:", analytics["debt_to_income_ratio"]) print("Positions:", len(analytics["positions"])) ``` The useful result endpoints are: | Endpoint | Content | | - | - | | `GET /books/{id}` | Status and raw parser output for credit, tax, application, identity, and bank documents | | `GET /books/{id}/analytics` | Computed bank underwriting data | | `GET /books/{id}/statements` | Account-first statement history and daily balances | | `GET /books/{id}/tax-analytics` | Tax qualifying-income analysis | | `GET /books/{id}/csv-export` | Bank underwriting CSV | | `GET /artifacts/{id}/export?template_id=` | An Excel, PDF or HTML artifact from the gallery | Some Books contain no bank statements. In that case `/analytics` returns `400`, while the relevant raw credit, tax, application, or identity result can still be present in `book_meta`. ## Wait with a webhook A [webhook](https://en.wikipedia.org/wiki/Webhook) removes the polling loop. Add `webhook_url` to the submit request and expose a callback that accepts Pathway's completion payload. ```python theme={null} book_id = submit_book( paths=[Path("statement.pdf"), Path("application.pdf")], book_name="Smith Auto Body", webhook_url="https://example.com/webhooks/pathway", ) ``` The receiver can remain small. Confirm the stored status with an authenticated API request before starting downstream work. ```python theme={null} import os from typing import Literal import requests from fastapi import BackgroundTasks, FastAPI from pydantic import BaseModel app = FastAPI() API_BASE = "https://api.lendpathway.com/api" TOKEN = os.environ["PATHWAY_API_TOKEN"] class ParseWebhook(BaseModel): book_id: str status: Literal["completed", "failed", "cancelled"] book_url: str error: str | None = None def process_completed_book(book_id: str) -> None: headers = {"Authorization": f"Bearer {TOKEN}"} book_response = requests.get( f"{API_BASE}/books/{book_id}", headers=headers, timeout=30, ) book_response.raise_for_status() book = book_response.json() if book["parse_status"] != "completed": return analytics_response = requests.get( f"{API_BASE}/books/{book_id}/analytics", headers=headers, timeout=60, ) if analytics_response.status_code == 400: # A completed Book can contain only credit, tax, or application data. return analytics_response.raise_for_status() analytics = analytics_response.json() # Persist analytics or enqueue the next step in your own system. print(book["name"], analytics["true_revenue"]) @app.post("/webhooks/pathway", status_code=202) def receive_pathway_webhook( payload: ParseWebhook, background_tasks: BackgroundTasks, ): if payload.status == "completed": background_tasks.add_task(process_completed_book, payload.book_id) return {"accepted": True} ``` Pathway currently sends one unsigned webhook delivery. Keep the receiver idempotent and use the authenticated Book response as the final status. ## Complete polling script This version can be copied into one file and run directly. ```python theme={null} import os import time from pathlib import Path import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = os.environ["PATHWAY_API_TOKEN"] session = requests.Session() session.headers["Authorization"] = f"Bearer {TOKEN}" def submit_book(paths: list[Path], name: str) -> str: opened = [path.open("rb") for path in paths] try: response = session.post( f"{API_BASE}/submit-book", files=[ ("files", (path.name, handle, "application/pdf")) for path, handle in zip(paths, opened) ], data={"book_name": name}, timeout=120, ) response.raise_for_status() return response.json()["book_id"] finally: for handle in opened: handle.close() def wait_for_book(book_id: str, timeout: float = 900) -> dict: deadline = time.monotonic() + timeout while time.monotonic() < deadline: response = session.get(f"{API_BASE}/books/{book_id}", timeout=30) response.raise_for_status() book = response.json() print(book["parse_status"], book.get("parse_status_message") or "") if book["parse_status"] == "completed": return book if book["parse_status"] in {"failed", "cancelled"}: raise RuntimeError(book.get("parse_status_message") or book["parse_status"]) time.sleep(5) raise TimeoutError("Pathway parse timed out") book_id = submit_book( [Path("jan.pdf"), Path("feb.pdf"), Path("application.pdf")], "Smith Auto Body", ) wait_for_book(book_id) response = session.get(f"{API_BASE}/books/{book_id}/analytics", timeout=60) response.raise_for_status() analytics = response.json() print({ "book_id": book_id, "true_revenue": analytics["true_revenue"], "average_daily_balance": analytics["average_daily_balance"], "debt_to_income_ratio": analytics["debt_to_income_ratio"], "positions": len(analytics["positions"]), }) ``` Continue with [Working with analytics data](/cookbook/working-with-analytics) once this flow is returning completed Books. # Work with analytics Source: https://docs.lendpathway.com/cookbook/working-with-analytics Read cash flow, transactions, debt positions, and screening without rebuilding Pathway's calculations. `GET /books/{book_id}/analytics` is the main underwriting response for bank data. It contains Book totals, monthly account rows, enriched transactions, detected debt positions, payment schedules, counterparty clusters, and screening. The response is computed when you request it. Changes to tags, exclusions, organization settings, or screening rules appear on the next call. > [!NOTE] > > The complete typed contract is on the [Analytics endpoint page](/api-reference/endpoint/analytics#response-models). Keep that model beside your integration rather than recreating response fields from examples. ## Fetch and validate the response ```python theme={null} import os import requests API_BASE = "https://api.lendpathway.com/api" TOKEN = os.environ["PATHWAY_API_TOKEN"] BOOK_ID = "99cc93e6-1f3f-42b1-9fe4-ba5a95be9c78" response = requests.get( f"{API_BASE}/books/{BOOK_ID}/analytics", headers={"Authorization": f"Bearer {TOKEN}"}, timeout=60, ) response.raise_for_status() analytics = response.json() ``` If you copied the Pydantic contracts from the endpoint reference into `pathway_models.py`, validate at the boundary: ```python theme={null} from pathway_models import BookAnalytics analytics = BookAnalytics.model_validate(response.json()) print(analytics.true_revenue) ``` Validation catches a changed or unexpected payload before it moves into a credit decision, spreadsheet, or CRM field. ## Start with the Book totals The most commonly used fields are already calculated. ```python theme={null} summary = { "total_deposits": analytics["total_deposits"], "total_withdrawals": analytics["total_withdrawals"], "true_revenue": analytics["true_revenue"], "average_daily_balance": analytics["average_daily_balance"], "days_negative": analytics["days_negative_balance"], "loan_payments": analytics["total_loan_payments"], "debt_to_income_ratio": analytics["debt_to_income_ratio"], "active_mca_positions": analytics["num_active_mca_positions"], "missed_payments": analytics["num_missed_payments"], } ``` Do not recompute these values from raw `book_meta`. The analytics response has already applied the Book's excluded documents, accounts, positions, and revenue tags, along with organization-level business-day settings. ### Gross deposits and true revenue `total_deposits` includes every credit. It can contain transfers, loan proceeds, owner contributions, reversals, and operating revenue. `true_revenue` includes credits that survive the active revenue-exclusion rules. The exact tag set used for the request appears in `revenue_exclusion_tags`. ```python theme={null} print("Gross deposits", analytics["total_deposits"]) print("True revenue", analytics["true_revenue"]) print("Excluded tags", analytics["revenue_exclusion_tags"]) ``` ### Debt-to-income ratio Pathway returns `debt_to_income_ratio` as a percentage. A value of `18.4` means 18.4%. The value can be `null` when there is no qualifying revenue denominator. ```python theme={null} dti = analytics["debt_to_income_ratio"] if dti is None: print("DTI unavailable") else: print(f"DTI {dti:.1f}%") ``` ## Read statement periods `statements` is chronological bank data organized by statement period. Each period contains one or more account rows. ```python theme={null} for statement in analytics["statements"]: print( statement["statement_period"], statement["statement_start_date"], statement["statement_end_date"], ) for account in statement["accounts"]: print( account["account_id"], account["account_name"], account["true_revenue"], account["average_daily_balance"], ) ``` Banks sometimes issue separate PDFs for each account in the same month. Pathway folds those files into one statement period and lists every source in `document_ids`. ### Use the combined row for monthly trends The row with `account_id == 0` represents the included accounts together for that statement period: dollar figures are the combined cash position, and `days_negative_balance` is the sum of the accounts' negative days. ```python theme={null} monthly = [] for statement in analytics["statements"]: combined = next( account for account in statement["accounts"] if account["account_id"] == 0 ) monthly.append({ "period": statement["statement_period"], "deposits": combined["total_deposits"], "true_revenue": combined["true_revenue"], "average_daily_balance": combined["average_daily_balance"], "days_negative": combined["days_negative_balance"], "dti": combined["debt_to_income_ratio"], }) ``` Use individual rows when the decision needs account-level detail. Avoid summing the combined row together with its individual account rows because that counts the same activity twice. `average_statement_metrics` contains the average period row used by Pathway's tables and CSV export. ## Read transactions `merged_accounts` contains the normalized transaction history. It is keyed by account ID as a string. ```python theme={null} transactions = [ transaction for account in analytics["merged_accounts"].values() for transaction in account["transactions"] ] transactions.sort(key=lambda transaction: transaction["transaction_date"]) ``` Each transaction includes its bank description, direction, amount, running balance, cleaned tags, source document, and attached debt position when one exists. ### Find true revenue credits ```python theme={null} revenue_transactions = [ transaction for transaction in transactions if "true_revenue" in transaction.get("tag", []) ] for transaction in revenue_transactions[:20]: print( transaction["transaction_date"], transaction["description"], transaction["amount"], ) ``` ### Find loan payments Use the tags returned by `GET /parse/tags` when you need a complete dynamic tag registry. For a single response, position attachment is a clean way to isolate identified debt activity: ```python theme={null} position_payments = [ transaction for transaction in transactions if transaction["transaction_type"] == "debit" and transaction.get("position") is not None ] ``` ### Group by tag A transaction can carry several tags. Decide whether your output is multi-label before aggregating. ```python theme={null} from collections import defaultdict totals_by_tag = defaultdict(float) for transaction in transactions: for tag in transaction.get("tag", []): totals_by_tag[tag] += transaction["amount"] for tag, total in sorted(totals_by_tag.items()): print(tag, round(total, 2)) ``` The totals across tags will usually exceed deposits plus withdrawals because one transaction can contribute to more than one tag. ## Read debt positions Each object in `positions` represents one detected relationship with a lender or funder. ```python theme={null} for position in analytics["positions"]: print({ "name": position["funder_title"] or position["name"], "type": position["loan_type"], "status": position["status"], "funded": position["total_disbursements"], "paid": position["total_payments"], "daily_remit": position["daily_remit_burden"], "monthly_remit": position["monthly_remit_burden"], "holdback_pct": position["holdback_pct"], "misses": len(position["potential_missed_payments"]), "modifications": len(position["potential_modified_payments"]), }) ``` `status` is `just_funded`, `active`, or `closed`. The `episodes` tree gives the history behind that rollup: * An `initial` episode begins the observed relationship. * A `renewal` begins after earlier schedules have closed. * A `stack` begins while an earlier schedule is still active. * An `orphan` contains payments whose advance occurred before the available statement window. Payment schedules inside each episode include cadence, expected daily remittance, active state, inferred misses, and amount modifications. ```python theme={null} for position in analytics["positions"]: for episode in position["episodes"]: for schedule in episode["schedules"]: print( position["name"], episode["role"], schedule["frequency"], schedule["avg_amount"], schedule["state"], ) ``` ## Read counterparties `counterparty_clusters` groups similar transaction descriptions separately for credits and debits. ```python theme={null} top_credit_sources = sorted( ( cluster for cluster in analytics["counterparty_clusters"] if cluster["direction"] == "credit" ), key=lambda cluster: cluster["total"], reverse=True, ) for cluster in top_credit_sources[:10]: print(cluster["counterparty"], cluster["total"], cluster["count"]) ``` Use `transaction_ids` to trace any cluster back to the underlying activity in `merged_accounts`. ## Read screening When organization screening is enabled, the response includes the complete fact sheet and current result. ```python theme={null} result = analytics.get("screening_result") if result: print(result["result"]) for rule in result["resolved_rules"]: print( rule["result"], rule["reason"], rule["rule_after_substituting"], ) ``` `screening_metrics` contains the normalized values available to rules, including recent-month snapshots, recency measures, applicant facts, and payment-risk counts. Missing facts remain `null`. Screening is evaluated during the analytics request. A rule update affects the next response without reparsing the Book. ## Build an integration payload Keep the Pathway response available for audit and map only the fields the receiving system understands. ```python theme={null} def crm_payload(book: dict, analytics: dict) -> dict: screening = analytics.get("screening_result") return { "external_book_id": book["id"], "business_name": book["name"], "parse_status": book["parse_status"], "total_deposits": analytics["total_deposits"], "true_revenue": analytics["true_revenue"], "average_daily_balance": analytics["average_daily_balance"], "days_negative": analytics["days_negative_balance"], "debt_to_income_ratio": analytics["debt_to_income_ratio"], "active_mca_positions": analytics["num_active_mca_positions"], "monthly_mca_remit": analytics["total_mca_monthly_remit"], "screening_result": screening["result"] if screening else None, } ``` Store the Book ID with the destination record. It provides a stable path back to source documents, raw parser output, and refreshed analytics. # Welcome to LendPathway Source: https://docs.lendpathway.com/getting-started/index Document parsing and underwriting infrastructure for lending teams. LendPathway reads bank statements, credit reports, tax forms, and loan applications. It extracts transactions, tags them, reconciles balances, detects debt positions, and returns structured underwriting data. Everything lands in a [Book](/platform/books/books). ![Pathway](https://mintcdn.com/pathwaysystemsllc/Nhpq4JWFiJQFBUuC/getting-started/images/hero-light.png?fit=max\&auto=format\&n=Nhpq4JWFiJQFBUuC\&q=85\&s=9bb23fba3d27230dcc3dee1ddcfa776a) > [card] [What is a Book](/platform/books/books) > > Start here. One deal, one Book. > [card] [Bank Statements & ISO App](/bank-statements) > > Bank statements, transactions, debt positions, metrics, and spreadsheets. > [card] [Chat engine](/platform/chat-engine) > > An AI agent with a sandbox, scoped to your data. Ask, analyze, and build. > [card] [API](/api-reference/introduction) > > Submit documents, get structured data back. > [card] [Integrations](/platform/integrations) > > Gmail, Salesforce, Google Drive. Take a guided tour with your favorite AI ![ChatGPT](https://cdn.jsdelivr.net/npm/simple-icons@15.22.0/icons/openai.svg) ChatGPT [Open](https://chatgpt.com/?prompt=Read%20this%20overview%20of%20LendPathway%3A%0Ahttps%3A%2F%2Fdocs.lendpathway.com%2Fgetting-started%2Findex.md%0A%0AGive%20me%20a%20short%20tour%20of%20what%20the%20product%20can%20do%2C%20then%20ask%20what%20part%20of%20my%20lending%20workflow%20I%20want%20to%20improve.) ![Claude](https://cdn.jsdelivr.net/npm/simple-icons@15.22.0/icons/claude.svg) Claude [Open](https://claude.ai/new?q=Read%20this%20overview%20of%20LendPathway%3A%0Ahttps%3A%2F%2Fdocs.lendpathway.com%2Fgetting-started%2Findex.md%0A%0AGive%20me%20a%20short%20tour%20of%20what%20the%20product%20can%20do%2C%20then%20ask%20what%20part%20of%20my%20lending%20workflow%20I%20want%20to%20improve.) ![Google AI Mode](https://cdn.jsdelivr.net/npm/simple-icons@15.22.0/icons/googlegemini.svg) Google AI [Open](https://www.google.com/search?udm=50\&aep=11\&q=Read%20this%20overview%20of%20LendPathway%3A%0Ahttps%3A%2F%2Fdocs.lendpathway.com%2Fgetting-started%2Findex.md%0A%0AGive%20me%20a%20short%20tour%20of%20what%20the%20product%20can%20do%2C%20then%20ask%20what%20part%20of%20my%20lending%20workflow%20I%20want%20to%20improve.) # Quickstart Source: https://docs.lendpathway.com/getting-started/quickstart Get your account set up and parse your first deal. ## Sign in Go to [app.lendpathway.com](https://app.lendpathway.com) to create an account or sign in. Sign in with Google or Microsoft. ![Pathway login](https://mintcdn.com/pathwaysystemsllc/Nhpq4JWFiJQFBUuC/getting-started/images/login-light.png?fit=max\&auto=format\&n=Nhpq4JWFiJQFBUuC\&q=85\&s=4d6608ad8cad07bb530f5507ceb37da8) > [!NOTE] > > Sign in with Google or Microsoft only. Email/password login is not supported. ## Create your organization On first sign-in, enter your company name and phone number. Your organization is the shared workspace your whole team operates from. Invite teammates from **Settings** once you're in. ![Create organization](https://mintcdn.com/pathwaysystemsllc/Nhpq4JWFiJQFBUuC/getting-started/images/create-org-light.png?fit=max\&auto=format\&n=Nhpq4JWFiJQFBUuC\&q=85\&s=8fcc229a9601361f69842760a5703afa) > [!TIP] > > If you've been invited to an existing organization, accept the invite link from your email. You'll be added to that org without creating a new one. ## Next steps > [card] [Upload a book](/getting-started/quickstart#create-a-book) > > Create a book and upload your first set of documents. > [card] [Platform overview](/platform/parser) > > What Pathway can parse and what each document type produces. > [card] [API access](/api-reference/introduction) > > Integrate Pathway into your pipeline programmatically. # How Parsing Works Source: https://docs.lendpathway.com/how-parsing-works > When you a parse job is initiated, LendPathway runs a multi-step pipeline that turns raw PDFs into structured, analyzed financial data. This page explains exactly what happens at each step. ## **The Pipeline** Every parse follows this sequence: ### **1. Load Documents** All uploaded files are pulled from storage. Only **PDF files** are accepted — any other file type (images, spreadsheets, Word docs, etc.) is immediately marked as failed. ### **2. Classify Each Document** Each PDF is sent to an AI model that reads the document and identifies what kind of financial document it is. Classification runs **in parallel** — all PDFs are classified at the same time. The classifier can identify these document types: | Type | What it looks for | | :- | :- | | Bank Statement | Transactions, deposits, withdrawals, account balances | | Credit Report | Experian / Equifax / TransUnion, credit scores, tradelines | | Tax Form | IRS forms (1040, 1065, 1120, 1120-S, Schedule C, Schedule E, K-1, etc.) | | Loan Application | Application form for financing | | Receipt | Purchase receipt, business expense | | DecisionLogic | Report from [decisionlogic.com](http://decisionlogic.com) | | AR Report | Accounts receivable report | | Photo ID | Government-issued ID (driver's license, passport) | | Voided Check | Bank check showing account details | > [!WARNING] > > Documents that don't match any type are marked **Unsupported**. Of these, four have full parsing pipelines: **Bank Statement**, **Credit Report**, **Tax Form**, and **Loan Application**. The others (Receipt, Photo ID, Voided Check, etc.) are classified and stored but not parsed further. ### **3. Run Type-Specific Pipelines** Based on classification, LendPathway runs the appropriate parser for each document type — **in parallel**. If you upload a mix of bank statements, a credit report, and a loan application, all three pipelines run simultaneously. ![Screenshot2026 03 08at5 16 16AM](https://mintcdn.com/pathwaysystemsllc/SeWPxB1yNoBkn_3r/images/Screenshot2026-03-08at5.17.18AM.png?fit=max\&auto=format\&n=SeWPxB1yNoBkn_3r\&q=85\&s=8095560951be6216050c757a1c8b4fac) Document Classification *** ## **Bank Statement Pipeline** The bank statement pipeline is the most complex. Here's what happens inside it, step by step. ### **Step 1 — Account Metadata Extraction** The AI reads **all bank statement PDFs together** in a single call and extracts: * **Business identity** — business name, address, phone, tax ID * **Principals** — owner names, roles, addresses, phone numbers * **Account ledgers** — every distinct bank account across all documents (account name, account number, bank name, routing number) Each account is assigned a unique ID. This step establishes the map of accounts that the rest of the pipeline uses. If no bank accounts are found at all, the parse fails here. After this step, two things happen immediately: * The **book name** is updated to the extracted business name * **AI Deep Research** is kicked off in the background (more on this below) ### **Step 2 — Statement Metadata Extraction** For each individual PDF (in parallel), the AI extracts statement-level metadata: * Statement start and end dates * Starting and ending balances, per account * Which accounts appear in this specific document This is also where LendPathway figures out the date range for the book (e.g. "3 accounts, Jan 2024 to Dec 2024"). ### **Step 3 — Duplicate Detection** Only runs when there are 2 or more bank statement PDFs. The AI compares all statements and identifies **redundant documents** — complete duplicates or documents that are subsets of another (e.g. someone uploaded both a full 3-page statement and a 1-page summary of the same month). Redundant documents are marked as failed and removed before transaction extraction, preventing double-counted data. ### **Step 4 — Transaction Extraction** For each remaining statement (in parallel), the AI extracts every individual transaction: * Date * Description * Amount * Type (credit or debit) This is the most computationally intensive step. If a document is too large for a single extraction call (hits token limits), LendPathway automatically falls back to **chunked extraction** — pulling transactions in batches of \~100 at a time, up to 20 chunks, and merging the results. Each chunk receives context about where the previous chunk left off to avoid gaps. ### **Step 5 — Assembly** The extracted metadata and transactions are merged together into **ledgers**. A ledger is one account's data within one statement document — its starting balance, ending balance, and list of transactions. A single PDF can produce multiple ledgers if it contains multiple accounts. ### **Step 6 — Reconciliation** After assembly, LendPathway reconciles each ledger independently (all ledgers in parallel). This is the mathematical verification step. **The formula:** Starting Balance + Sum of All Credits − Sum of All Debits = Computed Ending Balance The computed ending balance is compared against the ending balance printed on the statement. If they match, the ledger is **reconciled** — meaning the extracted transactions are a mathematically faithful representation of the bank's own records. **If it doesn't reconcile on the first check**, LendPathway enters a retry loop (up to **3 attempts**). On each attempt, the AI receives: * The original PDF (ground truth) * The current list of extracted transactions as a CSV * The current discrepancy amount and direction (too high or too low) * If the statement has multiple accounts, a note about which account is being reconciled The AI compares the extracted transactions against the PDF and can make three types of corrections: 1. **Flip** a transaction's type — if a credit was mistakenly extracted as a debit (or vice versa), flip it 2. **Remove** a transaction — if a duplicate or nonexistent transaction was extracted 3. **Add** a missing transaction — if a transaction visible in the PDF wasn't extracted The AI is instructed to only make corrections it can clearly verify in the PDF. It will never fabricate transactions to force the math to work. If the extraction looks correct but the math still doesn't add up (e.g. the bank's own statement has an internal discrepancy), the AI gives up and explains why. After corrections are applied, the balance is rechecked. If it's within \$0.05, the ledger is reconciled. If not, the next attempt runs. After 3 failed attempts (or if the AI gives up), the ledger is marked **not reconciled** with an explanation of what went wrong. Reconciliation is **skipped entirely** if the starting or ending balance couldn't be extracted from the statement. ![Screenshot2026 03 08at4 34 52PM](https://mintcdn.com/pathwaysystemsllc/SeWPxB1yNoBkn_3r/images/Screenshot2026-03-08at4.35.38PM.png?fit=max\&auto=format\&n=SeWPxB1yNoBkn_3r\&q=85\&s=68945c40a7104218e56d2f04c6054028) ### **Step 7 — Tagging** After reconciliation, all transactions across all ledgers are assigned a global sequential ID (1, 2, 3, ...) and then tagged. Tagging runs three parallel processes simultaneously: **AI Loan Tagging** — The AI classifies transaction groups into debt/loan types: | Tag | Display Name | | :- | :- | | merchant\_cash\_advance | Merchant Cash Advance | | bank\_loan | Bank Loan | | factoring | Factoring | | credit | Credit Card | | lease | Lease | | auto | Auto Loan | | mortgage | Mortgage | | buy\_now\_pay\_later | Buy Now Pay Later | | debt\_collection | Debt Collection | Each transaction can have at most one loan tag. **AI Core Tagging** — The AI classifies transaction groups into activity categories. The AI receives business identity and account context to make accurate calls (e.g. knowing the business name helps identify internal transfers vs external payments): | Tag | Display Name | | :- | :- | | internal\_transfer | Internal Transfer | | owner\_transaction | Owner Transaction | | payment\_processor | Payment Processor | | bank\_fee | Bank Fee | | bank\_interest | Bank Interest | | reversal | Reversal | | cash | Cash | A transaction can have multiple core tags. **Deterministic Pattern Tagging** — Rule-based regex matching (no AI involved) that identifies: | Tag | Display Name | | :- | :- | | check | Check | | wire | Wire | | peer\_to\_peer | P2P | | stop\_payment | Stop Payment | | nsf | NSF | | overdraft | Overdraft | NSF and overdraft tags are only applied to debits. A transaction can have multiple deterministic tags. All three tag types are then merged onto each transaction: loan tag first (if any), then core tags, then deterministic tags. ### **Step 8 — Position Detection** Positions are detected from the loan-tagged transactions. There are two methods depending on loan type: **MCA Positions (AI-based)** — For Merchant Cash Advance transactions, an AI model matches transaction groups to known funders from your org's funder registry. Each position gets a funder name, loan type, and the set of transaction IDs that belong to it. Funders from your registry include metadata like favicon, contact info, and website. **Other Loan Positions (algorithmic)** — For all other loan types (Bank Loan, Factoring, Auto, Lease, Mortgage, Debt Collection, Buy Now Pay Later), positions are detected using text similarity clustering. Transaction descriptions are compared using TF-IDF (a text similarity algorithm) and grouped into clusters. Each cluster becomes a position. ### **Step 9 — Background Analysis** Two background tasks run during the pipeline and are collected at the end: **AI Deep Research** — Started immediately after account metadata extraction (Step 1). Uses the extracted business name, address, phone, and principal names to search the web and verify the business's legitimacy. Runs in the background during the entire rest of the pipeline. The result is the "AI Deep Research" card on the Bank Statements tab. **Tampering Analysis** — Started after reconciliation (Step 6). Examines the PDF metadata of every uploaded document — producer, creator application, creation dates, modification dates — and looks for signs of fabrication or programmatic generation (e.g. all PDFs having identical metadata, timestamps that are impossibly close together, or creation tools not typically used by banks). Runs in the background during tagging and position detection. The result is the "Tampering Analysis" card on the Bank Statements tab. Both tasks are best-effort. If either one fails, the parse still completes normally. *** ## **Key Concepts** **Book** — A container for one deal or submission. A book holds one or more uploaded documents and the parsed results. When you upload files and click Parse, you're parsing a book. **Document** — A single uploaded PDF file. Gets classified into a document type (bank statement, credit report, etc.) during parsing. **Ledger** — One bank account within one statement period. A single PDF can produce multiple ledgers if it contains data for multiple accounts. Each ledger has a starting balance, ending balance, and a list of transactions. Reconciliation happens at the ledger level — each ledger is independently verified. **Account** — A bank account that spans across statement periods. After parsing, LendPathway merges all ledgers for the same account into a single unified transaction history. If you upload 12 monthly statements for the same checking account, you get 12 ledgers but 1 account. **Position** — A detected debt relationship with a specific lender. For example, if the parser identifies regular payments to "Prime Funding LLC," it creates a position grouping those transactions together with a funder name, loan type, total disbursed, and total paid. **Tag** — A label applied to a transaction that identifies what type of activity it represents. Tags are applied automatically during parsing and can be manually edited afterward. A transaction can have multiple tags (e.g. a wire payment to a lender could be tagged both "Wire" and "Merchant Cash Advance"). **Reconciliation** — The process of mathematically verifying that extracted transactions match the bank's own records. Starting balance plus the sum of all transaction amounts should equal the ending balance. A reconciled ledger means the data is accurate to within \$0.05 of what the bank reported. # A Look Inside the Parser Source: https://docs.lendpathway.com/pathway-internals/white-paper Reliable agentic extraction, reconciliation, and tagging over financial documents. *By Armaan Kapoor* **Abstract.** The LendPathway parser compiles [arbitrary financial documents](/platform/parser/supported-documents) (PDFs, scans, images, CSVs, structured exports) into a verified, [account-centric data model](/api-reference/endpoint/books#bank-statement-analytics) per deal. Given a set of bank statements from different institutions covering different time periods, it resolves a canonical business identity and account structure, extracts every transaction into unified per-account ledgers, and reconciles each ledger against the bank's printed balances as proof of extraction correctness. A compression layer then reduces the transaction space into semantic groups optimized for parallel classification, where deterministic taggers, LLM classifiers, and a [stateful funder registry](/platform/funder-registry) that learns from each organization's corrections jointly tag every transaction and cluster [debt positions](/bank-statements#debt-summary) by lender. This produces the [synopsis](/bank-statements), [artifacts](/platform/artifacts), and [embed views](/api-reference/endpoint/embed) that underwriting teams work from. This paper covers the bank statement pipeline. The system runs in production across revenue-based financing, term lending, and structured credit, where teams run hundreds of thousands of deals through it. *** ## 1. Underwriting and documents A merchant applies for a cash advance and submits three months of bank statements, an ISO application, maybe a credit report through a broker portal. Or a borrower applies for an unsecured term loan and submits tax returns and a tri-merge credit pull. The broker receiving this package needs to underwrite it quickly, figure out which lenders will take it, price it, submit it. The lender receiving the same package needs to determine whether the business generates enough revenue to service the advance, how much existing debt is already pulling from the account, whether the borrower is stacking multiple positions, and whether the documents are authentic. This entire industry runs on documents because the data that matters lives at the transaction level. An underwriter is not looking at a revenue number. They are reading the ledger: which deposits are real revenue versus internal transfers, which debits are MCA payments versus operating expenses, how many lenders are already in the account, whether the daily balance can absorb another position. Plaid and DecisionLogic and bank portal exports give you structured access to some of this, but they compress it through their own schemas. They normalize descriptions, drop fields, aggregate where you need line items. The bank statement is what the bank actually said happened. It is the highest-resolution record of a business's financial activity, and for underwriting at this level of detail, anything coarser loses signal. The input is not clean. Bank statements arrive as PDFs, photographed pages, DecisionLogic exports, CSV and Excel downloads. Some cover a full calendar month, some are month-to-date pulls. Credit reports come as multi-bureau exports from LexisNexis or MyScoreIQ, single-bureau PDFs, raw API output. Tax returns are scanned 1040s mixed with K-1s from different entities across different years. A single deal submission can contain all of these in the same [email](/platform/inbox). Even if every bank adopted a standard export format tomorrow, the hard problem would remain. Transactions still need to be tagged. Counterparties still need to be resolved across accounts and time periods. Debt positions still need to be clustered and attributed to specific lenders. Revenue still needs to be separated from noise. The rest of this paper focuses on the bank statement pipeline, which is where identity resolution, reconciliation, transaction compression, and position detection all live. Credit reports, tax forms, and loan applications run through their own parallel parsers. ## 2. Account resolution The bank statement pipeline receives a set of documents. Different banks, different months, sometimes different accounts for the same business. Before extracting a single transaction, the system has to establish what it is looking at. All documents get read in a single pass. The output is one canonical object: the business entity, every distinct bank account visible across all statements, and the principals. ```python theme={null} class _AccountMetadata(BaseModel): business: Business account_ledgers: List[AccountLedger] humans: Optional[List[Human]] ``` Each account gets an integer ID. Primary checking is `account_id: 1`. The full set of IDs becomes the coordinate system for every downstream step. Extraction schemas constrain output to this set. If the universe contains accounts 1 and 2, the model cannot produce transactions for account 3. Duplicate IDs are a hard failure. The system assumes unique coordinates everywhere, so it enforces them at the source. ```json theme={null} { "account_ledgers": [ { "account_id": 1, "account_name": "Business Checking", "account_number": "****4521", "account_type": "checking", "bank_name": "Chase" }, { "account_id": 2, "account_name": "Business Savings", "account_number": "****8903", "account_type": "savings", "bank_name": "Chase" } ] } ``` The principal names and masked account numbers seed downstream classification. `TRANSFER TO CHK ****4521` checked against the account universe resolves to internal transfer. A Zelle payment matching a name in `humans` resolves to owner draw. These signals only exist because identity resolution ran first. A dedup pass compares documents on period, account, and balances. Exact duplicates get excluded before extraction. ## 3. Parallel extraction N documents spawn N extraction agents concurrently. Each receives the account universe and a single document. Output is transactions grouped by account ID: ```json theme={null} { "transactions_by_account_number": [ { "account_id": 1, "transactions": [ { "transaction_date": "2024-11-01", "description": "ACH Credit - Stripe Transfer", "amount": 8412.33, "transaction_type": "credit" }, { "transaction_date": "2024-11-01", "description": "ACH Debit - Greenline Funding", "amount": 2847.00, "transaction_type": "debit" } ] } ] } ``` Amount is constrained positive at the schema boundary via `abs()` validator. Sign is carried in `transaction_type`. VLMs frequently confuse sign when debits and credits share a column, when negatives are parenthetical, or when the minus sign is a PDF rendering artifact. Forcing the schema to separate magnitude from direction eliminates this error class structurally. The model cannot produce a negative amount. After extraction, each ledger is sorted by date, walked forward from the starting balance to compute [running daily balances](/bank-statements#table-columns), and assigned local transaction IDs. This is the first point where the data has traceable shape. When extraction exceeds the model's output token limit, the system falls back to sequential chunks of \~100 transactions with deliberate overlap. The model cannot reliably resume from a position in a visual document, so the overlap region gets deduped on `(date, amount, normalized_description, type)`. ## 4. Reconciliation Every bank statement prints a starting balance and an ending balance. Walk the starting balance forward through the extracted transactions and the result has to match. Most statements also print total credits, total debits, deposit count, withdrawal count. All checkable invariants. This runs per ledger, not per document. A single PDF with two accounts produces two independent reconciliation problems. Each ledger has its own balance equation, its own credit and debit totals, its own transaction counts to verify against. This matters because extraction errors are not random. The most common failure mode is the model assigning a transaction to the wrong account in a multi-account document. A transaction that lands in account 1 instead of account 2 breaks both ledgers simultaneously: one is too high, the other too low, by the same amount. Per-ledger reconciliation catches this because the error shows up as a symmetric discrepancy across two ledgers in the same document. The primary check: $B_{\text{computed}} = B_{\text{start}} + \sum_{i} \text{signed}(t_i)$ $|B_{\text{computed}} - B_{\text{end}}| \leq 0.05$ and the ledger is verified. > [!NOTE] > > The balance equation produces a precise error correction signal: the magnitude and direction of any discrepancy tell the correction agent exactly what to look for. Each correction attempt is a siloed agent that receives only the current ledger state, the discrepancy, and the source document. It cannot see or trust prior attempts, so no single extraction error propagates unchecked. The secondary signals (credit sum, debit sum, transaction counts) provide additional constraints when available. If the balance reconciles but the deposit count is off, something was double-extracted or missed. When verification fails, a correction agent receives a prompt that is a pure function of the current ledger state: every transaction as a CSV row with running balances, the discrepancy magnitude and direction ("computed ending is \$2,400 HIGHER than expected, net change is too positive"), and the source document. For multi-account documents it also receives the other accounts' names and masked numbers, because that cross-account swap is exactly what it needs to look for. The agent operates through a constrained DSL: ```python theme={null} class BalanceFix(BaseModel): flip_indices: list[int] # flip debit↔credit remove_indices: list[int] # remove row add_transactions: list[Transaction] # missing rows from PDF give_up: bool explanation: str ``` It cannot rewrite descriptions or fabricate amounts. Flip a transaction's direction, remove a row, or add one it finds in the source that extraction missed. After each correction the system recomputes the balance and checks again. If the source document is internally inconsistent (mid-cycle statements, month-to-date summaries where the bank's own numbers don't add up), the agent reports why and the data proceeds flagged but usable. After reconciliation, every transaction across all ledgers receives a book-global integer ID starting from 1. This overwrites local per-ledger IDs and becomes the permanent coordinate for [tags](/bank-statements#tag-reference-global), [positions](/bank-statements#debt-summary), and [analytics](/api-reference/endpoint/books#bank-statement-analytics). The data shape then inverts: parsing produces document-centric output (document → accounts → transactions), but analytics needs account-centric output (account → transactions across all documents, sorted by date). Both views are maintained in the [canonical output](#10-canonical-output). ## 5. Transaction compression A typical deal produces \~800 transactions. The classification models need to reason over all of them. The system compresses descriptions through normalization (strip confirmation codes, ACH metadata, mask tokens, numerics, single-letter fragments) and groups transactions with identical cleaned descriptions. 800 transactions collapse to \~120 groups. Two group indexes are built from this compressed space because the two classification tasks need different views of the same data. The **loan index** strips sponsor bank names (OptimumBank, Cross River Bank, Pathward, the originating banks MCA funders route ACH through, not the funders themselves), ACH rail metadata (`ORIG CO NAME`, `CO ENTRY DESCR`, `PPD`, `CCD`), routing stopwords. Card purchases excluded. The classification model sees "Greenline Funding" where the raw description reads "ACH DEBIT ORIG CO NAME GREENLINE FUNDING CO ENTRY DESCR PAYMENT PPD". The **core index** preserves what the loan index strips. Account numbers stay because internal transfer detection depends on matching `TRANSFER TO CHK ****4521` against the account universe from §2. Semantic words ("transfer", "fee", "wire") stay. Both serialize to markdown tables. Models return group IDs rather than transaction IDs. `[1, 3]` tags two groups covering potentially dozens of transactions. Inverted indexes expand group tags back to individual transactions. ## 6. Classification Transaction groups get classified through three parallel engines: deterministic regex patterns, a core LLM, and a loan LLM. The regex layer handles the unambiguous stuff. Checks, wires, P2P, stop payments. NSF and overdraft fees are amount-gated between $0.01 and $200 because a \$3,000 debit with "NSF" in the description is a returned payment, not a fee. French-Canadian banking terminology is covered (Desjardins statements use `chèque`, `dépôt chèque`, `virement interbancaire`, `fonds manquants`). The core LLM reads the core group index with the full business context from §2. This is where the identity resolution pays off. The model can resolve internal transfers by matching masked account numbers against the account universe, and owner draws by matching names against the principals list. It also picks up payment processors, bank fees, interest, reversals, cash. The loan LLM reads the loan group index with the organization's funder registry injected into the prompt. The registry contains every lender the organization has encountered, with their known transaction description aliases. This is how the system catches MCA positions, bank loans, factoring lines, and the rest. Tags merge in priority: loan tags are non-stackable (one per transaction), core and deterministic tags stack. A transaction can carry `["merchant_cash_advance", "wire"]` but never two loan types. These tags drive every [downstream metric](/api-reference/endpoint/books#bank-statement-analytics): [true revenue, DTI, loan summaries, NSF counts](/bank-statements#metrics). ## 7. Position detection Tags tell you what kind of activity a transaction is. Positions tell you who is on the other end. For MCAs, the LLM maps tagged groups to [funder registry](/platform/funder-registry) entities, and each position gets enriched with metadata from the registry. Positions surface in the [debt board](/bank-statements#debt-summary) organized by loan type, with per-position financials computed from their [transaction ID lists](/cookbook/working-with-analytics#debt-positions). The registry is stateful per organization. Matches and aliases persist across parses, and underwriter corrections feed back into subsequent runs. The system gets better the more the organization uses it. For other loan types, character n-gram TF-IDF clusters counterparty names at τ=0.45. "GREENLINE CAPITAL", "GREENLINE CAP", "ACH DEBIT GREENLINE" collapse into one position. ## 8. Tampering detection Runs in parallel with classification. PyMuPDF extracts structural signals from each PDF: `%%EOF` count, creator/producer mismatch, creation vs modification timestamps, font inventory. A scoring model weighs these alongside reconciliation outcomes. Reconciled with suspicious metadata is a different risk profile than failed reconciliation with signs of editing. ## 9. Structured generation and model routing Every model call across the pipeline passes through a single function accepting a Pydantic `response_schema`. The LLM returns JSON, the system validates, nonconformance is rejected. Field validators enforce constraints: `abs()` on amounts, date normalization, enum coercion. The schema bounds what the model can express. We route primarily through Gemini Flash with thinking budgets tuned per task. Reconciliation gets a high thinking budget because the model needs to reason about discrepancies against the source document. Bulk extraction gets zero thinking budget because throughput matters more. VLM performance on financial documents has improved substantially over the past year, particularly on dense tabular layouts. The remaining failure modes are edge cases in visual parsing: merged cells, absent running balance columns, degraded OCR on fine print. Reconciliation catches most of these downstream. ## 10. Canonical output ```python theme={null} class HolyMCAResult(BaseModel): business: Optional[Business] humans: Optional[List[Human]] account_ledgers: Optional[List[AccountLedger]] bank_statements: Optional[List[HolyBankStatement]] merged_accounts: Dict[str, MergedMCAAccount] positions: Optional[List[StoredPosition]] transaction_count: int web_research: Optional[str] tampering_analysis: Optional[Any] ``` Every downstream surface is a derived view of this object. [Analytics](/api-reference/endpoint/books#bank-statement-analytics) are computed at read time, never stored separately. The [synopsis](/bank-statements) renders metrics, the [artifact gallery](/platform/artifacts) generates formatted workbooks, [Salesforce sync](/platform/integrations#salesforce) pushes computed fields, the [chat agent](/platform/chat-engine) loads the full object into a sandboxed Python environment, and the [embed API](/api-reference/endpoint/embed) serves it to external clients building their own interfaces. > [!TIP] > > Tags are the sole user-editable input. Change a tag, exclude a document, reassign a position, and every one of these surfaces recomputes. The hard work happens once. Everything else is a view. The broker who submitted the deal and the lender who underwrites it are both looking at derived views of the same canonical object. *** We are looking forward to the future, and I am excited to continue building in the open. — Armaan # Artifact Gallery Source: https://docs.lendpathway.com/platform/artifacts Workbooks, reports and emails generated from parsed data. Pathway renders artifacts from a book's parsed data: Excel workbooks with live formulas, conditional formatting and clean layouts, PDF reports, and the HTML email the intake inbox sends back. Pick a template on a book's **Artifacts** tab and Pathway builds it from the book's current data, ready to send to a funder or attach to a file. Workbooks open in-browser, download as `.xlsx`, or open directly in Google Sheets. HTML artifacts open in the browser as a page. ## Credit report templates | Template | Description | | - | - | | **Full** | One tab per bureau with credit scores, revolving credit, income and DTI, derogatory summary, and an accounts table with In-Util / In-DTI toggles | | **Summary** | Single-sheet view: scores and account counts | | **LOC Scrub** | Public records and delinquencies, revolving utilization (50% / 25%), unsecured loans, and a DTI panel per bureau, plus a Combined tab listing every public record, delinquent account, revolving account and unsecured loan once with the bureaus that do not report it, and a DTI over the merged accounts | ## Bank statement templates | Template | Description | | - | - | | **Monthly Columns** | Monthly deposit totals, true revenue, DTI metrics, and payment frequency by month | | **Stack View** | One row per payment schedule across all MCA positions: funder, amount, frequency, remittance, and active status | | **Intake Email** | The reply the intake inbox sends once a submission is parsed: screening verdict, key metrics, the MCA stack, each account's statements, and red flags | ## Tax templates | Template | Description | | - | - | | **Qualifying Income** | W-2, Schedule C, and pass-through entity breakdowns with qualifying income calculations | ## Default templates Each organization stars a default Excel or PDF template per document type on the **Artifacts** page. The default opens first on a book's Artifacts tab, and the intake inbox attaches the bank statements default to its replies when that setting is on. Every intake reply uses the **Intake Email** template for its body; HTML templates cannot be starred as defaults. Users can pick any other template on an individual book. # Baselayer Source: https://docs.lendpathway.com/platform/baselayer Use Baselayer inside LendPathway to verify a business (KYB), then optionally order public-record checks such as liens and litigation. ## Core flow 1. **Enable** Baselayer for your organization under **Connectors → Integrations**. 2. **Verify** the business from a book under **Actions → Baselayer**, where the details are prefilled from the bank statements and application. 3. **Review** the result: the matched legal entity, its grades, and anything flagged. 4. **Order checks** when the deal needs them — liens, litigation and bankruptcy, the full docket for a specific case, and an owner check against the application's owners. 5. **Download the report** — Baselayer's PDF business report, with everything ordered on the business. > [!TIP] > > If you have used **Thomson Reuters CLEAR** or **LexisNexis**, the model is the same: confirm the entity, then pull public records against it. Every result stays on the book, and the PDF report is the file you attach to the deal. ## What you send Legal name and address are required. Everything else sharpens the match or unlocks a check: | Field | What it does | | - | - | | **Legal business name** | Matched against Secretary of State registrations in all 50 states. | | **Business address** | Street, city, ST ZIP. The registered address matches strongest. | | **TIN / EIN** | Verified live against IRS records for this name. | | **Website** | Compared with the website Baselayer finds for the entity. | | **Owners / officers** | Matched against filed officers, and searched for court cases alongside the business. Prefilled from the application and bank statements. | | **Also known as** | DBAs and trade names, so a business applying under its trade name still matches. | ## What you see ### Verification result * **Verified match** or **Review this match** — whether the entity Baselayer found is conclusive. * **Verification** and **Risk** grades, A–F, with the underlying 0–100 score. Verification is how strongly your inputs match a registered entity. Risk folds in liens, litigation, business age, industry and how many other lenders have pulled this business recently. * **Flags**, only when there is something to act on: a watchlist hit, an EIN that belongs to a different entity, an inactive or dissolved registration, an address that could not be validated, a virtual-office or PO-box address, or an IRS check that is still pending (Baselayer retries and the result updates on its own). * **Match checks** for name, address, TIN, owners and website. * **Filings, officers and addresses** — every Secretary of State registration with status and standing, every officer with their titles, every address on record with USPS flags, and the watchlists screened. * **Download report (PDF)** and **Open in Baselayer**. ![Completed Baselayer verification result on a book](https://mintcdn.com/pathwaysystemsllc/_16LkWfvCEHEaFiN/images/baselayer-04-light.png?fit=max\&auto=format\&n=_16LkWfvCEHEaFiN\&q=85\&s=fe6407063b49bdf471a31a91a5112269) Verification result If no registered business matches but the EIN validates with the IRS, the result says so: that is the usual pattern for a sole proprietorship or an unregistered DBA, not a typo. ### Lien search Runs against the business in its state of formation, and against every owner named on the verification in the owner's home state from the application (plus the business's state when it differs). Every UCC, tax and judgment filing comes back with its parties, dates, collateral and amendment history. LendPathway shows: * **Effective / lapsed / terminated** counts, using Baselayer's rule (active status and a lapse date in the future, or a recent continuation). * **First position** — the earliest effective UCC filing and who holds it, so stacking is visible at a glance. * Tax and judgment liens called out separately. * Each filing's secured party, filing number, dates, collateral and debtors; **View filing (PDF)** where the state provides the document. * Filings that matched an owner rather than the business, labeled with the owner's name. An owner's personal lien never counts as the business's first position. ### Litigation and bankruptcy Runs for the business **and the owners you named**, and returns each case with Baselayer's **risk level**, its bankruptcy chapter when applicable, open/closed status, and how confident the name match is. Cases are ordered highest risk first, and a case that matched an owner rather than the business is labeled as such. **Get case details** on any case pulls the full docket — filings, hearings, motions and orders — into the row. It bills separately, once per case. ### Owner checks Below the business result on a book, **Owner checks** verifies a person rather than the entity. Pick an owner named on the application or the bank statements (name, SSN, home address, date of birth and phone are prefilled from whichever document has them) and run the check. It screens OFAC and PEP lists, confirms the SSN against IRS records, and searches personal liens (in the home address's state), litigation and bankruptcy. The SSN is sent only when you run the check and is stored masked to its last four digits. Each owner check is ordered and billed separately from the business verification, and every check stays on the book. ![Optional Lien search and Litigation checks after verification](https://mintcdn.com/pathwaysystemsllc/_16LkWfvCEHEaFiN/images/baselayer-05-light.png?fit=max\&auto=format\&n=_16LkWfvCEHEaFiN\&q=85\&s=2d1cbb12991b84f5c02048693d5b1dd5) Lien and litigation checks > [!NOTE] > > Optional checks require a completed verification with a matched entity. They bill separately and only run when you click them. A green "none found" line always names what was searched. ## Enable Baselayer Baselayer is per organization. An org admin must turn it on before anyone can run searches. 1. Go to **Connectors → Integrations** in the sidebar. 2. Click the **Baselayer** card. 3. Turn **Enabled** on. 4. Optionally set a **Monthly budget** (dollar cap). Leave blank for no cap. 5. Click **Save**. ![Baselayer card on the Integrations page](https://mintcdn.com/pathwaysystemsllc/_16LkWfvCEHEaFiN/images/baselayer-01-light.png?fit=max\&auto=format\&n=_16LkWfvCEHEaFiN\&q=85\&s=d3f7abc2cfa7923414b61c041f7051f9) Baselayer on Integrations ![Baselayer settings modal with Enabled and Monthly budget](https://mintcdn.com/pathwaysystemsllc/_16LkWfvCEHEaFiN/images/baselayer-02-light.png?fit=max\&auto=format\&n=_16LkWfvCEHEaFiN\&q=85\&s=91b636b38cfdacd683904acc78eb2b7c) Enable Baselayer When Baselayer is on, it appears in the sidebar and under **Actions** on books. ## Verify a business from a book 1. Open a book and go to **Actions → Baselayer**. 2. Check the prefilled details against the application. **Reset to book details** brings back the prefill if you changed something. 3. Click **Verify business**. Results usually land in a few seconds. 4. Review the matched entity, then order checks as needed. ![Baselayer business verification form on a book](https://mintcdn.com/pathwaysystemsllc/_16LkWfvCEHEaFiN/images/baselayer-03-light.png?fit=max\&auto=format\&n=_16LkWfvCEHEaFiN\&q=85\&s=db02683749dbbda26384be04e328529d) Book Actions — Baselayer ## The Baselayer page **Baselayer** in the sidebar is the organization's ledger: every verification, lien search, litigation search, case-detail order and owner check anyone ran, newest first, with the date, the business or owner, who ran it, and what it cost at Baselayer's rates. Each row links to its book, and the list can be searched and filtered by date, action and who ran it. Two small cards above the list show the month's spend against the budget (with **Edit** to change the budget) and the month's spend by product. The **Enabled** switch at the top right turns Baselayer on or off. Every check runs from a book. ![Baselayer activity ledger with this month's spend](https://mintcdn.com/pathwaysystemsllc/_16LkWfvCEHEaFiN/images/baselayer-06-light.png?fit=max\&auto=format\&n=_16LkWfvCEHEaFiN\&q=85\&s=075dbf323f9a135f5cda610c4b6e65a2) The Baselayer page ## Reuse and billing * Verifying bills one KYB check. The same name and address on the same book reuses the completed result instead of billing again. * Lien, litigation and owner checks bill separately, when you run them. A lien search bills per state searched, for the business and each named owner; litigation and bankruptcy bill as two checks; an owner check bills as the sum of the screens it runs. * Baselayer is billed separately from conversions, at pay-as-you-go rates per check. An optional monthly budget blocks further spend when the cap is reached. * **Enabled** and **Monthly budget** can be changed anytime from Integrations or from the top of the Baselayer page. ## Troubleshooting | Issue | What to try | | - | - | | Baselayer missing from sidebar or Actions | Enable it under **Connectors → Integrations → Baselayer**. | | Verify stays pending | It refreshes on its own; if it stays pending for more than a minute, reload the page. | | "No registered business found — but the EIN checks out" | The applicant is likely a sole proprietor or unregistered DBA. Public-record checks need a registered entity; verify the LLC or corporation if one exists. | | Weak or unexpected match | Check the legal name spelling, use the registered address, and add the EIN, website and owner names. | | "The submitted address could not be validated" | Re-enter it as street, city, ST ZIP with no country or extra commas. | | Blocked by budget | Raise or clear the monthly budget under **Connectors → Integrations → Baselayer**. | # What is a Book Source: https://docs.lendpathway.com/platform/books/books A Book is a container for one deal's documents, parsed together. A Book holds all the documents for one deal. Upload the files, parse, and the Book populates with metrics, positions, scores, and income: ready to review, export, or push to your CRM. ## The Books page The [Books page](https://app.lendpathway.com/books) lists every Book in your org with its parse status, creation date, last parsed date, and who created it. Apply tags to organize your pipeline and filter by status, tag, user, or star. ![Books page](https://mintcdn.com/pathwaysystemsllc/K8w1pOrY1vthiO1C/platform/books/images/tag-book-light.png?fit=max\&auto=format\&n=K8w1pOrY1vthiO1C\&q=85\&s=e8a29098efb77697bd0efd294ca2c1ec) ## Create a Book From the Books page, click **New Book**. ![New Book button](https://mintcdn.com/pathwaysystemsllc/K8w1pOrY1vthiO1C/platform/books/images/new-book-light.png?fit=max\&auto=format\&n=K8w1pOrY1vthiO1C\&q=85\&s=1b7a9214e88d45f9efb28b98d0d4727e) ## Upload documents Inside the Book, click **Upload Documents** and add the files. ![Upload documents](https://mintcdn.com/pathwaysystemsllc/K8w1pOrY1vthiO1C/platform/books/images/upload-docs-light.png?fit=max\&auto=format\&n=K8w1pOrY1vthiO1C\&q=85\&s=08a98edb6aeeeded1e8f201416f072d6) ## Parse Click **Parse** to start processing. Parsing runs in the background. Leave the tab and come back when it finishes. ![Parse book](https://mintcdn.com/pathwaysystemsllc/K8w1pOrY1vthiO1C/platform/books/images/parse-books-light.png?fit=max\&auto=format\&n=K8w1pOrY1vthiO1C\&q=85\&s=96c419481c9348c2f279ee78a5d6a552) Click **Stop** to cancel a parse in progress. ![Stop parse](https://mintcdn.com/pathwaysystemsllc/K8w1pOrY1vthiO1C/platform/books/images/stop-light.png?fit=max\&auto=format\&n=K8w1pOrY1vthiO1C\&q=85\&s=b1b23ad6ec3b16297abf9d0835105320) Reparsing is rarely necessary. Transaction tags, debt positions, and exclusions are all configurable inside the Book without it. > [!WARNING] > > Reparsing replaces all existing data in the Book including transactions, loan positions, and analytics. This cannot be undone. ![Reparse book](https://mintcdn.com/pathwaysystemsllc/K8w1pOrY1vthiO1C/platform/books/images/reparse-light.png?fit=max\&auto=format\&n=K8w1pOrY1vthiO1C\&q=85\&s=ea040350265bb6f8794479ec6a211f8d) ## What happens next What Pathway extracts depends on what documents are in the Book. Click one of the cards below to see what happens after you parse. > [card] [Bank Statements](https://docs.lendpathway.com/bank-statements) > > Bank statements, transactions, debt positions, metrics, tampering analysis, and spreadsheets. # Chat engine Source: https://docs.lendpathway.com/platform/chat-engine An agent with a compute sandbox, connected to your data. > Every Book in Pathway has its own AI agent, Jack. It runs in a Linux sandbox with Python, a filesystem, and network access, and it works with your data using your exact permissions. This page explains how it works, from the context it starts with to the loop it runs. ![The Pathway chat engine](https://mintcdn.com/pathwaysystemsllc/JKS0WdKqMCy_u6pZ/platform/chat-engine-images/coverage.png?fit=max\&auto=format\&n=JKS0WdKqMCy_u6pZ\&q=85\&s=ee406fdc38995ae2119ca759231549b7) Jack querying Books across a deal, rendered inline in the chat The parser turns documents into a structured Book. Jack is how you act on that structure. Ask a question across the data, build a chart or a spreadsheet, pull in an email, reconcile two sources, or run an analysis no fixed report covers. The whole design follows from one decision: give the agent the same data access as the user, then give it a real computer. Scoped access keeps it safe. The computer makes it capable. Everything else on this page is detail underneath those two ideas. ## Using the chat Open a new chat or any existing one. Three controls sit around the composer: what the agent can reach, which model runs it, and how to find past chats. ### Connectors The **+** button opens the connector menu. Each toggle grants the agent one capability for this chat, and grants are per chat, so the same agent can be wired differently each time. Attach Books and it starts on those deals; add Gmail and it can read your inbox. The Pathway API is on by default, so the agent can already read across everything you can access. Turning a connector on does two things: it hands the agent the tools for that surface and adds the instructions for using it to the agent's context. Keep the set tight. The agent works best when it carries only what the task needs. ![Connector menu on the composer](https://mintcdn.com/pathwaysystemsllc/JKS0WdKqMCy_u6pZ/platform/chat-engine-images/connectors.png?fit=max\&auto=format\&n=JKS0WdKqMCy_u6pZ\&q=85\&s=358766f98d6b4a5a89610543eefe6c24) | Toggle | What it gives the agent | | :- | :- | | **Attach a file** | Upload a CSV, PDF, image, or spreadsheet into the chat for the agent to read | | **Books** | Scope the chat to one or more Books so the agent reads their parsed data and analytics | | **Gmail** | Read your connected inbox (read-only), plus the approval-gated `send_email` tool | | **Salesforce** | Query the org's connected Salesforce with read-only SOQL | | **LendSaaS** | Read the org's connected LendSaaS (read-only). On in every chat that reads Pathway, for members and admins, once an admin connects LendSaaS; there is no toggle of its own | | **Slack** | Post messages to the org's connected Slack channels, each one after you approve it | | **Pathway API** | Read-only access to Pathway: Books, their metrics and analytics, documents, intake email, funders, screening rules, and settings. On by default | | **Image Gen** | Generate images from a prompt | | **Widgets** | Draw an interactive chart or table in the chat | > [!NOTE] > > Connectors map directly to the context the agent receives. Each one you enable appends its instructions to the system prompt, which is why a focused set of toggles keeps the agent sharp. See [What the model sees](#what-the-model-sees). ### Chatting about a Book Open a chat from inside a Book and that Book is attached automatically. The agent starts scoped to the deal in front of you, so you can ask about it right away. ![Chat panel open inside a Book](https://mintcdn.com/pathwaysystemsllc/JKS0WdKqMCy_u6pZ/platform/chat-engine-images/chat-w-book.png?fit=max\&auto=format\&n=JKS0WdKqMCy_u6pZ\&q=85\&s=7c0fd80aa76750718bcc5977a8ff822b) You can also attach Books to any chat. Open **Books** in the connector menu, search, and check the ones you want. Pull in several at once to compare deals or ask across a set. ![Searching and attaching Books to a chat](https://mintcdn.com/pathwaysystemsllc/JKS0WdKqMCy_u6pZ/platform/chat-engine-images/add-books-to-chat.png?fit=max\&auto=format\&n=JKS0WdKqMCy_u6pZ\&q=85\&s=4c99c7a6d35bd1a6a397d76994ee06e6) > [!NOTE] > > Inline `@` references to pull a Book into the middle of a message are coming soon. ### Model The model selector sets which model runs the chat and how hard it thinks. New chats start on **GPT-6.1 Terra** at medium effort. You can switch model or effort at any point in a chat. | Provider | Models | | :- | :- | | **OpenAI** | GPT-6 Luna, GPT-6.1 Terra (default), GPT-6.1 Sol, GPT-6 Astra | | **Google** | Gemini 3.5 Flash-Lite, Gemini 3.7 Flash, Gemini 3.8 Flash, Gemini 3.1 Pro | Higher effort gives the model more time to reason before it answers. Use a lighter model for quick questions and a stronger one, or more effort, for multi-step analysis. ### Find past chats Open the **New Chat** dropdown to search and reopen earlier chats. The search box filters your history by title. ![Searching past chats](https://mintcdn.com/pathwaysystemsllc/JKS0WdKqMCy_u6pZ/platform/chat-engine-images/search_chats.png?fit=max\&auto=format\&n=JKS0WdKqMCy_u6pZ\&q=85\&s=bed0726e13a50339f200c17fa154ef3d) ## What you can do > [card] Ask about a Book > > Total deposits, true revenue, debt-to-income, a single transaction, a counterparty breakdown. The agent computes from the source data, not from a summary. > [card] Build charts and reports > > Ask for a revenue trend, a cash flow heatmap, a custom Excel export, or an HTML report. The output renders inline in the chat. > [card] Work with email > > Connect Gmail and the agent can search the inbox, read threads, download attachments, and compare them against Book data. Sending requires your approval. > [card] Attach files > > Drop in a CSV, PDF, image, or spreadsheet. The agent reads it, parses it, and cross-references it against the Book. > [!NOTE] > > Chats don't have to be attached to a Book. A standalone chat gets the same sandbox and tools, just without a Book to read from. Use them for general computation or analysis. ## How it works Three pieces make up the engine. **1. Scoped access** The agent reads only what the current user can read. Its permissions are the user's permissions. **2. A sandbox** A Linux workspace where the agent runs code, writes files, and keeps its working memory. **3. A rendering layer** Any file the agent produces can be saved as an artifact and shown back in the chat. A turn runs as a loop over those pieces. You send a message, the model thinks, calls a tool, reads the result, and repeats until it has an answer. ```mermaid theme={null} flowchart LR U([You]) --> M(Model) subgraph loop [agent loop] direction LR M -->|tool call| T(Run tool) T -->|result| M end M -->|done| R([Answer]) classDef endpoint fill:#18181B,stroke:#18181B,color:#fff,rx:8,ry:8; classDef node fill:#F7F5F3,stroke:#D4D4D8,color:#18181B,rx:8,ry:8; class U,R endpoint; class M,T node; style loop fill:none,stroke:#D4D4D8,stroke-dasharray:4 4,color:#71717A; ``` A tool call executes, mostly against the sandbox, its result feeds back in, and the model decides what to do next. The loop continues until the model responds with text only. A turn may run for up to an hour and 200 rounds of tool calls; for a job too big for one turn, the agent finishes the most useful part and tells you what is left. No single tool call runs longer than four minutes; a longer job runs in the background while the agent keeps working, and the agent is told when it ends. If you stop a reply, it keeps what it had written and is marked **Stopped by user**; a tool call that had already run keeps its result. If the server restarts during a reply, the reply ends as interrupted within about half a minute, and you can send again. A whole chat may use up to 10,000 credits, and can grow only as long as the model can read: past that it says so and you start a new chat. The usage ring beside the send button shows how much it has used; at the limit, start a new chat. Text and tool calls stream to the screen as they happen, and because the filesystem persists across the whole turn, each step builds on the last. Reads that don't depend on each other run at the same time. The rest of this page walks through the parts: the context the model starts with, the sandbox it works in, the tools it holds, and how it reaches your data. ## What the model sees Before any tool runs, the backend assembles the context for the turn. It is built fresh each time, in a fixed order. **1. Preamble** The current date and time, and a line identifying the user and org by name and ID. This grounds the agent in who it is acting for. It comes first on Gemini models, and last on GPT models so the rest of the prompt can be cached. **2. Base instructions** The core system prompt: how to use the sandbox, the tool conventions, and the rules for sharing files and computing instead of guessing. **3. Skills index** One line per skill, name and description. The full text is pulled on demand with `read_skill`. **4. Capability sections** A section is appended for each capability the chat has enabled. Each one teaches the agent how to use that surface. **5. Conversation history** Every prior message, tool call, and tool result, in order, so the agent has the full thread. The capability sections are the important part. A chat only carries instructions for what it can actually do, which keeps the prompt focused and the agent reliable. | Capability | What gets injected | | :- | :- | | Pathway API | How Pathway works (Books, parses, analytics, facts, screening, intake), the Python client for reading it, the name of every fact, and every read the agent's token can make | | Gmail | How to read the inbox, Gmail search syntax, and the approval-gated `send_email` tool | | Salesforce | How to run read-only SOQL with `query_salesforce` and page large results into the sandbox with `export_salesforce_to_sandbox` | | LendSaaS | How a LendSaaS lead relates to a Pathway Book, how to read LendSaaS, and every read available | | Slack | The connected channels and the `post_to_slack` block format | | Image generation | The `generate_image` tool | | Widgets | How to write a widget, and how it should look | The base instructions and skills index are always present. The rows above are added only when that capability is on for the chat. The result is that two chats can hold the same agent but see different context: a Book chat with Gmail connected gets the API and Gmail sections; a standalone chat with neither gets just the base. > [!NOTE] > > The assembled prompt is sent at the start of each turn, followed by the conversation history. The list of reads and the list of facts are generated from the API itself, so the agent's picture of Pathway matches what the API serves. ## The sandbox Each chat gets a fresh sandbox, created from a cached snapshot in seconds. It runs Amazon Linux with Python 3.13 and full `sudo`. `pandas`, `numpy`, `matplotlib`, `seaborn`, `openpyxl`, `xlsxwriter`, `scipy`, `tabulate`, `duckdb`, and `plotly` are pre-installed. Anything else installs with `pip`, and system packages install with `dnf`. The filesystem is rooted at `/tmp/`, and the network is open. Three things are placed in the sandbox before the first message: | Path | Contents | | :- | :- | | `/tmp/.api_token` | A read-only API token for the current user, new for each reply. The agent uses it to read Pathway and your Gmail | | `pathway_api` | A small Python client for the Pathway API. It signs requests with the token, pages through lists, and waits when the API asks it to slow down | | `/tmp/uploads/` | Files the user attached to the conversation | Everything else, the agent creates: scripts, query results, charts, spreadsheets, and exports all land under `/tmp/`. Book data is not dumped to disk up front. The agent reads it live through the API when it needs it, which keeps the workspace small and the data current. Sandboxes are ephemeral. One lasts 45 minutes, and longer while a reply is running in it. When it times out between messages, a new one is created from the snapshot, your uploads are restored, and the conversation continues. Files the agent made in the old sandbox are not carried over, so anything worth keeping is saved to the chat as an artifact. > [!NOTE] > > The first sandbox on the platform bootstraps the package set and takes a snapshot. The snapshot is cached in Redis with a 29-day TTL and refreshed before it expires, so every later sandbox starts from it. ## The filesystem is the memory The agent does not pass data between steps through a message protocol. It writes files and reads them back. The filesystem is its working memory. It pulls a Book's analytics from the API and saves the response to a file. It downloads a document and opens it with `view`. It writes an intermediate result and finds it again later with `ls`, `cat`, `grep`, or a script. State that matters is on disk, not held in the prompt. This is why cross-domain work needs no special integration. Asked to compare bank deposits against invoices from email, the agent: **1. Pulls the invoices** Searches your Gmail for the thread, then downloads the attachments to the sandbox. **2. Pulls the Book** Fetches analytics from the Pathway API and saves the response to a file. **3. Writes one script** A Python script reads both sets of files and produces the comparison. The email, the PDF, the parsed ledger, and the script all end up as files in the same namespace. Tools compose because they share the filesystem, the same way shell commands compose because they share stdio. ## Tools The core tools are built on two primitives: the shell and the filesystem. > [accordion] bash — run any shell command > > The primary tool. Runs scripts, installs packages with `pip` or `dnf`, calls endpoints with `curl`, pipes output. Each call is a new shell that starts in the directory the last one ended in. A command is stopped after two minutes unless the agent asks for longer, up to four, and the row counts up to that limit while it runs. A command stopped at its limit is marked **Timed out**. For a longer job, the agent starts it in the background and waits for it or keeps working. Background jobs are listed beside the chat's menu with their latest output; you can stop one there, and the agent is told you stopped it. Output comes back whole up to 2,000 lines or 50 KB; past that the agent gets the end of it and a file holding all of it, so nothing is lost. > [accordion] write — create or overwrite a file > > Writes content to a path, creating parent directories as needed. The content is written exactly as given, so nothing needs shell escaping. > [accordion] edit — exact string replacement > > Replaces a known string in an existing file. Used to revise a script or file in place after the agent has read it. > [accordion] view — read a file > > Reads a file. Text comes back with line numbers. Images and PDFs are rendered into the model's visual context, so the agent can actually see them. For a long PDF it can ask for a range of pages. > [accordion] save\_artifact — publish a file to the chat > > Reads a file from the sandbox and uploads it to permanent storage. The file appears in the chat as a card, right where the agent saved it, and you open it from there: images and PDFs in a viewer, HTML in a sandboxed frame, Excel as a live Office Online preview, everything else as a download. The tool also returns a permanent URL for use outside the chat, such as in an email or a Slack message. Two of these serve different readers. `save_artifact` is for the user: a file card in the chat. `view` is for the agent: bytes in the context window for visual reasoning. That second one closes the loop. The agent can write a script, generate a chart or spreadsheet, `view` the result, fix the script, and run it again before it ever responds. ## Skills A skill is a written set of instructions for a task the agent does often: generating a PDF with Typst, extracting tables from a scanned statement, doing web research. Skills keep the agent reliable on hard tasks without bloating its context. Each skill appears in the system prompt as a single line: a name and a short description. The full instructions stay out of context until the agent decides it needs them, then it loads them with `read_skill`. ```text theme={null} read_skill("pdf_generation") → full Typst instructions, examples, and tips ``` This is the same lazy-loading idea as the filesystem. The agent carries a small index of what it can do, and pulls the detail on demand. Skills today cover PDF generation, table extraction from PDFs, web research, and reading LinkedIn posts. For questions about Pathway itself, the agent reads these docs directly. ## Extending the agent with code The agent does not need a custom plugin for every system. It has a real computer, so reaching something new is usually just code. * **Any API**: the agent can `curl` an endpoint or `pip install` a client and call it from Python. Anything with an HTTP interface, including MCP servers, is reachable from the sandbox. * **Reusable instructions**: drop a Markdown file or a Python snippet into the Book, and the agent reads it like any other file. A documented procedure becomes something the agent can follow; a helper script becomes something it can run. * **New packages and tools**: `pip install` for Python, `sudo dnf install` for system packages. If a task needs a library that isn't preinstalled, the agent installs it. The point is that capability is not gated behind integration work. The sandbox is a general computer with your data in it, and most "can it do X" questions reduce to "can you do X with code," where the answer is usually yes. ## Scoped platform access Every reply gets its own read-only API token for the current user, in the organization they are working in, written to `/tmp/.api_token`. It lasts as long as the reply, which can run for up to an hour, and is deleted when the reply ends. It lets the agent call Pathway's own APIs under the user's access control: Books, documents, analytics, funders, screening settings, intake email, and organization data. Reading your Gmail uses the same token. This is how the agent reasons across many Books without loading the whole organization into the prompt. It asks the Books list for the facts it needs, lets the server filter and sort, and runs Python over the result. See [Book data](#book-data). > [!WARNING] > > The token is read-only. Writes return `403`, and no token outlives its reply. The agent can analyze your data but cannot change it. When you ask for a change, it tells you where in the app to make it. ## Web search On GPT models, the agent searches the web when a question needs something current or outside your data: news, rates, a company, a regulation. Each search shows as a step with its query, and opens to the pages it read. The answer cites what it used as links to those pages. Searches count toward the chat's credits. Gemini models do not search. ## LendSaaS When your organization has connected LendSaaS, the agent can read it in every chat: leads, offers, underwriting status and history, stips, funding, payments, fees, syndication and more. It can answer questions that need both systems, such as what was offered on the deals whose statements showed falling revenue, joining a Book to its lead by the lead's id. Access is read-only, enforced in three places: * The agent calls a Pathway proxy, not LendSaaS. The proxy only accepts `GET` requests. * The proxy forwards only the reads in LendSaaS's own read-only API. Any other address, including every part of LendSaaS's write API, is refused before anything is sent. * The agent's token is read-only, so Pathway's own LendSaaS actions (create a deal, push worksheets, change a status) refuse it too. Your LendSaaS API key stays on Pathway's servers and never enters the sandbox. The agent can read what your LendSaaS key can read, for members and admins. Guests cannot see what connected systems hold, in chat or in the app: no LendSaaS leads, Salesforce opportunities or Gmail through the agent. ## Gmail When you connect Gmail, the agent reads your inbox through a read-only proxy, using the same API token. The proxy only accepts `GET` requests, so reading is read-only by design. Any Gmail read works through it: search messages, fetch a message or thread, list labels, download an attachment. ```python theme={null} from pathway_api import each, get GMAIL = "/api/google-inbox/proxy" # Search, then read the headers of each match, several at a time found = get(f"{GMAIL}/messages", q="from:john subject:invoice", maxResults=10) ids = [message["id"] for message in found.get("messages", [])] details, errors = each( lambda id: get(f"{GMAIL}/messages/{id}", format="metadata", metadataHeaders=["From", "Subject", "Date"]), ids, ) ``` This is the pattern throughout: email is not a bespoke set of tools, it is an HTTP surface the agent reaches with code. It searches, reads the threads that matter, downloads attachments to the sandbox, and processes them with the core tools. A CSV gets loaded into `pandas`, a PDF gets inspected with `view`, an invoice image gets read visually by the model. Sending is the one exception. It runs through the `send_email` tool, which composes a message and attaches sandbox files, and the user must approve it before it goes out. > [!WARNING] > > Reading is read-only through the proxy. Sending requires explicit user approval on each email. ## Book data The agent reads Books from the Pathway API at three depths, and picks the lightest one that answers the question. > [tab] Metrics across Books > > Every parsed Book saves its **metrics**: about 290 named facts (revenue, balances, debt, the business, its owners, the application, the selected offer) and its screening verdict. These are the same facts screening rules, contracts, and the Books table use. `GET /api/books/` returns the facts a request names, and filters and sorts on any of them, so a question over thousands of Books is one request: > > ```python theme={null} > from pathway_api import books > > books( > fields=["business_name", "business_state", "avg_monthly_revenue", "iso_app_primary_owner_name"], > avg_monthly_revenue_min=50000, > business_state=["TX", "ON"], > sort_by="avg_monthly_revenue", > sort_order="desc", > ) > ``` > [tab] Computed analytics > > `GET /api/books/{id}/analytics` returns one Book in full: total deposits, true revenue, average daily balance, days negative, NSF and overdraft counts, debt-to-income ratio, per-statement breakdowns by account, positions with their payment schedules, counterparty clusters, and every transaction with its tags. It is computed fresh on each read. > [tab] Raw parser output > > `GET /api/books/{id}` returns the Book including `book_meta`: everything the parser extracted, including what has no metrics, such as the full credit report, tax returns, identity documents, web research, and tampering analysis. Saved metrics are written when a Book is parsed, when it is opened, and when an admin refreshes them, so after a settings change they can trail the live analytics until then. Social security numbers are never part of them. When the agent mentions a Book in its reply, it links it. Click the link to open the Book over the conversation. The Book overview tab, the Salesforce sync, and the spreadsheet generator all read from this same data. The agent reads it too, with the user's permissions. It can answer a metric question directly, or go further: cross-reference transactions across accounts, build a visualization, run a regression, or produce a report in a format the structured UI does not offer. Tags are the single input that everything downstream derives from. When you re-tag a transaction, marking a deposit as an internal transfer or assigning a payment to a position, the analytics recompute. The agent reads the updated numbers on its next call, the spreadsheets regenerate, and the Salesforce metrics update. > [!NOTE] > > The parser owns the structured Book. The agent works on top of it. It does not replace deterministic parsing, reconciliation, or analytics. It gives you a way to ask new questions and produce new artifacts without waiting for a new product workflow. ## Widgets With **Widgets** on, the agent can draw an interactive React component in the chat: a chart you can hover, a table you can sort, a small calculator. It uses the app's own theme, so it matches light and dark mode. A widget runs in your browser in a sandboxed frame with no network access. It cannot call the Pathway API and it never holds a token. The agent reads and computes in its sandbox first, then writes the result into the widget, so a widget is a picture of the data at the moment it was made. For the full data behind one, ask for a file. ## Artifacts and the asset proxy Every file in the platform lives in S3 and is served through one endpoint: `/api/assets/{s3_key}`. The key holds an unguessable UUID, so the endpoint needs no separate login. It signs a short-lived URL and returns a redirect. The frontend receives a URL, checks the mime type, and renders the matching preview: images inline, PDFs in a viewer, HTML in a sandboxed iframe, Excel in Office Online, everything else as a download link. It does not distinguish between a chart the agent just made and a spreadsheet the parser produced. Both are just files behind the same proxy. > [!NOTE] > > For Excel files, adding `?embed=office` returns a fresh Office Online embed URL instead of a redirect. This powers the interactive spreadsheet previews in chat, in the Book's spreadsheet tab, and in the embed API. ## State Two things hold the state of a chat: the sandbox filesystem and the conversation history. Files on disk, messages in the database. That is the whole system. A shell, a filesystem, and two additions on top: `save_artifact` to publish a file, and `view` to let the agent see one. Simple primitives that compose into the work. # Funder Registry Source: https://docs.lendpathway.com/platform/funder-registry A per-organization knowledge base of lenders, MCA funders, and their transaction description aliases. ## Overview The funder registry is a persistent, org-scoped directory of every lender and funder your organization has encountered. Each entry carries metadata (contact info, type, states served) and, critically, a list of **transaction description aliases** — the strings that appear in bank statement ACH descriptions when that funder pulls or pushes money. When the parser runs, the registry is injected into the loan classification and position detection prompts. The LLM uses the aliases to match transaction groups to known funders, even when the raw description is buried under sponsor bank names and ACH rail metadata. A transaction reading `ACH DEBIT ORIG CO NAME GREENLINE FUNDING CO ENTRY DESCR PAYMENT PPD` gets resolved to "Greenline Funding" because the registry carries that alias. *** ## How it works **Two-tier initialization.** Pathway ships a set of global default funders (the major MCA companies, common lenders). When your organization first accesses the registry, these defaults are atomically copied into your org's own namespace. From that point forward, your copy is independent — you can add funders, remove ones you'll never see, and customize aliases without affecting anyone else. **Prompt injection.** During classification, the registry serializes into a reference table inside the LLM prompt: ``` funder_id, funder_name, funder_aliases 1, Greenline Funding, ['GREENLINE FUNDING', 'GREENLINE CAP', 'GRN FUNDING'] 2, Libertas Funding, ['LIBERTAS', 'LIBERTAS FUNDING LLC'] ... ``` The model returns funder IDs rather than free-text names. Each matched position gets enriched with the full funder record — contact info, website, type — so the [debt board](/bank-statements#debt-summary) can display it without a second lookup. **Corrections feed forward.** When an underwriter reassigns a position to a different funder or adds a new alias, that correction lives in the registry for every subsequent parse. The system does not need to re-learn what it has already been told. Over time, each organization's registry converges toward a complete map of the funders they actually encounter. *** ## Managing funders Access the funder directory from your organization settings, or through the embeddable [funder directory](/api-reference/endpoint/embed#embed-routes) view. Each funder entry supports: | Field | Purpose | | - | - | | **Title** | Display name (e.g. "Greenline Funding") | | **Aliases** | Transaction description strings the parser should match against | | **Type** | Lender, MCA funder, factoring company, debt consolidator, ISO/broker, or bank | | **Contact** | Name, email, phone, address — surfaces on position cards in the debt board | | **States served** | Geographic coverage, useful when submitting deals | | **Rank** | Sort order in your directory | You can: * **Add** funders your org works with that aren't in the defaults * **Edit** aliases when you encounter a new description variant for a known funder * **Delete** funders you'll never see * **Reset** to global defaults if needed *** ## API Funder management is available through the API for organizations that want to sync their registry programmatically. ``` GET /funders # List all funders for your org GET /funders/:id # Get a single funder POST /funders # Create a new funder PATCH /funders/:id # Update funder metadata or aliases DELETE /funders/:id # Remove a funder POST /funders/reset # Reset to global defaults ``` The `transaction_description_aliases` array in `funder_meta` is the field that drives classification. Adding an alias here is the most direct way to teach the parser about a new description variant. # Inbox Source: https://docs.lendpathway.com/platform/inbox Receive deal submissions by email. Pathway creates and parses the book automatically. When someone sends documents to your org's unique email address, Pathway creates a Book, uploads the attachments, classifies them, and starts parsing. No manual upload needed. Find the Inbox in the left sidebar under **Documents > Inbox**. *** ## Setup Click **Configure** in the top-right corner of the Inbox page to open Email Processing settings. ![Screenshot2026 03 16at7 07 20PM](https://mintcdn.com/pathwaysystemsllc/Zc65a6P2vbSts01N/images/Screenshot2026-03-16at7.08.22PM.png?fit=max\&auto=format\&n=Zc65a6P2vbSts01N\&q=85\&s=dc93198d43b2f081f23e7871c44e0d22) **1. Enable email processing** Toggle the switch to **Active**. When disabled, incoming emails are ignored. **2. Configure allowed senders** Only emails from whitelisted addresses are processed. This prevents random or spam emails from creating Books. * Type an email address and click **+** (or press Enter) to add it * Click **Add Team** to bulk-add all org members at once * Hover over any address and click **X** to remove it **3. Copy your org's email address** Each organization gets a unique address in the format: `ai+@lendpathway.com` For example: `ai+acme-inc-52b92@lendpathway.com`. This is the address people send documents to. > [!WARNING] > > Click **Save Changes** before closing. Unsaved changes are lost. ![Inbox configuration](https://mintcdn.com/pathwaysystemsllc/BIi5sm8myQ57NLBi/images/Screenshot2026-02-26at9.53.50PM.png?fit=max\&auto=format\&n=BIi5sm8myQ57NLBi\&q=85\&s=8affca2c5e254efc7eaa996443016cdc) *** ## How it works 1. A sender on the allowed list sends an email with PDF attachments to your org's email address 2. Pathway creates a Book, uploads all attachments, classifies each file, and starts parsing 3. The thread appears in the Inbox with its processing status 4. The sender receives a reply email with the parsed results Emails from senders not on the allowed list are ignored. Document classification is automatic. Mix bank statements, credit reports, tax forms, and loan applications in a single email and Pathway classifies each one correctly. *** ## Inbox view The Inbox lists email threads sorted newest first. **Toolbar:** * **Search**: filter by subject, sender name, sender email, or snippet * **Date** filter: filter by date range * **Sender** filter: filter by specific sender **Each thread row shows:** | Element | Description | | :- | :- | | **Subject** | Email subject line | | **Sender** | Name and email address | | **Attachments** | Count of attachments | | **Date** | When the latest message arrived | | **Status badge** | **Completed** (green), **Failed** (red), or **Cancelled** (yellow) | | **Info badges** | Once parsed: Identity, Accounts, Documents, and Pass/Autodeny badges appear inline | Clicking a thread with a linked Book navigates to that Book's page. Unread threads with no linked Book show a blue dot. ![Inbox view](https://mintcdn.com/pathwaysystemsllc/uoTZLSUKt5yvUwjg/images/Screenshot2026-02-26at10.15.25PM.png?fit=max\&auto=format\&n=uoTZLSUKt5yvUwjg\&q=85\&s=4915637e894f95bdaea2d9a94045c65a) *** ## Reply email When bank statements are parsed successfully, the original sender receives a reply in the same thread with a synopsis of the results. The reply includes: * Business name, statement count, and date range * Autodeny or Pass screening badge (if screening is configured) * Link to the full Book in Pathway * Six KPI cards: Avg Monthly Revenue, Avg Daily Balance, True Revenue, Days Negative, NSF, & Overdraft * Debt positions table if MCA positions were detected * Breakdown by month * Book Summary Chart ![Inbox reply email](https://mintcdn.com/pathwaysystemsllc/uoTZLSUKt5yvUwjg/images/Screenshot2026-02-26at10.18.38PM.png?fit=max\&auto=format\&n=uoTZLSUKt5yvUwjg\&q=85\&s=2c9eaa714fb12deb991a475d03828445) *** ## Triage After parsing, each thread row shows Identity, Accounts, Documents, and Screening badges inline. This lets you triage submissions from the Inbox without opening the Book. * **Completed + Pass**: parsed and cleared screening * **Completed + Autodeny**: parsed but failed screening rules * **Failed**: error during parsing ![Screenshot2026 03 16at7 07 20PM 1](https://mintcdn.com/pathwaysystemsllc/0XYE-Xo_T7kKsJgp/images/Screenshot2026-02-26at10.15.25PM-2.png?fit=max\&auto=format\&n=0XYE-Xo_T7kKsJgp\&q=85\&s=8ba6c397e7c68e37fc5bd365db3a4411) ![Screenshot2026 02 26at10 15 07PM 1](https://mintcdn.com/pathwaysystemsllc/_cJsA2UK9Qnn1tTE/images/Screenshot2026-02-26at10.15.25PM-1.png?fit=max\&auto=format\&n=_cJsA2UK9Qnn1tTE\&q=85\&s=f39318f7aedec18fdffdad24fff5fb2f) # Integrations Source: https://docs.lendpathway.com/platform/integrations > LendPathway connects to the tools your team already uses. All integrations live under the **Connectors** section in the sidebar. *** ## **Gmail** Connect your Google account to manage email directly inside LendPathway. Each user connects their own inbox via OAuth — LendPathway never stores your password. ### **Connecting** 1. Go to the **Integrations** page (under Connectors in the sidebar) 2. Click the **Gmail** card 3. Sign in with Google and grant read and send access 4. When the popup closes, your inbox is connected ![Screenshot2026 03 15at11 05 02PM](https://mintcdn.com/pathwaysystemsllc/Zc65a6P2vbSts01N/images/Screenshot2026-03-15at11.04.44PM.png?fit=max\&auto=format\&n=Zc65a6P2vbSts01N\&q=85\&s=bc2ef04db3161f88137816255dc3b13d) Gmail Connector You can disconnect at any time from the same Integrations page. Disconnecting removes stored tokens immediately. ### **What you can do** Once connected, click **Gmail** in the sidebar to open your inbox. ![Screenshot2026 03 17at7 58 55PM](https://mintcdn.com/pathwaysystemsllc/8RB5iZkCTQXYGyxB/images/Screenshot2026-03-17at7.59.11PM.png?fit=max\&auto=format\&n=8RB5iZkCTQXYGyxB\&q=85\&s=2e69a8db5e511103f3bdfb9b0c244de3) Gmail Inbox Tab * **Browse messages** — Switch between Inbox, Sent, Starred, and Trash. Search across all messages. Filter by All or Unread. * **Read threads** — Open any email thread and view the full conversation. Download attachments directly. * **Send and reply** — Compose new emails or reply inline with support for CC, BCC, and file attachments. ![Screenshot2026 03 17at8 01 15PM](https://mintcdn.com/pathwaysystemsllc/8RB5iZkCTQXYGyxB/images/Screenshot2026-03-17at8.02.27PM.png?fit=max\&auto=format\&n=8RB5iZkCTQXYGyxB\&q=85\&s=c9787aa5bc1a3d60edbbfb842ae18b35) Compose Email Within Gmail Inbox Tab * **Contacts** — LendPathway syncs contacts from the last six months of your inbox (From, To, and CC fields). You can also add contacts manually. ![Screenshot2026 03 17at8 05 07PM](https://mintcdn.com/pathwaysystemsllc/8RB5iZkCTQXYGyxB/images/Screenshot2026-03-17at8.04.40PM.png?fit=max\&auto=format\&n=8RB5iZkCTQXYGyxB\&q=85\&s=22177509820d44f88d8f1157afb38583) Contacts Button Within Gmail Inbox Tab *** ## **Google Drive** Export any generated spreadsheet to Google Drive as a native Google Sheet. ### **Connecting** 1. Go to the **Integrations** page (under Connectors in the sidebar) 2. Click the **Google Drive** card 3. Authorize LendPathway to create files in your Drive You can also connect from the **Google Drive** page itself — if you're not connected yet, a **Connect Drive** button appears at the top. LendPathway only requests the `drive.file` scope, which limits access to files LendPathway creates. It cannot read or modify your existing Drive files. ![Screenshot2026 03 15at10 34 03PM 1](https://mintcdn.com/pathwaysystemsllc/Zc65a6P2vbSts01N/images/Screenshot2026-03-15at10.34.27PM-1.png?fit=max\&auto=format\&n=Zc65a6P2vbSts01N\&q=85\&s=7cb883613db8d4d7424e75fe204fa5b1) Google Drive Connector ### **Exporting a spreadsheet** 1. Open a book with completed analytics 2. Go to the **Bank Spreadsheet**, **Credit Sheet**, or **Tax Sheet** tab 3. Click **Open in Drive** in the floating toolbar at the bottom 4. LendPathway uploads the workbook and converts it to a native Google Sheet 5. The Sheet opens in a new tab Available for Excel-based templates only. If your access token expires, LendPathway refreshes it automatically — no need to reconnect. ### **Google Drive page** Click **Google Drive** in the sidebar to see all spreadsheets LendPathway has exported to your Drive. You can search by name and click any file to open it in Google Sheets. ![Screenshot2026 03 15at10 44 46PM](https://mintcdn.com/pathwaysystemsllc/Zc65a6P2vbSts01N/images/Screenshot2026-03-15at10.44.58PM.png?fit=max\&auto=format\&n=Zc65a6P2vbSts01N\&q=85\&s=0eb056d2c083ee18fb457b96d98109ff) Google Drive Page *** ## **Salesforce** Sync parsed deal data to Salesforce Opportunities. Map LendPathway metrics to your existing fields, and optionally let LendPathway auto-parse new deals as they enter your pipeline. ### **Connecting** > [See the Salesforce Connector page for more information](https://docs.lendpathway.com/platform/salesforce-connector) ### **Browsing Opportunities** Once connected, click **Salesforce** in the sidebar to browse Opportunities. * **Filter** by stage, owner, or search by name * **Sort** by recently modified or oldest created * **Select an Opportunity** to view its details and attached files in a side panel * **Create a book** from an Opportunity's files — with an optional **Auto-parse** checkbox that starts parsing immediately and syncs results back to Salesforce when done (image of the Salesforce page showing the Opportunities list with an Opportunity selected and detail panel open) ### **Field Mappings** Map LendPathway analytics to Salesforce Opportunity fields so parsed results push back to your CRM. 1. On the **Salesforce** page, click **Configure Attributes** in the top-right toolbar 2. For each LendPathway metric, select the target Salesforce field 3. LendPathway validates that the Salesforce field type is compatible before saving Available metrics: | **Metric** | **Type** | | :- | :- | | Average Daily Balance | Currency | | Total Negative Days | Number | | Average Negative Days (Monthly) | Number | | Beginning Balance | Currency | | Ending Balance | Currency | | Total Deposits | Currency | | Average Monthly Deposits | Currency | | Average Monthly Withdrawals | Currency | | Average Monthly Deposit Count | Number | | Total True Revenue | Currency | | Average Monthly True Revenue | Currency | | Total Revenue Transactions | Number | | Total Loan Payments | Currency | | Average Monthly Loan Payments | Currency | | Business Name | String | ![Screenshot 2026 04 09 At 6 25 38 PM](https://mintcdn.com/pathwaysystemsllc/i8HsrLaA4sKdw_-v/images/Screenshot-2026-04-09-at-6.25.48-PM.png?fit=max\&auto=format\&n=i8HsrLaA4sKdw_-v\&q=85\&s=3caafb1f2b519759fc8603a04293e7d9) Field Mapping Configuration Modal ### **Pushing Results** After a book is parsed, you have two options: * **Manual push** — Open the book, click the **Salesforce badge** in the top-right info badges, and confirm. * **Automatic sync** — If the book was created from a Salesforce Opportunity with **Auto-parse** enabled, analytics push automatically after parsing completes. ### **Auto-Parse** Auto-parse monitors your Salesforce pipeline and creates books for new Opportunities that match your criteria. 1. On the **Salesforce** page, click **Auto-Parse** in the top-right toolbar 2. Configure: * **Required stages** — Only Opportunities in these stages are picked up * **Require attachments** — Skip Opportunities with no files * **Checkbox field** (optional) — A Salesforce checkbox that must be true to trigger * **Parse complete field** (optional) — A Salesforce field LendPathway sets to true when parsing finishes LendPathway polls every 5 minutes. New matching Opportunities are created as books, parsed, and synced back without manual intervention. Auto-parse creates books and consumes usage. Monitor your usage to avoid unexpected overages. ![Screenshot 2026 04 09 At 6 28 01 PM](https://mintcdn.com/pathwaysystemsllc/i8HsrLaA4sKdw_-v/images/Screenshot-2026-04-09-at-6.28.01-PM.png?fit=max\&auto=format\&n=i8HsrLaA4sKdw_-v\&q=85\&s=0d0a84e32fbbe4901b94489031877735) Auto-Parse Settings Modal *** ## **Baselayer** Verify businesses (KYB) and optionally run lien and litigation checks from books or the Baselayer page. ### **Connecting** > [See the Baselayer page for the full guide](/platform/baselayer) 1. Go to **Connectors → Integrations** 2. Click the **Baselayer** card 3. Turn **Enabled** on, optionally set a **Monthly budget**, and click **Save** ### **Using Baselayer** * **On a deal** — Open a book → **Actions → Baselayer**. Confirm prefilled business details and click **Verify business**. * **Ad-hoc** — Open **Baselayer** in the sidebar to run a search that is not tied to a book. * **Optional checks** — After verification completes, order **Lien search** or **Litigation and bankruptcy** only if the deal needs them. ![Baselayer card on the Integrations page](https://mintcdn.com/pathwaysystemsllc/_16LkWfvCEHEaFiN/images/baselayer-01-light.png?fit=max\&auto=format\&n=_16LkWfvCEHEaFiN\&q=85\&s=d3f7abc2cfa7923414b61c041f7051f9) Baselayer on Integrations *** ## **Embed API** Build LendPathway into your own application. Submit documents via the API, embed parsed results in an iframe, and receive webhooks when processing completes. The Embed API uses **Personal Access Tokens (PATs)**, not OAuth. See the [API Reference](vscode-file://vscode-app/api-reference) for full endpoint documentation. ### **Authentication** To create a PAT: 1. Click your **org name** at the bottom of the sidebar to open the org switcher 2. Click **Settings** 3. On the **Account** tab, scroll to **API tokens** 4. Click **New token**, name it, choose its **Access** and when it **Expires** (7 days unless you pick longer), and copy the token Include the token in every request as a Bearer token in the `Authorization` header. Tokens are hashed at rest — LendPathway stores only the SHA-256 hash, not the raw token. Treat your token like a password. (image of the API tokens section in Settings showing a token and the New token button) ### **Submitting Documents** `POST /api/submit-book` accepts multipart form data. | **Field** | **Required** | **Description** | | :- | :- | :- | | `files` | Yes | One or more PDF files | | `book_name` | Yes | Name for the book | | `description` | No | Optional description | | `webhook_url` | No | URL to receive a callback when parsing finishes | LendPathway creates a book, uploads the files, and starts parsing in the background. The response returns immediately with the new `book_id`. ### **Webhooks** If you provide a `webhook_url`, LendPathway sends a POST request when processing finishes: ```json theme={null} { "book_id": "uuid", "status": "completed", "book_url": "https://app.lendpathway.com/books/" } ``` If parsing failed, an `error` field is included with a description. ### **Embedding Results** Embed parsed analytics in your UI with token-authenticated iframes. 1. Create an embed token: `POST /api/embed/token` with `book_id`. Tokens expire after 24 hours by default. Pass `permanent: true` for tokens that don't expire. 2. Build the iframe URL: `https://app.lendpathway.com/embed/book/{embed_token}` 3. Drop that URL into an `