{"openapi":"3.1.0","info":{"title":"SBA Deal Check","description":"Clean-room SBA 7(a) SOP 50 10 8.1 Pre-LOI Deal Stress-Tester, LOI Clause Generator, and Public SBA FOIA Acquisition Lender Lookup.","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["system"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/stress-test":{"post":{"tags":["sba-8-1"],"summary":"Api Stress Test","operationId":"api_stress_test_api_stress_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealStressTestResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/loi-checklist":{"post":{"tags":["sba-8-1"],"summary":"Api Loi Checklist","operationId":"api_loi_checklist_api_loi_checklist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoiChecklistResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/lenders":{"get":{"tags":["foia-lenders"],"summary":"Api Find Lenders","operationId":"api_find_lenders_api_lenders_get","parameters":[{"name":"naics","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"4- or 6-digit NAICS code","title":"Naics"},"description":"4- or 6-digit NAICS code"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Two-letter US state code or full state name","title":"State"},"description":"Two-letter US state code or full state name"},{"name":"loan_amount","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Estimated SBA 7(a) loan amount (USD, up to $5,000,000)","title":"Loan Amount"},"description":"Estimated SBA 7(a) loan amount (USD, up to $5,000,000)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LenderSearchResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/naics":{"get":{"tags":["foia-lenders"],"summary":"Api Naics Suggest","operationId":"api_naics_suggest_api_naics_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":60,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":15,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}},"title":"Response Api Naics Suggest Api Naics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads":{"post":{"tags":["leads"],"summary":"Api Capture Lead","operationId":"api_capture_lead_api_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSubmission"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCaptureResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BuyerCitizenship":{"type":"string","enum":["us_citizen","us_national","lpr_green_card","other"],"title":"BuyerCitizenship"},"DealInput":{"properties":{"transaction_type":{"$ref":"#/components/schemas/TransactionType","description":"SBA Appendix 15 Change of Ownership category.","default":"initial_acquisition"},"purchase_price":{"type":"number","maximum":1000000000.0,"exclusiveMinimum":0.0,"title":"Purchase Price","description":"Total PSA purchase price in USD (including any owner-occupied CRE included in the sale)."},"owner_occupied_cre_value":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Owner Occupied Cre Value","description":"Appraised value of owner-occupied commercial real estate included inside purchase_price.","default":0.0},"working_capital":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Working Capital","description":"Dedicated permanent working capital included in 7(a) loan proceeds.","default":0.0},"closing_and_soft_costs":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Closing And Soft Costs","description":"Closing costs, legal/accounting soft costs, and financed fees (excluding prepaid valuation/QoE if entered separately).","default":0.0},"naics_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Naics Code","description":"Target business 4- or 6-digit NAICS code (e.g. '238220', '332710')."},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"Two-letter US state code where target business operates (e.g. 'TX')."},"is_rural_area":{"type":"boolean","title":"Is Rural Area","description":"True if target business is located in an SBA-qualifying rural area (FY 2027 <=$700k fee waiver).","default":false},"is_qualifying_food_trucking_cargo":{"type":"boolean","title":"Is Qualifying Food Trucking Cargo","description":"For NAICS 484220/484230 only: True if hauling refrigerated/frozen freight, farm/grain products, or livestock (Notice 5000-881797 footnote 1).","default":false},"is_special_purpose_property":{"type":"boolean","title":"Is Special Purpose Property","description":"True if acquiring an integral owner-occupied Special Purpose Property (e.g. hotel, car wash, storage).","default":false},"expected_loan_approval_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expected Loan Approval Date","description":"Optional ISO approval date (YYYY-MM-DD) to check FY 2027 / Sep 30, 2027 notice sunset dates."},"seller_ebitda_last_fye":{"type":"number","maximum":1000000000.0,"minimum":-1000000000.0,"title":"Seller Ebitda Last Fye","description":"Target historical/adjusted SDE or EBITDA for the most recent completed fiscal year-end (USD). If already net of replacement manager salary, leave buyer_replacement_salary at 0."},"seller_ebitda_prior_fye":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":-1000000000.0},{"type":"null"}],"title":"Seller Ebitda Prior Fye","description":"Optional prior fiscal year-end adjusted cash flow to evaluate the 2-year average."},"cre_rent_addback":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Cre Rent Addback","description":"Annual rent paid by business that is eliminated because owner-occupied CRE is purchased.","default":0.0},"buyer_replacement_salary":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Buyer Replacement Salary","description":"Annual buyer replacement salary / personal living draw deducted from seller SDE before DSCR.","default":0.0},"using_projections_for_dscr":{"type":"boolean","title":"Using Projections For Dscr","description":"True if relying on 2-year forward projections rather than historical FYE cash flow to meet DSC.","default":false},"projected_dscr":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Projected Dscr","description":"Projected year-2 DSCR (only eligible for fully collateralized owner-occupied Special Purpose Properties)."},"buyer_cash_equity":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Buyer Cash Equity","description":"Unborrowed buyer cash equity (or non-business-funded personal loan / unconditional grant).","default":0.0},"prepaid_valuation_fee":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Prepaid Valuation Fee","description":"Verified out-of-pocket SBA Business Valuation fee paid by buyer (eligible prepaid equity, added to project uses).","default":0.0},"prepaid_qoe_fee":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Prepaid Qoe Fee","description":"Verified out-of-pocket Quality of Earnings fee paid by buyer (eligible prepaid equity, added to project uses).","default":0.0},"prepaid_advisory_or_agent_fees":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Prepaid Advisory Or Agent Fees","description":"Education, accelerator, advisory, or Agent fees paid by buyer (NOT eligible equity).","default":0.0},"business_valuation_amount":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Business Valuation Amount","description":"Independent business valuation conclusion (excluding CRE), if already known."},"close_relationship_buyer_seller":{"type":"boolean","title":"Close Relationship Buyer Seller","description":"True if close relationship exists between buyer and seller (triggers independent valuation even <=$350k).","default":false},"buyer_commissioned_qoe":{"type":"boolean","title":"Buyer Commissioned Qoe","description":"True if buyer already commissioned a QoE prior to engaging the SBA lender.","default":false},"is_plp_lender":{"type":"boolean","title":"Is Plp Lender","description":"True if lender is processing under Preferred Lenders Program (PLP) delegated authority.","default":true},"seller_note_amount":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Seller Note Amount","default":0.0},"seller_note_standby_type":{"$ref":"#/components/schemas/SellerNoteStandbyType","description":"full_life = no P&I for entire 7(a) term; partial_or_short = e.g. 24-month standby; none = active payments.","default":"none"},"seller_note_interest_rate_pct":{"type":"number","maximum":25.0,"minimum":0.0,"title":"Seller Note Interest Rate Pct","default":7.0},"seller_note_term_years":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Seller Note Term Years","default":10},"seller_note_interest_only":{"type":"boolean","title":"Seller Note Interest Only","description":"True if non-standby seller note has interest-only payments (must underwrite <=10-yr amort).","default":false},"additional_non_standby_seller_note_amount":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Additional Non Standby Seller Note Amount","description":"Optional second (non-standby) seller note in a split-note structure (e.g. 5% full standby + 10% amortizing).","default":0.0},"additional_seller_note_interest_rate_pct":{"type":"number","maximum":25.0,"minimum":0.0,"title":"Additional Seller Note Interest Rate Pct","default":7.0},"additional_seller_note_term_years":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Additional Seller Note Term Years","default":10},"additional_seller_note_interest_only":{"type":"boolean","title":"Additional Seller Note Interest Only","default":false},"third_party_standby_debt":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Third Party Standby Debt","description":"Third-party full-standby debt on SBA Form 155 counted toward Limited Equity.","default":0.0},"standby_creditor_takes_equity":{"type":"boolean","title":"Standby Creditor Takes Equity","description":"True if a standby debt provider also takes equity/warrants in the business (PROHIBITED).","default":false},"minority_investor_equity":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Minority Investor Equity","description":"Equity from passive non-controlling (<20%) minority investors.","default":0.0},"minority_investor_max_ownership_pct":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Minority Investor Max Ownership Pct","description":"Largest ownership % held by any minority investor counted as Limited Equity.","default":0.0},"minority_investor_has_control":{"type":"boolean","title":"Minority Investor Has Control","default":false},"minority_investor_non_tax_distributions":{"type":"boolean","title":"Minority Investor Non Tax Distributions","description":"True if minority investors used for required equity receive non-tax dividends/distributions before 7(a) payoff.","default":false},"partial_buyout_structure":{"$ref":"#/components/schemas/PartialBuyoutStructure","default":"direct"},"partial_buyout_in_epc":{"type":"boolean","title":"Partial Buyout In Epc","description":"True if attempting a partial change of ownership inside an Eligible Passive Company (prohibited).","default":false},"seller_retained_equity_pct":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Seller Retained Equity Pct","default":0.0},"partial_buyout_new_indirect_minority_owners":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Partial Buyout New Indirect Minority Owners","description":"Count of new direct/indirect minority owners (even 1% via holding LLC) entering in a partial buyout.","default":0},"buyer_employed_months_at_target":{"anyOf":[{"type":"integer","maximum":1200.0,"minimum":0.0},{"type":"null"}],"title":"Buyer Employed Months At Target","description":"Months buyer has been actively employed at target (24-month test for Owner Buyout; null if unspecified)."},"buyer_post_close_ownership_pct":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Buyer Post Close Ownership Pct","description":"Acquiring buyer's post-close direct + indirect ownership percentage.","default":100.0},"buyer_becomes_largest_shareholder":{"type":"boolean","title":"Buyer Becomes Largest Shareholder","default":true},"existing_business_years_operating":{"type":"number","maximum":200.0,"minimum":0.0,"title":"Existing Business Years Operating","description":"Years existing acquiring business has operated under current ownership (2-year Business Expansion test).","default":0.0},"same_4_digit_naics":{"type":"boolean","title":"Same 4 Digit Naics","description":"True if target shares the exact same 4-digit NAICS Industry Group as acquiring business.","default":false},"same_or_more_full_guarantors":{"type":"boolean","title":"Same Or More Full Guarantors","description":"True if Business Expansion maintains at least the same number of full personal guarantors.","default":true},"existing_business_net_worth":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":-1000000000.0},{"type":"null"}],"title":"Existing Business Net Worth","description":"Acquiring business balance-sheet net worth at last FYE (must be >= 0 for equity waiver/reduction)."},"equity_waiver_or_reduction_requested":{"type":"boolean","title":"Equity Waiver Or Reduction Requested","description":"True if lender reduces or eliminates the 10% equity injection on Business Expansion or Owner Buyout.","default":false},"buyer_citizenship":{"$ref":"#/components/schemas/BuyerCitizenship","default":"us_citizen"},"any_ineligible_owner_present":{"type":"boolean","title":"Any Ineligible Owner Present","description":"True if any direct/indirect owner or SBA-required guarantor is an Ineligible Person (e.g. LPR/green card).","default":false},"ineligible_person_owned_within_6_months":{"type":"boolean","title":"Ineligible Person Owned Within 6 Months","default":false},"ineligible_person_completely_divested_before_loan_number":{"type":"boolean","title":"Ineligible Person Completely Divested Before Loan Number","default":false},"non_citizen_spouse_limited_guaranty_for_collateral":{"type":"boolean","title":"Non Citizen Spouse Limited Guaranty For Collateral","default":false},"non_citizen_spouse_is_undocumented":{"type":"boolean","title":"Non Citizen Spouse Is Undocumented","default":false},"veteran_owned_50_pct_or_more":{"type":"boolean","title":"Veteran Owned 50 Pct Or More","description":"True if >=50% direct+indirect ownership is held by Veteran(s) post-close (Notice 5000-883564).","default":false},"veteran_or_spouse_owned_and_controlled":{"type":"boolean","title":"Veteran Or Spouse Owned And Controlled","description":"True if owned and controlled by a veteran or spouse of a veteran (for SBA Express $0 fee relief under 15 U.S.C. 636(a)(31)(G)).","default":false},"seller_consulting_months":{"type":"integer","maximum":120.0,"minimum":0.0,"title":"Seller Consulting Months","default":0},"seller_stays_w2_or_officer":{"type":"boolean","title":"Seller Stays W2 Or Officer","default":false},"has_seller_earnout":{"type":"boolean","title":"Has Seller Earnout","default":false},"has_buyer_rebate":{"type":"boolean","title":"Has Buyer Rebate","default":false},"has_working_capital_true_up":{"type":"boolean","title":"Has Working Capital True Up","default":false},"is_seller_note_refinance":{"type":"boolean","title":"Is Seller Note Refinance","default":false},"seller_note_refi_months_current":{"type":"integer","maximum":600.0,"minimum":0.0,"title":"Seller Note Refi Months Current","default":0},"seller_note_refi_was_on_standby":{"type":"boolean","title":"Seller Note Refi Was On Standby","default":false},"seller_note_refi_payment_improvement_pct":{"type":"number","maximum":100.0,"minimum":-100.0,"title":"Seller Note Refi Payment Improvement Pct","default":0.0},"collateral_shortfall":{"type":"boolean","title":"Collateral Shortfall","default":true},"personal_residence_fmv":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Personal Residence Fmv","default":0.0},"personal_residence_mortgage":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Personal Residence Mortgage","default":0.0},"residence_transferred_to_spouse_within_6_months":{"type":"boolean","title":"Residence Transferred To Spouse Within 6 Months","default":false},"first_lien_loc_for_ar_inventory":{"type":"boolean","title":"First Lien Loc For Ar Inventory","default":false},"day_one_loc_draw_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Day One Loc Draw Pct"},"wsj_prime_rate_pct":{"type":"number","maximum":20.0,"minimum":0.0,"title":"Wsj Prime Rate Pct","default":7.5},"proposed_interest_rate_pct":{"anyOf":[{"type":"number","maximum":30.0,"minimum":0.0},{"type":"null"}],"title":"Proposed Interest Rate Pct","description":"Proposed note interest rate (defaults to Prime + max allowable variable spread if omitted)."},"is_fixed_interest_rate":{"type":"boolean","title":"Is Fixed Interest Rate","description":"True if note uses a fixed rate for the entire term (governed by Federal Register fixed-rate caps, SOP App. 18).","default":false},"has_default_interest_rate":{"type":"boolean","title":"Has Default Interest Rate","default":false},"is_sba_express":{"type":"boolean","title":"Is Sba Express","default":false},"prior_7a_loans_within_90_days_gross":{"type":"number","maximum":1000000000.0,"minimum":0.0,"title":"Prior 7A Loans Within 90 Days Gross","default":0.0},"prior_7a_loans_within_90_days_guaranty":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Prior 7A Loans Within 90 Days Guaranty"},"prior_7a_loans_within_90_days_fee_paid":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Prior 7A Loans Within 90 Days Fee Paid","description":"Actual upfront guaranty fee paid or due on prior 7(a) loan within 90 days (e.g. $0 if fee-waived)."},"companion_504_loan":{"type":"boolean","title":"Companion 504 Loan","default":false},"blend_with_504_requested":{"type":"boolean","title":"Blend With 504 Requested","default":false}},"additionalProperties":false,"type":"object","required":["purchase_price","seller_ebitda_last_fye"],"title":"DealInput","description":"Structured pre-LOI SBA 7(a) acquisition inputs."},"DealStressTestResult":{"properties":{"overall_status":{"type":"string","title":"Overall Status","description":"'pass', 'warning', or 'deal_killer' based on highest-severity finding."},"requested_transaction_type":{"$ref":"#/components/schemas/TransactionType"},"effective_underwriting_category":{"$ref":"#/components/schemas/TransactionType"},"loan_program":{"type":"string","title":"Loan Program","description":"'SBA Express', '7(a) Small', or 'Standard 7(a)'."},"business_purchase_price":{"type":"number","title":"Business Purchase Price"},"owner_occupied_cre_value":{"type":"number","title":"Owner Occupied Cre Value"},"total_project_cost":{"type":"number","title":"Total Project Cost"},"sba_loan_amount":{"type":"number","title":"Sba Loan Amount"},"is_7a_small_eligible":{"type":"boolean","title":"Is 7A Small Eligible"},"max_maturity_years":{"type":"integer","title":"Max Maturity Years"},"blended_maturity_unrounded":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blended Maturity Unrounded"},"wsj_prime_rate_pct":{"type":"number","title":"Wsj Prime Rate Pct"},"max_interest_rate_spread_pct":{"type":"number","title":"Max Interest Rate Spread Pct"},"max_allowable_interest_rate_pct":{"type":"number","title":"Max Allowable Interest Rate Pct"},"modeled_interest_rate_pct":{"type":"number","title":"Modeled Interest Rate Pct"},"guaranty_pct":{"type":"number","title":"Guaranty Pct"},"sba_guaranteed_amount":{"type":"number","title":"Sba Guaranteed Amount"},"fy2027_upfront_guaranty_fee":{"type":"number","title":"Fy2027 Upfront Guaranty Fee"},"fy2027_fee_waiver_applied":{"type":"boolean","title":"Fy2027 Fee Waiver Applied"},"fy2027_fee_waiver_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fy2027 Fee Waiver Reason"},"fy2027_lender_annual_service_fee_pct":{"type":"number","title":"Fy2027 Lender Annual Service Fee Pct","default":0.55},"sba_annual_debt_service":{"type":"number","title":"Sba Annual Debt Service"},"seller_note_annual_debt_service":{"type":"number","title":"Seller Note Annual Debt Service"},"total_annual_debt_service":{"type":"number","title":"Total Annual Debt Service"},"effective_ebitda":{"type":"number","title":"Effective Ebitda"},"buyer_adjusted_cash_flow":{"type":"number","title":"Buyer Adjusted Cash Flow"},"historical_dscr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Historical Dscr"},"buyer_adjusted_dscr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buyer Adjusted Dscr"},"required_min_dscr":{"type":"number","title":"Required Min Dscr"},"max_supportable_sba_loan":{"type":"number","title":"Max Supportable Sba Loan"},"max_supportable_purchase_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Supportable Purchase Price"},"qoe_required":{"type":"boolean","title":"Qoe Required"},"qoe_exempt_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qoe Exempt Reason"},"independent_valuation_required":{"type":"boolean","title":"Independent Valuation Required"},"equity_breakdown":{"$ref":"#/components/schemas/EquityBreakdown"},"findings":{"items":{"$ref":"#/components/schemas/RuleFinding"},"type":"array","title":"Findings"},"loi_checklist":{"items":{"$ref":"#/components/schemas/LoiClause"},"type":"array","title":"Loi Checklist"},"as_of_sop_version":{"type":"string","title":"As Of Sop Version","default":"SBA SOP 50 10 8.1 (effective 2026-10-01) + Information Notice 5000-881797 (FY 2027 Fees) + Procedural Notice 5000-883564 (effective 2026-11-11)"},"disclaimer":{"type":"string","title":"Disclaimer","default":"Deal-screening check based on public SBA SOP 50 10 8.1 and 2026 SBA Notices; not legal, tax, or lending advice. Verify all terms with your SBA lender and M&A counsel."}},"type":"object","required":["overall_status","requested_transaction_type","effective_underwriting_category","loan_program","business_purchase_price","owner_occupied_cre_value","total_project_cost","sba_loan_amount","is_7a_small_eligible","max_maturity_years","wsj_prime_rate_pct","max_interest_rate_spread_pct","max_allowable_interest_rate_pct","modeled_interest_rate_pct","guaranty_pct","sba_guaranteed_amount","fy2027_upfront_guaranty_fee","fy2027_fee_waiver_applied","sba_annual_debt_service","seller_note_annual_debt_service","total_annual_debt_service","effective_ebitda","buyer_adjusted_cash_flow","required_min_dscr","max_supportable_sba_loan","qoe_required","independent_valuation_required","equity_breakdown","findings","loi_checklist"],"title":"DealStressTestResult"},"EquityBreakdown":{"properties":{"equity_basis_amount":{"type":"number","title":"Equity Basis Amount"},"required_equity_pct":{"type":"number","title":"Required Equity Pct"},"required_equity_dollars":{"type":"number","title":"Required Equity Dollars"},"valuation_gap_equity_required":{"type":"number","title":"Valuation Gap Equity Required"},"unlimited_equity_dollars":{"type":"number","title":"Unlimited Equity Dollars"},"eligible_prepaid_equity_dollars":{"type":"number","title":"Eligible Prepaid Equity Dollars"},"ineligible_prepaid_fees_dollars":{"type":"number","title":"Ineligible Prepaid Fees Dollars"},"limited_equity_raw_dollars":{"type":"number","title":"Limited Equity Raw Dollars"},"full_standby_debt_dollars":{"type":"number","title":"Full Standby Debt Dollars"},"minority_investor_equity_dollars":{"type":"number","title":"Minority Investor Equity Dollars"},"limited_equity_cap_pct_of_required":{"type":"number","title":"Limited Equity Cap Pct Of Required"},"limited_equity_cap_dollars":{"type":"number","title":"Limited Equity Cap Dollars"},"limited_equity_counted_dollars":{"type":"number","title":"Limited Equity Counted Dollars"},"full_standby_valuation_gap_counted_dollars":{"type":"number","title":"Full Standby Valuation Gap Counted Dollars"},"total_eligible_equity_dollars":{"type":"number","title":"Total Eligible Equity Dollars"},"equity_shortfall_dollars":{"type":"number","title":"Equity Shortfall Dollars"},"veteran_100_pct_flexibility_applied":{"type":"boolean","title":"Veteran 100 Pct Flexibility Applied"}},"type":"object","required":["equity_basis_amount","required_equity_pct","required_equity_dollars","valuation_gap_equity_required","unlimited_equity_dollars","eligible_prepaid_equity_dollars","ineligible_prepaid_fees_dollars","limited_equity_raw_dollars","full_standby_debt_dollars","minority_investor_equity_dollars","limited_equity_cap_pct_of_required","limited_equity_cap_dollars","limited_equity_counted_dollars","full_standby_valuation_gap_counted_dollars","total_eligible_equity_dollars","equity_shortfall_dollars","veteran_100_pct_flexibility_applied"],"title":"EquityBreakdown"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LeadCaptureResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"lead_type":{"type":"string","title":"Lead Type"},"recorded_at":{"type":"string","title":"Recorded At"},"duplicate_suppressed":{"type":"boolean","title":"Duplicate Suppressed","default":false},"delivery_channels":{"items":{"type":"string"},"type":"array","title":"Delivery Channels"},"message":{"type":"string","title":"Message"}},"type":"object","required":["ok","lead_type","recorded_at","delivery_channels","message"],"title":"LeadCaptureResponse"},"LeadSubmission":{"properties":{"email":{"type":"string","maxLength":254,"minLength":5,"title":"Email"},"lead_type":{"type":"string","enum":["pre_loi_pack","lender_csv_export","lender_intro","sponsor_inquiry"],"title":"Lead Type","default":"pre_loi_pack"},"context_summary":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Context Summary"},"naics_code":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Naics Code"},"state":{"anyOf":[{"type":"string","maxLength":4},{"type":"null"}],"title":"State"},"deal_size":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Deal Size"}},"type":"object","required":["email"],"title":"LeadSubmission"},"LenderMatch":{"properties":{"lender_name":{"type":"string","title":"Lender Name"},"fdic_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fdic Number"},"ncua_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ncua Number"},"bank_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank City"},"bank_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bank State"},"active_24m_loans":{"type":"integer","title":"Active 24M Loans"},"active_24m_commit_loans":{"type":"integer","title":"Active 24M Commit Loans"},"active_24m_dollars":{"type":"number","title":"Active 24M Dollars"},"avg_loan_size":{"type":"number","title":"Avg Loan Size"},"min_loan_size":{"type":"number","title":"Min Loan Size"},"max_loan_size":{"type":"number","title":"Max Loan Size"},"avg_initial_interest_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Initial Interest Rate"},"plp_share_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Plp Share Pct"},"total_national_24m_loans":{"type":"integer","title":"Total National 24M Loans"},"national_median_24m_loan":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"National Median 24M Loan"},"seasoned_naics4_n":{"type":"integer","title":"Seasoned Naics4 N"},"seasoned_naics4_charge_off_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Seasoned Naics4 Charge Off Rate Pct"},"seasoned_overall_n":{"type":"integer","title":"Seasoned Overall N"},"seasoned_overall_charge_off_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Seasoned Overall Charge Off Rate Pct"},"seasoned_low_sample":{"type":"boolean","title":"Seasoned Low Sample"}},"type":"object","required":["lender_name","active_24m_loans","active_24m_commit_loans","active_24m_dollars","avg_loan_size","min_loan_size","max_loan_size","total_national_24m_loans","seasoned_naics4_n","seasoned_overall_n","seasoned_low_sample"],"title":"LenderMatch"},"LenderSearchResult":{"properties":{"query_naics":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query Naics"},"naics_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Naics Description"},"query_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query State"},"query_loan_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Query Loan Amount"},"loan_size_bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loan Size Bucket"},"applied_filters":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Applied Filters"},"match_level":{"type":"string","title":"Match Level"},"as_of_date":{"type":"string","title":"As Of Date"},"active_window":{"type":"string","title":"Active Window"},"total_matching_active_loans":{"type":"integer","title":"Total Matching Active Loans"},"active_lenders":{"items":{"$ref":"#/components/schemas/LenderMatch"},"type":"array","title":"Active Lenders"},"seasoned_industry_state":{"anyOf":[{"$ref":"#/components/schemas/SeasonedCohortStats"},{"type":"null"}]},"seasoned_industry_national":{"anyOf":[{"$ref":"#/components/schemas/SeasonedCohortStats"},{"type":"null"}]},"caveats":{"type":"string","title":"Caveats"},"disclaimer":{"type":"string","title":"Disclaimer","default":"Historical public SBA 7(a) FOIA Change-of-Ownership data is for lender screening only. Confirm current lender credit box, PLP status, and terms directly with each lender."}},"type":"object","required":["match_level","as_of_date","active_window","total_matching_active_loans","active_lenders","caveats"],"title":"LenderSearchResult"},"LoiChecklistResult":{"properties":{"deal_summary":{"type":"string","title":"Deal Summary"},"clauses":{"items":{"$ref":"#/components/schemas/LoiClause"},"type":"array","title":"Clauses"},"as_of_sop_version":{"type":"string","title":"As Of Sop Version","default":"SBA SOP 50 10 8.1 (effective 2026-10-01) + Information Notice 5000-881797 (FY 2027 Fees) + Procedural Notice 5000-883564 (effective 2026-11-11)"},"disclaimer":{"type":"string","title":"Disclaimer","default":"Deal-screening check based on public SBA SOP 50 10 8.1 and 2026 SBA Notices; not legal, tax, or lending advice. Verify all terms with your SBA lender and M&A counsel."}},"type":"object","required":["deal_summary","clauses"],"title":"LoiChecklistResult"},"LoiClause":{"properties":{"code":{"type":"string","title":"Code"},"title":{"type":"string","title":"Title"},"applies_to_deal":{"type":"boolean","title":"Applies To Deal"},"priority":{"type":"string","title":"Priority"},"why_it_saves_the_deal":{"type":"string","title":"Why It Saves The Deal"},"sample_loi_language":{"type":"string","title":"Sample Loi Language"},"sop_citation":{"type":"string","title":"Sop Citation"}},"type":"object","required":["code","title","applies_to_deal","priority","why_it_saves_the_deal","sample_loi_language","sop_citation"],"title":"LoiClause"},"PartialBuyoutStructure":{"type":"string","enum":["direct","multi_step_newco"],"title":"PartialBuyoutStructure"},"RuleFinding":{"properties":{"code":{"type":"string","title":"Code"},"severity":{"$ref":"#/components/schemas/RuleSeverity"},"title":{"type":"string","title":"Title"},"explanation":{"type":"string","title":"Explanation"},"sop_citation":{"type":"string","title":"Sop Citation"},"effective_date":{"type":"string","title":"Effective Date"}},"type":"object","required":["code","severity","title","explanation","sop_citation","effective_date"],"title":"RuleFinding"},"RuleSeverity":{"type":"string","enum":["deal_killer","warning","pass","info"],"title":"RuleSeverity"},"SeasonedCohortStats":{"properties":{"scope_label":{"type":"string","title":"Scope Label"},"cohort_fys":{"type":"string","title":"Cohort Fys","default":"FY2018-FY2021"},"n_loans":{"type":"integer","title":"N Loans"},"n_charged_off":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N Charged Off","description":"Suppressed (null) when n_loans < 10 to prevent small-sample inference."},"charge_off_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Charge Off Rate Pct","description":"Suppressed (null) when n_loans < 10."},"dollar_charge_off_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dollar Charge Off Rate Pct","description":"Suppressed (null) when n_loans < 10."},"gross_dollars":{"type":"number","title":"Gross Dollars"},"charged_off_dollars":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Charged Off Dollars","description":"Suppressed (null) when n_loans < 10."},"low_sample_suppressed":{"type":"boolean","title":"Low Sample Suppressed"},"suppression_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suppression Note"}},"type":"object","required":["scope_label","n_loans","gross_dollars","low_sample_suppressed"],"title":"SeasonedCohortStats"},"SellerNoteStandbyType":{"type":"string","enum":["full_life","partial_or_short","none"],"title":"SellerNoteStandbyType"},"TransactionType":{"type":"string","enum":["initial_acquisition","business_expansion","owner_buyout_existing","owner_buyout_partial","esop","cooperative"],"title":"TransactionType"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}