Saves a quote on a file, or changes one already saved, and prices it again. Use it for "save this as FHA 6.5 with seller credit", "keep that one", "update the FHA scenario to 7%", "make the conventional one the main scenario", "rename the FHA one to Veteran", "go with the investment scenario", "this is the one we are using". Give `name` to create a new one, `scenario` to change an existing one (both renames it); `notes` keeps a note on it ("note on the FHA one: she talks to her boss on Friday"); only the fields you pass change. CHOOSING: `principal: true` picks the scenario the loan stays with — only one per file, the pre-approval letter is written from it, and its numbers (loan amount, purchase price, down payment, rate, term, program, LTV, DTI, occupancy) are copied to the loan file. It never changes the pipeline stage. Saving or editing without `principal: true` never touches the loan file. To price without saving use price_scenario, to copy one duplicate_scenario, to see what is saved view_scenarios, and to put them side by side compare_scenarios.
loan_purposestring- Default purchase. second_lien: a standalone HELOC/HELOAN that leaves the first mortgage untouched; there cash_out_amount is its amount, current_balance and current_payment (full PITI) the first mortgage, rate and term_months the second loan, and loan_program heloc (interest-only) or heloan (P&I).
appraised_valuenumber- Refinance, USD
current_balancenumber- Refinance: payoff of the current mortgage, USD
cash_out_amountnumber- Cash the borrower takes out, USD
finance_closing_costsboolean- Refinance: roll closing costs into the loan
closing_costs_financednumber- Refinance: costs rolled in, USD. Omit to use the estimate.
current_ratenumber- Refinance: current mortgage rate, %
current_paymentnumber- Refinance: current total monthly mortgage payment, USD
prepaid_interest_daysintegerpurchase_pricenumber- Price or appraised value, USD
down_payment_percentagenumber- % of the price
down_paymentnumber- USD. Wins over the percentage.
ratenumber- Percent (7 means 7%)
term_monthsinteger- 360 = 30-year
programstring- Pricing family. With loan_program, send the matching one or omit.
loan_programstring- Loan type: conventional, fha, va, usda, jumbo, non_qm, bank_statement_12, bank_statement_24, profit_and_loss, written_voe, dscr, foreign_national, heloc, heloan, reverse or private. Outside conventional/FHA/VA/jumbo there is no PMI unless mi_factor is given.
lenderstringunderwritingstring- Changes the FHA ratio caps
interest_onlybooleancredit_scoreinteger- FICO; picks the MI factor
hoa_monthlynumber- USD a month
property_taxes_annualnumber- USD a year. Omit to estimate from the price.
hazard_annualnumber- Insurance, USD a year. Omit to estimate from the price.
flood_annualnumber- USD a year
mi_factornumber- Yearly MI, % of the loan. Omit to use the table.
finance_upfront_mipboolean- FHA: roll the upfront MIP into the loan (usual) or pay cash
second_liennumber- Second lien or HELOC amount, USD
second_lien_paymentnumber- USD a month
origination_pointsnumber- % of the loan
discount_pointsnumber- Points to buy the rate down
seller_creditnumber- USD
lender_creditnumber- USD
earnest_moneynumber- Already deposited, USD
appraisal_paidnumber- Appraisal fee paid outside closing, USD
hap_creditnumber- Down payment assistance, USD
heloc_creditnumber- HELOC money, USD. On a refi it lowers the new loan amount.
reserves_after_closingnumber- Reserves to keep, USD. Ignored with reserves_months.
reserves_monthsnumber- Months of full payment (PITI, MI, HOA, flood) to keep after closing; added to the cash required
debts_paid_at_closingnumber- Extra debts paid at closing, USD. Those marked on the file are added automatically: do not repeat them.
assets_availablenumber- Cash the borrower has, USD, compared with the cash needed. Ignored when assets_accounts has rows.
assets_accountsarray- The borrower's accounts; their total replaces assets_available
max_frontnumber- Front (housing) ratio cap, %. Omit for the program cap.
max_dtinumber- DTI cap, % (50 means 50%). Omit for the program cap.
max_ltvnumber- LTV cap, %. With a second mortgage, checked against CLTV.
occupancystringfirst_time_home_buyerbooleanincome_sheetobject- Income tab: income and monthly debts of up to four borrowers
fee_overridesobject- Closing costs of this scenario only; they win over the account's (set_closing_costs, same keys)
ysp_pointsnumber- Yield spread premium, % of the loan. Never charged to the borrower.
property_addressstringproperty_zipstringloan_type_labelstring- Free text, e.g. "CF30 Conventional 30-Year Fixed Rate"
prepayment_penaltystring- E.g. "None" or "3/2/1"
qualification_typestringloansifter_programstring- As Loansifter lists it. non_qm is Expanded Guidelines; income documentation goes in income_verification.
income_verificationstring- How the income is documented
dscrnumber- Ratio, two decimals. Only with investor_dscr and investor_dscr_assets.
prepayment_monthsany- Prepayment penalty term, 0 = none. Private loans usually 6.
legal_structurestringunitsintegerlien_positionstringamortizationstringcredit_score_modelstringsearch_bystringautomated_uw_systemstringconstruction_to_permbooleansubordinate_financingbooleancorporate_relocationbooleanfees_inbooleanborrower_paid_compensationbooleanunique_propertybooleanattachmentstringmanufacturedbooleancitizenshipstringitinboolean- Files with an ITIN
buydownstring- Temporary
lock_daysintegerwaive_escrowsbooleanproperties_financedintegerfirst_time_investorbooleanself_employedbooleannon_occupant_coborrowerbooleanshort_term_rentalbooleanentity_vestingboolean- Title vests in an entity
ruralbooleanvacantboolean- Vacant or unleased
housing_eventstringhousing_event_monthsinteger- Months since
bankruptcystringbankruptcy_monthsinteger- Months since
mortgage_latesobject- Count of 30/60/90/120-day housing lates: last 12 months (x30_12…) and 13-24 months ago (x30_24…)
closing_datestring- ISO. The prepayment penalty end date counts from it.
notesstring- Team only
helocobject- Second mortgage with the first (HELOC/HELOAN)
mccobject- Florida Housing mortgage credit certificate
vacatingobject- Primary residence being left and rented out
loanstring- Borrower name, address, loan number or file id. Omit only for a quote taken before there is a file.
scenariostring- Saved scenario to change, by name or id. Omit for a new one.
namestring- Like "FHA 6.5 with seller credit". Required for a new one.
principalboolean- true makes it the main scenario ("use this one") and the previous main stops being it. Only on a scenario tied to a file.
cleararray- Fields to remove ("seller_credit", "notes"): they go back to being estimated ("go back to estimating the taxes") or to zero.