> For the complete documentation index, see [llms.txt](https://api-docs.hengelending.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.hengelending.com/api/api-reference/pricing-locks-and-fees.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.hengelending.com/~gitbook/mcp).

# Pricing, Locks And Fees

**Pricing:** Price a loan scenario, or an existing loan from its stored data, across the products your company offers, then read a product's quotes and adjustments or why products were ineligible. Every search prices as a loan officer of your company (the one you name, else your application's acting user), who must be licensed in the property's state.

**Program registration and locks:** register a priced program on a loan with `POST /loan-applications/{id}/registration`, which also requests the lock, and read the registration back. Cancelling a pending lock request is only available to POS customers.

**Fees:** A loan's closing costs: each fee by section, who pays it, and the totals. Broker compensation is never included in a Partner API response.

**Scopes:** `read:loan-applications`, `read:pricing`, `update:pricing`

## Retrieves a loan application's closing costs.

> \*\*Required scope:\*\* \`read:loan-applications\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Pricing, locks and fees","description":"**Pricing:** Price a loan scenario, or an existing loan from its stored data, across the products your company offers, then read a product's quotes and adjustments or why products were ineligible. Every search prices as a loan officer of your company (the one you name, else your application's acting user), who must be licensed in the property's state.\n\n**Program registration and locks:** register a priced program on a loan with `POST /loan-applications/{id}/registration`, which also requests the lock, and read the registration back. Cancelling a pending lock request is only available to POS customers.\n\n**Fees:** A loan's closing costs: each fee by section, who pays it, and the totals. Broker compensation is never included in a Partner API response.\n\n**Scopes:** `read:loan-applications`, `read:pricing`, `update:pricing`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"LoanFeesResponse":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"quoteId":{"type":"string","description":"The stored quote these fees come from; null when the loan has no fees.","format":"uuid","nullable":true},"source":{"$ref":"#/components/schemas/FeeSource"},"isEstimate":{"type":"boolean","description":"True unless the fees come from the LOS; anything else is an estimate that may change."},"asOf":{"type":"string","description":"When the source produced the fee set (UTC).","format":"date-time","nullable":true},"total":{"type":"number","description":"Sum of every fee line returned, in dollars; lines withheld from the caller are not counted.","format":"double"},"sections":{"type":"array","items":{"$ref":"#/components/schemas/LoanFeeSection"},"description":"The fees grouped by closing-cost section; empty when the loan has no fees.","nullable":true},"sellerResponsibleFees":{"type":"array","items":{"$ref":"#/components/schemas/LoanFeeLineResponse"},"description":"The fees the seller owes, one line per\r\npayment. Not in `total` or any section: they are the seller's costs, not the loan's. Empty when\r\nthe loan has none, or for an estimate.","nullable":true}},"additionalProperties":false,"description":"A loan's fee set as the caller may see it, grouped by closing-cost section and, within a section, by who pays. Fees withheld from the caller are left out, including from every total. A loan with no fees has an empty sections list."},"FeeSource":{"enum":["Unknown","MeridianLink","LodeStar","OptimalBlue","Manual","MismoImport"],"type":"string","description":"Where a loan's fee set came from. In order the values are: Unknown (not set); the LOS (authoritative once the loan has fees there); an early draft estimate made before the loan reached the LOS; lender fees from the pricing engine; Manual (typed in by hand); and MismoImport (from an imported MISMO file). Anything other than the LOS is an estimate."},"LoanFeeSection":{"type":"object","properties":{"section":{"type":"string","description":"TRID section letter A to H, or null for fees the source did not place in one.","nullable":true},"total":{"type":"number","description":"Sum of the section's fee lines, in dollars.","format":"double"},"payers":{"type":"array","items":{"$ref":"#/components/schemas/LoanFeePayerGroup"},"description":"The section's fees grouped by who pays them.","nullable":true}},"additionalProperties":false},"LoanFeePayerGroup":{"type":"object","properties":{"paidBy":{"$ref":"#/components/schemas/FeePaidBy"},"total":{"type":"number","description":"Sum of this payer's fee lines in the section, in dollars.","format":"double"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/LoanFeeLineResponse"},"description":"The fee lines this payer pays.","nullable":true}},"additionalProperties":false},"FeePaidBy":{"enum":["Unknown","Borrower","Seller","Lender","Broker","Other"],"type":"string","description":"Who pays a fee line, taken from the source's own grouping rather than inferred."},"LoanFeeLineResponse":{"type":"object","properties":{"feeId":{"type":"string","description":"The fee's identifier in the LOS, the id a fee edit or delete takes; null for an estimate.","nullable":true},"paymentId":{"type":"string","description":"The payment this line is, within the fee: the id an edit of the payer or timing takes.","nullable":true},"feeTypeId":{"type":"string","description":"The LOS fee type of the fee; null for a fee typed in by hand.","nullable":true},"name":{"type":"string","description":"Display name of the fee.","nullable":true},"amount":{"type":"number","description":"Null when the source sent no readable amount; never shown as 0.","format":"double","nullable":true},"paidBy":{"$ref":"#/components/schemas/FeePaidBy"},"section":{"type":"string","description":"Closing-cost section letter A to H the fee belongs to; null when none.","nullable":true},"mismoFeeType":{"type":"string","description":"The fee's MISMO fee type code.","nullable":true},"isFinanceCharge":{"type":"boolean","description":"True when the fee counts as a finance charge in the APR."},"isFinanced":{"type":"boolean","description":"True when the fee is rolled into the loan amount; null when unknown.","nullable":true},"isBorrowerShoppable":{"type":"boolean","description":"True when the borrower may shop for this service; null when unknown.","nullable":true},"jurisdiction":{"type":"string","description":"The jurisdiction the fee applies to (for example a state or county), when the source gives one.","nullable":true},"payee":{"$ref":"#/components/schemas/FeePayee"},"isTitleFee":{"type":"boolean","description":"True when the fee is a title fee; null when unknown.","nullable":true},"isOptional":{"type":"boolean","description":"True when the fee is optional; null when unknown.","nullable":true},"isFhaAllowable":{"type":"boolean","description":"True when the fee is allowable on an FHA loan; null when unknown.","nullable":true},"isDflp":{"type":"boolean","description":"True when the fee is deducted from the loan proceeds (DFLP); null when unknown.","nullable":true},"isThirdParty":{"type":"boolean","description":"True when the fee is paid to a third party; null when unknown.","nullable":true},"isAffiliate":{"type":"boolean","description":"True when the fee is paid to an affiliate of the lender; null when unknown.","nullable":true},"canShop":{"type":"boolean","description":"True when the borrower is allowed to shop for the service; null when unknown.","nullable":true},"didShop":{"type":"boolean","description":"True when the borrower did shop for the service; null when unknown.","nullable":true},"paymentTiming":{"$ref":"#/components/schemas/FeePaymentTiming"},"paymentDate":{"type":"string","description":"When the fee is or was paid, ISO 8601; null when not set.","format":"date-time","nullable":true},"isCalculated":{"type":"boolean","description":"True when the LOS calculates the fee (prepaids, reserves, per-diem interest), so its amount cannot be set directly; null when not stated.","nullable":true},"calculatedFrom":{"type":"array","items":{"type":"string"},"description":"For a calculated fee, the loan field ids it is calculated from, each followed by its lock flag where it has one\r\n(send the flag as True with the field). Empty when the fee is calculated but not mapped; null otherwise, and\r\nnever filled for the Partner API.","nullable":true}},"additionalProperties":false},"FeePayee":{"type":"object","properties":{"name":{"type":"string","description":"Name of the payee.","nullable":true},"address":{"type":"string","description":"Mailing address of the payee as free text.","nullable":true},"phone":{"type":"string","description":"Payee phone number.","nullable":true},"email":{"type":"string","description":"Payee email address.","nullable":true},"licenseNumber":{"type":"string","description":"The payee's license number, when the fee requires one.","nullable":true},"type":{"type":"string","description":"The payee's type (for example a title company or appraiser), as the source names it.","nullable":true}},"additionalProperties":false,"description":"Who a fee is paid to: the payee's name, contact details, license number and type."},"FeePaymentTiming":{"enum":["Unknown","AtClosing","OutsideOfClosing"],"type":"string","description":"When a fee is paid: Unknown (not stated), AtClosing (paid from closing funds) or OutsideOfClosing (paid before or after closing)."},"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/loan-applications/{id}/fees":{"get":{"tags":["Pricing, locks and fees"],"summary":"Retrieves a loan application's closing costs.","description":"**Required scope:** `read:loan-applications`","operationId":"LoanApplicationFees_GetFees","parameters":[{"name":"id","in":"path","description":"The loan application's id (a GUID). Send the empty GUID `00000000-0000-0000-0000-000000000000` when you address the loan by `externalId` instead. A loan in another company answers 404, the same as one that does not exist.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"200":{"description":"Fees retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanFeesResponse"}}}},"400":{"description":"Invalid identifier","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to access this resource","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Retrieves a loan application's program registration.

> \*\*Required scope:\*\* \`read:pricing\`\
> \
> Whether the loan is a TPO loan, its current registration (election, status, investor, product, rate,> \
> price, lock period, who registered it and when), the lock as the loan origination system reports it,> \
> and whether it can float or request a lock now; blockedReason says why not (NotTpo,> \
> LockAlreadyRequested, LoanLocked, LockDeskClosed). On a locked loan with a kept rate sheet, where the> \
> rate ladder is turned on for your company, it also carries \`ladder\`: the rows of the locked> \
> lock period (quoteId, rate, price, points, principalAndInterest, apr), the selected row and the moves> \
> after the lock. To ask for another row, see> \
> \`POST {id}/broker-requests/locked-rate-row\`.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Pricing, locks and fees","description":"**Pricing:** Price a loan scenario, or an existing loan from its stored data, across the products your company offers, then read a product's quotes and adjustments or why products were ineligible. Every search prices as a loan officer of your company (the one you name, else your application's acting user), who must be licensed in the property's state.\n\n**Program registration and locks:** register a priced program on a loan with `POST /loan-applications/{id}/registration`, which also requests the lock, and read the registration back. Cancelling a pending lock request is only available to POS customers.\n\n**Fees:** A loan's closing costs: each fee by section, who pays it, and the totals. Broker compensation is never included in a Partner API response.\n\n**Scopes:** `read:loan-applications`, `read:pricing`, `update:pricing`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"LoanRegistrationResponse":{"required":["canFloat","canRequestLock","isRegistrationOpen","isTpoLoan","loanApplicationId"],"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"isTpoLoan":{"type":"boolean","description":"The loan's company is a TPO."},"isRegistrationOpen":{"type":"boolean","description":"Registration (price, float, lock) is open on the loan; true for every company's loan."},"registration":{"$ref":"#/components/schemas/LoanRegistration"},"lock":{"$ref":"#/components/schemas/LoanRegistrationLock"},"ladder":{"$ref":"#/components/schemas/LoanRateLockLadder"},"monitor":{"$ref":"#/components/schemas/RateMonitor"},"canFloat":{"type":"boolean","description":"True when the loan may be registered to float."},"canRequestLock":{"type":"boolean","description":"True when a rate lock can be requested for the loan now."},"blockedReason":{"type":"string","description":"Why `CanFloat` or `CanRequestLock` is false (`LoanRegistrationBlockedReasons`);\r\nnull when both are true.","nullable":true}},"additionalProperties":false,"description":"A loan's program registration: the chosen product, rate and price, and who registered it and when."},"LoanRegistration":{"type":"object","properties":{"scenarioId":{"type":"string","description":"Unique identifier (GUID) of the pricing scenario registered.","format":"uuid","nullable":true},"election":{"type":"string","description":"`Float` or `Lock`.","nullable":true},"status":{"$ref":"#/components/schemas/PricingScenarioStatus"},"investor":{"type":"string","description":"Omitted when the caller is not given the investor (`InvestorRedaction`).","nullable":true},"sourceInvestor":{"type":"string","description":"The lender behind a portfolio investor's product. Omitted when the investor is not a listed portfolio investor or the caller is not given the investor.","nullable":true},"productName":{"type":"string","description":"Name of the registered product.","nullable":true},"productId":{"type":"string","description":"Identifier of the registered product in the pricing engine.","nullable":true},"rate":{"type":"number","description":"The registered note rate in percent, for example 6.875.","format":"double","nullable":true},"price":{"type":"number","description":"The registered price, where 100 is par (for example 100.375).","format":"double","nullable":true},"lockPeriod":{"type":"integer","description":"Lock period in days.","format":"int32","nullable":true},"registeredBy":{"type":"string","description":"The registering user; null for a partner application with no user, or a lock requested outside registration.","format":"uuid","nullable":true},"registeredByName":{"type":"string","description":"Name of the user who registered the program.","nullable":true},"registeredAt":{"type":"string","description":"UTC.","format":"date-time"}},"additionalProperties":false,"description":"A loan's chosen program and rate, and who registered it and when."},"PricingScenarioStatus":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the status.","format":"uuid","nullable":true},"code":{"type":"string","description":"Short code of the status; the stable value to compare against.","nullable":true},"name":{"type":"string","description":"Display name of the status.","nullable":true}},"additionalProperties":false,"description":"The status of a pricing scenario, such as Initial Pricing or Ready to Lock."},"LoanRegistrationLock":{"type":"object","properties":{"lockStatus":{"type":"string","description":"Lock status: Not Locked, Locked or Lock Suspended.","nullable":true},"lockExpirationDate":{"type":"string","description":"Date the lock expires, ISO 8601; null when the loan is not locked.","format":"date","nullable":true}},"additionalProperties":false,"description":"The rate lock status of a registered loan."},"LoanRateLockLadder":{"type":"object","properties":{"takenAt":{"type":"string","description":"When the snapshot was taken, which is when the lock was placed (UTC).","format":"date-time"},"productName":{"type":"string","description":"Name of the locked product.","nullable":true},"investor":{"type":"string","description":"Name of the investor behind the locked product, when the caller is shown the investor.","nullable":true},"lockPeriod":{"type":"integer","description":"The locked lock period in days; every row has it.","format":"int32","nullable":true},"selectedQuoteId":{"type":"string","description":"quoteId of the selected row.","nullable":true},"selected":{"$ref":"#/components/schemas/LoanRateLockRow"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/LoanRateLockRow"},"description":"The rows of the locked lock period, lowest rate first.","nullable":true},"moves":{"type":"array","items":{"$ref":"#/components/schemas/LockPositionMove"},"description":"The moves of the selected row after the lock, oldest first.","nullable":true},"sourceInstruction":{"$ref":"#/components/schemas/SourceLockInstruction"},"productCode":{"type":"string","description":"The locked product's code. Shown with the source lock instruction only.","nullable":true},"rateSheetTime":{"type":"string","description":"When the product's rate sheet was published, ISO 8601. Shown with the source lock instruction only.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"The locked product's rate sheet at the time of the lock, as the rate lock read returns it: the rows of the locked lock period, the selected row and the moves. Absent on a loan locked before the snapshot was kept."},"LoanRateLockRow":{"type":"object","properties":{"quoteId":{"type":"string","description":"Identifier of this row; pass it to select the row or to request it as a change of circumstance.","nullable":true},"rate":{"type":"number","description":"Note rate of the row, in percent such as 6.875.","format":"double","nullable":true},"price":{"type":"number","description":"Price of the row, where 100 is par.","format":"double","nullable":true},"points":{"type":"number","description":"Discount points as a percent of the loan amount; negative when the row pays a rebate.","format":"double","nullable":true},"principalAndInterest":{"type":"number","description":"Monthly principal and interest payment of the row, in dollars.","format":"double","nullable":true},"apr":{"type":"number","description":"Annual percentage rate of the row, in percent.","format":"double","nullable":true},"monthlyMi":{"type":"number","description":"Monthly mortgage insurance of this row, in dollars; 0 when the product has none.","format":"double","nullable":true},"discountDollar":{"type":"number","description":"The buydown (discount) this row costs, in dollars; 0 on a rebate or par row.","format":"double","nullable":true},"rebateDollar":{"type":"number","description":"The rebate (credit) this row gives, in dollars; 0 on a buydown or par row.","format":"double","nullable":true},"isSelected":{"type":"boolean","description":"True for the row the lock is currently on."}},"additionalProperties":false,"description":"One rate and price of the locked product's rate sheet."},"LockPositionMove":{"type":"object","properties":{"movedAt":{"type":"string","description":"When the selected row was moved, ISO 8601 UTC.","format":"date-time"},"movedBy":{"type":"string","description":"Identifier (GUID) of the user who moved it.","format":"uuid","nullable":true},"movedByName":{"type":"string","description":"Name of the user who moved it.","nullable":true},"fromQuoteId":{"type":"string","description":"quoteId of the row before the move.","nullable":true},"fromRate":{"type":"number","description":"Note rate before the move, in percent.","format":"double","nullable":true},"fromPrice":{"type":"number","description":"Price before the move, where 100 is par.","format":"double","nullable":true},"toQuoteId":{"type":"string","description":"quoteId of the row after the move.","nullable":true},"toRate":{"type":"number","description":"Note rate after the move, in percent.","format":"double","nullable":true},"toPrice":{"type":"number","description":"Price after the move, where 100 is par.","format":"double","nullable":true},"sourceFromPrice":{"type":"number","description":"The source lender's price before the move, from its frozen rate sheet. Null when there is no source instruction or the rate is not on that sheet. Staff only.","format":"double","nullable":true},"sourceToPrice":{"type":"number","description":"The source lender's price after the move. Null when there is no source instruction or the rate is not on that sheet. Staff only.","format":"double","nullable":true},"sourceNote":{"type":"string","description":"Set when the instruction has no price at the new rate, in words. Staff only.","nullable":true}},"additionalProperties":false,"description":"One move of the selected row: who, when, and from which rate and price to which."},"SourceLockInstruction":{"type":"object","properties":{"status":{"type":"string","description":"Outcome of looking for the source price: Priced (the price is set), Unmapped (no source product is mapped to the locked product), NoSourcePricingAccount (the company has no source pricing account), SourceSearchFailed, SourceProductNotReturned or RateNotOnSourceSheet.","nullable":true},"message":{"type":"string","description":"In words, what happened when there is no price.","nullable":true},"sourceInvestor":{"type":"string","description":"Name of the source lender.","nullable":true},"sourceInvestorId":{"type":"integer","description":"Identifier of the source lender in the pricing engine.","format":"int32","nullable":true},"sourceProductName":{"type":"string","description":"Name of the source lender's product to lock.","nullable":true},"sourceProductCode":{"type":"string","description":"Product code of the source lender's product.","nullable":true},"portfolioProductCode":{"type":"string","description":"Code of the portfolio product the row was found by.","nullable":true},"rate":{"type":"number","description":"The selected note rate, in percent.","format":"double","nullable":true},"lockPeriod":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"sourcePrice":{"type":"number","description":"The source lender's price at the selected rate and lock period, from its frozen rate sheet.","format":"double","nullable":true},"sourceRateSheetTime":{"type":"string","description":"When the source lender's rate sheet was published, ISO 8601.","format":"date-time","nullable":true},"portfolioPrice":{"type":"number","description":"The portfolio price the broker locked at, including the portfolio's margin.","format":"double","nullable":true},"priceDifference":{"type":"number","description":"portfolioPrice minus sourcePrice: the margin, in points.","format":"double","nullable":true}},"additionalProperties":false,"description":"The instruction for the lock desk: lock the source product with the source lender at the source price. It follows the selected row, so a move of the selected rate rewrites it from the source lender's frozen rate sheet. Shown to staff only."},"RateMonitor":{"type":"object","properties":{"state":{"type":"string","description":"`Watching`, `Paused` or `Ended` (`RateWatchStates`).","nullable":true},"endReason":{"type":"string","description":"Why the watch ended (`RateWatchEndReasons`); null while it has not. One of:\r\n`Replaced` (a later Float registered the loan again and replaced this watch),\r\n`LockRequested` (the loan went to a lock request),\r\n`NoLongerFloating` (the scenario was archived or is no longer Floating),\r\n`LoanLocked` (the loan is locked in the loan system or carries an unexpired rate lock),\r\n`LoanClosed` (the loan reached a terminal pipeline stage),\r\n`LoanDeleted` (the loan was deleted or no longer exists),\r\n`Expired` (the watch ran longer than the configured number of days).","nullable":true},"startedAt":{"type":"string","description":"UTC.","format":"date-time"},"lastCheckedAt":{"type":"string","description":"When the price was last read, UTC; null before the first reading.","format":"date-time","nullable":true},"nextCheckAt":{"type":"string","description":"When the next reading is due, UTC; null when none is scheduled or the watch ended.","format":"date-time","nullable":true},"latest":{"$ref":"#/components/schemas/RateMonitorReading"},"baseline":{"$ref":"#/components/schemas/RateMonitorBaseline"},"priceChange":{"type":"number","description":"The latest price minus the registered price, in points; null unless the latest reading has a price and the registration had one.","format":"double","nullable":true},"priceChangeDollars":{"type":"number","description":"The loan amount times `priceChange` over 100, in dollars; null when either is unknown.","format":"double","nullable":true},"targetPrice":{"type":"number","description":"The price the broker is waiting for, where 100 is par; null when none is set.","format":"double","nullable":true},"targetReachedAt":{"type":"string","description":"When a reading first met the target, UTC; null until it does, and cleared when the target changes.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"How a floating registration's price has moved since it was registered: the watch's state, the latest reading against the registered quote, and the broker's target price."},"RateMonitorReading":{"type":"object","properties":{"price":{"type":"number","description":"The price at the registered rate and lock period, where 100 is par; null unless the outcome is `Ok`.","format":"double","nullable":true},"rate":{"type":"number","description":"The registered note rate in percent.","format":"double"},"lockPeriod":{"type":"integer","description":"Lock period in days.","format":"int32"},"parRate":{"type":"number","description":"The par rate of the product's ladder at the lock period, when the reading found one.","format":"double","nullable":true},"outcome":{"type":"string","description":"`Ok`, `NotOffered` (the product or the rate is no longer on the sheet) or `Failed` (`RateWatchOutcomes`).","nullable":true},"observedAt":{"type":"string","description":"UTC.","format":"date-time"}},"additionalProperties":false,"description":"One reading of the registered quote."},"RateMonitorBaseline":{"type":"object","properties":{"price":{"type":"number","description":"The registered price, where 100 is par.","format":"double","nullable":true},"rate":{"type":"number","description":"The registered note rate in percent.","format":"double"},"parRate":{"type":"number","description":"The par rate of the ladder the quote was taken from, at the registered lock period.","format":"double","nullable":true}},"additionalProperties":false,"description":"The quote a watch started from."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/loan-applications/{id}/registration":{"get":{"tags":["Pricing, locks and fees"],"summary":"Retrieves a loan application's program registration.","description":"**Required scope:** `read:pricing`\n\nWhether the loan is a TPO loan, its current registration (election, status, investor, product, rate,\r\nprice, lock period, who registered it and when), the lock as the loan origination system reports it,\r\nand whether it can float or request a lock now; blockedReason says why not (NotTpo,\r\nLockAlreadyRequested, LoanLocked, LockDeskClosed). On a locked loan with a kept rate sheet, where the\r\nrate ladder is turned on for your company, it also carries `ladder`: the rows of the locked\r\nlock period (quoteId, rate, price, points, principalAndInterest, apr), the selected row and the moves\r\nafter the lock. To ask for another row, see\r\n`POST {id}/broker-requests/locked-rate-row`.","operationId":"LoanApplicationRegistration_GetRegistration","parameters":[{"name":"id","in":"path","description":"The loan application's id (a GUID). Send the empty GUID `00000000-0000-0000-0000-000000000000` when you address the loan by `externalId` instead. A loan in another company answers 404, the same as one that does not exist.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"200":{"description":"The registration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanRegistrationResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to access this resource","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Registers one program on a TPO loan, floating or locked.

> \*\*Required scope:\*\* \`update:pricing\` (tokens with the legacy name \`write:pricing\` are also accepted)\
> \
> The loan is re-priced and the selected quote (one product, one rate and lockPeriod) must still be> \
> offered, else 409 QuoteUnavailable and nothing is saved. The loan's Floating registration, if any, is> \
> archived. Float: saved and logged, no email. Lock: the lock desk is emailed and a lock-request PDF is> \
> filed to the loan; the loan then takes no further float or lock until the request is cancelled. A> \
> lock request is not a lock with the investor, and nothing is written to the loan origination system.> \
> Refusals: 400 NotTpo; 409 LockAlreadyRequested, LoanLocked, LockDeskClosed (lock only),> \
> QuoteUnavailable.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Pricing, locks and fees","description":"**Pricing:** Price a loan scenario, or an existing loan from its stored data, across the products your company offers, then read a product's quotes and adjustments or why products were ineligible. Every search prices as a loan officer of your company (the one you name, else your application's acting user), who must be licensed in the property's state.\n\n**Program registration and locks:** register a priced program on a loan with `POST /loan-applications/{id}/registration`, which also requests the lock, and read the registration back. Cancelling a pending lock request is only available to POS customers.\n\n**Fees:** A loan's closing costs: each fee by section, who pays it, and the totals. Broker compensation is never included in a Partner API response.\n\n**Scopes:** `read:loan-applications`, `read:pricing`, `update:pricing`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"RegisterLoanProgramRequest":{"required":["election","selection"],"type":"object","properties":{"selection":{"$ref":"#/components/schemas/PricingScenarioSelection"},"election":{"$ref":"#/components/schemas/LoanRegistrationElection"},"loanOverrides":{"$ref":"#/components/schemas/LoanPricingOverrides"},"notes":{"type":"string","description":"Optional notes saved on the registration.","nullable":true}},"additionalProperties":false,"description":"Registers one program on a TPO loan, floating or with a lock request: the body of `POST /loan-applications/{id}/registration`. `loanOverrides`: searchCriteria inside loanOverrides is ignored on the Partner API; use the named overrides."},"PricingScenarioSelection":{"required":["quotes"],"type":"object","properties":{"productId":{"type":"string","description":"PREFERRED. The productId from a search_pricing result. Provide this or productName.","nullable":true},"productName":{"type":"string","description":"Fallback identifier: the exact product name from a search_pricing result (case-insensitive). Ignored when productId is provided.","nullable":true},"quotes":{"type":"array","items":{"$ref":"#/components/schemas/PricingScenarioQuoteSelection"},"description":"The quotes to save for this product, each a rate + lockPeriod pair picked from the product's quote ladder (get_product_details). Omit entirely to select the product as a deal-desk PROGRAM without quotes (Admin/Processor only)."}},"additionalProperties":false,"description":"One product to save on the scenario, with the quotes to save under it, or none to save the program without a quote. Send productId or productName, and exactly one entry in quotes."},"PricingScenarioQuoteSelection":{"required":["lockPeriod","rate"],"type":"object","properties":{"rate":{"type":"number","description":"REQUIRED. The note rate of the quote to save, exactly as shown in the product's quote ladder (e.g. 6.625).","format":"double"},"lockPeriod":{"type":"integer","description":"REQUIRED. The lock period in days of the quote to save (e.g. 30).","format":"int32"}},"additionalProperties":false,"description":"One quote under a selected product: a rate/lock-period pair from its quote ladder."},"LoanRegistrationElection":{"enum":["Float","Lock"],"type":"string","description":"Float the registered program, or request a lock on it."},"LoanPricingOverrides":{"type":"object","properties":{"loanAmount":{"type":"number","description":"Base loan amount in USD. Overrides the loan's amount.","format":"double","nullable":true},"propertyValue":{"type":"number","description":"Property value in USD, used as appraised value and sales price. Overrides the loan's appraised value / purchase price.","format":"double","nullable":true},"ficoScore":{"type":"integer","description":"Representative FICO score (300-850). Overrides the loan's credit score. 0 or less counts as no score. The 300-850 range is not checked.","format":"int32","nullable":true},"loanType":{"$ref":"#/components/schemas/LoanPricingCriteriaLoanType"},"loanPurpose":{"$ref":"#/components/schemas/LoanPricingCriteriaLoanPurpose"},"cashOutAmount":{"type":"number","description":"Cash-out amount in USD (refinance).","format":"double","nullable":true},"occupancy":{"$ref":"#/components/schemas/PropertySearchCriteriaOccupancy"},"propertyType":{"$ref":"#/components/schemas/PropertySearchCriteriaPropertyType"},"numberOfUnits":{"type":"string","description":"Number of dwelling units: OneUnit, TwoUnits, ThreeUnits, FourUnits, or a count of 5 or more such as \"6\". Overrides the loan's unit count.","nullable":true},"state":{"type":"string","description":"Property state (two-letter US code). Overrides the subject property's state.","nullable":true},"zipCode":{"type":"string","description":"Property ZIP code. Overrides the subject property's ZIP code.","nullable":true},"county":{"type":"string","description":"Property county. When absent it is looked up from the property state and ZIP code.","nullable":true},"citizenship":{"$ref":"#/components/schemas/BorrowerCriteriaCitizenship"},"debtToIncomeRatio":{"type":"number","description":"DTI percent (25 = 25%). Overrides the loan's qualifying back-end ratio.","format":"double","nullable":true},"monthsReserves":{"type":"integer","description":"Months of post-closing reserves.","format":"int32","nullable":true},"waiveEscrows":{"type":"boolean","description":"Whether escrows are waived. Overrides the loan's escrow waiver.","nullable":true},"selfEmployed":{"type":"boolean","description":"Whether a borrower is self-employed. Overrides what the loan's employment says.","nullable":true},"firstTimeHomeBuyer":{"type":"boolean","description":"Whether the borrower is a first-time home buyer. Overrides the loan's declarations.","nullable":true},"interestOnly":{"type":"boolean","description":"Whether to price interest-only products. A loan is priced without them when absent.","nullable":true},"includeLoCompensationInPricing":{"$ref":"#/components/schemas/LoanPricingCriteriaIncludeLOCompensationInPricing"},"loanTerms":{"type":"array","items":{"$ref":"#/components/schemas/LoanTerms"},"description":"Loan terms to price. Overrides the loan's term.","nullable":true},"amortizationTypes":{"type":"array","items":{"$ref":"#/components/schemas/AmortizationTypes"},"description":"Amortization types to price. Overrides the loan's amortization type.","nullable":true},"armFixedTerms":{"type":"array","items":{"$ref":"#/components/schemas/ArmFixedTerms"},"description":"ARM fixed periods to price when amortizationTypes contains ARM.","nullable":true},"productTypes":{"type":"array","items":{"$ref":"#/components/schemas/ProductTypes"},"description":"Product categories to include. [StandardProducts] when absent; non-QM uses [ExpandedGuidelines].","nullable":true},"desiredLockPeriod":{"type":"integer","description":"Desired lock period in days. Overrides the loan's lock period.","format":"int32","nullable":true},"desiredPrice":{"type":"number","description":"Desired price (par = 100).","format":"double","nullable":true},"desiredRate":{"type":"number","description":"Target interest rate. 0 returns all eligible rates.","format":"double","nullable":true},"includeGuidelines":{"type":"boolean","description":"If true, include per-product eligibility guidelines.","nullable":true}},"additionalProperties":false,"description":"Criteria a caller passes alongside a loan id when pricing a loan from its stored data. Every field is\r\noptional and has no default: a field left null is taken from the loan, and a field set here wins over\r\nthe loan's value. After the overrides are applied the loan must still have a loan amount, property value, number of units, state, ZIP code, occupancy, loan purpose, loan type and credit score, or the request is refused with a 400 naming each one missing."},"LoanPricingCriteriaLoanType":{"enum":["Conforming","NonConforming","FHA","VA","Conventional","HELOC","USDARuralHousing"],"type":"string","description":"Loan type, which drives the product set. Conforming is a conventional loan within agency loan limits; NonConforming is a conventional loan above those limits (jumbo); Conventional is a conventional, non-government loan; FHA, VA and USDARuralHousing are government-insured or guaranteed loans; HELOC is a home equity line of credit."},"LoanPricingCriteriaLoanPurpose":{"enum":["Purchase","RefiCashout","RefiRateTermLimitedCO","FHAStreamlineRefi","VARateReduction","SimpleRefinance"],"type":"string","description":"Purpose of the loan. Purchase buys the property; RefiCashout is a cash-out refinance; RefiRateTermLimitedCO is a rate-and-term or limited cash-out refinance; FHAStreamlineRefi is an FHA streamline refinance; VARateReduction is a VA interest rate reduction refinance; SimpleRefinance is a refinance without cash out."},"PropertySearchCriteriaOccupancy":{"enum":["InvestmentProperty","PrimaryResidence","SecondHome"],"type":"string","description":"How the borrower will use the property. PrimaryResidence is the borrower's main home; SecondHome is a vacation or second home; InvestmentProperty is held for rent or resale."},"PropertySearchCriteriaPropertyType":{"enum":["SingleFamily","Condo","ManufacturedDoubleWide","Condotel","Modular","PUD","Timeshare","ManufacturedSingleWide","Coop","NonWarrantableCondo","Townhouse","DetachedCondo"],"type":"string","description":"Type of the subject property. SingleFamily, Townhouse, Condo, DetachedCondo, NonWarrantableCondo (a condo project that does not meet agency eligibility rules), Condotel (hotel-style condo), Coop, PUD (planned unit development), Modular, ManufacturedSingleWide, ManufacturedDoubleWide and Timeshare."},"BorrowerCriteriaCitizenship":{"enum":["USCitizen","USCitizenAbroad","PermResidentAlien","NonPermResidentAlien","ForeignNational"],"type":"string","description":"The borrower's citizenship status for pricing: USCitizen, USCitizenAbroad (a U.S. citizen living abroad), PermResidentAlien, NonPermResidentAlien or ForeignNational."},"LoanPricingCriteriaIncludeLOCompensationInPricing":{"enum":["YesLenderPaid","NoBuyerPaid","NoLenderPaid"],"type":"string","description":"Whether and how the loan officer's compensation is reflected in the quoted price. YesLenderPaid includes lender-paid compensation in the price; NoBuyerPaid leaves it out because the borrower pays it directly; NoLenderPaid leaves out lender-paid compensation."},"LoanTerms":{"enum":["ThirtyYear","TwentyFiveYear","TwentyYear","FifteenYear","TenYear","SevenYear","FiveYear","FortyYear","FourYear","TwoYear","ThreeMonth","SixMonth","NineMonth","ThreeYear","NineYear","EightYear","SixYear","OneYear","TwelveYear","NonStandardTerm"],"type":"string","description":"The loan term: ThirtyYear, TwentyFiveYear, TwentyYear, FifteenYear, TenYear, SevenYear, FiveYear, FortyYear, FourYear, TwoYear, ThreeMonth, SixMonth, NineMonth, ThreeYear, NineYear, EightYear, SixYear, OneYear, TwelveYear or NonStandardTerm; each is that length of time."},"AmortizationTypes":{"enum":["Fixed","ARM","Balloon","OptionArm"],"type":"string","description":"How the loan's principal is repaid and its rate set. Fixed has one rate for the whole term; ARM is an adjustable-rate mortgage; Balloon has a short term with a large final payment; OptionArm is an adjustable-rate loan that lets the borrower choose among payment options."},"ArmFixedTerms":{"enum":["SixMonth","OneYear","ThreeYear","FiveYear","SevenYear","TenYear","TwoYear","OneMonth","ThreeMonth","FifteenYear","SixYear"],"type":"string","description":"Initial fixed-rate period of an adjustable-rate mortgage, before the rate first adjusts. OneMonth, ThreeMonth and SixMonth are that many months; OneYear, TwoYear, ThreeYear, FiveYear, SixYear, SevenYear, TenYear and FifteenYear are that many years."},"ProductTypes":{"enum":["StandardProducts","AffordableProducts","HARP","HeroProducts","StudentLoanCORefi","RenovationAndRehabilitation","BondAndHFA","HUDspecialty","USDAStreamline","ExpandedGuidelines"],"type":"string","description":"Category of loan product to include in a search. StandardProducts are the standard agency and government products; AffordableProducts are affordable-lending programs; HARP is the refinance program for loans with high loan-to-value; HeroProducts are programs for military and public-service borrowers; StudentLoanCORefi is a cash-out refinance that pays off student loans; RenovationAndRehabilitation finances repairs or renovation; BondAndHFA are housing-finance-agency and bond programs; HUDspecialty are HUD specialty programs; USDAStreamline is the USDA streamline refinance; ExpandedGuidelines are non-agency products with expanded guidelines."},"LoanRegistrationResponse":{"required":["canFloat","canRequestLock","isRegistrationOpen","isTpoLoan","loanApplicationId"],"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"isTpoLoan":{"type":"boolean","description":"The loan's company is a TPO."},"isRegistrationOpen":{"type":"boolean","description":"Registration (price, float, lock) is open on the loan; true for every company's loan."},"registration":{"$ref":"#/components/schemas/LoanRegistration"},"lock":{"$ref":"#/components/schemas/LoanRegistrationLock"},"ladder":{"$ref":"#/components/schemas/LoanRateLockLadder"},"monitor":{"$ref":"#/components/schemas/RateMonitor"},"canFloat":{"type":"boolean","description":"True when the loan may be registered to float."},"canRequestLock":{"type":"boolean","description":"True when a rate lock can be requested for the loan now."},"blockedReason":{"type":"string","description":"Why `CanFloat` or `CanRequestLock` is false (`LoanRegistrationBlockedReasons`);\r\nnull when both are true.","nullable":true}},"additionalProperties":false,"description":"A loan's program registration: the chosen product, rate and price, and who registered it and when."},"LoanRegistration":{"type":"object","properties":{"scenarioId":{"type":"string","description":"Unique identifier (GUID) of the pricing scenario registered.","format":"uuid","nullable":true},"election":{"type":"string","description":"`Float` or `Lock`.","nullable":true},"status":{"$ref":"#/components/schemas/PricingScenarioStatus"},"investor":{"type":"string","description":"Omitted when the caller is not given the investor (`InvestorRedaction`).","nullable":true},"sourceInvestor":{"type":"string","description":"The lender behind a portfolio investor's product. Omitted when the investor is not a listed portfolio investor or the caller is not given the investor.","nullable":true},"productName":{"type":"string","description":"Name of the registered product.","nullable":true},"productId":{"type":"string","description":"Identifier of the registered product in the pricing engine.","nullable":true},"rate":{"type":"number","description":"The registered note rate in percent, for example 6.875.","format":"double","nullable":true},"price":{"type":"number","description":"The registered price, where 100 is par (for example 100.375).","format":"double","nullable":true},"lockPeriod":{"type":"integer","description":"Lock period in days.","format":"int32","nullable":true},"registeredBy":{"type":"string","description":"The registering user; null for a partner application with no user, or a lock requested outside registration.","format":"uuid","nullable":true},"registeredByName":{"type":"string","description":"Name of the user who registered the program.","nullable":true},"registeredAt":{"type":"string","description":"UTC.","format":"date-time"}},"additionalProperties":false,"description":"A loan's chosen program and rate, and who registered it and when."},"PricingScenarioStatus":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the status.","format":"uuid","nullable":true},"code":{"type":"string","description":"Short code of the status; the stable value to compare against.","nullable":true},"name":{"type":"string","description":"Display name of the status.","nullable":true}},"additionalProperties":false,"description":"The status of a pricing scenario, such as Initial Pricing or Ready to Lock."},"LoanRegistrationLock":{"type":"object","properties":{"lockStatus":{"type":"string","description":"Lock status: Not Locked, Locked or Lock Suspended.","nullable":true},"lockExpirationDate":{"type":"string","description":"Date the lock expires, ISO 8601; null when the loan is not locked.","format":"date","nullable":true}},"additionalProperties":false,"description":"The rate lock status of a registered loan."},"LoanRateLockLadder":{"type":"object","properties":{"takenAt":{"type":"string","description":"When the snapshot was taken, which is when the lock was placed (UTC).","format":"date-time"},"productName":{"type":"string","description":"Name of the locked product.","nullable":true},"investor":{"type":"string","description":"Name of the investor behind the locked product, when the caller is shown the investor.","nullable":true},"lockPeriod":{"type":"integer","description":"The locked lock period in days; every row has it.","format":"int32","nullable":true},"selectedQuoteId":{"type":"string","description":"quoteId of the selected row.","nullable":true},"selected":{"$ref":"#/components/schemas/LoanRateLockRow"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/LoanRateLockRow"},"description":"The rows of the locked lock period, lowest rate first.","nullable":true},"moves":{"type":"array","items":{"$ref":"#/components/schemas/LockPositionMove"},"description":"The moves of the selected row after the lock, oldest first.","nullable":true},"sourceInstruction":{"$ref":"#/components/schemas/SourceLockInstruction"},"productCode":{"type":"string","description":"The locked product's code. Shown with the source lock instruction only.","nullable":true},"rateSheetTime":{"type":"string","description":"When the product's rate sheet was published, ISO 8601. Shown with the source lock instruction only.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"The locked product's rate sheet at the time of the lock, as the rate lock read returns it: the rows of the locked lock period, the selected row and the moves. Absent on a loan locked before the snapshot was kept."},"LoanRateLockRow":{"type":"object","properties":{"quoteId":{"type":"string","description":"Identifier of this row; pass it to select the row or to request it as a change of circumstance.","nullable":true},"rate":{"type":"number","description":"Note rate of the row, in percent such as 6.875.","format":"double","nullable":true},"price":{"type":"number","description":"Price of the row, where 100 is par.","format":"double","nullable":true},"points":{"type":"number","description":"Discount points as a percent of the loan amount; negative when the row pays a rebate.","format":"double","nullable":true},"principalAndInterest":{"type":"number","description":"Monthly principal and interest payment of the row, in dollars.","format":"double","nullable":true},"apr":{"type":"number","description":"Annual percentage rate of the row, in percent.","format":"double","nullable":true},"monthlyMi":{"type":"number","description":"Monthly mortgage insurance of this row, in dollars; 0 when the product has none.","format":"double","nullable":true},"discountDollar":{"type":"number","description":"The buydown (discount) this row costs, in dollars; 0 on a rebate or par row.","format":"double","nullable":true},"rebateDollar":{"type":"number","description":"The rebate (credit) this row gives, in dollars; 0 on a buydown or par row.","format":"double","nullable":true},"isSelected":{"type":"boolean","description":"True for the row the lock is currently on."}},"additionalProperties":false,"description":"One rate and price of the locked product's rate sheet."},"LockPositionMove":{"type":"object","properties":{"movedAt":{"type":"string","description":"When the selected row was moved, ISO 8601 UTC.","format":"date-time"},"movedBy":{"type":"string","description":"Identifier (GUID) of the user who moved it.","format":"uuid","nullable":true},"movedByName":{"type":"string","description":"Name of the user who moved it.","nullable":true},"fromQuoteId":{"type":"string","description":"quoteId of the row before the move.","nullable":true},"fromRate":{"type":"number","description":"Note rate before the move, in percent.","format":"double","nullable":true},"fromPrice":{"type":"number","description":"Price before the move, where 100 is par.","format":"double","nullable":true},"toQuoteId":{"type":"string","description":"quoteId of the row after the move.","nullable":true},"toRate":{"type":"number","description":"Note rate after the move, in percent.","format":"double","nullable":true},"toPrice":{"type":"number","description":"Price after the move, where 100 is par.","format":"double","nullable":true},"sourceFromPrice":{"type":"number","description":"The source lender's price before the move, from its frozen rate sheet. Null when there is no source instruction or the rate is not on that sheet. Staff only.","format":"double","nullable":true},"sourceToPrice":{"type":"number","description":"The source lender's price after the move. Null when there is no source instruction or the rate is not on that sheet. Staff only.","format":"double","nullable":true},"sourceNote":{"type":"string","description":"Set when the instruction has no price at the new rate, in words. Staff only.","nullable":true}},"additionalProperties":false,"description":"One move of the selected row: who, when, and from which rate and price to which."},"SourceLockInstruction":{"type":"object","properties":{"status":{"type":"string","description":"Outcome of looking for the source price: Priced (the price is set), Unmapped (no source product is mapped to the locked product), NoSourcePricingAccount (the company has no source pricing account), SourceSearchFailed, SourceProductNotReturned or RateNotOnSourceSheet.","nullable":true},"message":{"type":"string","description":"In words, what happened when there is no price.","nullable":true},"sourceInvestor":{"type":"string","description":"Name of the source lender.","nullable":true},"sourceInvestorId":{"type":"integer","description":"Identifier of the source lender in the pricing engine.","format":"int32","nullable":true},"sourceProductName":{"type":"string","description":"Name of the source lender's product to lock.","nullable":true},"sourceProductCode":{"type":"string","description":"Product code of the source lender's product.","nullable":true},"portfolioProductCode":{"type":"string","description":"Code of the portfolio product the row was found by.","nullable":true},"rate":{"type":"number","description":"The selected note rate, in percent.","format":"double","nullable":true},"lockPeriod":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"sourcePrice":{"type":"number","description":"The source lender's price at the selected rate and lock period, from its frozen rate sheet.","format":"double","nullable":true},"sourceRateSheetTime":{"type":"string","description":"When the source lender's rate sheet was published, ISO 8601.","format":"date-time","nullable":true},"portfolioPrice":{"type":"number","description":"The portfolio price the broker locked at, including the portfolio's margin.","format":"double","nullable":true},"priceDifference":{"type":"number","description":"portfolioPrice minus sourcePrice: the margin, in points.","format":"double","nullable":true}},"additionalProperties":false,"description":"The instruction for the lock desk: lock the source product with the source lender at the source price. It follows the selected row, so a move of the selected rate rewrites it from the source lender's frozen rate sheet. Shown to staff only."},"RateMonitor":{"type":"object","properties":{"state":{"type":"string","description":"`Watching`, `Paused` or `Ended` (`RateWatchStates`).","nullable":true},"endReason":{"type":"string","description":"Why the watch ended (`RateWatchEndReasons`); null while it has not. One of:\r\n`Replaced` (a later Float registered the loan again and replaced this watch),\r\n`LockRequested` (the loan went to a lock request),\r\n`NoLongerFloating` (the scenario was archived or is no longer Floating),\r\n`LoanLocked` (the loan is locked in the loan system or carries an unexpired rate lock),\r\n`LoanClosed` (the loan reached a terminal pipeline stage),\r\n`LoanDeleted` (the loan was deleted or no longer exists),\r\n`Expired` (the watch ran longer than the configured number of days).","nullable":true},"startedAt":{"type":"string","description":"UTC.","format":"date-time"},"lastCheckedAt":{"type":"string","description":"When the price was last read, UTC; null before the first reading.","format":"date-time","nullable":true},"nextCheckAt":{"type":"string","description":"When the next reading is due, UTC; null when none is scheduled or the watch ended.","format":"date-time","nullable":true},"latest":{"$ref":"#/components/schemas/RateMonitorReading"},"baseline":{"$ref":"#/components/schemas/RateMonitorBaseline"},"priceChange":{"type":"number","description":"The latest price minus the registered price, in points; null unless the latest reading has a price and the registration had one.","format":"double","nullable":true},"priceChangeDollars":{"type":"number","description":"The loan amount times `priceChange` over 100, in dollars; null when either is unknown.","format":"double","nullable":true},"targetPrice":{"type":"number","description":"The price the broker is waiting for, where 100 is par; null when none is set.","format":"double","nullable":true},"targetReachedAt":{"type":"string","description":"When a reading first met the target, UTC; null until it does, and cleared when the target changes.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"How a floating registration's price has moved since it was registered: the watch's state, the latest reading against the registered quote, and the broker's target price."},"RateMonitorReading":{"type":"object","properties":{"price":{"type":"number","description":"The price at the registered rate and lock period, where 100 is par; null unless the outcome is `Ok`.","format":"double","nullable":true},"rate":{"type":"number","description":"The registered note rate in percent.","format":"double"},"lockPeriod":{"type":"integer","description":"Lock period in days.","format":"int32"},"parRate":{"type":"number","description":"The par rate of the product's ladder at the lock period, when the reading found one.","format":"double","nullable":true},"outcome":{"type":"string","description":"`Ok`, `NotOffered` (the product or the rate is no longer on the sheet) or `Failed` (`RateWatchOutcomes`).","nullable":true},"observedAt":{"type":"string","description":"UTC.","format":"date-time"}},"additionalProperties":false,"description":"One reading of the registered quote."},"RateMonitorBaseline":{"type":"object","properties":{"price":{"type":"number","description":"The registered price, where 100 is par.","format":"double","nullable":true},"rate":{"type":"number","description":"The registered note rate in percent.","format":"double"},"parRate":{"type":"number","description":"The par rate of the ladder the quote was taken from, at the registered lock period.","format":"double","nullable":true}},"additionalProperties":false,"description":"The quote a watch started from."},"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/loan-applications/{id}/registration":{"post":{"tags":["Pricing, locks and fees"],"summary":"Registers one program on a TPO loan, floating or locked.","description":"**Required scope:** `update:pricing` (tokens with the legacy name `write:pricing` are also accepted)\n\nThe loan is re-priced and the selected quote (one product, one rate and lockPeriod) must still be\r\noffered, else 409 QuoteUnavailable and nothing is saved. The loan's Floating registration, if any, is\r\narchived. Float: saved and logged, no email. Lock: the lock desk is emailed and a lock-request PDF is\r\nfiled to the loan; the loan then takes no further float or lock until the request is cancelled. A\r\nlock request is not a lock with the investor, and nothing is written to the loan origination system.\r\nRefusals: 400 NotTpo; 409 LockAlreadyRequested, LoanLocked, LockDeskClosed (lock only),\r\nQuoteUnavailable.","operationId":"LoanApplicationRegistration_Register","parameters":[{"name":"id","in":"path","description":"The loan application's id (a GUID). Send the empty GUID `00000000-0000-0000-0000-000000000000` when you address the loan by `externalId` instead. A loan in another company answers 404, the same as one that does not exist.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"requestBody":{"description":"The product and quote, the election (Float or Lock), optional pricing overrides and notes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterLoanProgramRequest"}}}},"responses":{"200":{"description":"The registration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanRegistrationResponse"}}}},"400":{"description":"Invalid request, or the loan is not a TPO loan","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to access this resource","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"A lock is already requested or the loan is locked, the lock desk is closed, or the quote is no longer available","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Cancel a lock request

> \*\*Required scope:\*\* \`update:pricing\` (tokens with the legacy name \`write:pricing\` are also accepted)\
> \
> The scenario returns to Ready to Lock with every quote unlocked, the loan's "Select Quote to Lock"> \
> task goes back to Requested, the loan officer, their ConciergeKey, the processing team and the> \
> borrowers are emailed, and a lock-request-update PDF is filed to the loan vault. Only a Lock> \
> Requested scenario qualifies.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Pricing, locks and fees","description":"**Pricing:** Price a loan scenario, or an existing loan from its stored data, across the products your company offers, then read a product's quotes and adjustments or why products were ineligible. Every search prices as a loan officer of your company (the one you name, else your application's acting user), who must be licensed in the property's state.\n\n**Program registration and locks:** register a priced program on a loan with `POST /loan-applications/{id}/registration`, which also requests the lock, and read the registration back. Cancelling a pending lock request is only available to POS customers.\n\n**Fees:** A loan's closing costs: each fee by section, who pays it, and the totals. Broker compensation is never included in a Partner API response.\n\n**Scopes:** `read:loan-applications`, `read:pricing`, `update:pricing`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PricingScenarioModel":{"type":"object","properties":{"id":{"type":"string","description":"Identifier (GUID) of the scenario. Set by the server on create.","format":"uuid","nullable":true},"clientId":{"type":"string","description":"Identifier (GUID) of the borrower client the scenario is for.","format":"uuid","nullable":true},"propertyId":{"type":"string","description":"Identifier (GUID) of the property the scenario is linked to, when there is one.","format":"uuid","nullable":true},"name":{"type":"string","description":"Name of the scenario, as shown in lists.","nullable":true},"notes":{"type":"string","description":"Free-text notes on the scenario.","nullable":true},"loanId":{"type":"string","description":"Legacy loan link kept on older scenarios. Use loanApplicationId.","format":"uuid","nullable":true},"loanNumber":{"type":"string","description":"Loan number the LOS gave the linked loan (externalId). Set by the server from the linked loan.","nullable":true},"loanScenarioId":{"type":"string","description":"Legacy link to an older loan-scenario record, kept on older scenarios.","format":"uuid","nullable":true},"loanApplicationId":{"type":"string","description":"Identifier (GUID) of the Henge loan application the scenario is linked to.","format":"uuid","nullable":true},"pricingScenarioType":{"type":"string","description":"Who the scenario is for: agent (the default) or client for scenarios a person saved, or Automated for scenarios the platform generated.","nullable":true},"request":{"$ref":"#/components/schemas/PricingSearchRequest"},"response":{"$ref":"#/components/schemas/PricingSearchResponse"},"dealDeskRequest":{"$ref":"#/components/schemas/PricingSearchRequest"},"dealDeskResponse":{"$ref":"#/components/schemas/PricingSearchResponse"},"createdTimestamp":{"type":"string","description":"When the scenario was created, ISO 8601 UTC. Set by the server.","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the scenario was last changed, ISO 8601 UTC. Set by the server.","format":"date-time"},"status":{"$ref":"#/components/schemas/PricingScenarioStatus"},"isArchived":{"type":"boolean","description":"True when the scenario has been deleted (archived). Archived scenarios are kept but no longer listed."},"sendBorrowerEmail":{"type":"boolean","description":"Retired with Loan Quotes: no borrower quote email is sent. Kept to read old scenario documents.","deprecated":true},"registration":{"$ref":"#/components/schemas/PricingScenarioRegistration"},"lockSnapshot":{"$ref":"#/components/schemas/PricingScenarioLockSnapshot"}},"additionalProperties":false},"PricingSearchRequest":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of this stored search request, set by the server.","nullable":true},"searchId":{"type":"string","description":"Identifier of the pricing search that ran with these criteria, set by the server.","nullable":true},"pricingScenarioId":{"type":"string","description":"Identifier of the pricing scenario this search belongs to, set by the server.","nullable":true},"canUpdate":{"type":"boolean","description":"True when the caller may change the scenario this request belongs to. Set by the server; read-only."},"qmInformation":{"$ref":"#/components/schemas/QMCriteria"},"borrowerInformation":{"$ref":"#/components/schemas/BorrowerCriteria"},"coBorrowerInformation":{"$ref":"#/components/schemas/CoBorrowerCriteria"},"loanInformation":{"$ref":"#/components/schemas/LoanPricingCriteria"},"propertyInformation":{"$ref":"#/components/schemas/PropertySearchCriteria"},"brokerCriteria":{"$ref":"#/components/schemas/BrokerCriteria"},"rateRange":{"$ref":"#/components/schemas/RateRange"},"dayLocksCriteria":{"type":"array","items":{"type":"integer","format":"int32"},"description":"Lock periods, in days, asked for. Kept for reference; the search prices loanInformation.desiredLockPeriod.","nullable":true},"representativeFico":{"type":"integer","description":"Representative credit score of the request. Kept for reference; the search prices the borrower and loan scores.","format":"int64","nullable":true},"loanLevelDebtToIncomeRatio":{"type":"number","description":"Loan-level debt-to-income ratio, in percent. Kept for reference; the search prices loanInformation.loanLevelDebtToIncomeRatio.","format":"double","nullable":true},"customerInternalId":{"type":"string","description":"Caller-supplied identifier, echoed on the search response.","nullable":true},"agentId":{"type":"string","description":"Identifier (GUID) of the loan officer the search ran for, which decides the pricing account it prices under.","format":"uuid"},"companyId":{"type":"string","description":"Identifier (GUID) of the loan officer's company.","format":"uuid"},"version":{"type":"string","description":"Version tag of the request, kept for reference.","nullable":true},"dynamicPropertiesMap":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FieldPropertyParameter"},"description":"Custom pricing fields, keyed by field identifier.","nullable":true},"includeGuidelines":{"type":"boolean","description":"True to include the guideline documents that apply to each product in the response."},"markupOverrides":{"type":"array","items":{"$ref":"#/components/schemas/MarkupOverride"},"description":"Per-request overrides of configured markup tiers, such as a corporate margin or loan officer compensation.","nullable":true},"commissionTier":{"$ref":"#/components/schemas/CommissionTier"}},"additionalProperties":false,"description":"A pricing search as it is stored with a scenario: the borrower, loan, property and fee criteria, plus who it was run for."},"QMCriteria":{"type":"object","properties":{"refinancePrepaymentFeeAmount":{"type":"number","description":"Prepayment fee charged on the loan being refinanced, in dollars.","format":"double"},"creditInsuranceFeeAmount":{"type":"number","description":"Credit insurance premium charged at closing, in dollars.","format":"double"},"cashIncentiveDiscountAmount":{"type":"number","description":"Cash incentive or discount applied at closing, in dollars.","format":"double"},"escrowTrusteeFeeAmount":{"type":"number","description":"Escrow or trustee fee, in dollars.","format":"double"},"propertyAssessmentFeeAmount":{"type":"number","description":"Property assessment fee, in dollars.","format":"double"},"notaryCreditReportFeeAmount":{"type":"number","description":"Notary and credit report fees, in dollars.","format":"double"},"documentPreperationFeeAmount":{"type":"number","description":"Document preparation fee, in dollars.","format":"double"},"titleFeeAmount":{"type":"number","description":"Title fees, in dollars.","format":"double"},"borrowerPaidLOCompensation":{"type":"number","description":"Loan officer compensation the borrower pays directly, in dollars.","format":"double"},"additionalQMFeesAffectAPOR":{"type":"boolean","description":"True when the additional fees are finance charges that also change the APR comparison."},"additionalQMFeeAmount":{"type":"number","description":"Other fees that count toward the points-and-fees test, in dollars.","format":"double"},"financedPMI":{"type":"number","description":"Mortgage insurance premium that is financed into the loan, in dollars.","format":"double"}},"additionalProperties":false,"description":"Itemized fees that count toward the Qualified Mortgage points-and-fees test and the APOR comparison. Every amount is in dollars and defaults to zero."},"BorrowerCriteria":{"type":"object","properties":{"applicationDate":{"type":"string","description":"Date the loan application was taken, ISO 8601.","format":"date-time","nullable":true},"assetDocumentation":{"type":"string","description":"How the borrower's assets are documented. Kept for reference; not used when pricing.","nullable":true},"bankruptcy":{"type":"string","description":"Bankruptcy history of the borrower. Kept for reference; not used when pricing.","nullable":true},"bankruptcyChapter":{"type":"string","description":"Chapter of the borrower's bankruptcy. Kept for reference; not used when pricing.","nullable":true},"bankStatementsForIncome":{"type":"string","description":"Months of bank statements used to document income. Kept for reference; not used when pricing.","nullable":true},"citizenship":{"type":"string","description":"Borrower's citizenship status: USCitizen, USCitizenAbroad, PermResidentAlien, NonPermResidentAlien or ForeignNational. Used when pricing.","nullable":true},"debtToIncomeRatio":{"type":"number","description":"Borrower's debt-to-income ratio, in percent. Kept for reference; the loan-level ratio on the request is what pricing uses.","format":"double","nullable":true},"disclosureDate":{"type":"string","description":"Date the initial loan disclosures were issued, ISO 8601.","format":"date-time","nullable":true},"docType":{"type":"string","description":"Documentation type of the loan. Kept for reference; not used when pricing.","nullable":true},"employmentDocumentation":{"type":"string","description":"How the borrower's employment is documented. Kept for reference; not used when pricing.","nullable":true},"fico":{"type":"integer","description":"Borrower's credit score. Used when pricing.","format":"int32","nullable":true},"firstName":{"type":"string","description":"Borrower's first name.","nullable":true},"firstTimeHomeBuyer":{"type":"boolean","description":"True when the borrower is a first-time home buyer, which makes first-time-buyer programs eligible.","nullable":true},"foreclosure":{"type":"string","description":"Foreclosure history of the borrower. Kept for reference; not used when pricing.","nullable":true},"incomeDocumentation":{"type":"string","description":"How the borrower's income is documented. Kept for reference; not used when pricing.","nullable":true},"lastName":{"type":"string","description":"Borrower's last name.","nullable":true},"militaryType":{"type":"string","description":"Borrower's military status. Kept for reference; use typeOfVeteran when pricing.","nullable":true},"monthlyIncome":{"type":"number","description":"Borrower's gross monthly income, in dollars. Kept for reference; not used when pricing.","format":"double","nullable":true},"monthsReserves":{"type":"integer","description":"Months of post-closing reserves the borrower has.","format":"int64","nullable":true},"mortgageLatesRolling":{"type":"integer","description":"Number of rolling mortgage late payments. Kept for reference; not used when pricing.","format":"int64","nullable":true},"mortgageLatesX120":{"type":"integer","description":"Number of mortgage payments 120 or more days late. Kept for reference; not used when pricing.","format":"int64","nullable":true},"mortgageLatesX30":{"type":"integer","description":"Number of mortgage payments 30 days late. Kept for reference; not used when pricing.","format":"int64","nullable":true},"mortgageLatesX60":{"type":"integer","description":"Number of mortgage payments 60 days late. Kept for reference; not used when pricing.","format":"int64","nullable":true},"mortgageLatesX90":{"type":"integer","description":"Number of mortgage payments 90 days late. Kept for reference; not used when pricing.","format":"int64","nullable":true},"pledgedAssets":{"type":"boolean","description":"True when the borrower pledges assets to qualify. Kept for reference; not used when pricing.","nullable":true},"selfEmployed":{"type":"boolean","description":"True when the borrower is self-employed.","nullable":true},"state":{"type":"string","description":"Two-letter state of the borrower's residence.","nullable":true},"vaFirstTimeUse":{"type":"boolean","description":"True when this is the borrower's first use of the VA loan benefit, which lowers the VA funding fee.","nullable":true},"typeOfVeteran":{"type":"string","description":"Veteran status for VA pricing: ActiveDuty or NationalGuardOrReserves. Used when pricing.","nullable":true},"waiveEscrows":{"type":"boolean","description":"True when the borrower asks to waive escrows for taxes and insurance, which can add a price adjustment.","nullable":true},"compensationType":{"type":"string","description":"How the loan officer is compensated. Kept for reference; not used when pricing.","nullable":true},"ownProperties":{"type":"integer","description":"Number of properties the borrower owns. Kept for reference; not used when pricing.","format":"int32","nullable":true},"numberOfBorrower":{"type":"integer","description":"Number of borrowers on the loan. Kept for reference; not used when pricing.","format":"int32","nullable":true},"averageMedianCreditScore":{"type":"integer","description":"Average of the borrowers' median credit scores. Kept for reference; not used when pricing.","format":"int32","nullable":true},"balloon":{"type":"boolean","description":"True when the loan has a balloon payment. Kept for reference; not used when pricing.","nullable":true},"paymentInterestType":{"type":"string","description":"Payment and interest structure of the loan. Kept for reference; not used when pricing.","nullable":true},"lenderFeeWaiver":{"type":"boolean","description":"True when lender fees are waived. Kept for reference; not used when pricing.","nullable":true},"noMortgageHistory":{"type":"boolean","description":"True when the borrower has no mortgage payment history. Kept for reference; not used when pricing."},"escrowHoldback":{"type":"boolean","description":"True when an escrow holdback applies. Kept for reference; not used when pricing."},"texas50a6":{"type":"boolean","description":"True for a Texas 50(a)(6) home equity loan. Kept for reference; not used when pricing."},"affordableLendingPrograms":{"type":"array","items":{"type":"string"},"description":"Affordable-lending programs the borrower is in. Kept for reference; not used when pricing.","nullable":true},"mortgageLoanChargeOffs":{"type":"array","items":{"type":"string"},"description":"Mortgage charge-offs in the borrower's history. Kept for reference; not used when pricing.","nullable":true},"shortSale":{"type":"string","description":"Short sale history of the borrower. Kept for reference; not used when pricing.","nullable":true},"deedInLieu":{"type":"string","description":"Deed-in-lieu-of-foreclosure history of the borrower. Kept for reference; not used when pricing.","nullable":true},"forbearance":{"type":"string","description":"Mortgage forbearance history of the borrower. Kept for reference; not used when pricing.","nullable":true}},"additionalProperties":false,"description":"Borrower-side criteria a search was priced with. Only the fields noted as used affect pricing; the rest are kept with the scenario for reference."},"CoBorrowerCriteria":{"type":"object","properties":{"intentToOccupy":{"type":"boolean","description":"True when the co-borrower intends to occupy the property as a residence."}},"additionalProperties":false,"description":"Co-borrower criteria a search was priced with."},"LoanPricingCriteria":{"type":"object","properties":{"amortizationTypes":{"type":"array","items":{"type":"string"},"description":"Amortization types to include: Fixed, ARM, Balloon or OptionArm.","nullable":true},"armFixedTerms":{"type":"array","items":{"type":"string"},"description":"Initial fixed periods to include for adjustable-rate products, for example FiveYear.","nullable":true},"automatedUnderwritingSystem":{"type":"string","description":"Automated underwriting system the loan was run through (DU, LP, InvestorAUS, ManualTraditional or NotSpecified).","nullable":true},"baseLoanAmount":{"type":"number","description":"Base loan amount in dollars, before any financed fees or mortgage insurance.","format":"double","nullable":true},"borrowerPaidMi":{"type":"string","description":"Yes when the borrower pays the mortgage insurance premium, No otherwise.","nullable":true},"buydown":{"type":"string","description":"Temporary buydown structure: None, ThreeTwoOne, TwoOne, OneOne or OneZero.","nullable":true},"buydownContributorType":{"type":"string","description":"Who funds the buydown: Lender, Borrower, Seller, Builder or OtherInterestedThirdParty. Used only when buydown is not None.","nullable":true},"calculateTotalLoanAmount":{"type":"boolean","description":"True to have the total loan amount (base amount plus financed upfront fee) calculated for the search.","nullable":true},"cashOutAmount":{"type":"number","description":"Cash the borrower takes out in a refinance, in dollars.","format":"double","nullable":true},"currentServicer":{"type":"string","description":"Name of the servicer of the existing loan, for a refinance. Kept for reference; not used when pricing.","nullable":true},"desiredLockPeriod":{"type":"integer","description":"Rate lock period to price, in days.","format":"int64","nullable":true},"desiredPrice":{"type":"number","description":"Target price to search for, where 100 is par. Zero means no target.","format":"double","nullable":true},"desiredRate":{"type":"number","description":"Target note rate to search for, in percent such as 6.875.","format":"double","nullable":true},"exemptFromVAFundingFee":{"type":"boolean","description":"VA loans only. True when the veteran is exempt from the funding fee, for example for a service-connected disability.","nullable":true},"expandedApprovalLevel":{"type":"string","description":"Expanded-approval tier the loan qualifies under, or NotApplicable.","nullable":true},"feesIn":{"type":"string","description":"Fees-in pricing option. Pricing always runs with No.","nullable":true},"fhaCaseAssigned":{"type":"string","description":"Date the FHA case number was assigned, ISO 8601.","format":"date-time","nullable":true},"fhaCaseEndorsement":{"type":"string","description":"Date the existing FHA loan was endorsed, ISO 8601, for an FHA streamline refinance. Kept for reference; not used when pricing.","format":"date-time","nullable":true},"firstLienAmount":{"type":"number","description":"Balance of the first lien in dollars, when pricing a second lien.","format":"double","nullable":true},"helocDrawnAmount":{"type":"number","description":"Amount drawn on the home equity line, in dollars.","format":"double","nullable":true},"helocLineAmount":{"type":"number","description":"Total home equity line amount, in dollars.","format":"double","nullable":true},"includeLoCompensationInPricing":{"type":"string","description":"How loan officer compensation is reflected in the price: YesLenderPaid, NoBuyerPaid or NoLenderPaid.","nullable":true},"interestOnly":{"type":"boolean","description":"True to price interest-only products.","nullable":true},"interestOnlyTerm":{"type":"integer","description":"Length of the interest-only period. Kept for reference; not used when pricing.","format":"int32","nullable":true},"lienType":{"type":"string","description":"Lien position being priced: First or Second.","nullable":true},"loanPurpose":{"type":"string","description":"Purpose of the loan, for example Purchase or RefiCashout.","nullable":true},"loanTerms":{"type":"array","items":{"type":"string"},"description":"Loan terms to include, for example ThirtyYear or FifteenYear.","nullable":true},"loanType":{"type":"string","description":"Loan type, for example Conforming, FHA or VA.","nullable":true},"loanTypes":{"type":"array","items":{"type":"string"},"description":"Additional loan types to include. Kept for reference; not used when pricing.","nullable":true},"prepaymentPenalty":{"type":"string","description":"Prepayment penalty period to price: None or OneYear through FiveYear.","nullable":true},"productTypes":{"type":"array","items":{"type":"string"},"description":"Product categories to include, for example StandardProducts.","nullable":true},"secondLienAmount":{"type":"number","description":"Balance of the second lien in dollars, which counts toward combined loan-to-value.","format":"double","nullable":true},"ltv":{"type":"number","description":"Loan-to-value ratio, in percent. Kept for reference; the pricing engine calculates it.","format":"double","nullable":true},"cltv":{"type":"number","description":"Combined loan-to-value ratio, in percent. Kept for reference; the pricing engine calculates it.","format":"double","nullable":true},"renovationLoan":{"type":"boolean","description":"True for a renovation loan. Kept for reference; not used when pricing.","nullable":true},"renovationCost":{"type":"number","description":"Renovation cost in dollars. Kept for reference; not used when pricing.","format":"double","nullable":true},"assetDepletion":{"type":"string","description":"Yes when the borrower qualifies using asset depletion, No otherwise.","nullable":true},"autoDebit":{"type":"string","description":"Yes when the borrower authorizes automatic debit of the payment, No otherwise.","nullable":true},"employeeLoan":{"type":"string","description":"Yes when the borrower is an employee of the lender, No otherwise.","nullable":true},"communityAffordableSecond":{"type":"string","description":"Yes when the loan has a community or affordable second mortgage, No otherwise.","nullable":true},"reducedMI":{"type":"boolean","description":"True to price with reduced mortgage insurance, for programs that offer it."},"representativeFICO":{"type":"integer","description":"Representative credit score used to price the loan.","format":"int32"},"loanLevelDebtToIncomeRatio":{"type":"number","description":"Loan-level debt-to-income ratio, in percent. A value of zero or less prices as 30.","format":"double"},"totalMonthlyQualifyingIncome":{"type":"number","description":"Total monthly income used to qualify the borrowers, in dollars.","format":"double"},"expandedGuidelines":{"$ref":"#/components/schemas/ExpandedGuidelines"},"propertiesFinanced":{"type":"integer","description":"Number of properties the borrower has financed with the lender.","format":"int32","nullable":true},"totalLoanAmountDetails":{"$ref":"#/components/schemas/TotalLoanAmountDetails"},"constructionLoanType":{"type":"string","description":"Whether the loan finances construction: NotApplicable, Construction or ConstructionToPerm.","nullable":true}},"additionalProperties":false,"description":"Loan-side criteria a search was priced with. Coded fields take the values of the matching enum (loan purpose, lien type and so on)."},"ExpandedGuidelines":{"type":"object","properties":{"incomeVerificationType":{"type":"string","description":"How the borrower's income is documented, for example FullDoc or a bank statement program.","nullable":true},"housingEventType":{"type":"string","description":"Type of negative housing event in the borrower's history, or None.","nullable":true},"housingEventSeasoning":{"type":"string","description":"How long ago the housing event happened.","nullable":true},"bankruptcyType":{"type":"string","description":"Chapter of the borrower's bankruptcy, or None.","nullable":true},"bankruptcyOutcome":{"type":"string","description":"How the bankruptcy ended: discharged, dismissed or still open.","nullable":true},"bankruptcySeasoning":{"type":"string","description":"How long ago the bankruptcy happened.","nullable":true},"mortgageLatesx30_12Mos":{"type":"integer","description":"Number of mortgage payments 30 days late in the last 12 months.","format":"int32"},"mortgageLatesx30_13to24Mos":{"type":"integer","description":"Number of mortgage payments 30 days late 13 to 24 months ago.","format":"int32"},"mortgageLatesx60_12Mos":{"type":"integer","description":"Number of mortgage payments 60 days late in the last 12 months.","format":"int32"},"mortgageLatesx60_13to24Mos":{"type":"integer","description":"Number of mortgage payments 60 days late 13 to 24 months ago.","format":"int32"},"mortgageLatesx90_12Mos":{"type":"integer","description":"Number of mortgage payments 90 days late in the last 12 months.","format":"int32"},"mortgageLatesx90_13to24Mos":{"type":"integer","description":"Number of mortgage payments 90 days late 13 to 24 months ago.","format":"int32"},"mortgageLatesx120_12Mos":{"type":"integer","description":"Number of mortgage payments 120 days late in the last 12 months.","format":"int32"},"mortgageLatesx120_13to24Mos":{"type":"integer","description":"Number of mortgage payments 120 days late 13 to 24 months ago.","format":"int32"},"debtConsolidation":{"type":"boolean","description":"True when the loan is a debt-consolidation refinance."},"uniqueProperty":{"type":"boolean","description":"True when the property is unique, for example unusual construction or use."},"debtServiceCoverageRatio":{"type":"number","description":"Debt service coverage ratio of an investment property (rental income divided by the property's debt payments), as a decimal such as 1.25.","format":"double"}},"additionalProperties":false,"description":"Extra borrower history used to price expanded-guideline (non-agency) products. Each coded field takes the values of the matching expanded-guideline enum."},"TotalLoanAmountDetails":{"type":"object","properties":{"totalLoanAmount":{"type":"number","description":"Base loan amount plus the financed upfront fee, in dollars.","format":"double"},"upfrontPmiMipFfGfPercent":{"type":"number","description":"Upfront mortgage insurance or funding fee, as a percent of the base loan amount.","format":"double"},"upfrontPmiMipFfGfAmount":{"type":"number","description":"Upfront mortgage insurance or funding fee, in dollars.","format":"double"},"upfrontPmiMipFfGfPaidinCash":{"type":"number","description":"Portion of the upfront fee the borrower pays in cash at closing, in dollars.","format":"double"},"upfrontPmiMipFfGfFinancedAmount":{"type":"number","description":"Portion of the upfront fee added to the loan amount, in dollars.","format":"double"}},"additionalProperties":false,"description":"The total loan amount with the upfront mortgage insurance or guarantee fee (FHA MIP, VA or USDA funding fee, private MI) added, and how that fee is split between cash and financing."},"PropertySearchCriteria":{"type":"object","properties":{"appraisedValue":{"type":"number","description":"Appraised value of the property, in dollars.","format":"double","nullable":true},"city":{"type":"string","description":"City of the subject property.","nullable":true},"construction":{"type":"boolean","description":"True when the property is new construction. Kept for reference; not used when pricing.","nullable":true},"corporateRelocation":{"type":"boolean","description":"True when the loan is a corporate relocation, which some programs price differently.","nullable":true},"county":{"type":"string","description":"County of the subject property.","nullable":true},"numberOfStories":{"type":"integer","description":"Number of stories of the building.","format":"int64","nullable":true},"numberOfUnits":{"type":"string","description":"Number of units: OneUnit through FourUnits, or five and more as FiveUnits upward.","nullable":true},"occupancy":{"type":"string","description":"How the property is used: PrimaryResidence, SecondHome or InvestmentProperty.","nullable":true},"propertyStreetAddress":{"type":"string","description":"Street address of the subject property; not used for eligibility.","nullable":true},"propertyType":{"type":"string","description":"Type of the property, for example SingleFamily or Condo.","nullable":true},"salesPrice":{"type":"number","description":"Purchase price of the property, in dollars.","format":"double","nullable":true},"state":{"type":"string","description":"Two-letter state of the subject property.","nullable":true},"zipCode":{"type":"string","description":"ZIP code of the subject property.","nullable":true},"attachmentType":{"type":"string","description":"Whether the property is attached or detached. Kept for reference; not used when pricing.","nullable":true}},"additionalProperties":false,"description":"Property-side criteria a search was priced with."},"BrokerCriteria":{"type":"object","properties":{"minCompensation":{"type":"number","description":"Minimum loan officer compensation, in dollars.","format":"double","nullable":true},"maxCompensation":{"type":"number","description":"Maximum loan officer compensation, in dollars.","format":"double","nullable":true},"compPercent":{"type":"number","description":"Loan officer compensation as a percent of the loan amount.","format":"double","nullable":true},"ausList":{"type":"array","items":{"type":"string"},"description":"Automated underwriting systems the officer's criteria allow; usually empty.","nullable":true}},"additionalProperties":false,"description":"Loan officer compensation limits a search was priced with, taken from the officer's profile."},"RateRange":{"type":"object","properties":{"from":{"type":"number","description":"Lowest rate of the range in percent, for example 6.0.","format":"double","nullable":true},"to":{"type":"number","description":"Highest rate of the range in percent, for example 7.0.","format":"double","nullable":true}},"additionalProperties":false,"description":"A range of note rates in percent."},"FieldPropertyParameter":{"type":"object","properties":{"fieldId":{"type":"string","description":"Identifier of the custom pricing field.","nullable":true},"value":{"type":"string","description":"Value to price with for that field, as text.","nullable":true}},"additionalProperties":false,"description":"A custom pricing field and the value it is set to."},"MarkupOverride":{"type":"object","properties":{"level":{"type":"integer","description":"Which configured markup tier this entry overrides, as its level index in the pricing account.","format":"int32","nullable":true},"dollar":{"type":"integer","description":"Flat markup in dollars. Leave null to use percentage instead.","format":"int32","nullable":true},"percentage":{"type":"number","description":"Markup as a percent of the loan amount, for example 1.40 for 140 basis points.","format":"double","nullable":true},"minCapDollar":{"type":"integer","description":"Minimum markup in dollars. Leave null for no minimum.","format":"int32","nullable":true},"maxCapDollar":{"type":"integer","description":"Maximum markup in dollars. Leave null for no maximum; a 0 caps the markup at 0.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Per-request override of a configured markup tier (a corporate or servicing-release margin, or loan officer compensation). Every field is optional; only those set are applied."},"CommissionTier":{"enum":["HalfPercent","ThreeQuarterPercent","OnePercent","OneAndThreeQuarterPercent"],"type":"string","description":"Loan officer compensation tier, as a percent of the loan amount, that selects which pricing account a search runs under. Reserved for Henge's own automated agents; ignored for other callers. HalfPercent is 0.50%, ThreeQuarterPercent 0.75%, OnePercent 1.00% and OneAndThreeQuarterPercent 1.75%."},"PricingSearchResponse":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/EligibleProduct"},"description":"Eligible products, each at one rate and lock period.","nullable":true},"cltv":{"type":"number","description":"Combined loan-to-value ratio the search used, in percent.","format":"double"},"ltv":{"type":"number","description":"Loan-to-value ratio the search used, in percent.","format":"double"},"hcltv":{"type":"number","description":"Home-equity combined loan-to-value ratio the search used, in percent.","format":"double"},"amiPercentage":{"type":"number","description":"Percentage of the area median income the search calculated, used by affordable programs.","format":"double"},"searchId":{"type":"string","description":"Identifier of this search; pass it with a product id to fetch product details.","nullable":true},"searchTime":{"type":"string","description":"When the search ran.","nullable":true},"customerInternalId":{"type":"string","description":"Caller-supplied identifier echoed from the request.","nullable":true},"totalLoanAmountDetails":{"$ref":"#/components/schemas/TotalLoanAmountDetails"},"guidelines":{"type":"array","items":{"$ref":"#/components/schemas/Guideline"},"description":"Guideline documents that apply to the results; present when guidelines were requested.","nullable":true},"messages":{"type":"array","items":{"$ref":"#/components/schemas/Message"},"description":"Messages from the search, such as warnings about the criteria.","nullable":true},"pricedAs":{"$ref":"#/components/schemas/PricingSearchRequest"},"pricingExpiresAt":{"type":"string","description":"When this search's pricing expires. Not set by the Partner API, so it is left out of the response.","format":"date-time","nullable":true},"serverTime":{"type":"string","description":"The server's clock when `pricingExpiresAt` was set, so a page can compare without trusting its own.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"The result of a pricing search: the products the loan is eligible for, with the ratios the search calculated."},"EligibleProduct":{"type":"object","properties":{"bonaFideDiscountPoints":{"type":"number","description":"Discount points, as a percent of the loan amount, that count as bona fide and are excluded from the Qualified Mortgage points-and-fees test.","format":"double"},"qmStatus":{"type":"string","description":"Qualified Mortgage test result: Pass, Fail, or a pass flagged as a higher-priced mortgage loan (the HPML values); AlwaysPass for products the test does not apply to.","nullable":true},"amortizationTerm":{"type":"string","description":"Amortization term in years, as text, for example 30.","nullable":true},"amortizationType":{"type":"string","description":"How the loan is repaid: Fixed, ARM, Balloon or OptionArm.","nullable":true},"apr":{"type":"number","description":"Annual percentage rate, in percent.","format":"double"},"armIndex":{"type":"string","description":"Index an adjustable rate follows, for example SOFR or Treasury.","nullable":true},"armFirstCap":{"type":"number","description":"Cap on the first rate adjustment, in percentage points.","format":"double"},"armIndexValue":{"type":"number","description":"Current value of the index, in percent.","format":"double"},"armPeriodicCap":{"type":"number","description":"Cap on each later rate adjustment, in percentage points.","format":"double"},"armLifetimeCap":{"type":"number","description":"Cap on the total rate change over the life of the loan, in percentage points.","format":"double"},"armRelativeCap":{"type":"number","description":"Relative cap on the rate, in percentage points.","format":"double"},"armMargin":{"type":"number","description":"Margin added to the index, in percentage points.","format":"double"},"armsubsequentChangePeriod":{"type":"string","description":"How often an adjustable rate changes after its fixed period, in months, as text.","nullable":true},"armFixedTerm":{"type":"string","description":"Initial fixed period of an adjustable-rate product, as a code such as FiveYear.","nullable":true},"closingCost":{"type":"number","description":"Lender closing costs, in dollars.","format":"double"},"points":{"type":"number","description":"Discount points as a percent of the loan amount: 100 minus price, so negative when the product pays a rebate.","format":"double","nullable":true},"pointsCost":{"type":"number","description":"Cost of the points in dollars: the discount when positive, the rebate as a negative number.","format":"double","nullable":true},"discount":{"type":"number","description":"Buydown (discount) cost at this rate, in dollars; 0 on a rebate or par rate.","format":"double"},"investor":{"type":"string","description":"Name of the investor behind the product. Omitted for callers who are not shown the investor.","nullable":true},"investorId":{"type":"integer","description":"Identifier of the investor. Omitted for callers who are not shown the investor.","format":"int32","nullable":true},"sourceInvestor":{"type":"string","description":"The lender behind a portfolio investor's product. Omitted unless the caller is shown the investor.","nullable":true},"lastUpdate":{"type":"string","description":"When the lender's rate sheet was published, ISO 8601. Omitted for callers who are not shown the investor.","format":"date-time","nullable":true},"loanTerm":{"type":"string","description":"Loan term in years, as text, for example 30.","nullable":true},"loanType":{"type":"string","description":"Loan type, for example Conforming, FHA or VA.","nullable":true},"lockPeriod":{"type":"integer","description":"Rate lock period, in days.","format":"int64"},"monthlyMi":{"type":"number","description":"Monthly mortgage insurance, in dollars; 0 when the product has none.","format":"double"},"pendingUpdate":{"type":"boolean","description":"True when a pricing update for the product is pending, so the price may change."},"price":{"type":"number","description":"Price as a percent of par, where 100 is par.","format":"double"},"priceStatus":{"type":"string","description":"Whether the price can be used: Available, Suspended, Expired or TodaysPricingExpired.","nullable":true},"principalAndInterest":{"type":"number","description":"Monthly principal and interest payment, in dollars.","format":"double"},"productCode":{"type":"string","description":"The lender's product code. Omitted for callers who are not shown the investor.","nullable":true},"productId":{"type":"string","description":"Identifier of the product, to fetch its details or select it.","nullable":true},"productName":{"type":"string","description":"Name of the product, including the investor when shown.","nullable":true},"rate":{"type":"number","description":"Note rate, in percent such as 6.875.","format":"double"},"rebate":{"type":"number","description":"Rebate (credit) at this rate, in dollars; 0 on a discount or par rate.","format":"double"},"totalPayment":{"type":"number","description":"Total monthly payment in dollars: principal, interest and mortgage insurance.","format":"double"},"loCompensationDollars":{"type":"integer","description":"Loan officer compensation built into the price, in dollars.","format":"int32"},"loCompensationPercent":{"type":"number","description":"Loan officer compensation built into the price, as a percent of the loan amount.","format":"double"},"highBalance":{"type":"string","description":"Yes when the loan amount is above the standard conforming limit (a high-balance loan), No otherwise.","nullable":true},"productQuote":{"$ref":"#/components/schemas/ProductQuote"},"keyLabel":{"type":"string","description":"Label grouping the product by term, amortization and loan type, for example 30 Year Fixed Conforming.","nullable":true},"programName":{"type":"string","description":"Product name without the investor prefix.","nullable":true},"originalApr":{"type":"number","description":"APR before any adjustment by the loan officer, in percent.","format":"double"},"adjustedApr":{"type":"number","description":"APR after the loan officer's adjustments, in percent.","format":"double"},"computedApr":{"type":"number","description":"APR computed by Henge from the rate and costs, in percent.","format":"double"},"armFixedTermMonths":{"type":"integer","description":"Initial fixed period of an adjustable-rate product, in months.","format":"int32","nullable":true},"opportunityType":{"$ref":"#/components/schemas/OpportunityTypeModel"}},"additionalProperties":false,"description":"A product the loan is eligible for, shown at one rate and lock period with its price and payment. Search results carry no productQuote; fetch the product's details for its full rate sheet."},"ProductQuote":{"type":"object","properties":{"productName":{"type":"string","description":"Name of the product, including the investor when it is shown.","nullable":true},"quotes":{"type":"array","items":{"$ref":"#/components/schemas/Quote"},"description":"The rate rows of the product, one per rate and lock period.","nullable":true},"searchId":{"type":"string","description":"Identifier of the pricing search this rate sheet came from.","nullable":true},"productId":{"type":"string","description":"Identifier of the product.","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/QuoteAdjustment"},"description":"Adjustments applied to the product's rate or price.","nullable":true},"parQuotes":{"type":"array","items":{"$ref":"#/components/schemas/ParQuote"},"description":"The par rate for each lock period.","nullable":true},"totalRateAdjustment":{"type":"number","description":"Sum of the rate adjustments, in percentage points.","format":"double","nullable":true},"totalPriceAdjustment":{"type":"number","description":"Sum of the price adjustments, in points.","format":"double","nullable":true},"totalSRPAdjustment":{"type":"number","description":"Sum of the servicing-release-premium adjustments, in points.","format":"double","nullable":true},"totalMarginAdjustment":{"type":"number","description":"Sum of the margin adjustments, in percentage points.","format":"double","nullable":true},"notesAndAdvisories":{"type":"array","items":{"type":"string"},"description":"Notes and advisories the lender attached to the product.","nullable":true},"armSubsequentChangePeriod":{"type":"string","description":"How often an adjustable rate changes after its fixed period, as a code such as OneYear or SixMonth.","nullable":true},"armIndex":{"type":"string","description":"Index an adjustable rate follows, for example SOFR or Treasury.","nullable":true},"armIndexValue":{"type":"number","description":"Current value of the index, in percent.","format":"double","nullable":true},"armFirstCap":{"type":"number","description":"Cap on the first rate adjustment, in percentage points.","format":"double","nullable":true},"armPeriodicCap":{"type":"number","description":"Cap on each later rate adjustment, in percentage points.","format":"double","nullable":true},"armFixedTerm":{"type":"string","description":"Initial fixed period of an adjustable-rate product, as a code such as FiveYear.","nullable":true},"armFixedTermMonths":{"type":"integer","description":"Initial fixed period of an adjustable-rate product, in months.","format":"int32","nullable":true},"armLifetimeCap":{"type":"number","description":"Cap on the total rate change over the life of the loan, in percentage points.","format":"double","nullable":true},"armRelativeCap":{"type":"number","description":"Relative cap on the rate, in percentage points.","format":"double","nullable":true},"constructionTermMonths":{"type":"integer","description":"Construction period of a construction loan, in months.","format":"int32","nullable":true},"originationFees":{"type":"number","description":"Origination fees of the product, in dollars.","format":"double","nullable":true},"investorId":{"type":"integer","description":"Identifier of the investor behind the product. Omitted for callers who are not shown the investor.","format":"int32","nullable":true},"miRequiredOver80Ltv":{"type":"boolean","description":"True when mortgage insurance is required above 80% loan-to-value.","nullable":true},"interestOnlyTerm":{"type":"integer","description":"Length of the interest-only period of an interest-only product.","format":"int32","nullable":true},"lenderFeeDetails":{"type":"array","items":{"$ref":"#/components/schemas/LenderFeeDetail"},"description":"The lender fees charged on the product.","nullable":true},"lenderFeeTotal":{"type":"number","description":"Sum of the lender fees in lenderFeeDetails, in dollars. Calculated; read-only.","format":"double","nullable":true,"readOnly":true}},"additionalProperties":false,"description":"The full rate sheet of one product: every rate and lock period, with the adjustments, par rates and lender fees behind them."},"Quote":{"type":"object","properties":{"id":{"type":"string","description":"Identifier the pricing search gave this row.","nullable":true},"rate":{"type":"number","description":"Note rate, in percent such as 6.875.","format":"double","nullable":true},"lockPeriod":{"type":"integer","description":"Rate lock period of this row, in days.","format":"int32","nullable":true},"lockExpirationDate":{"type":"string","description":"Date a lock at this row's lock period would expire, ISO 8601.","format":"date-time","nullable":true},"apr":{"type":"number","description":"Annual percentage rate, in percent. Uses adjustedApr when one was calculated.","format":"double","nullable":true},"price":{"type":"number","description":"Price as a percent of par, where 100 is par; above 100 pays the borrower a rebate and below 100 costs a discount.","format":"double","nullable":true},"armMargin":{"type":"number","description":"Margin added to the index for an adjustable-rate product, in percentage points.","format":"double","nullable":true},"closingCost":{"type":"number","description":"Lender closing costs of this row, in dollars.","format":"double","nullable":true},"points":{"type":"number","description":"Discount points as a percent of the loan amount: 100 minus price, so negative when the row pays a rebate.","format":"double","nullable":true},"pointsCost":{"type":"number","description":"Cost of the points in dollars: positive for a discount, negative for a rebate.","format":"double","nullable":true},"discountDollar":{"type":"number","description":"Buydown (discount) this row costs the borrower, in dollars; 0 on a rebate or par row.","format":"double","nullable":true},"discountPercent":{"type":"number","description":"Buydown (discount) as a percent of the loan amount; 0 on a rebate or par row.","format":"double","nullable":true},"rebateDollar":{"type":"number","description":"Rebate (credit) this row gives the borrower, in dollars; 0 on a discount or par row.","format":"double","nullable":true},"rebatePercent":{"type":"number","description":"Rebate (credit) as a percent of the loan amount; 0 on a discount or par row.","format":"double","nullable":true},"loCompensationDollar":{"type":"number","description":"Loan officer compensation built into this row, in dollars.","format":"double","nullable":true},"loCompensationPercent":{"type":"number","description":"Loan officer compensation built into this row, as a percent of the loan amount.","format":"double","nullable":true},"principalAndInterest":{"type":"number","description":"Monthly principal and interest payment, in dollars.","format":"double","nullable":true},"totalCredit":{"type":"number","description":"Total credit this row gives the borrower, in dollars.","format":"double","nullable":true},"monthlyMi":{"type":"number","description":"Monthly mortgage insurance, in dollars; 0 when the product has none.","format":"double","nullable":true},"totalPayment":{"type":"number","description":"Total monthly payment in dollars: principal, interest and mortgage insurance.","format":"double","nullable":true},"amiRuleApplied":{"type":"boolean","description":"True when the area-median-income rule of affordable programs was applied to this row."},"borrowerPaidDetails":{"type":"array","items":{"$ref":"#/components/schemas/FeeDetail"},"description":"Fees the borrower pays for this row.","nullable":true},"groupAdjustmentProperties":{"type":"array","items":{"$ref":"#/components/schemas/GroupAdjustmentProperty"},"description":"The groups of price adjustments that make up this row's final price.","nullable":true},"searchId":{"type":"string","description":"Identifier of the pricing search this row came from.","nullable":true},"productId":{"type":"string","description":"Identifier of the product this row belongs to.","nullable":true},"adjustedApr":{"type":"number","description":"APR after the loan officer's adjustments to the quote, in percent.","format":"double","nullable":true},"adjustedFee":{"type":"number","description":"Fee amount after the loan officer's adjustments, in dollars.","format":"double","nullable":true},"computedApr":{"type":"number","description":"APR computed by Henge from the row's rate and costs, in percent.","format":"double","nullable":true},"originalApr":{"type":"number","description":"APR as the pricing search returned it, before any adjustment, in percent.","format":"double","nullable":true},"quoteId":{"type":"string","description":"Henge's identifier for this row. Pass it to select or lock the row.","nullable":true},"isArchived":{"type":"boolean","description":"True when this saved row has been archived."},"isLocked":{"type":"boolean","description":"True once a lock has been requested on this row."}},"additionalProperties":false,"description":"One row of a product's rate sheet: a note rate at a lock period, with its price, payment and costs. Rates are percents such as 6.875; price is a percent of par, where 100 is par."},"FeeDetail":{"type":"object","properties":{"amount":{"type":"number","description":"The fee amount in dollars.","format":"double","nullable":true},"description":{"type":"string","description":"What the fee is for.","nullable":true},"isOrigination":{"type":"boolean","description":"True when the fee is an origination charge.","nullable":true},"points":{"type":"number","description":"The fee expressed in points (percent of the loan amount, for example 1.0 for one point), when it is charged that way.","format":"double","nullable":true},"type":{"type":"string","description":"The fee's category as the pricing engine names it.","nullable":true}},"additionalProperties":false},"GroupAdjustmentProperty":{"type":"object","properties":{"id":{"type":"string","description":"Name of the adjustment group, for example the category its adjustments fall under.","nullable":true},"finalAdjustment":{"type":"number","description":"Net adjustment of the group once all its adjustments are applied.","format":"double","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/Adjustment"},"description":"The individual adjustments in the group.","nullable":true}},"additionalProperties":false,"description":"A named group of adjustments that together move a quote's price or rate."},"Adjustment":{"type":"object","properties":{"key":{"type":"string","description":"Name of the adjustment, saying what it is for.","nullable":true},"adj":{"type":"number","description":"Size of the adjustment, in the unit of the group it belongs to (price points or rate).","format":"double","nullable":true}},"additionalProperties":false,"description":"One price or rate adjustment applied to a quote."},"QuoteAdjustment":{"type":"object","properties":{"reason":{"type":"string","description":"Why the adjustment applies, as text.","nullable":true},"adjustor":{"type":"number","description":"Size of the adjustment; its unit follows the type.","format":"double"},"type":{"type":"string","description":"What the adjustment changes, for example the rate, the price or the margin.","nullable":true}},"additionalProperties":false,"description":"An adjustment the lender applied to a product's rate or price."},"ParQuote":{"type":"object","properties":{"parRate":{"type":"number","description":"Note rate at par, in percent.","format":"double"},"parPrice":{"type":"number","description":"Price at par, where 100 is par.","format":"double"},"parLock":{"type":"integer","description":"Lock period of this par quote, in days.","format":"int32"}},"additionalProperties":false,"description":"The par rate for one lock period: the rate whose price is closest to 100."},"LenderFeeDetail":{"type":"object","properties":{"feeDetailNumber":{"type":"integer","description":"Sequence number of the fee in the product's fee list.","format":"int32"},"feeTotalAmountPercent":{"type":"number","description":"Fee as a percent of the base named in feePercentageBasedOn, when it is percentage-based.","format":"double"},"feeSpecifiedFixedAmount":{"type":"number","description":"Fixed fee amount in dollars, when the fee is a fixed amount.","format":"double"},"feeTotalCalculatedAmount":{"type":"number","description":"Total fee in dollars after calculation.","format":"double"},"feePaymentFinancedIndicator":{"type":"boolean","description":"True when the fee is financed into the loan amount."},"feePaidBy":{"type":"string","description":"Who pays the fee: Buyer or Seller.","nullable":true},"feePaidTo":{"type":"string","description":"Who receives the fee: Lender, Broker, Affiliate, ThirdParty or Other.","nullable":true},"rebatePriority":{"type":"integer","description":"Priority of this fee when a rebate is applied.","format":"int32"},"feeDescription":{"type":"string","description":"Name of the fee as the lender describes it.","nullable":true},"prepaidFinanceChargeIndicator":{"type":"boolean","description":"True when the fee is a prepaid finance charge, which counts toward APR."},"includedInQMPointsAndFeesTest":{"type":"boolean","description":"True when the fee counts toward the Qualified Mortgage points-and-fees test."},"feePercentageBasedOn":{"type":"string","description":"Amount a percentage fee is calculated on: PurchasePriceAmount, PropertyAppraisedValueAmount, OriginalLoanAmount, BaseLoanAmount or Other.","nullable":true},"feeType":{"type":"string","description":"Standard fee category, for example LoanOriginationFee or UnderwritingFee.","nullable":true}},"additionalProperties":false,"description":"One lender fee charged on a product."},"OpportunityTypeModel":{"type":"object","properties":{"name":{"type":"string","description":"Display name of the program type, for example 30 Year Fixed or 7/6 ARM.","nullable":true},"shortName":{"type":"string","description":"Compact form of the program type name with no spaces, usable as a key.","nullable":true}},"additionalProperties":false,"description":"The program type of a priced product, for example a fixed term or an adjustable-rate program."},"Guideline":{"type":"object","properties":{"documentDescription":{"type":"string","description":"Title of the guideline document.","nullable":true},"guidelineLink":{"$ref":"#/components/schemas/Link"}},"additionalProperties":false,"description":"A lender guideline document that applies to a product."},"Link":{"type":"object","properties":{"href":{"type":"string","description":"URL of the document.","format":"uri","nullable":true},"action":{"type":"string","description":"HTTP method to use on the URL, for example GET.","nullable":true},"fileExtension":{"type":"string","description":"File extension of the document, for example pdf.","nullable":true},"types":{"type":"array","items":{"type":"string"},"description":"Media types the link serves.","nullable":true}},"additionalProperties":false,"description":"A link to a document, with how to follow it."},"Message":{"type":"object","properties":{"code":{"type":"string","description":"Short code of the message.","nullable":true},"messageText":{"type":"string","description":"The message, as text for a person.","nullable":true}},"additionalProperties":false,"description":"A message from the pricing search, such as a warning about the criteria."},"PricingScenarioStatus":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the status.","format":"uuid","nullable":true},"code":{"type":"string","description":"Short code of the status; the stable value to compare against.","nullable":true},"name":{"type":"string","description":"Display name of the status.","nullable":true}},"additionalProperties":false,"description":"The status of a pricing scenario, such as Initial Pricing or Ready to Lock."},"PricingScenarioRegistration":{"type":"object","properties":{"election":{"type":"string","description":"`Float` or `Lock`.","nullable":true},"registeredBy":{"type":"string","description":"The registering user; null for an application principal with no user.","format":"uuid","nullable":true},"registeredByType":{"type":"string","description":"The `AccessingUserType` name of the principal that registered.","nullable":true},"registeredByName":{"type":"string","description":"The registering user's name when it was registered.","nullable":true},"registeredAt":{"type":"string","description":"UTC.","format":"date-time"}},"additionalProperties":false,"description":"Stored on a pricing scenario that a TPO broker registered (float or lock) through\r\n`POST loanapplications/{id}/registration`: what they elected, who they were and when. Null on every\r\nother scenario, including a lock requested through the quote-and-ReadyToLock flow."},"PricingScenarioLockSnapshot":{"type":"object","properties":{"takenAt":{"type":"string","description":"When the lock was placed, ISO 8601 UTC.","format":"date-time"},"productId":{"type":"string","description":"Identifier of the locked product.","nullable":true},"productName":{"type":"string","description":"Name of the locked product.","nullable":true},"investor":{"type":"string","description":"Name of the investor behind the locked product, when the caller is shown the investor.","nullable":true},"sourceInvestor":{"type":"string","description":"The lender behind a portfolio investor's product. Set for callers who are shown the investor; never stored.","nullable":true},"productCode":{"type":"string","description":"The locked product's code. Staff only; taken off the scenario for other callers.","nullable":true},"rateSheetTime":{"type":"string","description":"When the locked product's rate sheet was published, ISO 8601. Staff only.","format":"date-time","nullable":true},"sourceInstruction":{"$ref":"#/components/schemas/SourceLockInstruction"},"sourceProductQuote":{"$ref":"#/components/schemas/ProductQuote"},"lockPeriod":{"type":"integer","description":"Locked lock period, in days. A move stays within it.","format":"int32","nullable":true},"selectedQuoteId":{"type":"string","description":"quoteId of the selected row: the locked one at first, then the one the last move chose.","nullable":true},"productQuote":{"$ref":"#/components/schemas/ProductQuote"},"moves":{"type":"array","items":{"$ref":"#/components/schemas/LockPositionMove"},"description":"Moves of the selected row after the lock, oldest first.","nullable":true}},"additionalProperties":false,"description":"The product's rate sheet as the lock re-price returned it, kept on the pricing scenario when a lock is placed. The rate sheet is frozen; only the selected row and the moves change after the lock."},"SourceLockInstruction":{"type":"object","properties":{"status":{"type":"string","description":"Outcome of looking for the source price: Priced (the price is set), Unmapped (no source product is mapped to the locked product), NoSourcePricingAccount (the company has no source pricing account), SourceSearchFailed, SourceProductNotReturned or RateNotOnSourceSheet.","nullable":true},"message":{"type":"string","description":"In words, what happened when there is no price.","nullable":true},"sourceInvestor":{"type":"string","description":"Name of the source lender.","nullable":true},"sourceInvestorId":{"type":"integer","description":"Identifier of the source lender in the pricing engine.","format":"int32","nullable":true},"sourceProductName":{"type":"string","description":"Name of the source lender's product to lock.","nullable":true},"sourceProductCode":{"type":"string","description":"Product code of the source lender's product.","nullable":true},"portfolioProductCode":{"type":"string","description":"Code of the portfolio product the row was found by.","nullable":true},"rate":{"type":"number","description":"The selected note rate, in percent.","format":"double","nullable":true},"lockPeriod":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"sourcePrice":{"type":"number","description":"The source lender's price at the selected rate and lock period, from its frozen rate sheet.","format":"double","nullable":true},"sourceRateSheetTime":{"type":"string","description":"When the source lender's rate sheet was published, ISO 8601.","format":"date-time","nullable":true},"portfolioPrice":{"type":"number","description":"The portfolio price the broker locked at, including the portfolio's margin.","format":"double","nullable":true},"priceDifference":{"type":"number","description":"portfolioPrice minus sourcePrice: the margin, in points.","format":"double","nullable":true}},"additionalProperties":false,"description":"The instruction for the lock desk: lock the source product with the source lender at the source price. It follows the selected row, so a move of the selected rate rewrites it from the source lender's frozen rate sheet. Shown to staff only."},"LockPositionMove":{"type":"object","properties":{"movedAt":{"type":"string","description":"When the selected row was moved, ISO 8601 UTC.","format":"date-time"},"movedBy":{"type":"string","description":"Identifier (GUID) of the user who moved it.","format":"uuid","nullable":true},"movedByName":{"type":"string","description":"Name of the user who moved it.","nullable":true},"fromQuoteId":{"type":"string","description":"quoteId of the row before the move.","nullable":true},"fromRate":{"type":"number","description":"Note rate before the move, in percent.","format":"double","nullable":true},"fromPrice":{"type":"number","description":"Price before the move, where 100 is par.","format":"double","nullable":true},"toQuoteId":{"type":"string","description":"quoteId of the row after the move.","nullable":true},"toRate":{"type":"number","description":"Note rate after the move, in percent.","format":"double","nullable":true},"toPrice":{"type":"number","description":"Price after the move, where 100 is par.","format":"double","nullable":true},"sourceFromPrice":{"type":"number","description":"The source lender's price before the move, from its frozen rate sheet. Null when there is no source instruction or the rate is not on that sheet. Staff only.","format":"double","nullable":true},"sourceToPrice":{"type":"number","description":"The source lender's price after the move. Null when there is no source instruction or the rate is not on that sheet. Staff only.","format":"double","nullable":true},"sourceNote":{"type":"string","description":"Set when the instruction has no price at the new rate, in words. Staff only.","nullable":true}},"additionalProperties":false,"description":"One move of the selected row: who, when, and from which rate and price to which."},"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/pricing/scenarios/{scenarioId}/lock-request/cancel":{"post":{"tags":["Pricing, locks and fees"],"summary":"Cancel a lock request","description":"**Required scope:** `update:pricing` (tokens with the legacy name `write:pricing` are also accepted)\n\nThe scenario returns to Ready to Lock with every quote unlocked, the loan's \"Select Quote to Lock\"\r\ntask goes back to Requested, the loan officer, their ConciergeKey, the processing team and the\r\nborrowers are emailed, and a lock-request-update PDF is filed to the loan vault. Only a Lock\r\nRequested scenario qualifies.","operationId":"PricingScenarios_CancelLockRequest","parameters":[{"name":"scenarioId","in":"path","description":"The pricing scenario's id: `scenarioId` on the loan's registration (`GET /loan-applications/{id}/registration`). A scenario linked to another company's loan or client answers 404; one that is not Lock Requested answers 400.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The scenario, back to Ready to Lock","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingScenarioModel"}}}},"400":{"description":"The scenario is not linked, or has no pending lock request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The access token lacks the update:pricing scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"The scenario was not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Search mortgage pricing

> \*\*Required scope:\*\* \`read:pricing\`\
> \
> The agent must hold a currently valid licence in the subject property's state. If no eligible> \
> products come back, call the ineligible-products endpoint with the same searchId to see why.> \
> &#x20;          &#x20;> \
> With loanApplicationId or externalId, the loan is priced from its stored data instead: under its> \
> loan officer, with no defaults, and with loanOverrides winning over the loan's values. The loan must> \
> belong to the calling application's company. A loan missing a required input (loan amount, property> \
> value, number of units, state, zip code, occupancy, loan purpose, loan type, credit score) is refused> \
> with a 400 naming> \
> each one, and the response's pricedAs carries the criteria that were priced.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Pricing, locks and fees","description":"**Pricing:** Price a loan scenario, or an existing loan from its stored data, across the products your company offers, then read a product's quotes and adjustments or why products were ineligible. Every search prices as a loan officer of your company (the one you name, else your application's acting user), who must be licensed in the property's state.\n\n**Program registration and locks:** register a priced program on a loan with `POST /loan-applications/{id}/registration`, which also requests the lock, and read the registration back. Cancelling a pending lock request is only available to POS customers.\n\n**Fees:** A loan's closing costs: each fee by section, who pays it, and the totals. Broker compensation is never included in a Partner API response.\n\n**Scopes:** `read:loan-applications`, `read:pricing`, `update:pricing`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"SearchPricingWithLoanRequest":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Henge loan application ID (GUID) to price from its stored data. Use this or externalId. With a loan, borrowerInformation, propertyInformation, loanInformation, qmInformation, userId and commissionTier are ignored; pass changes in loanOverrides.","format":"uuid","nullable":true},"externalId":{"type":"string","description":"LOS loan id (externalId) of the loan to price from its stored data; preferred over loanApplicationId when both are given.","nullable":true},"loanOverrides":{"$ref":"#/components/schemas/LoanPricingOverrides"},"commissionTier":{"$ref":"#/components/schemas/CommissionTier"},"useAgentObAccount":{"type":"boolean","description":"Honoured only on calls from Henge's own AI assistant; on any other call, a Partner API call included, it is ignored."},"userId":{"type":"string","description":"Henge user ID (GUID) of the pricing agent, from search_users or the loan's officer. Defaults to the calling user.","format":"uuid","nullable":true},"includeGuidelines":{"type":"boolean","description":"If true, include per-product eligibility guidelines."},"borrowerInformation":{"$ref":"#/components/schemas/SearchPricingBorrowerInformation"},"propertyInformation":{"$ref":"#/components/schemas/SearchPricingPropertyInformation"},"loanInformation":{"$ref":"#/components/schemas/SearchPricingLoanInformation"},"qmInformation":{"$ref":"#/components/schemas/SearchPricingQmInformation"}},"additionalProperties":false,"description":"A pricing search: either the full scenario criteria, or a loan to price from its stored data (`loanApplicationId` or `externalId`) with optional overrides. `commissionTier`: Ignored by the Partner API. Send loanApplicationId or externalId to price a loan from its stored data: the loan's own values are used, loanOverrides win over them, borrowerInformation, propertyInformation, loanInformation, qmInformation, userId and commissionTier are ignored, the loan must belong to your company, and the request is refused with a 400 naming each of loan amount, property value, number of units, state, ZIP code, occupancy, loan purpose, loan type and credit score that neither the loan nor loanOverrides supplies. With neither id the request is priced from the criteria: propertyInformation must not be null, the pricing agent must belong to your company and be licensed in the property state, and the ZIP code must be in that state unless county is sent."},"LoanPricingOverrides":{"type":"object","properties":{"loanAmount":{"type":"number","description":"Base loan amount in USD. Overrides the loan's amount.","format":"double","nullable":true},"propertyValue":{"type":"number","description":"Property value in USD, used as appraised value and sales price. Overrides the loan's appraised value / purchase price.","format":"double","nullable":true},"ficoScore":{"type":"integer","description":"Representative FICO score (300-850). Overrides the loan's credit score. 0 or less counts as no score. The 300-850 range is not checked.","format":"int32","nullable":true},"loanType":{"$ref":"#/components/schemas/LoanPricingCriteriaLoanType"},"loanPurpose":{"$ref":"#/components/schemas/LoanPricingCriteriaLoanPurpose"},"cashOutAmount":{"type":"number","description":"Cash-out amount in USD (refinance).","format":"double","nullable":true},"occupancy":{"$ref":"#/components/schemas/PropertySearchCriteriaOccupancy"},"propertyType":{"$ref":"#/components/schemas/PropertySearchCriteriaPropertyType"},"numberOfUnits":{"type":"string","description":"Number of dwelling units: OneUnit, TwoUnits, ThreeUnits, FourUnits, or a count of 5 or more such as \"6\". Overrides the loan's unit count.","nullable":true},"state":{"type":"string","description":"Property state (two-letter US code). Overrides the subject property's state.","nullable":true},"zipCode":{"type":"string","description":"Property ZIP code. Overrides the subject property's ZIP code.","nullable":true},"county":{"type":"string","description":"Property county. When absent it is looked up from the property state and ZIP code.","nullable":true},"citizenship":{"$ref":"#/components/schemas/BorrowerCriteriaCitizenship"},"debtToIncomeRatio":{"type":"number","description":"DTI percent (25 = 25%). Overrides the loan's qualifying back-end ratio.","format":"double","nullable":true},"monthsReserves":{"type":"integer","description":"Months of post-closing reserves.","format":"int32","nullable":true},"waiveEscrows":{"type":"boolean","description":"Whether escrows are waived. Overrides the loan's escrow waiver.","nullable":true},"selfEmployed":{"type":"boolean","description":"Whether a borrower is self-employed. Overrides what the loan's employment says.","nullable":true},"firstTimeHomeBuyer":{"type":"boolean","description":"Whether the borrower is a first-time home buyer. Overrides the loan's declarations.","nullable":true},"interestOnly":{"type":"boolean","description":"Whether to price interest-only products. A loan is priced without them when absent.","nullable":true},"includeLoCompensationInPricing":{"$ref":"#/components/schemas/LoanPricingCriteriaIncludeLOCompensationInPricing"},"loanTerms":{"type":"array","items":{"$ref":"#/components/schemas/LoanTerms"},"description":"Loan terms to price. Overrides the loan's term.","nullable":true},"amortizationTypes":{"type":"array","items":{"$ref":"#/components/schemas/AmortizationTypes"},"description":"Amortization types to price. Overrides the loan's amortization type.","nullable":true},"armFixedTerms":{"type":"array","items":{"$ref":"#/components/schemas/ArmFixedTerms"},"description":"ARM fixed periods to price when amortizationTypes contains ARM.","nullable":true},"productTypes":{"type":"array","items":{"$ref":"#/components/schemas/ProductTypes"},"description":"Product categories to include. [StandardProducts] when absent; non-QM uses [ExpandedGuidelines].","nullable":true},"desiredLockPeriod":{"type":"integer","description":"Desired lock period in days. Overrides the loan's lock period.","format":"int32","nullable":true},"desiredPrice":{"type":"number","description":"Desired price (par = 100).","format":"double","nullable":true},"desiredRate":{"type":"number","description":"Target interest rate. 0 returns all eligible rates.","format":"double","nullable":true},"includeGuidelines":{"type":"boolean","description":"If true, include per-product eligibility guidelines.","nullable":true}},"additionalProperties":false,"description":"Criteria a caller passes alongside a loan id when pricing a loan from its stored data. Every field is\r\noptional and has no default: a field left null is taken from the loan, and a field set here wins over\r\nthe loan's value. After the overrides are applied the loan must still have a loan amount, property value, number of units, state, ZIP code, occupancy, loan purpose, loan type and credit score, or the request is refused with a 400 naming each one missing."},"LoanPricingCriteriaLoanType":{"enum":["Conforming","NonConforming","FHA","VA","Conventional","HELOC","USDARuralHousing"],"type":"string","description":"Loan type, which drives the product set. Conforming is a conventional loan within agency loan limits; NonConforming is a conventional loan above those limits (jumbo); Conventional is a conventional, non-government loan; FHA, VA and USDARuralHousing are government-insured or guaranteed loans; HELOC is a home equity line of credit."},"LoanPricingCriteriaLoanPurpose":{"enum":["Purchase","RefiCashout","RefiRateTermLimitedCO","FHAStreamlineRefi","VARateReduction","SimpleRefinance"],"type":"string","description":"Purpose of the loan. Purchase buys the property; RefiCashout is a cash-out refinance; RefiRateTermLimitedCO is a rate-and-term or limited cash-out refinance; FHAStreamlineRefi is an FHA streamline refinance; VARateReduction is a VA interest rate reduction refinance; SimpleRefinance is a refinance without cash out."},"PropertySearchCriteriaOccupancy":{"enum":["InvestmentProperty","PrimaryResidence","SecondHome"],"type":"string","description":"How the borrower will use the property. PrimaryResidence is the borrower's main home; SecondHome is a vacation or second home; InvestmentProperty is held for rent or resale."},"PropertySearchCriteriaPropertyType":{"enum":["SingleFamily","Condo","ManufacturedDoubleWide","Condotel","Modular","PUD","Timeshare","ManufacturedSingleWide","Coop","NonWarrantableCondo","Townhouse","DetachedCondo"],"type":"string","description":"Type of the subject property. SingleFamily, Townhouse, Condo, DetachedCondo, NonWarrantableCondo (a condo project that does not meet agency eligibility rules), Condotel (hotel-style condo), Coop, PUD (planned unit development), Modular, ManufacturedSingleWide, ManufacturedDoubleWide and Timeshare."},"BorrowerCriteriaCitizenship":{"enum":["USCitizen","USCitizenAbroad","PermResidentAlien","NonPermResidentAlien","ForeignNational"],"type":"string","description":"The borrower's citizenship status for pricing: USCitizen, USCitizenAbroad (a U.S. citizen living abroad), PermResidentAlien, NonPermResidentAlien or ForeignNational."},"LoanPricingCriteriaIncludeLOCompensationInPricing":{"enum":["YesLenderPaid","NoBuyerPaid","NoLenderPaid"],"type":"string","description":"Whether and how the loan officer's compensation is reflected in the quoted price. YesLenderPaid includes lender-paid compensation in the price; NoBuyerPaid leaves it out because the borrower pays it directly; NoLenderPaid leaves out lender-paid compensation."},"LoanTerms":{"enum":["ThirtyYear","TwentyFiveYear","TwentyYear","FifteenYear","TenYear","SevenYear","FiveYear","FortyYear","FourYear","TwoYear","ThreeMonth","SixMonth","NineMonth","ThreeYear","NineYear","EightYear","SixYear","OneYear","TwelveYear","NonStandardTerm"],"type":"string","description":"The loan term: ThirtyYear, TwentyFiveYear, TwentyYear, FifteenYear, TenYear, SevenYear, FiveYear, FortyYear, FourYear, TwoYear, ThreeMonth, SixMonth, NineMonth, ThreeYear, NineYear, EightYear, SixYear, OneYear, TwelveYear or NonStandardTerm; each is that length of time."},"AmortizationTypes":{"enum":["Fixed","ARM","Balloon","OptionArm"],"type":"string","description":"How the loan's principal is repaid and its rate set. Fixed has one rate for the whole term; ARM is an adjustable-rate mortgage; Balloon has a short term with a large final payment; OptionArm is an adjustable-rate loan that lets the borrower choose among payment options."},"ArmFixedTerms":{"enum":["SixMonth","OneYear","ThreeYear","FiveYear","SevenYear","TenYear","TwoYear","OneMonth","ThreeMonth","FifteenYear","SixYear"],"type":"string","description":"Initial fixed-rate period of an adjustable-rate mortgage, before the rate first adjusts. OneMonth, ThreeMonth and SixMonth are that many months; OneYear, TwoYear, ThreeYear, FiveYear, SixYear, SevenYear, TenYear and FifteenYear are that many years."},"ProductTypes":{"enum":["StandardProducts","AffordableProducts","HARP","HeroProducts","StudentLoanCORefi","RenovationAndRehabilitation","BondAndHFA","HUDspecialty","USDAStreamline","ExpandedGuidelines"],"type":"string","description":"Category of loan product to include in a search. StandardProducts are the standard agency and government products; AffordableProducts are affordable-lending programs; HARP is the refinance program for loans with high loan-to-value; HeroProducts are programs for military and public-service borrowers; StudentLoanCORefi is a cash-out refinance that pays off student loans; RenovationAndRehabilitation finances repairs or renovation; BondAndHFA are housing-finance-agency and bond programs; HUDspecialty are HUD specialty programs; USDAStreamline is the USDA streamline refinance; ExpandedGuidelines are non-agency products with expanded guidelines."},"CommissionTier":{"enum":["HalfPercent","ThreeQuarterPercent","OnePercent","OneAndThreeQuarterPercent"],"type":"string","description":"Loan officer compensation tier, as a percent of the loan amount, that selects which pricing account a search runs under. Reserved for Henge's own automated agents; ignored for other callers. HalfPercent is 0.50%, ThreeQuarterPercent 0.75%, OnePercent 1.00% and OneAndThreeQuarterPercent 1.75%."},"SearchPricingBorrowerInformation":{"type":"object","properties":{"citizenship":{"$ref":"#/components/schemas/BorrowerCriteriaCitizenship"},"ficoScore":{"type":"integer","description":"Representative FICO score (300-850).","format":"int32"},"firstTimeHomeBuyer":{"type":"boolean","description":"Set true on purchases to surface FTHB products and reduced MIP."},"selfEmployed":{"type":"boolean","description":"True if the borrower is self-employed."},"monthsReserves":{"type":"integer","description":"Months of post-closing reserves.","format":"int32"},"typeOfVeteran":{"$ref":"#/components/schemas/BorrowerCriteriaTypeOfVeteran"},"vaFirstTimeUse":{"type":"boolean","description":"VA only. First use of VA entitlement (affects funding fee)."},"waiveEscrows":{"type":"boolean","description":"Whether escrows are waived."},"state":{"type":"string","description":"Borrower mailing-address state (two-letter code), distinct from the property state. Optional.","nullable":true},"firstName":{"type":"string","description":"Optional borrower first name; not used for eligibility.","nullable":true},"lastName":{"type":"string","description":"Optional borrower last name; not used for eligibility.","nullable":true}},"additionalProperties":false,"description":"Borrower-side criteria of a pricing search. Used only when pricing from criteria; ignored when a loan is named. Anything left out takes the default noted on its field."},"BorrowerCriteriaTypeOfVeteran":{"enum":["ActiveDuty","NationalGuardOrReserves"],"type":"string","description":"The kind of military service for veteran pricing: ActiveDuty, or NationalGuardOrReserves."},"SearchPricingPropertyInformation":{"type":"object","properties":{"propertyValue":{"type":"number","description":"Property value in USD. Used as appraised value and sales price unless overridden.","format":"double"},"appraisedValue":{"type":"number","description":"Appraised value in USD. Overrides propertyValue for refinance LTV.","format":"double","nullable":true},"salesPrice":{"type":"number","description":"Sales price in USD. Overrides propertyValue for purchase LTV.","format":"double","nullable":true},"state":{"type":"string","description":"Property state (two-letter US code). Left out, it defaults to FL. Blank or unrecognised is refused with a 400, and a state where the pricing agent holds no current licence with a 403."},"county":{"type":"string","description":"Property county (must match the state), without the word 'County'. Omit to have it derived from zipCode.","nullable":true},"zipCode":{"type":"string","description":"Property ZIP code. Left out, it defaults to 33135. Without county, a ZIP code that is not in the state is refused with a 400.","nullable":true},"propertyType":{"$ref":"#/components/schemas/PropertySearchCriteriaPropertyType"},"occupancy":{"$ref":"#/components/schemas/PropertySearchCriteriaOccupancy"},"numberOfUnits":{"type":"string","description":"Number of dwelling units: OneUnit, TwoUnits, ThreeUnits, FourUnits, or a count of 5 or more such as \"6\".","nullable":true},"corporateRelocation":{"type":"boolean","description":"True if the borrower is being relocated by their employer."},"numberOfStories":{"type":"integer","description":"Number of stories.","format":"int32"},"propertyStreetAddress":{"type":"string","description":"Optional street address; not used for eligibility.","nullable":true},"city":{"type":"string","description":"Optional city; not used for eligibility.","nullable":true}},"additionalProperties":false,"description":"Property-side criteria of a pricing search. Used only when pricing from criteria; ignored when a loan is named. The state must be a recognised US state where the pricing agent is licensed, and the ZIP code must be in that state unless county is sent."},"SearchPricingLoanInformation":{"type":"object","properties":{"loanType":{"$ref":"#/components/schemas/LoanPricingCriteriaLoanType"},"loanPurpose":{"$ref":"#/components/schemas/LoanPricingCriteriaLoanPurpose"},"loanAmount":{"type":"number","description":"Base loan amount in USD, excluding financed fees and MIP.","format":"double"},"cashOutAmount":{"type":"number","description":"Cash-out amount in USD (refinance).","format":"double"},"secondLienAmount":{"type":"number","description":"Second lien amount in USD. Affects CLTV.","format":"double"},"helocDrawnAmount":{"type":"number","description":"HELOC drawn amount in USD.","format":"double"},"helocLineAmount":{"type":"number","description":"HELOC line (limit) amount in USD.","format":"double"},"productTypes":{"type":"array","items":{"$ref":"#/components/schemas/ProductTypes"},"description":"Product categories to include. Most scenarios use [StandardProducts]; non-QM uses [ExpandedGuidelines]."},"amortizationTypes":{"type":"array","items":{"$ref":"#/components/schemas/AmortizationTypes"},"description":"Amortization types. Conventional typically [Fixed, ARM]; FHA/VA/USDA typically [Fixed]."},"loanTerms":{"type":"array","items":{"$ref":"#/components/schemas/LoanTerms"},"description":"Loan terms to include."},"armFixedTerms":{"type":"array","items":{"$ref":"#/components/schemas/ArmFixedTerms"},"description":"REQUIRED when amortizationTypes contains ARM; defaults to [FiveYear, SevenYear, TenYear]. Ignored otherwise. Not refused when left out: with ARM it defaults to FiveYear, SevenYear and TenYear.","nullable":true},"desiredRate":{"type":"number","description":"Target interest rate. 0 returns all eligible rates.","format":"double"},"desiredLockPeriod":{"type":"integer","description":"Desired lock period in days.","format":"int32"},"desiredPrice":{"type":"number","description":"Desired price (par = 100).","format":"double"},"constructionLoanType":{"$ref":"#/components/schemas/LoanPricingCriteriaConstructionLoanType"},"exemptFromVAFundingFee":{"type":"boolean","description":"VA only. True for veterans with a service-connected disability."},"debtToIncomeRatio":{"type":"number","description":"DTI percent (25 = 25%).","format":"double"},"interestOnly":{"type":"boolean","description":"Include interest-only products."},"propertiesFinanced":{"type":"integer","description":"Number of properties the borrower already finances.","format":"int32"},"lienType":{"$ref":"#/components/schemas/LoanPricingCriteriaLienType"},"automatedUnderwritingSystem":{"$ref":"#/components/schemas/LoanPricingCriteriaAutomatedUnderwritingSystem"},"borrowerPaidMi":{"$ref":"#/components/schemas/LoanPricingCriteriaBorrowerPaidMI"},"buydown":{"$ref":"#/components/schemas/LoanPricingCriteriaBuydown"},"buydownContributorType":{"type":"string","description":"Who funds the buydown: Lender, Borrower, Seller, Builder or OtherInterestedThirdParty. Optional; only accepted with a buydown other than None. Omit to send nothing.","nullable":true},"expandedApprovalLevel":{"$ref":"#/components/schemas/LoanPricingCriteriaExpandedApprovalLevel"},"prepaymentPenalty":{"$ref":"#/components/schemas/LoanPricingCriteriaPrepaymentPenalty"},"includeLoCompensationInPricing":{"$ref":"#/components/schemas/LoanPricingCriteriaIncludeLOCompensationInPricing"},"assetDepletion":{"$ref":"#/components/schemas/LoanPricingCriteriaAssetDepletion"},"autoDebit":{"$ref":"#/components/schemas/LoanPricingCriteriaAutoDebit"},"employeeLoan":{"$ref":"#/components/schemas/LoanPricingCriteriaEmployeeLoan"},"communityAffordableSecond":{"$ref":"#/components/schemas/LoanPricingCriteriaCommunityAffordableSecond"},"calculateTotalLoanAmount":{"type":"boolean","description":"Auto-calculate the total loan amount. When false, totalLoanAmountDetails applies."},"totalLoanAmountDetails":{"$ref":"#/components/schemas/SearchPricingTotalLoanAmountDetails"},"expandedGuidelines":{"$ref":"#/components/schemas/SearchPricingExpandedGuidelines"},"firstLienAmount":{"type":"number","description":"First-lien amount in USD when lienType=Second (drives CLTV). Leave null otherwise.","format":"double","nullable":true},"feesIn":{"$ref":"#/components/schemas/LoanPricingCriteriaFeesIn"},"reducedMi":{"type":"boolean","description":"True for reduced-MI products (HomeReady, Home Possible)."},"totalMonthlyQualifyingIncome":{"type":"number","description":"Total monthly qualifying income in USD across all borrowers.","format":"double"}},"additionalProperties":false,"description":"Loan-side criteria of a pricing search: loan type and purpose, amounts, terms and product options. Used only when pricing from criteria; ignored when a loan is named. Anything left out takes the default noted on its field."},"LoanPricingCriteriaConstructionLoanType":{"enum":["NotApplicable","Construction","ConstructionToPerm"],"type":"string","description":"Whether the loan finances construction. NotApplicable means it does not; Construction is a construction-only loan; ConstructionToPerm is a construction loan that converts to permanent financing at completion."},"LoanPricingCriteriaLienType":{"enum":["First","Second"],"type":"string","description":"Lien position of the loan being priced. First is a first mortgage; Second is a subordinate lien (set the first lien amount too)."},"LoanPricingCriteriaAutomatedUnderwritingSystem":{"enum":["DU","LP","NotSpecified","InvestorAUS","ManualTraditional"],"type":"string","description":"The automated underwriting system whose findings the loan was run through. DU is Fannie Mae Desktop Underwriter; LP is Freddie Mac Loan Product Advisor; InvestorAUS is the investor's own system; ManualTraditional means the loan is manually underwritten; NotSpecified means it is not stated."},"LoanPricingCriteriaBorrowerPaidMI":{"enum":["Yes","No"],"type":"string","description":"Whether the borrower pays the mortgage insurance premium. Yes means the borrower pays it; No means the borrower does not (it is lender-paid, or the loan has no mortgage insurance)."},"LoanPricingCriteriaBuydown":{"enum":["None","ThreeTwoOne","TwoOne","OneZero","OneOne"],"type":"string","description":"Temporary buydown structure that lowers the borrower's rate in the first years. None is no buydown; ThreeTwoOne lowers the rate 3, 2 and 1 percentage points in years one, two and three; TwoOne lowers it 2 and 1 points in years one and two; OneOne lowers it 1 point in years one and two; OneZero lowers it 1 point in year one only."},"LoanPricingCriteriaExpandedApprovalLevel":{"enum":["NotApplicable","LevelOne","LevelTwo","LevelThree","LevelFour","LevelFive"],"type":"string","description":"The expanded-approval tier the loan qualifies under, for programs that offer tiered expanded eligibility. NotApplicable means none; LevelOne through LevelFive name the tier."},"LoanPricingCriteriaPrepaymentPenalty":{"enum":["None","OneYear","TwoYear","ThreeYear","FourYear","FiveYear"],"type":"string","description":"Length of the prepayment penalty period. None means no penalty; OneYear through FiveYear are the number of years during which paying off early is penalized."},"LoanPricingCriteriaAssetDepletion":{"enum":["Yes","No"],"type":"string","description":"Whether the borrower qualifies using asset depletion, that is, income derived from liquid assets. Yes means it applies to the loan, No means it does not."},"LoanPricingCriteriaAutoDebit":{"enum":["Yes","No"],"type":"string","description":"Whether the borrower authorizes automatic debit of the monthly payment from a bank account, which some programs price in. Yes means it applies to the loan, No means it does not."},"LoanPricingCriteriaEmployeeLoan":{"enum":["Yes","No"],"type":"string","description":"Whether the borrower is an employee of the lender, which can qualify for employee pricing. Yes means it applies to the loan, No means it does not."},"LoanPricingCriteriaCommunityAffordableSecond":{"enum":["Yes","No"],"type":"string","description":"Whether the loan has a community or affordable second mortgage (subordinate financing from a down-payment assistance program). Yes means it applies to the loan, No means it does not."},"SearchPricingTotalLoanAmountDetails":{"type":"object","properties":{"totalLoanAmount":{"type":"number","description":"Explicit total loan amount in USD.","format":"double"},"upfrontPmiMipFfGfPercent":{"type":"number","description":"Upfront PMI/MIP/FF/GF percent.","format":"double"},"upfrontPmiMipFfGfAmount":{"type":"number","description":"Upfront PMI/MIP/FF/GF amount in USD (alternative to the percent).","format":"double"},"upfrontPmiMipFfGfPaidinCash":{"type":"number","description":"Portion paid in cash at closing.","format":"double"},"upfrontPmiMipFfGfFinancedAmount":{"type":"number","description":"Portion financed into the loan.","format":"double"}},"additionalProperties":false,"description":"The total loan amount with the upfront mortgage insurance or funding fee added, and how that fee is split between cash and financing. Used only when pricing from criteria; ignored when a loan is named."},"SearchPricingExpandedGuidelines":{"type":"object","properties":{"incomeVerificationType":{"$ref":"#/components/schemas/ExpandedGuidelinesIncomeVerificationType"},"housingEventType":{"$ref":"#/components/schemas/ExpandedGuidelinesHousingEventType"},"housingEventSeasoning":{"$ref":"#/components/schemas/ExpandedGuidelinesHousingEventSeasoning"},"bankruptcyType":{"$ref":"#/components/schemas/ExpandedGuidelinesBankruptcyType"},"bankruptcyOutcome":{"$ref":"#/components/schemas/ExpandedGuidelinesBankruptcyOutcome"},"bankruptcySeasoning":{"$ref":"#/components/schemas/ExpandedGuidelinesBankruptcySeasoning"},"debtServiceCoverageRatio":{"type":"number","description":"DSCR for investor / non-QM products.","format":"double"},"uniqueProperty":{"type":"boolean","description":"Unique property flag."},"debtConsolidation":{"type":"boolean","description":"Debt consolidation flag."},"mortgageLates30In12Months":{"type":"integer","description":"30-day mortgage lates, last 12 months.","format":"int32"},"mortgageLates30In13To24Months":{"type":"integer","description":"30-day mortgage lates, months 13-24.","format":"int32"},"mortgageLates60In12Months":{"type":"integer","description":"60-day mortgage lates, last 12 months.","format":"int32"},"mortgageLates60In13To24Months":{"type":"integer","description":"60-day mortgage lates, months 13-24.","format":"int32"},"mortgageLates90In12Months":{"type":"integer","description":"90-day mortgage lates, last 12 months.","format":"int32"},"mortgageLates90In13To24Months":{"type":"integer","description":"90-day mortgage lates, months 13-24.","format":"int32"},"mortgageLates120In12Months":{"type":"integer","description":"120-day mortgage lates, last 12 months.","format":"int32"},"mortgageLates120In13To24Months":{"type":"integer","description":"120-day mortgage lates, months 13-24.","format":"int32"}},"additionalProperties":false,"description":"Extra borrower history used to price expanded-guideline (non-agency) products. Used only when pricing from criteria; ignored when a loan is named. Anything left out takes the default noted on its field."},"ExpandedGuidelinesIncomeVerificationType":{"enum":["FullDoc","PersonalBankStmt1Mo","PersonalBankStmt6Mos","PersonalBankStmt12Mos","PersonalBankStmt18Mos","PersonalBankStmt24Mos","BusinessBankStmt1Mo","BusinessBankStmt6Mos","BusinessBankStmt12Mos","BusinessBankStmt18Mos","BusinessBankStmt24Mos","OneYearAltDoc","AssetRelated","InvestorDscr","RestrictedStock","InvestorNoRatio","PersonalBankStmt3Mos","BusinessBankStmt3Mos","TwoYearAltDoc","WrittenVOE","Stated","OneYear1099","TwoYear1099","PLOneYear","PLTwoYear","NoIncomeVerification"],"type":"string","description":"How the borrower's income is documented, for expanded-guideline (non-agency) pricing. FullDoc is full documentation; PersonalBankStmt and BusinessBankStmt values (1, 3, 6, 12, 18 or 24 months) qualify on personal or business bank statements covering that many months; OneYearAltDoc and TwoYearAltDoc are alternative documentation for one or two years; OneYear1099 and TwoYear1099 use 1099 income; PLOneYear and PLTwoYear use a profit-and-loss statement; WrittenVOE is a written verification of employment; AssetRelated qualifies on assets; InvestorDscr qualifies an investment property on its debt service coverage ratio; InvestorNoRatio is an investor loan with no ratio qualification; RestrictedStock uses restricted-stock income; Stated is stated income; NoIncomeVerification means income is not verified."},"ExpandedGuidelinesHousingEventType":{"enum":["None","DeedInLieu","Foreclosure","Modification","ShortSale","Forbearance"],"type":"string","description":"A negative housing event in the borrower's history, for expanded-guideline (non-agency) pricing. None means there was none; otherwise DeedInLieu (deed in lieu of foreclosure), Foreclosure, Modification (loan modification), ShortSale or Forbearance."},"ExpandedGuidelinesHousingEventSeasoning":{"enum":["NotApplicable","Last1To12Months","Last13To24Months","Last25To36Months","Last37To48Months","Last49To60Months","MoreThanFiveYearsAgo"],"type":"string","description":"How long ago the borrower's housing event (foreclosure, short sale and the like) happened, for expanded-guideline (non-agency) pricing. NotApplicable means it never happened; Last1To12Months through Last49To60Months are the 12-month windows counted back from today (1 to 12 months ago, 13 to 24, 25 to 36, 37 to 48, 49 to 60); MoreThanFiveYearsAgo is older than 60 months."},"ExpandedGuidelinesBankruptcyType":{"enum":["None","Chapter7","Chapter11","Chapter13"],"type":"string","description":"Chapter of the borrower's bankruptcy, for expanded-guideline (non-agency) pricing. None means no bankruptcy; otherwise Chapter7, Chapter11 or Chapter13."},"ExpandedGuidelinesBankruptcyOutcome":{"enum":["NotApplicable","Discharged","Dismissed","OpenOrPending"],"type":"string","description":"How the borrower's bankruptcy ended, for expanded-guideline (non-agency) pricing. NotApplicable means no bankruptcy; Discharged means the debts were discharged; Dismissed means the case was dismissed without discharge; OpenOrPending means the case is not yet resolved."},"ExpandedGuidelinesBankruptcySeasoning":{"enum":["NotApplicable","Last1To12Months","Last13To24Months","Last25To36Months","Last37To48Months","Last49To60Months","MoreThanFiveYearsAgo"],"type":"string","description":"How long ago the borrower's bankruptcy happened, for expanded-guideline (non-agency) pricing. NotApplicable means it never happened; Last1To12Months through Last49To60Months are the 12-month windows counted back from today (1 to 12 months ago, 13 to 24, 25 to 36, 37 to 48, 49 to 60); MoreThanFiveYearsAgo is older than 60 months."},"LoanPricingCriteriaFeesIn":{"enum":["No","Yes"],"type":"string","description":"Fees-in pricing option. Pricing is always run with No, so a Yes sent here has no effect today."},"SearchPricingQmInformation":{"type":"object","properties":{"refinancePrepaymentFeeAmount":{"type":"number","description":"Refinance prepayment fee in USD.","format":"double"},"creditInsuranceFeeAmount":{"type":"number","description":"Credit insurance fee in USD.","format":"double"},"cashIncentiveDiscountAmount":{"type":"number","description":"Cash incentive / discount applied at closing in USD.","format":"double"},"escrowTrusteeFeeAmount":{"type":"number","description":"Escrow / trustee fee in USD.","format":"double"},"propertyAssessmentFeeAmount":{"type":"number","description":"Property assessment fee in USD.","format":"double"},"notaryCreditReportFeeAmount":{"type":"number","description":"Notary / credit report fee in USD.","format":"double"},"documentPreparationFeeAmount":{"type":"number","description":"Document preparation fee in USD.","format":"double"},"titleFeeAmount":{"type":"number","description":"Title fee in USD.","format":"double"},"borrowerPaidLoCompensation":{"type":"number","description":"Borrower-paid LO compensation in USD.","format":"double"},"additionalQmFeesAffectApor":{"type":"boolean","description":"If true, additional QM fees count toward the APOR comparison."},"additionalQmFeeAmount":{"type":"number","description":"Additional QM fees in USD beyond the itemized categories.","format":"double"},"financedPmi":{"type":"number","description":"Financed PMI / MIP rolled into the loan, in USD.","format":"double"}},"additionalProperties":false,"description":"Optional itemized fees for the Qualified Mortgage points-and-fees test and the APOR comparison. Every amount is in dollars; leave the group out to treat all fees as zero. Used only when pricing from criteria; ignored when a loan is named."},"PricingSearchResponse":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/EligibleProduct"},"description":"Eligible products, each at one rate and lock period.","nullable":true},"cltv":{"type":"number","description":"Combined loan-to-value ratio the search used, in percent.","format":"double"},"ltv":{"type":"number","description":"Loan-to-value ratio the search used, in percent.","format":"double"},"hcltv":{"type":"number","description":"Home-equity combined loan-to-value ratio the search used, in percent.","format":"double"},"amiPercentage":{"type":"number","description":"Percentage of the area median income the search calculated, used by affordable programs.","format":"double"},"searchId":{"type":"string","description":"Identifier of this search; pass it with a product id to fetch product details.","nullable":true},"searchTime":{"type":"string","description":"When the search ran.","nullable":true},"customerInternalId":{"type":"string","description":"Caller-supplied identifier echoed from the request.","nullable":true},"totalLoanAmountDetails":{"$ref":"#/components/schemas/TotalLoanAmountDetails"},"guidelines":{"type":"array","items":{"$ref":"#/components/schemas/Guideline"},"description":"Guideline documents that apply to the results; present when guidelines were requested.","nullable":true},"messages":{"type":"array","items":{"$ref":"#/components/schemas/Message"},"description":"Messages from the search, such as warnings about the criteria.","nullable":true},"pricedAs":{"$ref":"#/components/schemas/PricingSearchRequest"},"pricingExpiresAt":{"type":"string","description":"When this search's pricing expires. Not set by the Partner API, so it is left out of the response.","format":"date-time","nullable":true},"serverTime":{"type":"string","description":"The server's clock when `pricingExpiresAt` was set, so a page can compare without trusting its own.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"The result of a pricing search: the products the loan is eligible for, with the ratios the search calculated."},"EligibleProduct":{"type":"object","properties":{"bonaFideDiscountPoints":{"type":"number","description":"Discount points, as a percent of the loan amount, that count as bona fide and are excluded from the Qualified Mortgage points-and-fees test.","format":"double"},"qmStatus":{"type":"string","description":"Qualified Mortgage test result: Pass, Fail, or a pass flagged as a higher-priced mortgage loan (the HPML values); AlwaysPass for products the test does not apply to.","nullable":true},"amortizationTerm":{"type":"string","description":"Amortization term in years, as text, for example 30.","nullable":true},"amortizationType":{"type":"string","description":"How the loan is repaid: Fixed, ARM, Balloon or OptionArm.","nullable":true},"apr":{"type":"number","description":"Annual percentage rate, in percent.","format":"double"},"armIndex":{"type":"string","description":"Index an adjustable rate follows, for example SOFR or Treasury.","nullable":true},"armFirstCap":{"type":"number","description":"Cap on the first rate adjustment, in percentage points.","format":"double"},"armIndexValue":{"type":"number","description":"Current value of the index, in percent.","format":"double"},"armPeriodicCap":{"type":"number","description":"Cap on each later rate adjustment, in percentage points.","format":"double"},"armLifetimeCap":{"type":"number","description":"Cap on the total rate change over the life of the loan, in percentage points.","format":"double"},"armRelativeCap":{"type":"number","description":"Relative cap on the rate, in percentage points.","format":"double"},"armMargin":{"type":"number","description":"Margin added to the index, in percentage points.","format":"double"},"armsubsequentChangePeriod":{"type":"string","description":"How often an adjustable rate changes after its fixed period, in months, as text.","nullable":true},"armFixedTerm":{"type":"string","description":"Initial fixed period of an adjustable-rate product, as a code such as FiveYear.","nullable":true},"closingCost":{"type":"number","description":"Lender closing costs, in dollars.","format":"double"},"points":{"type":"number","description":"Discount points as a percent of the loan amount: 100 minus price, so negative when the product pays a rebate.","format":"double","nullable":true},"pointsCost":{"type":"number","description":"Cost of the points in dollars: the discount when positive, the rebate as a negative number.","format":"double","nullable":true},"discount":{"type":"number","description":"Buydown (discount) cost at this rate, in dollars; 0 on a rebate or par rate.","format":"double"},"investor":{"type":"string","description":"Name of the investor behind the product. Omitted for callers who are not shown the investor.","nullable":true},"investorId":{"type":"integer","description":"Identifier of the investor. Omitted for callers who are not shown the investor.","format":"int32","nullable":true},"sourceInvestor":{"type":"string","description":"The lender behind a portfolio investor's product. Omitted unless the caller is shown the investor.","nullable":true},"lastUpdate":{"type":"string","description":"When the lender's rate sheet was published, ISO 8601. Omitted for callers who are not shown the investor.","format":"date-time","nullable":true},"loanTerm":{"type":"string","description":"Loan term in years, as text, for example 30.","nullable":true},"loanType":{"type":"string","description":"Loan type, for example Conforming, FHA or VA.","nullable":true},"lockPeriod":{"type":"integer","description":"Rate lock period, in days.","format":"int64"},"monthlyMi":{"type":"number","description":"Monthly mortgage insurance, in dollars; 0 when the product has none.","format":"double"},"pendingUpdate":{"type":"boolean","description":"True when a pricing update for the product is pending, so the price may change."},"price":{"type":"number","description":"Price as a percent of par, where 100 is par.","format":"double"},"priceStatus":{"type":"string","description":"Whether the price can be used: Available, Suspended, Expired or TodaysPricingExpired.","nullable":true},"principalAndInterest":{"type":"number","description":"Monthly principal and interest payment, in dollars.","format":"double"},"productCode":{"type":"string","description":"The lender's product code. Omitted for callers who are not shown the investor.","nullable":true},"productId":{"type":"string","description":"Identifier of the product, to fetch its details or select it.","nullable":true},"productName":{"type":"string","description":"Name of the product, including the investor when shown.","nullable":true},"rate":{"type":"number","description":"Note rate, in percent such as 6.875.","format":"double"},"rebate":{"type":"number","description":"Rebate (credit) at this rate, in dollars; 0 on a discount or par rate.","format":"double"},"totalPayment":{"type":"number","description":"Total monthly payment in dollars: principal, interest and mortgage insurance.","format":"double"},"loCompensationDollars":{"type":"integer","description":"Loan officer compensation built into the price, in dollars.","format":"int32"},"loCompensationPercent":{"type":"number","description":"Loan officer compensation built into the price, as a percent of the loan amount.","format":"double"},"highBalance":{"type":"string","description":"Yes when the loan amount is above the standard conforming limit (a high-balance loan), No otherwise.","nullable":true},"productQuote":{"$ref":"#/components/schemas/ProductQuote"},"keyLabel":{"type":"string","description":"Label grouping the product by term, amortization and loan type, for example 30 Year Fixed Conforming.","nullable":true},"programName":{"type":"string","description":"Product name without the investor prefix.","nullable":true},"originalApr":{"type":"number","description":"APR before any adjustment by the loan officer, in percent.","format":"double"},"adjustedApr":{"type":"number","description":"APR after the loan officer's adjustments, in percent.","format":"double"},"computedApr":{"type":"number","description":"APR computed by Henge from the rate and costs, in percent.","format":"double"},"armFixedTermMonths":{"type":"integer","description":"Initial fixed period of an adjustable-rate product, in months.","format":"int32","nullable":true},"opportunityType":{"$ref":"#/components/schemas/OpportunityTypeModel"}},"additionalProperties":false,"description":"A product the loan is eligible for, shown at one rate and lock period with its price and payment. Search results carry no productQuote; fetch the product's details for its full rate sheet."},"ProductQuote":{"type":"object","properties":{"productName":{"type":"string","description":"Name of the product, including the investor when it is shown.","nullable":true},"quotes":{"type":"array","items":{"$ref":"#/components/schemas/Quote"},"description":"The rate rows of the product, one per rate and lock period.","nullable":true},"searchId":{"type":"string","description":"Identifier of the pricing search this rate sheet came from.","nullable":true},"productId":{"type":"string","description":"Identifier of the product.","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/QuoteAdjustment"},"description":"Adjustments applied to the product's rate or price.","nullable":true},"parQuotes":{"type":"array","items":{"$ref":"#/components/schemas/ParQuote"},"description":"The par rate for each lock period.","nullable":true},"totalRateAdjustment":{"type":"number","description":"Sum of the rate adjustments, in percentage points.","format":"double","nullable":true},"totalPriceAdjustment":{"type":"number","description":"Sum of the price adjustments, in points.","format":"double","nullable":true},"totalSRPAdjustment":{"type":"number","description":"Sum of the servicing-release-premium adjustments, in points.","format":"double","nullable":true},"totalMarginAdjustment":{"type":"number","description":"Sum of the margin adjustments, in percentage points.","format":"double","nullable":true},"notesAndAdvisories":{"type":"array","items":{"type":"string"},"description":"Notes and advisories the lender attached to the product.","nullable":true},"armSubsequentChangePeriod":{"type":"string","description":"How often an adjustable rate changes after its fixed period, as a code such as OneYear or SixMonth.","nullable":true},"armIndex":{"type":"string","description":"Index an adjustable rate follows, for example SOFR or Treasury.","nullable":true},"armIndexValue":{"type":"number","description":"Current value of the index, in percent.","format":"double","nullable":true},"armFirstCap":{"type":"number","description":"Cap on the first rate adjustment, in percentage points.","format":"double","nullable":true},"armPeriodicCap":{"type":"number","description":"Cap on each later rate adjustment, in percentage points.","format":"double","nullable":true},"armFixedTerm":{"type":"string","description":"Initial fixed period of an adjustable-rate product, as a code such as FiveYear.","nullable":true},"armFixedTermMonths":{"type":"integer","description":"Initial fixed period of an adjustable-rate product, in months.","format":"int32","nullable":true},"armLifetimeCap":{"type":"number","description":"Cap on the total rate change over the life of the loan, in percentage points.","format":"double","nullable":true},"armRelativeCap":{"type":"number","description":"Relative cap on the rate, in percentage points.","format":"double","nullable":true},"constructionTermMonths":{"type":"integer","description":"Construction period of a construction loan, in months.","format":"int32","nullable":true},"originationFees":{"type":"number","description":"Origination fees of the product, in dollars.","format":"double","nullable":true},"investorId":{"type":"integer","description":"Identifier of the investor behind the product. Omitted for callers who are not shown the investor.","format":"int32","nullable":true},"miRequiredOver80Ltv":{"type":"boolean","description":"True when mortgage insurance is required above 80% loan-to-value.","nullable":true},"interestOnlyTerm":{"type":"integer","description":"Length of the interest-only period of an interest-only product.","format":"int32","nullable":true},"lenderFeeDetails":{"type":"array","items":{"$ref":"#/components/schemas/LenderFeeDetail"},"description":"The lender fees charged on the product.","nullable":true},"lenderFeeTotal":{"type":"number","description":"Sum of the lender fees in lenderFeeDetails, in dollars. Calculated; read-only.","format":"double","nullable":true,"readOnly":true}},"additionalProperties":false,"description":"The full rate sheet of one product: every rate and lock period, with the adjustments, par rates and lender fees behind them."},"Quote":{"type":"object","properties":{"id":{"type":"string","description":"Identifier the pricing search gave this row.","nullable":true},"rate":{"type":"number","description":"Note rate, in percent such as 6.875.","format":"double","nullable":true},"lockPeriod":{"type":"integer","description":"Rate lock period of this row, in days.","format":"int32","nullable":true},"lockExpirationDate":{"type":"string","description":"Date a lock at this row's lock period would expire, ISO 8601.","format":"date-time","nullable":true},"apr":{"type":"number","description":"Annual percentage rate, in percent. Uses adjustedApr when one was calculated.","format":"double","nullable":true},"price":{"type":"number","description":"Price as a percent of par, where 100 is par; above 100 pays the borrower a rebate and below 100 costs a discount.","format":"double","nullable":true},"armMargin":{"type":"number","description":"Margin added to the index for an adjustable-rate product, in percentage points.","format":"double","nullable":true},"closingCost":{"type":"number","description":"Lender closing costs of this row, in dollars.","format":"double","nullable":true},"points":{"type":"number","description":"Discount points as a percent of the loan amount: 100 minus price, so negative when the row pays a rebate.","format":"double","nullable":true},"pointsCost":{"type":"number","description":"Cost of the points in dollars: positive for a discount, negative for a rebate.","format":"double","nullable":true},"discountDollar":{"type":"number","description":"Buydown (discount) this row costs the borrower, in dollars; 0 on a rebate or par row.","format":"double","nullable":true},"discountPercent":{"type":"number","description":"Buydown (discount) as a percent of the loan amount; 0 on a rebate or par row.","format":"double","nullable":true},"rebateDollar":{"type":"number","description":"Rebate (credit) this row gives the borrower, in dollars; 0 on a discount or par row.","format":"double","nullable":true},"rebatePercent":{"type":"number","description":"Rebate (credit) as a percent of the loan amount; 0 on a discount or par row.","format":"double","nullable":true},"loCompensationDollar":{"type":"number","description":"Loan officer compensation built into this row, in dollars.","format":"double","nullable":true},"loCompensationPercent":{"type":"number","description":"Loan officer compensation built into this row, as a percent of the loan amount.","format":"double","nullable":true},"principalAndInterest":{"type":"number","description":"Monthly principal and interest payment, in dollars.","format":"double","nullable":true},"totalCredit":{"type":"number","description":"Total credit this row gives the borrower, in dollars.","format":"double","nullable":true},"monthlyMi":{"type":"number","description":"Monthly mortgage insurance, in dollars; 0 when the product has none.","format":"double","nullable":true},"totalPayment":{"type":"number","description":"Total monthly payment in dollars: principal, interest and mortgage insurance.","format":"double","nullable":true},"amiRuleApplied":{"type":"boolean","description":"True when the area-median-income rule of affordable programs was applied to this row."},"borrowerPaidDetails":{"type":"array","items":{"$ref":"#/components/schemas/FeeDetail"},"description":"Fees the borrower pays for this row.","nullable":true},"groupAdjustmentProperties":{"type":"array","items":{"$ref":"#/components/schemas/GroupAdjustmentProperty"},"description":"The groups of price adjustments that make up this row's final price.","nullable":true},"searchId":{"type":"string","description":"Identifier of the pricing search this row came from.","nullable":true},"productId":{"type":"string","description":"Identifier of the product this row belongs to.","nullable":true},"adjustedApr":{"type":"number","description":"APR after the loan officer's adjustments to the quote, in percent.","format":"double","nullable":true},"adjustedFee":{"type":"number","description":"Fee amount after the loan officer's adjustments, in dollars.","format":"double","nullable":true},"computedApr":{"type":"number","description":"APR computed by Henge from the row's rate and costs, in percent.","format":"double","nullable":true},"originalApr":{"type":"number","description":"APR as the pricing search returned it, before any adjustment, in percent.","format":"double","nullable":true},"quoteId":{"type":"string","description":"Henge's identifier for this row. Pass it to select or lock the row.","nullable":true},"isArchived":{"type":"boolean","description":"True when this saved row has been archived."},"isLocked":{"type":"boolean","description":"True once a lock has been requested on this row."}},"additionalProperties":false,"description":"One row of a product's rate sheet: a note rate at a lock period, with its price, payment and costs. Rates are percents such as 6.875; price is a percent of par, where 100 is par."},"FeeDetail":{"type":"object","properties":{"amount":{"type":"number","description":"The fee amount in dollars.","format":"double","nullable":true},"description":{"type":"string","description":"What the fee is for.","nullable":true},"isOrigination":{"type":"boolean","description":"True when the fee is an origination charge.","nullable":true},"points":{"type":"number","description":"The fee expressed in points (percent of the loan amount, for example 1.0 for one point), when it is charged that way.","format":"double","nullable":true},"type":{"type":"string","description":"The fee's category as the pricing engine names it.","nullable":true}},"additionalProperties":false},"GroupAdjustmentProperty":{"type":"object","properties":{"id":{"type":"string","description":"Name of the adjustment group, for example the category its adjustments fall under.","nullable":true},"finalAdjustment":{"type":"number","description":"Net adjustment of the group once all its adjustments are applied.","format":"double","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/Adjustment"},"description":"The individual adjustments in the group.","nullable":true}},"additionalProperties":false,"description":"A named group of adjustments that together move a quote's price or rate."},"Adjustment":{"type":"object","properties":{"key":{"type":"string","description":"Name of the adjustment, saying what it is for.","nullable":true},"adj":{"type":"number","description":"Size of the adjustment, in the unit of the group it belongs to (price points or rate).","format":"double","nullable":true}},"additionalProperties":false,"description":"One price or rate adjustment applied to a quote."},"QuoteAdjustment":{"type":"object","properties":{"reason":{"type":"string","description":"Why the adjustment applies, as text.","nullable":true},"adjustor":{"type":"number","description":"Size of the adjustment; its unit follows the type.","format":"double"},"type":{"type":"string","description":"What the adjustment changes, for example the rate, the price or the margin.","nullable":true}},"additionalProperties":false,"description":"An adjustment the lender applied to a product's rate or price."},"ParQuote":{"type":"object","properties":{"parRate":{"type":"number","description":"Note rate at par, in percent.","format":"double"},"parPrice":{"type":"number","description":"Price at par, where 100 is par.","format":"double"},"parLock":{"type":"integer","description":"Lock period of this par quote, in days.","format":"int32"}},"additionalProperties":false,"description":"The par rate for one lock period: the rate whose price is closest to 100."},"LenderFeeDetail":{"type":"object","properties":{"feeDetailNumber":{"type":"integer","description":"Sequence number of the fee in the product's fee list.","format":"int32"},"feeTotalAmountPercent":{"type":"number","description":"Fee as a percent of the base named in feePercentageBasedOn, when it is percentage-based.","format":"double"},"feeSpecifiedFixedAmount":{"type":"number","description":"Fixed fee amount in dollars, when the fee is a fixed amount.","format":"double"},"feeTotalCalculatedAmount":{"type":"number","description":"Total fee in dollars after calculation.","format":"double"},"feePaymentFinancedIndicator":{"type":"boolean","description":"True when the fee is financed into the loan amount."},"feePaidBy":{"type":"string","description":"Who pays the fee: Buyer or Seller.","nullable":true},"feePaidTo":{"type":"string","description":"Who receives the fee: Lender, Broker, Affiliate, ThirdParty or Other.","nullable":true},"rebatePriority":{"type":"integer","description":"Priority of this fee when a rebate is applied.","format":"int32"},"feeDescription":{"type":"string","description":"Name of the fee as the lender describes it.","nullable":true},"prepaidFinanceChargeIndicator":{"type":"boolean","description":"True when the fee is a prepaid finance charge, which counts toward APR."},"includedInQMPointsAndFeesTest":{"type":"boolean","description":"True when the fee counts toward the Qualified Mortgage points-and-fees test."},"feePercentageBasedOn":{"type":"string","description":"Amount a percentage fee is calculated on: PurchasePriceAmount, PropertyAppraisedValueAmount, OriginalLoanAmount, BaseLoanAmount or Other.","nullable":true},"feeType":{"type":"string","description":"Standard fee category, for example LoanOriginationFee or UnderwritingFee.","nullable":true}},"additionalProperties":false,"description":"One lender fee charged on a product."},"OpportunityTypeModel":{"type":"object","properties":{"name":{"type":"string","description":"Display name of the program type, for example 30 Year Fixed or 7/6 ARM.","nullable":true},"shortName":{"type":"string","description":"Compact form of the program type name with no spaces, usable as a key.","nullable":true}},"additionalProperties":false,"description":"The program type of a priced product, for example a fixed term or an adjustable-rate program."},"TotalLoanAmountDetails":{"type":"object","properties":{"totalLoanAmount":{"type":"number","description":"Base loan amount plus the financed upfront fee, in dollars.","format":"double"},"upfrontPmiMipFfGfPercent":{"type":"number","description":"Upfront mortgage insurance or funding fee, as a percent of the base loan amount.","format":"double"},"upfrontPmiMipFfGfAmount":{"type":"number","description":"Upfront mortgage insurance or funding fee, in dollars.","format":"double"},"upfrontPmiMipFfGfPaidinCash":{"type":"number","description":"Portion of the upfront fee the borrower pays in cash at closing, in dollars.","format":"double"},"upfrontPmiMipFfGfFinancedAmount":{"type":"number","description":"Portion of the upfront fee added to the loan amount, in dollars.","format":"double"}},"additionalProperties":false,"description":"The total loan amount with the upfront mortgage insurance or guarantee fee (FHA MIP, VA or USDA funding fee, private MI) added, and how that fee is split between cash and financing."},"Guideline":{"type":"object","properties":{"documentDescription":{"type":"string","description":"Title of the guideline document.","nullable":true},"guidelineLink":{"$ref":"#/components/schemas/Link"}},"additionalProperties":false,"description":"A lender guideline document that applies to a product."},"Link":{"type":"object","properties":{"href":{"type":"string","description":"URL of the document.","format":"uri","nullable":true},"action":{"type":"string","description":"HTTP method to use on the URL, for example GET.","nullable":true},"fileExtension":{"type":"string","description":"File extension of the document, for example pdf.","nullable":true},"types":{"type":"array","items":{"type":"string"},"description":"Media types the link serves.","nullable":true}},"additionalProperties":false,"description":"A link to a document, with how to follow it."},"Message":{"type":"object","properties":{"code":{"type":"string","description":"Short code of the message.","nullable":true},"messageText":{"type":"string","description":"The message, as text for a person.","nullable":true}},"additionalProperties":false,"description":"A message from the pricing search, such as a warning about the criteria."},"PricingSearchRequest":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of this stored search request, set by the server.","nullable":true},"searchId":{"type":"string","description":"Identifier of the pricing search that ran with these criteria, set by the server.","nullable":true},"pricingScenarioId":{"type":"string","description":"Identifier of the pricing scenario this search belongs to, set by the server.","nullable":true},"canUpdate":{"type":"boolean","description":"True when the caller may change the scenario this request belongs to. Set by the server; read-only."},"qmInformation":{"$ref":"#/components/schemas/QMCriteria"},"borrowerInformation":{"$ref":"#/components/schemas/BorrowerCriteria"},"coBorrowerInformation":{"$ref":"#/components/schemas/CoBorrowerCriteria"},"loanInformation":{"$ref":"#/components/schemas/LoanPricingCriteria"},"propertyInformation":{"$ref":"#/components/schemas/PropertySearchCriteria"},"brokerCriteria":{"$ref":"#/components/schemas/BrokerCriteria"},"rateRange":{"$ref":"#/components/schemas/RateRange"},"dayLocksCriteria":{"type":"array","items":{"type":"integer","format":"int32"},"description":"Lock periods, in days, asked for. Kept for reference; the search prices loanInformation.desiredLockPeriod.","nullable":true},"representativeFico":{"type":"integer","description":"Representative credit score of the request. Kept for reference; the search prices the borrower and loan scores.","format":"int64","nullable":true},"loanLevelDebtToIncomeRatio":{"type":"number","description":"Loan-level debt-to-income ratio, in percent. Kept for reference; the search prices loanInformation.loanLevelDebtToIncomeRatio.","format":"double","nullable":true},"customerInternalId":{"type":"string","description":"Caller-supplied identifier, echoed on the search response.","nullable":true},"agentId":{"type":"string","description":"Identifier (GUID) of the loan officer the search ran for, which decides the pricing account it prices under.","format":"uuid"},"companyId":{"type":"string","description":"Identifier (GUID) of the loan officer's company.","format":"uuid"},"version":{"type":"string","description":"Version tag of the request, kept for reference.","nullable":true},"dynamicPropertiesMap":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/FieldPropertyParameter"},"description":"Custom pricing fields, keyed by field identifier.","nullable":true},"includeGuidelines":{"type":"boolean","description":"True to include the guideline documents that apply to each product in the response."},"markupOverrides":{"type":"array","items":{"$ref":"#/components/schemas/MarkupOverride"},"description":"Per-request overrides of configured markup tiers, such as a corporate margin or loan officer compensation.","nullable":true},"commissionTier":{"$ref":"#/components/schemas/CommissionTier"}},"additionalProperties":false,"description":"A pricing search as it is stored with a scenario: the borrower, loan, property and fee criteria, plus who it was run for."},"QMCriteria":{"type":"object","properties":{"refinancePrepaymentFeeAmount":{"type":"number","description":"Prepayment fee charged on the loan being refinanced, in dollars.","format":"double"},"creditInsuranceFeeAmount":{"type":"number","description":"Credit insurance premium charged at closing, in dollars.","format":"double"},"cashIncentiveDiscountAmount":{"type":"number","description":"Cash incentive or discount applied at closing, in dollars.","format":"double"},"escrowTrusteeFeeAmount":{"type":"number","description":"Escrow or trustee fee, in dollars.","format":"double"},"propertyAssessmentFeeAmount":{"type":"number","description":"Property assessment fee, in dollars.","format":"double"},"notaryCreditReportFeeAmount":{"type":"number","description":"Notary and credit report fees, in dollars.","format":"double"},"documentPreperationFeeAmount":{"type":"number","description":"Document preparation fee, in dollars.","format":"double"},"titleFeeAmount":{"type":"number","description":"Title fees, in dollars.","format":"double"},"borrowerPaidLOCompensation":{"type":"number","description":"Loan officer compensation the borrower pays directly, in dollars.","format":"double"},"additionalQMFeesAffectAPOR":{"type":"boolean","description":"True when the additional fees are finance charges that also change the APR comparison."},"additionalQMFeeAmount":{"type":"number","description":"Other fees that count toward the points-and-fees test, in dollars.","format":"double"},"financedPMI":{"type":"number","description":"Mortgage insurance premium that is financed into the loan, in dollars.","format":"double"}},"additionalProperties":false,"description":"Itemized fees that count toward the Qualified Mortgage points-and-fees test and the APOR comparison. Every amount is in dollars and defaults to zero."},"BorrowerCriteria":{"type":"object","properties":{"applicationDate":{"type":"string","description":"Date the loan application was taken, ISO 8601.","format":"date-time","nullable":true},"assetDocumentation":{"type":"string","description":"How the borrower's assets are documented. Kept for reference; not used when pricing.","nullable":true},"bankruptcy":{"type":"string","description":"Bankruptcy history of the borrower. Kept for reference; not used when pricing.","nullable":true},"bankruptcyChapter":{"type":"string","description":"Chapter of the borrower's bankruptcy. Kept for reference; not used when pricing.","nullable":true},"bankStatementsForIncome":{"type":"string","description":"Months of bank statements used to document income. Kept for reference; not used when pricing.","nullable":true},"citizenship":{"type":"string","description":"Borrower's citizenship status: USCitizen, USCitizenAbroad, PermResidentAlien, NonPermResidentAlien or ForeignNational. Used when pricing.","nullable":true},"debtToIncomeRatio":{"type":"number","description":"Borrower's debt-to-income ratio, in percent. Kept for reference; the loan-level ratio on the request is what pricing uses.","format":"double","nullable":true},"disclosureDate":{"type":"string","description":"Date the initial loan disclosures were issued, ISO 8601.","format":"date-time","nullable":true},"docType":{"type":"string","description":"Documentation type of the loan. Kept for reference; not used when pricing.","nullable":true},"employmentDocumentation":{"type":"string","description":"How the borrower's employment is documented. Kept for reference; not used when pricing.","nullable":true},"fico":{"type":"integer","description":"Borrower's credit score. Used when pricing.","format":"int32","nullable":true},"firstName":{"type":"string","description":"Borrower's first name.","nullable":true},"firstTimeHomeBuyer":{"type":"boolean","description":"True when the borrower is a first-time home buyer, which makes first-time-buyer programs eligible.","nullable":true},"foreclosure":{"type":"string","description":"Foreclosure history of the borrower. Kept for reference; not used when pricing.","nullable":true},"incomeDocumentation":{"type":"string","description":"How the borrower's income is documented. Kept for reference; not used when pricing.","nullable":true},"lastName":{"type":"string","description":"Borrower's last name.","nullable":true},"militaryType":{"type":"string","description":"Borrower's military status. Kept for reference; use typeOfVeteran when pricing.","nullable":true},"monthlyIncome":{"type":"number","description":"Borrower's gross monthly income, in dollars. Kept for reference; not used when pricing.","format":"double","nullable":true},"monthsReserves":{"type":"integer","description":"Months of post-closing reserves the borrower has.","format":"int64","nullable":true},"mortgageLatesRolling":{"type":"integer","description":"Number of rolling mortgage late payments. Kept for reference; not used when pricing.","format":"int64","nullable":true},"mortgageLatesX120":{"type":"integer","description":"Number of mortgage payments 120 or more days late. Kept for reference; not used when pricing.","format":"int64","nullable":true},"mortgageLatesX30":{"type":"integer","description":"Number of mortgage payments 30 days late. Kept for reference; not used when pricing.","format":"int64","nullable":true},"mortgageLatesX60":{"type":"integer","description":"Number of mortgage payments 60 days late. Kept for reference; not used when pricing.","format":"int64","nullable":true},"mortgageLatesX90":{"type":"integer","description":"Number of mortgage payments 90 days late. Kept for reference; not used when pricing.","format":"int64","nullable":true},"pledgedAssets":{"type":"boolean","description":"True when the borrower pledges assets to qualify. Kept for reference; not used when pricing.","nullable":true},"selfEmployed":{"type":"boolean","description":"True when the borrower is self-employed.","nullable":true},"state":{"type":"string","description":"Two-letter state of the borrower's residence.","nullable":true},"vaFirstTimeUse":{"type":"boolean","description":"True when this is the borrower's first use of the VA loan benefit, which lowers the VA funding fee.","nullable":true},"typeOfVeteran":{"type":"string","description":"Veteran status for VA pricing: ActiveDuty or NationalGuardOrReserves. Used when pricing.","nullable":true},"waiveEscrows":{"type":"boolean","description":"True when the borrower asks to waive escrows for taxes and insurance, which can add a price adjustment.","nullable":true},"compensationType":{"type":"string","description":"How the loan officer is compensated. Kept for reference; not used when pricing.","nullable":true},"ownProperties":{"type":"integer","description":"Number of properties the borrower owns. Kept for reference; not used when pricing.","format":"int32","nullable":true},"numberOfBorrower":{"type":"integer","description":"Number of borrowers on the loan. Kept for reference; not used when pricing.","format":"int32","nullable":true},"averageMedianCreditScore":{"type":"integer","description":"Average of the borrowers' median credit scores. Kept for reference; not used when pricing.","format":"int32","nullable":true},"balloon":{"type":"boolean","description":"True when the loan has a balloon payment. Kept for reference; not used when pricing.","nullable":true},"paymentInterestType":{"type":"string","description":"Payment and interest structure of the loan. Kept for reference; not used when pricing.","nullable":true},"lenderFeeWaiver":{"type":"boolean","description":"True when lender fees are waived. Kept for reference; not used when pricing.","nullable":true},"noMortgageHistory":{"type":"boolean","description":"True when the borrower has no mortgage payment history. Kept for reference; not used when pricing."},"escrowHoldback":{"type":"boolean","description":"True when an escrow holdback applies. Kept for reference; not used when pricing."},"texas50a6":{"type":"boolean","description":"True for a Texas 50(a)(6) home equity loan. Kept for reference; not used when pricing."},"affordableLendingPrograms":{"type":"array","items":{"type":"string"},"description":"Affordable-lending programs the borrower is in. Kept for reference; not used when pricing.","nullable":true},"mortgageLoanChargeOffs":{"type":"array","items":{"type":"string"},"description":"Mortgage charge-offs in the borrower's history. Kept for reference; not used when pricing.","nullable":true},"shortSale":{"type":"string","description":"Short sale history of the borrower. Kept for reference; not used when pricing.","nullable":true},"deedInLieu":{"type":"string","description":"Deed-in-lieu-of-foreclosure history of the borrower. Kept for reference; not used when pricing.","nullable":true},"forbearance":{"type":"string","description":"Mortgage forbearance history of the borrower. Kept for reference; not used when pricing.","nullable":true}},"additionalProperties":false,"description":"Borrower-side criteria a search was priced with. Only the fields noted as used affect pricing; the rest are kept with the scenario for reference."},"CoBorrowerCriteria":{"type":"object","properties":{"intentToOccupy":{"type":"boolean","description":"True when the co-borrower intends to occupy the property as a residence."}},"additionalProperties":false,"description":"Co-borrower criteria a search was priced with."},"LoanPricingCriteria":{"type":"object","properties":{"amortizationTypes":{"type":"array","items":{"type":"string"},"description":"Amortization types to include: Fixed, ARM, Balloon or OptionArm.","nullable":true},"armFixedTerms":{"type":"array","items":{"type":"string"},"description":"Initial fixed periods to include for adjustable-rate products, for example FiveYear.","nullable":true},"automatedUnderwritingSystem":{"type":"string","description":"Automated underwriting system the loan was run through (DU, LP, InvestorAUS, ManualTraditional or NotSpecified).","nullable":true},"baseLoanAmount":{"type":"number","description":"Base loan amount in dollars, before any financed fees or mortgage insurance.","format":"double","nullable":true},"borrowerPaidMi":{"type":"string","description":"Yes when the borrower pays the mortgage insurance premium, No otherwise.","nullable":true},"buydown":{"type":"string","description":"Temporary buydown structure: None, ThreeTwoOne, TwoOne, OneOne or OneZero.","nullable":true},"buydownContributorType":{"type":"string","description":"Who funds the buydown: Lender, Borrower, Seller, Builder or OtherInterestedThirdParty. Used only when buydown is not None.","nullable":true},"calculateTotalLoanAmount":{"type":"boolean","description":"True to have the total loan amount (base amount plus financed upfront fee) calculated for the search.","nullable":true},"cashOutAmount":{"type":"number","description":"Cash the borrower takes out in a refinance, in dollars.","format":"double","nullable":true},"currentServicer":{"type":"string","description":"Name of the servicer of the existing loan, for a refinance. Kept for reference; not used when pricing.","nullable":true},"desiredLockPeriod":{"type":"integer","description":"Rate lock period to price, in days.","format":"int64","nullable":true},"desiredPrice":{"type":"number","description":"Target price to search for, where 100 is par. Zero means no target.","format":"double","nullable":true},"desiredRate":{"type":"number","description":"Target note rate to search for, in percent such as 6.875.","format":"double","nullable":true},"exemptFromVAFundingFee":{"type":"boolean","description":"VA loans only. True when the veteran is exempt from the funding fee, for example for a service-connected disability.","nullable":true},"expandedApprovalLevel":{"type":"string","description":"Expanded-approval tier the loan qualifies under, or NotApplicable.","nullable":true},"feesIn":{"type":"string","description":"Fees-in pricing option. Pricing always runs with No.","nullable":true},"fhaCaseAssigned":{"type":"string","description":"Date the FHA case number was assigned, ISO 8601.","format":"date-time","nullable":true},"fhaCaseEndorsement":{"type":"string","description":"Date the existing FHA loan was endorsed, ISO 8601, for an FHA streamline refinance. Kept for reference; not used when pricing.","format":"date-time","nullable":true},"firstLienAmount":{"type":"number","description":"Balance of the first lien in dollars, when pricing a second lien.","format":"double","nullable":true},"helocDrawnAmount":{"type":"number","description":"Amount drawn on the home equity line, in dollars.","format":"double","nullable":true},"helocLineAmount":{"type":"number","description":"Total home equity line amount, in dollars.","format":"double","nullable":true},"includeLoCompensationInPricing":{"type":"string","description":"How loan officer compensation is reflected in the price: YesLenderPaid, NoBuyerPaid or NoLenderPaid.","nullable":true},"interestOnly":{"type":"boolean","description":"True to price interest-only products.","nullable":true},"interestOnlyTerm":{"type":"integer","description":"Length of the interest-only period. Kept for reference; not used when pricing.","format":"int32","nullable":true},"lienType":{"type":"string","description":"Lien position being priced: First or Second.","nullable":true},"loanPurpose":{"type":"string","description":"Purpose of the loan, for example Purchase or RefiCashout.","nullable":true},"loanTerms":{"type":"array","items":{"type":"string"},"description":"Loan terms to include, for example ThirtyYear or FifteenYear.","nullable":true},"loanType":{"type":"string","description":"Loan type, for example Conforming, FHA or VA.","nullable":true},"loanTypes":{"type":"array","items":{"type":"string"},"description":"Additional loan types to include. Kept for reference; not used when pricing.","nullable":true},"prepaymentPenalty":{"type":"string","description":"Prepayment penalty period to price: None or OneYear through FiveYear.","nullable":true},"productTypes":{"type":"array","items":{"type":"string"},"description":"Product categories to include, for example StandardProducts.","nullable":true},"secondLienAmount":{"type":"number","description":"Balance of the second lien in dollars, which counts toward combined loan-to-value.","format":"double","nullable":true},"ltv":{"type":"number","description":"Loan-to-value ratio, in percent. Kept for reference; the pricing engine calculates it.","format":"double","nullable":true},"cltv":{"type":"number","description":"Combined loan-to-value ratio, in percent. Kept for reference; the pricing engine calculates it.","format":"double","nullable":true},"renovationLoan":{"type":"boolean","description":"True for a renovation loan. Kept for reference; not used when pricing.","nullable":true},"renovationCost":{"type":"number","description":"Renovation cost in dollars. Kept for reference; not used when pricing.","format":"double","nullable":true},"assetDepletion":{"type":"string","description":"Yes when the borrower qualifies using asset depletion, No otherwise.","nullable":true},"autoDebit":{"type":"string","description":"Yes when the borrower authorizes automatic debit of the payment, No otherwise.","nullable":true},"employeeLoan":{"type":"string","description":"Yes when the borrower is an employee of the lender, No otherwise.","nullable":true},"communityAffordableSecond":{"type":"string","description":"Yes when the loan has a community or affordable second mortgage, No otherwise.","nullable":true},"reducedMI":{"type":"boolean","description":"True to price with reduced mortgage insurance, for programs that offer it."},"representativeFICO":{"type":"integer","description":"Representative credit score used to price the loan.","format":"int32"},"loanLevelDebtToIncomeRatio":{"type":"number","description":"Loan-level debt-to-income ratio, in percent. A value of zero or less prices as 30.","format":"double"},"totalMonthlyQualifyingIncome":{"type":"number","description":"Total monthly income used to qualify the borrowers, in dollars.","format":"double"},"expandedGuidelines":{"$ref":"#/components/schemas/ExpandedGuidelines"},"propertiesFinanced":{"type":"integer","description":"Number of properties the borrower has financed with the lender.","format":"int32","nullable":true},"totalLoanAmountDetails":{"$ref":"#/components/schemas/TotalLoanAmountDetails"},"constructionLoanType":{"type":"string","description":"Whether the loan finances construction: NotApplicable, Construction or ConstructionToPerm.","nullable":true}},"additionalProperties":false,"description":"Loan-side criteria a search was priced with. Coded fields take the values of the matching enum (loan purpose, lien type and so on)."},"ExpandedGuidelines":{"type":"object","properties":{"incomeVerificationType":{"type":"string","description":"How the borrower's income is documented, for example FullDoc or a bank statement program.","nullable":true},"housingEventType":{"type":"string","description":"Type of negative housing event in the borrower's history, or None.","nullable":true},"housingEventSeasoning":{"type":"string","description":"How long ago the housing event happened.","nullable":true},"bankruptcyType":{"type":"string","description":"Chapter of the borrower's bankruptcy, or None.","nullable":true},"bankruptcyOutcome":{"type":"string","description":"How the bankruptcy ended: discharged, dismissed or still open.","nullable":true},"bankruptcySeasoning":{"type":"string","description":"How long ago the bankruptcy happened.","nullable":true},"mortgageLatesx30_12Mos":{"type":"integer","description":"Number of mortgage payments 30 days late in the last 12 months.","format":"int32"},"mortgageLatesx30_13to24Mos":{"type":"integer","description":"Number of mortgage payments 30 days late 13 to 24 months ago.","format":"int32"},"mortgageLatesx60_12Mos":{"type":"integer","description":"Number of mortgage payments 60 days late in the last 12 months.","format":"int32"},"mortgageLatesx60_13to24Mos":{"type":"integer","description":"Number of mortgage payments 60 days late 13 to 24 months ago.","format":"int32"},"mortgageLatesx90_12Mos":{"type":"integer","description":"Number of mortgage payments 90 days late in the last 12 months.","format":"int32"},"mortgageLatesx90_13to24Mos":{"type":"integer","description":"Number of mortgage payments 90 days late 13 to 24 months ago.","format":"int32"},"mortgageLatesx120_12Mos":{"type":"integer","description":"Number of mortgage payments 120 days late in the last 12 months.","format":"int32"},"mortgageLatesx120_13to24Mos":{"type":"integer","description":"Number of mortgage payments 120 days late 13 to 24 months ago.","format":"int32"},"debtConsolidation":{"type":"boolean","description":"True when the loan is a debt-consolidation refinance."},"uniqueProperty":{"type":"boolean","description":"True when the property is unique, for example unusual construction or use."},"debtServiceCoverageRatio":{"type":"number","description":"Debt service coverage ratio of an investment property (rental income divided by the property's debt payments), as a decimal such as 1.25.","format":"double"}},"additionalProperties":false,"description":"Extra borrower history used to price expanded-guideline (non-agency) products. Each coded field takes the values of the matching expanded-guideline enum."},"PropertySearchCriteria":{"type":"object","properties":{"appraisedValue":{"type":"number","description":"Appraised value of the property, in dollars.","format":"double","nullable":true},"city":{"type":"string","description":"City of the subject property.","nullable":true},"construction":{"type":"boolean","description":"True when the property is new construction. Kept for reference; not used when pricing.","nullable":true},"corporateRelocation":{"type":"boolean","description":"True when the loan is a corporate relocation, which some programs price differently.","nullable":true},"county":{"type":"string","description":"County of the subject property.","nullable":true},"numberOfStories":{"type":"integer","description":"Number of stories of the building.","format":"int64","nullable":true},"numberOfUnits":{"type":"string","description":"Number of units: OneUnit through FourUnits, or five and more as FiveUnits upward.","nullable":true},"occupancy":{"type":"string","description":"How the property is used: PrimaryResidence, SecondHome or InvestmentProperty.","nullable":true},"propertyStreetAddress":{"type":"string","description":"Street address of the subject property; not used for eligibility.","nullable":true},"propertyType":{"type":"string","description":"Type of the property, for example SingleFamily or Condo.","nullable":true},"salesPrice":{"type":"number","description":"Purchase price of the property, in dollars.","format":"double","nullable":true},"state":{"type":"string","description":"Two-letter state of the subject property.","nullable":true},"zipCode":{"type":"string","description":"ZIP code of the subject property.","nullable":true},"attachmentType":{"type":"string","description":"Whether the property is attached or detached. Kept for reference; not used when pricing.","nullable":true}},"additionalProperties":false,"description":"Property-side criteria a search was priced with."},"BrokerCriteria":{"type":"object","properties":{"minCompensation":{"type":"number","description":"Minimum loan officer compensation, in dollars.","format":"double","nullable":true},"maxCompensation":{"type":"number","description":"Maximum loan officer compensation, in dollars.","format":"double","nullable":true},"compPercent":{"type":"number","description":"Loan officer compensation as a percent of the loan amount.","format":"double","nullable":true},"ausList":{"type":"array","items":{"type":"string"},"description":"Automated underwriting systems the officer's criteria allow; usually empty.","nullable":true}},"additionalProperties":false,"description":"Loan officer compensation limits a search was priced with, taken from the officer's profile."},"RateRange":{"type":"object","properties":{"from":{"type":"number","description":"Lowest rate of the range in percent, for example 6.0.","format":"double","nullable":true},"to":{"type":"number","description":"Highest rate of the range in percent, for example 7.0.","format":"double","nullable":true}},"additionalProperties":false,"description":"A range of note rates in percent."},"FieldPropertyParameter":{"type":"object","properties":{"fieldId":{"type":"string","description":"Identifier of the custom pricing field.","nullable":true},"value":{"type":"string","description":"Value to price with for that field, as text.","nullable":true}},"additionalProperties":false,"description":"A custom pricing field and the value it is set to."},"MarkupOverride":{"type":"object","properties":{"level":{"type":"integer","description":"Which configured markup tier this entry overrides, as its level index in the pricing account.","format":"int32","nullable":true},"dollar":{"type":"integer","description":"Flat markup in dollars. Leave null to use percentage instead.","format":"int32","nullable":true},"percentage":{"type":"number","description":"Markup as a percent of the loan amount, for example 1.40 for 140 basis points.","format":"double","nullable":true},"minCapDollar":{"type":"integer","description":"Minimum markup in dollars. Leave null for no minimum.","format":"int32","nullable":true},"maxCapDollar":{"type":"integer","description":"Maximum markup in dollars. Leave null for no maximum; a 0 caps the markup at 0.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Per-request override of a configured markup tier (a corporate or servicing-release margin, or loan officer compensation). Every field is optional; only those set are applied."},"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/pricing/search":{"post":{"tags":["Pricing, locks and fees"],"summary":"Search mortgage pricing","description":"**Required scope:** `read:pricing`\n\nThe agent must hold a currently valid licence in the subject property's state. If no eligible\r\nproducts come back, call the ineligible-products endpoint with the same searchId to see why.\r\n            \r\nWith loanApplicationId or externalId, the loan is priced from its stored data instead: under its\r\nloan officer, with no defaults, and with loanOverrides winning over the loan's values. The loan must\r\nbelong to the calling application's company. A loan missing a required input (loan amount, property\r\nvalue, number of units, state, zip code, occupancy, loan purpose, loan type, credit score) is refused\r\nwith a 400 naming\r\neach one, and the response's pricedAs carries the criteria that were priced.","operationId":"Pricing_Search","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchPricingWithLoanRequest"}}}},"responses":{"200":{"description":"Eligible products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingSearchResponse"}}}},"400":{"description":"Missing pricing agent, unrecognised property state, a loan missing required pricing data, a ZIP code not in the state, or a request the pricing engine rejected as invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The agent is not licensed in the property state (code PricingAgentNotLicensed)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"The pricing agent or loan application is not in your company, does not exist, or the agent is disabled (code NotFound)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The pricing request was rejected","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"502":{"description":"The pricing engine is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Ineligible products from a prior search

> \*\*Required scope:\*\* \`read:pricing\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Pricing, locks and fees","description":"**Pricing:** Price a loan scenario, or an existing loan from its stored data, across the products your company offers, then read a product's quotes and adjustments or why products were ineligible. Every search prices as a loan officer of your company (the one you name, else your application's acting user), who must be licensed in the property's state.\n\n**Program registration and locks:** register a priced program on a loan with `POST /loan-applications/{id}/registration`, which also requests the lock, and read the registration back. Cancelling a pending lock request is only available to POS customers.\n\n**Fees:** A loan's closing costs: each fee by section, who pays it, and the totals. Broker compensation is never included in a Partner API response.\n\n**Scopes:** `read:loan-applications`, `read:pricing`, `update:pricing`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"IneligibleProductsResult":{"type":"object","properties":{"searchId":{"type":"string","description":"Identifier of the pricing search these results come from.","nullable":true},"totalProducts":{"type":"integer","description":"Total ineligible products found, regardless of how many are returned.","format":"int32"},"returnedProducts":{"type":"integer","description":"Number of products included across all product type groups. Capped per group unless includeAll is set.","format":"int32"},"truncated":{"type":"boolean","description":"True when products were capped (returnedProducts < totalProducts); call again with includeAll=true to get the rest."},"productTypes":{"type":"array","items":{"$ref":"#/components/schemas/IneligibleProductTypeGroup"},"description":"The groups of ineligible products.","nullable":true}},"additionalProperties":false,"description":"The products a loan is not eligible for, grouped by term, amortization type and loan type (for example 15 Year Fixed Conforming). Each product keeps only its name and the reasons it was rejected."},"IneligibleProductTypeGroup":{"type":"object","properties":{"productType":{"type":"string","description":"Product type label, e.g. \"15 Year Fixed Conforming\".","nullable":true},"products":{"type":"array","items":{"$ref":"#/components/schemas/IneligibleProductSummary"},"description":"The ineligible products of this type.","nullable":true}},"additionalProperties":false,"description":"Ineligible products of one product type, for example 15 Year Fixed Conforming."},"IneligibleProductSummary":{"type":"object","properties":{"productName":{"type":"string","description":"Name of the product.","nullable":true},"ineligibleReasons":{"type":"array","items":{"type":"string"},"description":"The reasons the loan is not eligible, as text.","nullable":true}},"additionalProperties":false,"description":"An ineligible product and why the loan does not qualify for it."},"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/pricing/searches/{searchId}/ineligible-products":{"get":{"tags":["Pricing, locks and fees"],"summary":"Ineligible products from a prior search","description":"**Required scope:** `read:pricing`","operationId":"Pricing_IneligibleProducts","parameters":[{"name":"searchId","in":"path","description":"The `searchId` a `POST /pricing/search` response returned. It is a session of the pricing engine and expires; run the search again for a new one.","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","description":"The loan officer to price as (a user `id` in your company); defaults to your application's acting user. Use the same one as the search. A user outside your company, or a deactivated one, answers 404.","schema":{"type":"string","format":"uuid"}},{"name":"includeAll","in":"query","description":"`true` for every ineligible product; by default (`false`) at most 50 are returned for each product type.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Ineligible products grouped by type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IneligibleProductsResult"}}}},"400":{"description":"Missing pricing agent, or a request the pricing engine rejected as invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The access token lacks the read:pricing scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"The pricing agent is not in your company, does not exist, or is disabled (code NotFound)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The searchId has expired or is not valid for this pricing agent - run the search again (code PricingSearchExpired or PricingSearchInvalid)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"502":{"description":"The pricing engine is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Product detail from a prior search

> \*\*Required scope:\*\* \`read:pricing\`\
> \
> searchId is a transient pricing engine session token from a prior search. If it has expired,> \
> run the search again for a fresh one.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Pricing, locks and fees","description":"**Pricing:** Price a loan scenario, or an existing loan from its stored data, across the products your company offers, then read a product's quotes and adjustments or why products were ineligible. Every search prices as a loan officer of your company (the one you name, else your application's acting user), who must be licensed in the property's state.\n\n**Program registration and locks:** register a priced program on a loan with `POST /loan-applications/{id}/registration`, which also requests the lock, and read the registration back. Cancelling a pending lock request is only available to POS customers.\n\n**Fees:** A loan's closing costs: each fee by section, who pays it, and the totals. Broker compensation is never included in a Partner API response.\n\n**Scopes:** `read:loan-applications`, `read:pricing`, `update:pricing`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ProductQuote":{"type":"object","properties":{"productName":{"type":"string","description":"Name of the product, including the investor when it is shown.","nullable":true},"quotes":{"type":"array","items":{"$ref":"#/components/schemas/Quote"},"description":"The rate rows of the product, one per rate and lock period.","nullable":true},"searchId":{"type":"string","description":"Identifier of the pricing search this rate sheet came from.","nullable":true},"productId":{"type":"string","description":"Identifier of the product.","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/QuoteAdjustment"},"description":"Adjustments applied to the product's rate or price.","nullable":true},"parQuotes":{"type":"array","items":{"$ref":"#/components/schemas/ParQuote"},"description":"The par rate for each lock period.","nullable":true},"totalRateAdjustment":{"type":"number","description":"Sum of the rate adjustments, in percentage points.","format":"double","nullable":true},"totalPriceAdjustment":{"type":"number","description":"Sum of the price adjustments, in points.","format":"double","nullable":true},"totalSRPAdjustment":{"type":"number","description":"Sum of the servicing-release-premium adjustments, in points.","format":"double","nullable":true},"totalMarginAdjustment":{"type":"number","description":"Sum of the margin adjustments, in percentage points.","format":"double","nullable":true},"notesAndAdvisories":{"type":"array","items":{"type":"string"},"description":"Notes and advisories the lender attached to the product.","nullable":true},"armSubsequentChangePeriod":{"type":"string","description":"How often an adjustable rate changes after its fixed period, as a code such as OneYear or SixMonth.","nullable":true},"armIndex":{"type":"string","description":"Index an adjustable rate follows, for example SOFR or Treasury.","nullable":true},"armIndexValue":{"type":"number","description":"Current value of the index, in percent.","format":"double","nullable":true},"armFirstCap":{"type":"number","description":"Cap on the first rate adjustment, in percentage points.","format":"double","nullable":true},"armPeriodicCap":{"type":"number","description":"Cap on each later rate adjustment, in percentage points.","format":"double","nullable":true},"armFixedTerm":{"type":"string","description":"Initial fixed period of an adjustable-rate product, as a code such as FiveYear.","nullable":true},"armFixedTermMonths":{"type":"integer","description":"Initial fixed period of an adjustable-rate product, in months.","format":"int32","nullable":true},"armLifetimeCap":{"type":"number","description":"Cap on the total rate change over the life of the loan, in percentage points.","format":"double","nullable":true},"armRelativeCap":{"type":"number","description":"Relative cap on the rate, in percentage points.","format":"double","nullable":true},"constructionTermMonths":{"type":"integer","description":"Construction period of a construction loan, in months.","format":"int32","nullable":true},"originationFees":{"type":"number","description":"Origination fees of the product, in dollars.","format":"double","nullable":true},"investorId":{"type":"integer","description":"Identifier of the investor behind the product. Omitted for callers who are not shown the investor.","format":"int32","nullable":true},"miRequiredOver80Ltv":{"type":"boolean","description":"True when mortgage insurance is required above 80% loan-to-value.","nullable":true},"interestOnlyTerm":{"type":"integer","description":"Length of the interest-only period of an interest-only product.","format":"int32","nullable":true},"lenderFeeDetails":{"type":"array","items":{"$ref":"#/components/schemas/LenderFeeDetail"},"description":"The lender fees charged on the product.","nullable":true},"lenderFeeTotal":{"type":"number","description":"Sum of the lender fees in lenderFeeDetails, in dollars. Calculated; read-only.","format":"double","nullable":true,"readOnly":true}},"additionalProperties":false,"description":"The full rate sheet of one product: every rate and lock period, with the adjustments, par rates and lender fees behind them."},"Quote":{"type":"object","properties":{"id":{"type":"string","description":"Identifier the pricing search gave this row.","nullable":true},"rate":{"type":"number","description":"Note rate, in percent such as 6.875.","format":"double","nullable":true},"lockPeriod":{"type":"integer","description":"Rate lock period of this row, in days.","format":"int32","nullable":true},"lockExpirationDate":{"type":"string","description":"Date a lock at this row's lock period would expire, ISO 8601.","format":"date-time","nullable":true},"apr":{"type":"number","description":"Annual percentage rate, in percent. Uses adjustedApr when one was calculated.","format":"double","nullable":true},"price":{"type":"number","description":"Price as a percent of par, where 100 is par; above 100 pays the borrower a rebate and below 100 costs a discount.","format":"double","nullable":true},"armMargin":{"type":"number","description":"Margin added to the index for an adjustable-rate product, in percentage points.","format":"double","nullable":true},"closingCost":{"type":"number","description":"Lender closing costs of this row, in dollars.","format":"double","nullable":true},"points":{"type":"number","description":"Discount points as a percent of the loan amount: 100 minus price, so negative when the row pays a rebate.","format":"double","nullable":true},"pointsCost":{"type":"number","description":"Cost of the points in dollars: positive for a discount, negative for a rebate.","format":"double","nullable":true},"discountDollar":{"type":"number","description":"Buydown (discount) this row costs the borrower, in dollars; 0 on a rebate or par row.","format":"double","nullable":true},"discountPercent":{"type":"number","description":"Buydown (discount) as a percent of the loan amount; 0 on a rebate or par row.","format":"double","nullable":true},"rebateDollar":{"type":"number","description":"Rebate (credit) this row gives the borrower, in dollars; 0 on a discount or par row.","format":"double","nullable":true},"rebatePercent":{"type":"number","description":"Rebate (credit) as a percent of the loan amount; 0 on a discount or par row.","format":"double","nullable":true},"loCompensationDollar":{"type":"number","description":"Loan officer compensation built into this row, in dollars.","format":"double","nullable":true},"loCompensationPercent":{"type":"number","description":"Loan officer compensation built into this row, as a percent of the loan amount.","format":"double","nullable":true},"principalAndInterest":{"type":"number","description":"Monthly principal and interest payment, in dollars.","format":"double","nullable":true},"totalCredit":{"type":"number","description":"Total credit this row gives the borrower, in dollars.","format":"double","nullable":true},"monthlyMi":{"type":"number","description":"Monthly mortgage insurance, in dollars; 0 when the product has none.","format":"double","nullable":true},"totalPayment":{"type":"number","description":"Total monthly payment in dollars: principal, interest and mortgage insurance.","format":"double","nullable":true},"amiRuleApplied":{"type":"boolean","description":"True when the area-median-income rule of affordable programs was applied to this row."},"borrowerPaidDetails":{"type":"array","items":{"$ref":"#/components/schemas/FeeDetail"},"description":"Fees the borrower pays for this row.","nullable":true},"groupAdjustmentProperties":{"type":"array","items":{"$ref":"#/components/schemas/GroupAdjustmentProperty"},"description":"The groups of price adjustments that make up this row's final price.","nullable":true},"searchId":{"type":"string","description":"Identifier of the pricing search this row came from.","nullable":true},"productId":{"type":"string","description":"Identifier of the product this row belongs to.","nullable":true},"adjustedApr":{"type":"number","description":"APR after the loan officer's adjustments to the quote, in percent.","format":"double","nullable":true},"adjustedFee":{"type":"number","description":"Fee amount after the loan officer's adjustments, in dollars.","format":"double","nullable":true},"computedApr":{"type":"number","description":"APR computed by Henge from the row's rate and costs, in percent.","format":"double","nullable":true},"originalApr":{"type":"number","description":"APR as the pricing search returned it, before any adjustment, in percent.","format":"double","nullable":true},"quoteId":{"type":"string","description":"Henge's identifier for this row. Pass it to select or lock the row.","nullable":true},"isArchived":{"type":"boolean","description":"True when this saved row has been archived."},"isLocked":{"type":"boolean","description":"True once a lock has been requested on this row."}},"additionalProperties":false,"description":"One row of a product's rate sheet: a note rate at a lock period, with its price, payment and costs. Rates are percents such as 6.875; price is a percent of par, where 100 is par."},"FeeDetail":{"type":"object","properties":{"amount":{"type":"number","description":"The fee amount in dollars.","format":"double","nullable":true},"description":{"type":"string","description":"What the fee is for.","nullable":true},"isOrigination":{"type":"boolean","description":"True when the fee is an origination charge.","nullable":true},"points":{"type":"number","description":"The fee expressed in points (percent of the loan amount, for example 1.0 for one point), when it is charged that way.","format":"double","nullable":true},"type":{"type":"string","description":"The fee's category as the pricing engine names it.","nullable":true}},"additionalProperties":false},"GroupAdjustmentProperty":{"type":"object","properties":{"id":{"type":"string","description":"Name of the adjustment group, for example the category its adjustments fall under.","nullable":true},"finalAdjustment":{"type":"number","description":"Net adjustment of the group once all its adjustments are applied.","format":"double","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/Adjustment"},"description":"The individual adjustments in the group.","nullable":true}},"additionalProperties":false,"description":"A named group of adjustments that together move a quote's price or rate."},"Adjustment":{"type":"object","properties":{"key":{"type":"string","description":"Name of the adjustment, saying what it is for.","nullable":true},"adj":{"type":"number","description":"Size of the adjustment, in the unit of the group it belongs to (price points or rate).","format":"double","nullable":true}},"additionalProperties":false,"description":"One price or rate adjustment applied to a quote."},"QuoteAdjustment":{"type":"object","properties":{"reason":{"type":"string","description":"Why the adjustment applies, as text.","nullable":true},"adjustor":{"type":"number","description":"Size of the adjustment; its unit follows the type.","format":"double"},"type":{"type":"string","description":"What the adjustment changes, for example the rate, the price or the margin.","nullable":true}},"additionalProperties":false,"description":"An adjustment the lender applied to a product's rate or price."},"ParQuote":{"type":"object","properties":{"parRate":{"type":"number","description":"Note rate at par, in percent.","format":"double"},"parPrice":{"type":"number","description":"Price at par, where 100 is par.","format":"double"},"parLock":{"type":"integer","description":"Lock period of this par quote, in days.","format":"int32"}},"additionalProperties":false,"description":"The par rate for one lock period: the rate whose price is closest to 100."},"LenderFeeDetail":{"type":"object","properties":{"feeDetailNumber":{"type":"integer","description":"Sequence number of the fee in the product's fee list.","format":"int32"},"feeTotalAmountPercent":{"type":"number","description":"Fee as a percent of the base named in feePercentageBasedOn, when it is percentage-based.","format":"double"},"feeSpecifiedFixedAmount":{"type":"number","description":"Fixed fee amount in dollars, when the fee is a fixed amount.","format":"double"},"feeTotalCalculatedAmount":{"type":"number","description":"Total fee in dollars after calculation.","format":"double"},"feePaymentFinancedIndicator":{"type":"boolean","description":"True when the fee is financed into the loan amount."},"feePaidBy":{"type":"string","description":"Who pays the fee: Buyer or Seller.","nullable":true},"feePaidTo":{"type":"string","description":"Who receives the fee: Lender, Broker, Affiliate, ThirdParty or Other.","nullable":true},"rebatePriority":{"type":"integer","description":"Priority of this fee when a rebate is applied.","format":"int32"},"feeDescription":{"type":"string","description":"Name of the fee as the lender describes it.","nullable":true},"prepaidFinanceChargeIndicator":{"type":"boolean","description":"True when the fee is a prepaid finance charge, which counts toward APR."},"includedInQMPointsAndFeesTest":{"type":"boolean","description":"True when the fee counts toward the Qualified Mortgage points-and-fees test."},"feePercentageBasedOn":{"type":"string","description":"Amount a percentage fee is calculated on: PurchasePriceAmount, PropertyAppraisedValueAmount, OriginalLoanAmount, BaseLoanAmount or Other.","nullable":true},"feeType":{"type":"string","description":"Standard fee category, for example LoanOriginationFee or UnderwritingFee.","nullable":true}},"additionalProperties":false,"description":"One lender fee charged on a product."},"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/pricing/searches/{searchId}/products/{productId}":{"get":{"tags":["Pricing, locks and fees"],"summary":"Product detail from a prior search","description":"**Required scope:** `read:pricing`\n\nsearchId is a transient pricing engine session token from a prior search. If it has expired,\r\nrun the search again for a fresh one.","operationId":"Pricing_ProductDetails","parameters":[{"name":"searchId","in":"path","description":"The `searchId` a `POST /pricing/search` response returned. It is a session of the pricing engine and expires; run the search again for a new one.","required":true,"schema":{"type":"string"}},{"name":"productId","in":"path","description":"The `productId` of a product in that search's results.","required":true,"schema":{"type":"string"}},{"name":"userId","in":"query","description":"The loan officer to price as (a user `id` in your company); defaults to your application's acting user. Use the same one as the search. A user outside your company, or a deactivated one, answers 404.","schema":{"type":"string","format":"uuid"}},{"name":"loanAmount","in":"query","description":"The base loan amount in US dollars to compute the quotes against, usually the search's loan amount.","schema":{"type":"number","format":"double","default":0}},{"name":"loanTermInYears","in":"query","description":"The loan term in years, for example `30` or `15`.","schema":{"type":"integer","format":"int32","default":0}}],"responses":{"200":{"description":"Product quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductQuote"}}}},"400":{"description":"Missing pricing agent, or a request the pricing engine rejected as invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The access token lacks the read:pricing scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"The pricing agent is not in your company, does not exist, or is disabled, or the product was not found in that search (code NotFound)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The searchId has expired or is not valid for this pricing agent - run the search again (code PricingSearchExpired or PricingSearchInvalid)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"502":{"description":"The pricing engine is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://api-docs.hengelending.com/api/api-reference/pricing-locks-and-fees.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
