> 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/loan-applications.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.hengelending.com/~gitbook/mcp).

# Loan Applications

Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.

**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.

**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.

**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.

**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`

## Lists a loan application's appraisal requests.

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> available is false, with unavailableReason, until the initial LE is signed. A request carries who asked, when, where it was sent and whether it was a rush; no order status or vendor detail.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"LoanAppraisalRequests":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Id of the loan application (GUID).","format":"uuid"},"available":{"type":"boolean","description":"False until the initial Loan Estimate is signed; unavailableReason then says why."},"unavailableReason":{"type":"string","description":"Why an appraisal cannot be requested now. Null when available.","nullable":true},"requests":{"type":"array","items":{"$ref":"#/components/schemas/AppraisalRequestSummary"},"description":"Newest first.","nullable":true}},"additionalProperties":false,"description":"A loan's appraisal requests and whether one may be requested now. Each request records who asked, when, where it was sent and whether it was a rush."},"AppraisalRequestSummary":{"type":"object","properties":{"requestedAtUtc":{"type":"string","description":"When the appraisal was requested, ISO 8601 in UTC.","format":"date-time"},"requestedByName":{"type":"string","description":"Name of the user who made the request.","nullable":true},"sentToEmail":{"type":"string","description":"Email address the request was sent to.","nullable":true},"rush":{"type":"boolean","description":"True when the request was marked rush."}},"additionalProperties":false},"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}/appraisal-requests":{"get":{"tags":["Loan applications"],"summary":"Lists a loan application's appraisal requests.","description":"**Required scope:** `read:loan-applications`\n\navailable is false, with unavailableReason, until the initial LE is signed. A request carries who asked, when, where it was sent and whether it was a rush; no order status or vendor detail.","operationId":"LoanApplicationAppraisalRequests_GetRequests","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":"Requests retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanAppraisalRequests"}}}},"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"}}}}}}}}}
```

## Requests an appraisal on a loan application.

> \*\*Required scope:\*\* \`submit:appraisal-requests\` (tokens with the legacy name \`write:appraisal-requests\` are also accepted)\
> \
> contactName and contactPhone are required; contactEmail, requestedDueDate (after today), rush and accessNotes are optional. The property address, borrowers and loan number come from the loan. A request with no acting user configured for the calling application is a 400.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"SubmitAppraisalRequest":{"required":["contactName","contactPhone"],"type":"object","properties":{"contactName":{"maxLength":100,"minLength":0,"type":"string","description":"Who the appraiser contacts to get into the property."},"contactPhone":{"minLength":1,"type":"string","description":"Phone number of the person the appraiser contacts for access. Required."},"contactEmail":{"type":"string","description":"Email address of that contact; optional.","format":"email","nullable":true},"requestedDueDate":{"type":"string","description":"Date the appraisal is wanted by, ISO 8601; must be in the future.","format":"date-time","nullable":true},"rush":{"type":"boolean","description":"True to mark the request as rush."},"accessNotes":{"maxLength":1000,"minLength":0,"type":"string","description":"Notes on getting into the property, up to 1,000 characters.","nullable":true},"vendorId":{"type":"string","description":"The vendor the appraisal is asked of, by id. Optional; when given it must be a vendor enabled for the caller. Accepted but not used by the Partner API.","format":"uuid","nullable":true},"products":{"type":"array","items":{"type":"string"},"description":"One to five product names the vendor lists. Needs vendorId; checked against the vendor's current list. Accepted but not used by the Partner API.","nullable":true},"suggestedProducts":{"type":"array","items":{"type":"string"},"description":"What the product suggestion returned when the request was made, kept with the request. Accepted but not used by the Partner API.","nullable":true}},"additionalProperties":false,"description":"An appraisal request: the order details the requester types, emailed to processing. Only the contact name and phone are required. The property, borrowers and loan number come from the loan. The request is refused until the loan's initial Loan Estimate is signed."},"AppraisalRequestResponse":{"type":"object","properties":{"sentToName":{"type":"string","description":"Name of the person or team the appraisal request was sent to.","nullable":true},"sentToEmail":{"type":"string","description":"Email address the appraisal request was sent to.","nullable":true}},"additionalProperties":false,"description":"Who the request went to."},"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}/appraisal-requests":{"post":{"tags":["Loan applications"],"summary":"Requests an appraisal on a loan application.","description":"**Required scope:** `submit:appraisal-requests` (tokens with the legacy name `write:appraisal-requests` are also accepted)\n\ncontactName and contactPhone are required; contactEmail, requestedDueDate (after today), rush and accessNotes are optional. The property address, borrowers and loan number come from the loan. A request with no acting user configured for the calling application is a 400.","operationId":"LoanApplicationAppraisalRequests_RequestAppraisal","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":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitAppraisalRequest"}}}},"responses":{"200":{"description":"Request sent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppraisalRequestResponse"}}}},"400":{"description":"Invalid request, no acting user, or the initial LE is not signed yet","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 perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Lists a loan application's broker requests.

> \*\*Required scope:\*\* \`submit:broker-requests\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"BrokerRequestType":{"enum":["Coc","Exception"],"type":"string","description":"What a broker is asking the lender for. Each type carries its own payload on the request and is\r\nrouted to its own reviewer by `BrokerRequestRouting`: a Changed Circumstance, and on a\r\nnon-QM loan an Exception request."},"GetBrokerRequestsResponse":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"availability":{"$ref":"#/components/schemas/BrokerRequestAvailability"},"days":{"type":"array","items":{"$ref":"#/components/schemas/BrokerRequestDay"},"description":"Most recent day first.","nullable":true}},"additionalProperties":false},"BrokerRequestAvailability":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/BrokerRequestAvailabilityState"},"reason":{"type":"string","description":"Shown beside a disabled action. Null when the action is enabled or hidden.","nullable":true}},"additionalProperties":false,"description":"Whether a request action is offered on a loan, and why not when it is not."},"BrokerRequestAvailabilityState":{"enum":["Enabled","Disabled","Hidden"],"type":"string","description":"How a request action is offered on a loan: Enabled, Disabled (shown with a reason), or Hidden."},"BrokerRequestDay":{"type":"object","properties":{"date":{"type":"string","description":"The calendar day (UTC, ISO 8601 date) the requests were submitted.","format":"date"},"requests":{"type":"array","items":{"$ref":"#/components/schemas/BrokerRequestSummary"},"description":"The requests submitted that day, most recent first.","nullable":true}},"additionalProperties":false,"description":"The requests submitted on one UTC day, most recent first."},"BrokerRequestSummary":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the request.","format":"uuid"},"type":{"$ref":"#/components/schemas/BrokerRequestType"},"typeName":{"type":"string","description":"Display name of the request type.","nullable":true},"status":{"$ref":"#/components/schemas/BrokerRequestStatus"},"submittedAt":{"type":"string","description":"When the request was submitted, ISO 8601 in UTC.","format":"date-time"},"submittedByName":{"type":"string","description":"Name of the user who submitted the request.","nullable":true},"changedCircumstances":{"type":"array","items":{"$ref":"#/components/schemas/ChangedCircumstance"},"description":"The changed circumstances the broker selected; empty for other request types.","nullable":true},"changedCircumstanceNames":{"type":"array","items":{"type":"string"},"description":"Display names of the selected changed circumstances, in the same order.","nullable":true},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"},"disclosureReasonName":{"type":"string","description":"Display name of the disclosure reason; null when none was given.","nullable":true},"justification":{"type":"string","description":"An Exception request's justification; null for every other type.","nullable":true},"decision":{"$ref":"#/components/schemas/BrokerRequestDecision"}},"additionalProperties":false,"description":"One row of the history panel."},"BrokerRequestStatus":{"enum":["Submitted","Accepted","Declined"],"type":"string","description":"Where a request stands. A request is created Submitted and moves once, to Accepted or Declined,\r\nwhen its reviewer decides it."},"ChangedCircumstance":{"enum":["AdditionalBorrowerAdded","AdditionalServiceFromTitleOrAppraisal","Adding1004DDeskOrFieldReview","AmortizationTypeOrTerm","AppraisedValueDifferent","CompensationPlanChange","EstimatedClosingDateChange","ImpoundsChange","LoanAmountChange","PropertyTypeOrUnitsChange","FeeIncreaseAfterLeExpiration","FicoScoreChange","IncomeUnverifiedOrDtiChange","TitleFeesIncrease","LoanPurposeTypeProgramOrDocumentation","LockEventOrLockExtension","Occupancy","RateLock","RecordingFeesIncrease","SinglePremiumMi","TitleAcceptanceWaiver","Other"],"type":"string","description":"What changed, in business language. Several may be chosen. The change of circumstance form (`GET /loan-applications/{id}/broker-requests/coc/form`) lists every value with its display name, in form order."},"CocDisclosureReason":{"enum":["ChangedCircumstanceSettlementCharges","ChangedCircumstanceEligibility","RevisionRequestedByConsumer","InterestRateDependentCharge","Expiration","DelayedSettlementOnConstructionLoans","Other"],"type":"string","description":"The TRID provision under which a revised disclosure is permitted. One value, optional when the broker submits and required when the lender accepts with re-disclosure. The change of circumstance form lists every value with the regulation's wording."},"BrokerRequestDecision":{"type":"object","properties":{"outcome":{"$ref":"#/components/schemas/BrokerRequestOutcome"},"comment":{"type":"string","description":"The reviewer's comment on the decision; null when none was given.","nullable":true},"coc":{"$ref":"#/components/schemas/CocDecisionDetails"},"decidedAt":{"type":"string","description":"When the decision was recorded, ISO 8601 in UTC.","format":"date-time"},"decidedBy":{"type":"string","description":"Unique identifier (GUID) of the reviewing user.","format":"uuid"},"decidedByName":{"type":"string","description":"Name of the reviewing user.","nullable":true}},"additionalProperties":false,"description":"The reviewer's decision. Recorded once and never changed. `Coc` holds what a\r\nChanged Circumstance decision adds."},"BrokerRequestOutcome":{"enum":["Accepted","Declined"],"type":"string","description":"The reviewer's decision on a request."},"CocDecisionDetails":{"type":"object","properties":{"requiresRedisclosure":{"type":"boolean","description":"True when the request was accepted and the loan must be re-disclosed."},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"}},"additionalProperties":false,"description":"What a Changed Circumstance decision records. A disclosure reason is required when the request is\r\naccepted with re-disclosure; it is the reviewer's, stored apart from the broker's."},"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}/broker-requests":{"get":{"tags":["Loan applications"],"summary":"Lists a loan application's broker requests.","description":"**Required scope:** `submit:broker-requests`","operationId":"LoanApplicationBrokerRequests_GetBrokerRequests","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":"type","in":"query","description":"Optional request type: Coc or Exception. With it, availability says whether that action is offered now.","schema":{"$ref":"#/components/schemas/BrokerRequestType"}},{"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":"Requests retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBrokerRequestsResponse"}}}},"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"}}}}}}}}}
```

## Gets a broker request and its decision.

> \*\*Required scope:\*\* \`submit:broker-requests\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"BrokerRequest":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the request.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the request is on.","format":"uuid"},"type":{"$ref":"#/components/schemas/BrokerRequestType"},"typeName":{"type":"string","description":"Display name of the request type.","nullable":true},"status":{"$ref":"#/components/schemas/BrokerRequestStatus"},"reviewer":{"$ref":"#/components/schemas/BrokerRequestReviewer"},"header":{"$ref":"#/components/schemas/BrokerRequestHeader"},"coc":{"$ref":"#/components/schemas/CocRequestDetails"},"exception":{"$ref":"#/components/schemas/ExceptionRequestDetails"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/BrokerRequestAttachment"},"description":"Files attached to the request as a whole.","nullable":true},"pdfDocumentId":{"type":"string","description":"The loan vault document holding the PDF of the request.","format":"uuid","nullable":true},"submittedAt":{"type":"string","description":"When the request was submitted, ISO 8601 in UTC.","format":"date-time"},"submittedBy":{"type":"string","description":"Unique identifier (GUID) of the user who submitted the request.","format":"uuid"},"submittedByName":{"type":"string","description":"Name of the user who submitted the request.","nullable":true},"decision":{"$ref":"#/components/schemas/BrokerRequestDecision"}},"additionalProperties":false,"description":"A broker request as the API returns it."},"BrokerRequestType":{"enum":["Coc","Exception"],"type":"string","description":"What a broker is asking the lender for. Each type carries its own payload on the request and is\r\nrouted to its own reviewer by `BrokerRequestRouting`: a Changed Circumstance, and on a\r\nnon-QM loan an Exception request."},"BrokerRequestStatus":{"enum":["Submitted","Accepted","Declined"],"type":"string","description":"Where a request stands. A request is created Submitted and moves once, to Accepted or Declined,\r\nwhen its reviewer decides it."},"BrokerRequestReviewer":{"enum":["Underwriting"],"type":"string","description":"The lender team that reviews a request type."},"BrokerRequestHeader":{"type":"object","properties":{"brokerName":{"type":"string","description":"Name of the broker who submitted the request.","nullable":true},"brokerCompany":{"type":"string","description":"Name of the broker's company.","nullable":true},"loanOfficer":{"type":"string","description":"Name of the loan's loan officer.","nullable":true},"borrowerNames":{"type":"array","items":{"type":"string"},"description":"Names of the loan's borrowers.","nullable":true},"propertyAddress":{"type":"string","description":"The subject property address as one line.","nullable":true},"loanNumber":{"type":"string","description":"The loan number shown to staff and brokers.","nullable":true}},"additionalProperties":false,"description":"The identity block at the top of every request. Built by the server from the loan and the\r\nsubmitting user; a broker never supplies it, so it cannot be edited."},"CocRequestDetails":{"type":"object","properties":{"changedCircumstances":{"type":"array","items":{"$ref":"#/components/schemas/ChangedCircumstance"},"description":"The changed circumstances the broker selected.","nullable":true},"changeRequestType":{"$ref":"#/components/schemas/CocChangeRequestType"},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"},"description":{"type":"string","description":"The broker's free-text explanation of the change.","nullable":true},"feeRows":{"type":"array","items":{"$ref":"#/components/schemas/CocFeeRow"},"description":"The fees the change affects.","nullable":true},"attestsSubmittedWithin24Hours":{"type":"boolean","description":"The broker's attestation that the request was submitted within 24 hours of learning the information."},"attestsNoRevisedLeIssued":{"type":"boolean","description":"The broker's attestation that no revised Loan Estimate has been issued for this change."},"receivedAt":{"type":"string","description":"When the broker received the information that changed the circumstance, date and time with the broker's UTC offset.","format":"date-time"}},"additionalProperties":false,"description":"The Changed Circumstance payload of a submitted request. The three axes are stored independently\r\nand none is derived from another: `DisclosureReason` is exactly what the broker chose,\r\nnull when they chose none."},"ChangedCircumstance":{"enum":["AdditionalBorrowerAdded","AdditionalServiceFromTitleOrAppraisal","Adding1004DDeskOrFieldReview","AmortizationTypeOrTerm","AppraisedValueDifferent","CompensationPlanChange","EstimatedClosingDateChange","ImpoundsChange","LoanAmountChange","PropertyTypeOrUnitsChange","FeeIncreaseAfterLeExpiration","FicoScoreChange","IncomeUnverifiedOrDtiChange","TitleFeesIncrease","LoanPurposeTypeProgramOrDocumentation","LockEventOrLockExtension","Occupancy","RateLock","RecordingFeesIncrease","SinglePremiumMi","TitleAcceptanceWaiver","Other"],"type":"string","description":"What changed, in business language. Several may be chosen. The change of circumstance form (`GET /loan-applications/{id}/broker-requests/coc/form`) lists every value with its display name, in form order."},"CocChangeRequestType":{"enum":["BorrowerRequested","Other"],"type":"string","description":"Who asked for the change. A consumer-requested revision is valid under Reg Z\r\n1026.19(e)(3)(iv)(A) on different grounds from a changed circumstance, so it is recorded, never\r\ninferred."},"CocDisclosureReason":{"enum":["ChangedCircumstanceSettlementCharges","ChangedCircumstanceEligibility","RevisionRequestedByConsumer","InterestRateDependentCharge","Expiration","DelayedSettlementOnConstructionLoans","Other"],"type":"string","description":"The TRID provision under which a revised disclosure is permitted. One value, optional when the broker submits and required when the lender accepts with re-disclosure. The change of circumstance form lists every value with the regulation's wording."},"CocFeeRow":{"type":"object","properties":{"fee":{"type":"string","description":"Name of the fee the change affects.","nullable":true},"amount":{"type":"number","description":"The fee amount after the change, in dollars; null when not given.","format":"double","nullable":true},"reason":{"type":"string","description":"Why the fee changed.","nullable":true}},"additionalProperties":false,"description":"One fee affected by a changed circumstance: the fee, its amount and the reason for the change."},"ExceptionRequestDetails":{"type":"object","properties":{"justification":{"type":"string","description":"The broker's reasons the file should be allowed outside guidelines.","nullable":true},"loanProgram":{"type":"string","description":"The loan program that made the loan non-QM when the request was submitted.","nullable":true}},"additionalProperties":false,"description":"The Exception payload of a submitted request: why the file should be allowed outside guidelines."},"BrokerRequestAttachment":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the attachment.","format":"uuid"},"fileName":{"type":"string","description":"Original file name of the attachment.","nullable":true},"contentType":{"type":"string","description":"MIME type of the attachment, for example application/pdf.","nullable":true},"size":{"type":"integer","description":"Attachment size in bytes.","format":"int64"}},"additionalProperties":false,"description":"A file attached to a request as a whole, never to one part of it."},"BrokerRequestDecision":{"type":"object","properties":{"outcome":{"$ref":"#/components/schemas/BrokerRequestOutcome"},"comment":{"type":"string","description":"The reviewer's comment on the decision; null when none was given.","nullable":true},"coc":{"$ref":"#/components/schemas/CocDecisionDetails"},"decidedAt":{"type":"string","description":"When the decision was recorded, ISO 8601 in UTC.","format":"date-time"},"decidedBy":{"type":"string","description":"Unique identifier (GUID) of the reviewing user.","format":"uuid"},"decidedByName":{"type":"string","description":"Name of the reviewing user.","nullable":true}},"additionalProperties":false,"description":"The reviewer's decision. Recorded once and never changed. `Coc` holds what a\r\nChanged Circumstance decision adds."},"BrokerRequestOutcome":{"enum":["Accepted","Declined"],"type":"string","description":"The reviewer's decision on a request."},"CocDecisionDetails":{"type":"object","properties":{"requiresRedisclosure":{"type":"boolean","description":"True when the request was accepted and the loan must be re-disclosed."},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"}},"additionalProperties":false,"description":"What a Changed Circumstance decision records. A disclosure reason is required when the request is\r\naccepted with re-disclosure; it is the reviewer's, stored apart from the broker's."},"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}/broker-requests/{requestId}":{"get":{"tags":["Loan applications"],"summary":"Gets a broker request and its decision.","description":"**Required scope:** `submit:broker-requests`","operationId":"LoanApplicationBrokerRequests_GetBrokerRequest","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":"requestId","in":"path","description":"The broker request's `id`, as `GET /loan-applications/{id}/broker-requests` lists it. A request on another loan answers 404.","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":"Request retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrokerRequest"}}}},"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 or request not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Submits a Changed Circumstance request.

> \*\*Required scope:\*\* \`submit:broker-requests\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"BrokerRequest":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the request.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the request is on.","format":"uuid"},"type":{"$ref":"#/components/schemas/BrokerRequestType"},"typeName":{"type":"string","description":"Display name of the request type.","nullable":true},"status":{"$ref":"#/components/schemas/BrokerRequestStatus"},"reviewer":{"$ref":"#/components/schemas/BrokerRequestReviewer"},"header":{"$ref":"#/components/schemas/BrokerRequestHeader"},"coc":{"$ref":"#/components/schemas/CocRequestDetails"},"exception":{"$ref":"#/components/schemas/ExceptionRequestDetails"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/BrokerRequestAttachment"},"description":"Files attached to the request as a whole.","nullable":true},"pdfDocumentId":{"type":"string","description":"The loan vault document holding the PDF of the request.","format":"uuid","nullable":true},"submittedAt":{"type":"string","description":"When the request was submitted, ISO 8601 in UTC.","format":"date-time"},"submittedBy":{"type":"string","description":"Unique identifier (GUID) of the user who submitted the request.","format":"uuid"},"submittedByName":{"type":"string","description":"Name of the user who submitted the request.","nullable":true},"decision":{"$ref":"#/components/schemas/BrokerRequestDecision"}},"additionalProperties":false,"description":"A broker request as the API returns it."},"BrokerRequestType":{"enum":["Coc","Exception"],"type":"string","description":"What a broker is asking the lender for. Each type carries its own payload on the request and is\r\nrouted to its own reviewer by `BrokerRequestRouting`: a Changed Circumstance, and on a\r\nnon-QM loan an Exception request."},"BrokerRequestStatus":{"enum":["Submitted","Accepted","Declined"],"type":"string","description":"Where a request stands. A request is created Submitted and moves once, to Accepted or Declined,\r\nwhen its reviewer decides it."},"BrokerRequestReviewer":{"enum":["Underwriting"],"type":"string","description":"The lender team that reviews a request type."},"BrokerRequestHeader":{"type":"object","properties":{"brokerName":{"type":"string","description":"Name of the broker who submitted the request.","nullable":true},"brokerCompany":{"type":"string","description":"Name of the broker's company.","nullable":true},"loanOfficer":{"type":"string","description":"Name of the loan's loan officer.","nullable":true},"borrowerNames":{"type":"array","items":{"type":"string"},"description":"Names of the loan's borrowers.","nullable":true},"propertyAddress":{"type":"string","description":"The subject property address as one line.","nullable":true},"loanNumber":{"type":"string","description":"The loan number shown to staff and brokers.","nullable":true}},"additionalProperties":false,"description":"The identity block at the top of every request. Built by the server from the loan and the\r\nsubmitting user; a broker never supplies it, so it cannot be edited."},"CocRequestDetails":{"type":"object","properties":{"changedCircumstances":{"type":"array","items":{"$ref":"#/components/schemas/ChangedCircumstance"},"description":"The changed circumstances the broker selected.","nullable":true},"changeRequestType":{"$ref":"#/components/schemas/CocChangeRequestType"},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"},"description":{"type":"string","description":"The broker's free-text explanation of the change.","nullable":true},"feeRows":{"type":"array","items":{"$ref":"#/components/schemas/CocFeeRow"},"description":"The fees the change affects.","nullable":true},"attestsSubmittedWithin24Hours":{"type":"boolean","description":"The broker's attestation that the request was submitted within 24 hours of learning the information."},"attestsNoRevisedLeIssued":{"type":"boolean","description":"The broker's attestation that no revised Loan Estimate has been issued for this change."},"receivedAt":{"type":"string","description":"When the broker received the information that changed the circumstance, date and time with the broker's UTC offset.","format":"date-time"}},"additionalProperties":false,"description":"The Changed Circumstance payload of a submitted request. The three axes are stored independently\r\nand none is derived from another: `DisclosureReason` is exactly what the broker chose,\r\nnull when they chose none."},"ChangedCircumstance":{"enum":["AdditionalBorrowerAdded","AdditionalServiceFromTitleOrAppraisal","Adding1004DDeskOrFieldReview","AmortizationTypeOrTerm","AppraisedValueDifferent","CompensationPlanChange","EstimatedClosingDateChange","ImpoundsChange","LoanAmountChange","PropertyTypeOrUnitsChange","FeeIncreaseAfterLeExpiration","FicoScoreChange","IncomeUnverifiedOrDtiChange","TitleFeesIncrease","LoanPurposeTypeProgramOrDocumentation","LockEventOrLockExtension","Occupancy","RateLock","RecordingFeesIncrease","SinglePremiumMi","TitleAcceptanceWaiver","Other"],"type":"string","description":"What changed, in business language. Several may be chosen. The change of circumstance form (`GET /loan-applications/{id}/broker-requests/coc/form`) lists every value with its display name, in form order."},"CocChangeRequestType":{"enum":["BorrowerRequested","Other"],"type":"string","description":"Who asked for the change. A consumer-requested revision is valid under Reg Z\r\n1026.19(e)(3)(iv)(A) on different grounds from a changed circumstance, so it is recorded, never\r\ninferred."},"CocDisclosureReason":{"enum":["ChangedCircumstanceSettlementCharges","ChangedCircumstanceEligibility","RevisionRequestedByConsumer","InterestRateDependentCharge","Expiration","DelayedSettlementOnConstructionLoans","Other"],"type":"string","description":"The TRID provision under which a revised disclosure is permitted. One value, optional when the broker submits and required when the lender accepts with re-disclosure. The change of circumstance form lists every value with the regulation's wording."},"CocFeeRow":{"type":"object","properties":{"fee":{"type":"string","description":"Name of the fee the change affects.","nullable":true},"amount":{"type":"number","description":"The fee amount after the change, in dollars; null when not given.","format":"double","nullable":true},"reason":{"type":"string","description":"Why the fee changed.","nullable":true}},"additionalProperties":false,"description":"One fee affected by a changed circumstance: the fee, its amount and the reason for the change."},"ExceptionRequestDetails":{"type":"object","properties":{"justification":{"type":"string","description":"The broker's reasons the file should be allowed outside guidelines.","nullable":true},"loanProgram":{"type":"string","description":"The loan program that made the loan non-QM when the request was submitted.","nullable":true}},"additionalProperties":false,"description":"The Exception payload of a submitted request: why the file should be allowed outside guidelines."},"BrokerRequestAttachment":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the attachment.","format":"uuid"},"fileName":{"type":"string","description":"Original file name of the attachment.","nullable":true},"contentType":{"type":"string","description":"MIME type of the attachment, for example application/pdf.","nullable":true},"size":{"type":"integer","description":"Attachment size in bytes.","format":"int64"}},"additionalProperties":false,"description":"A file attached to a request as a whole, never to one part of it."},"BrokerRequestDecision":{"type":"object","properties":{"outcome":{"$ref":"#/components/schemas/BrokerRequestOutcome"},"comment":{"type":"string","description":"The reviewer's comment on the decision; null when none was given.","nullable":true},"coc":{"$ref":"#/components/schemas/CocDecisionDetails"},"decidedAt":{"type":"string","description":"When the decision was recorded, ISO 8601 in UTC.","format":"date-time"},"decidedBy":{"type":"string","description":"Unique identifier (GUID) of the reviewing user.","format":"uuid"},"decidedByName":{"type":"string","description":"Name of the reviewing user.","nullable":true}},"additionalProperties":false,"description":"The reviewer's decision. Recorded once and never changed. `Coc` holds what a\r\nChanged Circumstance decision adds."},"BrokerRequestOutcome":{"enum":["Accepted","Declined"],"type":"string","description":"The reviewer's decision on a request."},"CocDecisionDetails":{"type":"object","properties":{"requiresRedisclosure":{"type":"boolean","description":"True when the request was accepted and the loan must be re-disclosed."},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"}},"additionalProperties":false,"description":"What a Changed Circumstance decision records. A disclosure reason is required when the request is\r\naccepted with re-disclosure; it is the reviewer's, stored apart from the broker's."},"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}/broker-requests/coc":{"post":{"tags":["Loan applications"],"summary":"Submits a Changed Circumstance request.","description":"**Required scope:** `submit:broker-requests`","operationId":"LoanApplicationBrokerRequests_SubmitCocRequest","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":{"content":{"multipart/form-data":{"schema":{"required":["request"],"type":"object","properties":{"request":{"type":"string","description":"The change of circumstance as a JSON string. It needs changedCircumstances (at least one), changeRequestType, description, attestsSubmittedWithin24Hours and attestsNoRevisedLeIssued (both true) and receivedAt; disclosureReason and feeRows are optional, and each fee row needs fee, amount and reason."},"attachments":{"type":"array","items":{"type":"string","format":"binary"}}}},"encoding":{"request":{"style":"form"},"attachments":{"style":"form"}}}}},"responses":{"200":{"description":"Request submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrokerRequest"}}}},"400":{"description":"Invalid request, or the calling application has no acting user configured","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 perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The loan is outside the stages a Changed Circumstance can be requested in","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Gets the Changed Circumstance form.

> \*\*Required scope:\*\* \`submit:broker-requests\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"CocRequestForm":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the form is for.","format":"uuid"},"availability":{"$ref":"#/components/schemas/BrokerRequestAvailability"},"header":{"$ref":"#/components/schemas/BrokerRequestHeader"},"changedCircumstances":{"type":"array","items":{"$ref":"#/components/schemas/CocCatalogOptionOfChangedCircumstance"},"description":"The changed circumstances a broker can choose from, each with a code and display name.","nullable":true},"disclosureReasons":{"type":"array","items":{"$ref":"#/components/schemas/CocCatalogOptionOfCocDisclosureReason"},"description":"The disclosure reasons a broker can choose from, each with a code and display name.","nullable":true},"changeRequestTypes":{"type":"array","items":{"$ref":"#/components/schemas/CocCatalogOptionOfCocChangeRequestType"},"description":"The kinds of change request a broker can choose from, each with a code and display name.","nullable":true},"timelinessAttestation":{"type":"string","description":"Wording the broker confirms about submitting within 24 hours.","nullable":true},"noRevisedLeIssuedAttestation":{"type":"string","description":"Wording the broker confirms about no revised Loan Estimate having been issued.","nullable":true},"allowedAttachmentExtensions":{"type":"array","items":{"type":"string"},"description":"File extensions accepted as attachments.","nullable":true}},"additionalProperties":false,"description":"Everything the form needs before the broker types anything."},"BrokerRequestAvailability":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/BrokerRequestAvailabilityState"},"reason":{"type":"string","description":"Shown beside a disabled action. Null when the action is enabled or hidden.","nullable":true}},"additionalProperties":false,"description":"Whether a request action is offered on a loan, and why not when it is not."},"BrokerRequestAvailabilityState":{"enum":["Enabled","Disabled","Hidden"],"type":"string","description":"How a request action is offered on a loan: Enabled, Disabled (shown with a reason), or Hidden."},"BrokerRequestHeader":{"type":"object","properties":{"brokerName":{"type":"string","description":"Name of the broker who submitted the request.","nullable":true},"brokerCompany":{"type":"string","description":"Name of the broker's company.","nullable":true},"loanOfficer":{"type":"string","description":"Name of the loan's loan officer.","nullable":true},"borrowerNames":{"type":"array","items":{"type":"string"},"description":"Names of the loan's borrowers.","nullable":true},"propertyAddress":{"type":"string","description":"The subject property address as one line.","nullable":true},"loanNumber":{"type":"string","description":"The loan number shown to staff and brokers.","nullable":true}},"additionalProperties":false,"description":"The identity block at the top of every request. Built by the server from the loan and the\r\nsubmitting user; a broker never supplies it, so it cannot be edited."},"CocCatalogOptionOfChangedCircumstance":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/ChangedCircumstance"},"name":{"type":"string","description":"The display name of the option.","nullable":true}},"additionalProperties":false,"description":"One choice on the Changed Circumstance form: a stable code and the name shown to the user."},"ChangedCircumstance":{"enum":["AdditionalBorrowerAdded","AdditionalServiceFromTitleOrAppraisal","Adding1004DDeskOrFieldReview","AmortizationTypeOrTerm","AppraisedValueDifferent","CompensationPlanChange","EstimatedClosingDateChange","ImpoundsChange","LoanAmountChange","PropertyTypeOrUnitsChange","FeeIncreaseAfterLeExpiration","FicoScoreChange","IncomeUnverifiedOrDtiChange","TitleFeesIncrease","LoanPurposeTypeProgramOrDocumentation","LockEventOrLockExtension","Occupancy","RateLock","RecordingFeesIncrease","SinglePremiumMi","TitleAcceptanceWaiver","Other"],"type":"string","description":"What changed, in business language. Several may be chosen. The change of circumstance form (`GET /loan-applications/{id}/broker-requests/coc/form`) lists every value with its display name, in form order."},"CocCatalogOptionOfCocDisclosureReason":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/CocDisclosureReason"},"name":{"type":"string","description":"The display name of the option.","nullable":true}},"additionalProperties":false,"description":"One choice on the Changed Circumstance form: a stable code and the name shown to the user."},"CocDisclosureReason":{"enum":["ChangedCircumstanceSettlementCharges","ChangedCircumstanceEligibility","RevisionRequestedByConsumer","InterestRateDependentCharge","Expiration","DelayedSettlementOnConstructionLoans","Other"],"type":"string","description":"The TRID provision under which a revised disclosure is permitted. One value, optional when the broker submits and required when the lender accepts with re-disclosure. The change of circumstance form lists every value with the regulation's wording."},"CocCatalogOptionOfCocChangeRequestType":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/CocChangeRequestType"},"name":{"type":"string","description":"The display name of the option.","nullable":true}},"additionalProperties":false,"description":"One choice on the Changed Circumstance form: a stable code and the name shown to the user."},"CocChangeRequestType":{"enum":["BorrowerRequested","Other"],"type":"string","description":"Who asked for the change. A consumer-requested revision is valid under Reg Z\r\n1026.19(e)(3)(iv)(A) on different grounds from a changed circumstance, so it is recorded, never\r\ninferred."},"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}/broker-requests/coc/form":{"get":{"tags":["Loan applications"],"summary":"Gets the Changed Circumstance form.","description":"**Required scope:** `submit:broker-requests`","operationId":"LoanApplicationBrokerRequests_GetCocRequestForm","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":"Form retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CocRequestForm"}}}},"400":{"description":"The calling application has no acting user configured","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"}}}}}}}}}
```

## Submits an Exception request.

> \*\*Required scope:\*\* \`submit:broker-requests\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"BrokerRequest":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the request.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the request is on.","format":"uuid"},"type":{"$ref":"#/components/schemas/BrokerRequestType"},"typeName":{"type":"string","description":"Display name of the request type.","nullable":true},"status":{"$ref":"#/components/schemas/BrokerRequestStatus"},"reviewer":{"$ref":"#/components/schemas/BrokerRequestReviewer"},"header":{"$ref":"#/components/schemas/BrokerRequestHeader"},"coc":{"$ref":"#/components/schemas/CocRequestDetails"},"exception":{"$ref":"#/components/schemas/ExceptionRequestDetails"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/BrokerRequestAttachment"},"description":"Files attached to the request as a whole.","nullable":true},"pdfDocumentId":{"type":"string","description":"The loan vault document holding the PDF of the request.","format":"uuid","nullable":true},"submittedAt":{"type":"string","description":"When the request was submitted, ISO 8601 in UTC.","format":"date-time"},"submittedBy":{"type":"string","description":"Unique identifier (GUID) of the user who submitted the request.","format":"uuid"},"submittedByName":{"type":"string","description":"Name of the user who submitted the request.","nullable":true},"decision":{"$ref":"#/components/schemas/BrokerRequestDecision"}},"additionalProperties":false,"description":"A broker request as the API returns it."},"BrokerRequestType":{"enum":["Coc","Exception"],"type":"string","description":"What a broker is asking the lender for. Each type carries its own payload on the request and is\r\nrouted to its own reviewer by `BrokerRequestRouting`: a Changed Circumstance, and on a\r\nnon-QM loan an Exception request."},"BrokerRequestStatus":{"enum":["Submitted","Accepted","Declined"],"type":"string","description":"Where a request stands. A request is created Submitted and moves once, to Accepted or Declined,\r\nwhen its reviewer decides it."},"BrokerRequestReviewer":{"enum":["Underwriting"],"type":"string","description":"The lender team that reviews a request type."},"BrokerRequestHeader":{"type":"object","properties":{"brokerName":{"type":"string","description":"Name of the broker who submitted the request.","nullable":true},"brokerCompany":{"type":"string","description":"Name of the broker's company.","nullable":true},"loanOfficer":{"type":"string","description":"Name of the loan's loan officer.","nullable":true},"borrowerNames":{"type":"array","items":{"type":"string"},"description":"Names of the loan's borrowers.","nullable":true},"propertyAddress":{"type":"string","description":"The subject property address as one line.","nullable":true},"loanNumber":{"type":"string","description":"The loan number shown to staff and brokers.","nullable":true}},"additionalProperties":false,"description":"The identity block at the top of every request. Built by the server from the loan and the\r\nsubmitting user; a broker never supplies it, so it cannot be edited."},"CocRequestDetails":{"type":"object","properties":{"changedCircumstances":{"type":"array","items":{"$ref":"#/components/schemas/ChangedCircumstance"},"description":"The changed circumstances the broker selected.","nullable":true},"changeRequestType":{"$ref":"#/components/schemas/CocChangeRequestType"},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"},"description":{"type":"string","description":"The broker's free-text explanation of the change.","nullable":true},"feeRows":{"type":"array","items":{"$ref":"#/components/schemas/CocFeeRow"},"description":"The fees the change affects.","nullable":true},"attestsSubmittedWithin24Hours":{"type":"boolean","description":"The broker's attestation that the request was submitted within 24 hours of learning the information."},"attestsNoRevisedLeIssued":{"type":"boolean","description":"The broker's attestation that no revised Loan Estimate has been issued for this change."},"receivedAt":{"type":"string","description":"When the broker received the information that changed the circumstance, date and time with the broker's UTC offset.","format":"date-time"}},"additionalProperties":false,"description":"The Changed Circumstance payload of a submitted request. The three axes are stored independently\r\nand none is derived from another: `DisclosureReason` is exactly what the broker chose,\r\nnull when they chose none."},"ChangedCircumstance":{"enum":["AdditionalBorrowerAdded","AdditionalServiceFromTitleOrAppraisal","Adding1004DDeskOrFieldReview","AmortizationTypeOrTerm","AppraisedValueDifferent","CompensationPlanChange","EstimatedClosingDateChange","ImpoundsChange","LoanAmountChange","PropertyTypeOrUnitsChange","FeeIncreaseAfterLeExpiration","FicoScoreChange","IncomeUnverifiedOrDtiChange","TitleFeesIncrease","LoanPurposeTypeProgramOrDocumentation","LockEventOrLockExtension","Occupancy","RateLock","RecordingFeesIncrease","SinglePremiumMi","TitleAcceptanceWaiver","Other"],"type":"string","description":"What changed, in business language. Several may be chosen. The change of circumstance form (`GET /loan-applications/{id}/broker-requests/coc/form`) lists every value with its display name, in form order."},"CocChangeRequestType":{"enum":["BorrowerRequested","Other"],"type":"string","description":"Who asked for the change. A consumer-requested revision is valid under Reg Z\r\n1026.19(e)(3)(iv)(A) on different grounds from a changed circumstance, so it is recorded, never\r\ninferred."},"CocDisclosureReason":{"enum":["ChangedCircumstanceSettlementCharges","ChangedCircumstanceEligibility","RevisionRequestedByConsumer","InterestRateDependentCharge","Expiration","DelayedSettlementOnConstructionLoans","Other"],"type":"string","description":"The TRID provision under which a revised disclosure is permitted. One value, optional when the broker submits and required when the lender accepts with re-disclosure. The change of circumstance form lists every value with the regulation's wording."},"CocFeeRow":{"type":"object","properties":{"fee":{"type":"string","description":"Name of the fee the change affects.","nullable":true},"amount":{"type":"number","description":"The fee amount after the change, in dollars; null when not given.","format":"double","nullable":true},"reason":{"type":"string","description":"Why the fee changed.","nullable":true}},"additionalProperties":false,"description":"One fee affected by a changed circumstance: the fee, its amount and the reason for the change."},"ExceptionRequestDetails":{"type":"object","properties":{"justification":{"type":"string","description":"The broker's reasons the file should be allowed outside guidelines.","nullable":true},"loanProgram":{"type":"string","description":"The loan program that made the loan non-QM when the request was submitted.","nullable":true}},"additionalProperties":false,"description":"The Exception payload of a submitted request: why the file should be allowed outside guidelines."},"BrokerRequestAttachment":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the attachment.","format":"uuid"},"fileName":{"type":"string","description":"Original file name of the attachment.","nullable":true},"contentType":{"type":"string","description":"MIME type of the attachment, for example application/pdf.","nullable":true},"size":{"type":"integer","description":"Attachment size in bytes.","format":"int64"}},"additionalProperties":false,"description":"A file attached to a request as a whole, never to one part of it."},"BrokerRequestDecision":{"type":"object","properties":{"outcome":{"$ref":"#/components/schemas/BrokerRequestOutcome"},"comment":{"type":"string","description":"The reviewer's comment on the decision; null when none was given.","nullable":true},"coc":{"$ref":"#/components/schemas/CocDecisionDetails"},"decidedAt":{"type":"string","description":"When the decision was recorded, ISO 8601 in UTC.","format":"date-time"},"decidedBy":{"type":"string","description":"Unique identifier (GUID) of the reviewing user.","format":"uuid"},"decidedByName":{"type":"string","description":"Name of the reviewing user.","nullable":true}},"additionalProperties":false,"description":"The reviewer's decision. Recorded once and never changed. `Coc` holds what a\r\nChanged Circumstance decision adds."},"BrokerRequestOutcome":{"enum":["Accepted","Declined"],"type":"string","description":"The reviewer's decision on a request."},"CocDecisionDetails":{"type":"object","properties":{"requiresRedisclosure":{"type":"boolean","description":"True when the request was accepted and the loan must be re-disclosed."},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"}},"additionalProperties":false,"description":"What a Changed Circumstance decision records. A disclosure reason is required when the request is\r\naccepted with re-disclosure; it is the reviewer's, stored apart from the broker's."},"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}/broker-requests/exception":{"post":{"tags":["Loan applications"],"summary":"Submits an Exception request.","description":"**Required scope:** `submit:broker-requests`","operationId":"LoanApplicationBrokerRequests_SubmitExceptionRequest","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":{"content":{"multipart/form-data":{"schema":{"required":["request"],"type":"object","properties":{"request":{"type":"string","description":"The exception request as a JSON string: {\"justification\": \"...\"}, with justification not blank."},"attachments":{"type":"array","items":{"type":"string","format":"binary"}}}},"encoding":{"request":{"style":"form"},"attachments":{"style":"form"}}}}},"responses":{"200":{"description":"Request submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrokerRequest"}}}},"400":{"description":"Invalid request, or the calling application has no acting user configured","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 perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The loan is not non-QM, or is outside the stages an Exception can be requested in","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Gets the Exception request form.

> \*\*Required scope:\*\* \`submit:broker-requests\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"ExceptionRequestForm":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the form is for.","format":"uuid"},"availability":{"$ref":"#/components/schemas/BrokerRequestAvailability"},"header":{"$ref":"#/components/schemas/BrokerRequestHeader"},"allowedAttachmentExtensions":{"type":"array","items":{"type":"string"},"description":"File extensions accepted as attachments.","nullable":true}},"additionalProperties":false,"description":"Everything the Exception form needs before the broker types anything."},"BrokerRequestAvailability":{"type":"object","properties":{"state":{"$ref":"#/components/schemas/BrokerRequestAvailabilityState"},"reason":{"type":"string","description":"Shown beside a disabled action. Null when the action is enabled or hidden.","nullable":true}},"additionalProperties":false,"description":"Whether a request action is offered on a loan, and why not when it is not."},"BrokerRequestAvailabilityState":{"enum":["Enabled","Disabled","Hidden"],"type":"string","description":"How a request action is offered on a loan: Enabled, Disabled (shown with a reason), or Hidden."},"BrokerRequestHeader":{"type":"object","properties":{"brokerName":{"type":"string","description":"Name of the broker who submitted the request.","nullable":true},"brokerCompany":{"type":"string","description":"Name of the broker's company.","nullable":true},"loanOfficer":{"type":"string","description":"Name of the loan's loan officer.","nullable":true},"borrowerNames":{"type":"array","items":{"type":"string"},"description":"Names of the loan's borrowers.","nullable":true},"propertyAddress":{"type":"string","description":"The subject property address as one line.","nullable":true},"loanNumber":{"type":"string","description":"The loan number shown to staff and brokers.","nullable":true}},"additionalProperties":false,"description":"The identity block at the top of every request. Built by the server from the loan and the\r\nsubmitting user; a broker never supplies it, so it cannot be edited."},"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}/broker-requests/exception/form":{"get":{"tags":["Loan applications"],"summary":"Gets the Exception request form.","description":"**Required scope:** `submit:broker-requests`","operationId":"LoanApplicationBrokerRequests_GetExceptionRequestForm","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":"Form retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionRequestForm"}}}},"400":{"description":"The calling application has no acting user configured","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"}}}}}}}}}
```

## Requests another row of a locked loan's rate sheet.

> \*\*Required scope:\*\* \`submit:broker-requests\`

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"RequestLockRowRequest":{"required":["attestsNoRevisedLeIssued","attestsSubmittedWithin24Hours","quoteId","receivedAt"],"type":"object","properties":{"quoteId":{"type":"string","description":"The row asked for, from the ladder's rows."},"note":{"type":"string","description":"Optional words from the broker, added to the description.","nullable":true},"attestsSubmittedWithin24Hours":{"type":"boolean","description":"The broker attests the request was submitted within 24 hours of receiving the information. Required."},"attestsNoRevisedLeIssued":{"type":"boolean","description":"The broker attests no revised Loan Estimate has been issued for this change. Required."},"receivedAt":{"type":"string","description":"When the broker received the information behind the request, ISO 8601. Required.","format":"date-time"}},"additionalProperties":false,"description":"A broker's request for another row of the locked rate sheet, filed as a change of circumstance and never as a direct move. The attestations and the time the information was received are the broker's to give and are never defaulted. Both attestations must be true."},"BrokerRequest":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the request.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the request is on.","format":"uuid"},"type":{"$ref":"#/components/schemas/BrokerRequestType"},"typeName":{"type":"string","description":"Display name of the request type.","nullable":true},"status":{"$ref":"#/components/schemas/BrokerRequestStatus"},"reviewer":{"$ref":"#/components/schemas/BrokerRequestReviewer"},"header":{"$ref":"#/components/schemas/BrokerRequestHeader"},"coc":{"$ref":"#/components/schemas/CocRequestDetails"},"exception":{"$ref":"#/components/schemas/ExceptionRequestDetails"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/BrokerRequestAttachment"},"description":"Files attached to the request as a whole.","nullable":true},"pdfDocumentId":{"type":"string","description":"The loan vault document holding the PDF of the request.","format":"uuid","nullable":true},"submittedAt":{"type":"string","description":"When the request was submitted, ISO 8601 in UTC.","format":"date-time"},"submittedBy":{"type":"string","description":"Unique identifier (GUID) of the user who submitted the request.","format":"uuid"},"submittedByName":{"type":"string","description":"Name of the user who submitted the request.","nullable":true},"decision":{"$ref":"#/components/schemas/BrokerRequestDecision"}},"additionalProperties":false,"description":"A broker request as the API returns it."},"BrokerRequestType":{"enum":["Coc","Exception"],"type":"string","description":"What a broker is asking the lender for. Each type carries its own payload on the request and is\r\nrouted to its own reviewer by `BrokerRequestRouting`: a Changed Circumstance, and on a\r\nnon-QM loan an Exception request."},"BrokerRequestStatus":{"enum":["Submitted","Accepted","Declined"],"type":"string","description":"Where a request stands. A request is created Submitted and moves once, to Accepted or Declined,\r\nwhen its reviewer decides it."},"BrokerRequestReviewer":{"enum":["Underwriting"],"type":"string","description":"The lender team that reviews a request type."},"BrokerRequestHeader":{"type":"object","properties":{"brokerName":{"type":"string","description":"Name of the broker who submitted the request.","nullable":true},"brokerCompany":{"type":"string","description":"Name of the broker's company.","nullable":true},"loanOfficer":{"type":"string","description":"Name of the loan's loan officer.","nullable":true},"borrowerNames":{"type":"array","items":{"type":"string"},"description":"Names of the loan's borrowers.","nullable":true},"propertyAddress":{"type":"string","description":"The subject property address as one line.","nullable":true},"loanNumber":{"type":"string","description":"The loan number shown to staff and brokers.","nullable":true}},"additionalProperties":false,"description":"The identity block at the top of every request. Built by the server from the loan and the\r\nsubmitting user; a broker never supplies it, so it cannot be edited."},"CocRequestDetails":{"type":"object","properties":{"changedCircumstances":{"type":"array","items":{"$ref":"#/components/schemas/ChangedCircumstance"},"description":"The changed circumstances the broker selected.","nullable":true},"changeRequestType":{"$ref":"#/components/schemas/CocChangeRequestType"},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"},"description":{"type":"string","description":"The broker's free-text explanation of the change.","nullable":true},"feeRows":{"type":"array","items":{"$ref":"#/components/schemas/CocFeeRow"},"description":"The fees the change affects.","nullable":true},"attestsSubmittedWithin24Hours":{"type":"boolean","description":"The broker's attestation that the request was submitted within 24 hours of learning the information."},"attestsNoRevisedLeIssued":{"type":"boolean","description":"The broker's attestation that no revised Loan Estimate has been issued for this change."},"receivedAt":{"type":"string","description":"When the broker received the information that changed the circumstance, date and time with the broker's UTC offset.","format":"date-time"}},"additionalProperties":false,"description":"The Changed Circumstance payload of a submitted request. The three axes are stored independently\r\nand none is derived from another: `DisclosureReason` is exactly what the broker chose,\r\nnull when they chose none."},"ChangedCircumstance":{"enum":["AdditionalBorrowerAdded","AdditionalServiceFromTitleOrAppraisal","Adding1004DDeskOrFieldReview","AmortizationTypeOrTerm","AppraisedValueDifferent","CompensationPlanChange","EstimatedClosingDateChange","ImpoundsChange","LoanAmountChange","PropertyTypeOrUnitsChange","FeeIncreaseAfterLeExpiration","FicoScoreChange","IncomeUnverifiedOrDtiChange","TitleFeesIncrease","LoanPurposeTypeProgramOrDocumentation","LockEventOrLockExtension","Occupancy","RateLock","RecordingFeesIncrease","SinglePremiumMi","TitleAcceptanceWaiver","Other"],"type":"string","description":"What changed, in business language. Several may be chosen. The change of circumstance form (`GET /loan-applications/{id}/broker-requests/coc/form`) lists every value with its display name, in form order."},"CocChangeRequestType":{"enum":["BorrowerRequested","Other"],"type":"string","description":"Who asked for the change. A consumer-requested revision is valid under Reg Z\r\n1026.19(e)(3)(iv)(A) on different grounds from a changed circumstance, so it is recorded, never\r\ninferred."},"CocDisclosureReason":{"enum":["ChangedCircumstanceSettlementCharges","ChangedCircumstanceEligibility","RevisionRequestedByConsumer","InterestRateDependentCharge","Expiration","DelayedSettlementOnConstructionLoans","Other"],"type":"string","description":"The TRID provision under which a revised disclosure is permitted. One value, optional when the broker submits and required when the lender accepts with re-disclosure. The change of circumstance form lists every value with the regulation's wording."},"CocFeeRow":{"type":"object","properties":{"fee":{"type":"string","description":"Name of the fee the change affects.","nullable":true},"amount":{"type":"number","description":"The fee amount after the change, in dollars; null when not given.","format":"double","nullable":true},"reason":{"type":"string","description":"Why the fee changed.","nullable":true}},"additionalProperties":false,"description":"One fee affected by a changed circumstance: the fee, its amount and the reason for the change."},"ExceptionRequestDetails":{"type":"object","properties":{"justification":{"type":"string","description":"The broker's reasons the file should be allowed outside guidelines.","nullable":true},"loanProgram":{"type":"string","description":"The loan program that made the loan non-QM when the request was submitted.","nullable":true}},"additionalProperties":false,"description":"The Exception payload of a submitted request: why the file should be allowed outside guidelines."},"BrokerRequestAttachment":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the attachment.","format":"uuid"},"fileName":{"type":"string","description":"Original file name of the attachment.","nullable":true},"contentType":{"type":"string","description":"MIME type of the attachment, for example application/pdf.","nullable":true},"size":{"type":"integer","description":"Attachment size in bytes.","format":"int64"}},"additionalProperties":false,"description":"A file attached to a request as a whole, never to one part of it."},"BrokerRequestDecision":{"type":"object","properties":{"outcome":{"$ref":"#/components/schemas/BrokerRequestOutcome"},"comment":{"type":"string","description":"The reviewer's comment on the decision; null when none was given.","nullable":true},"coc":{"$ref":"#/components/schemas/CocDecisionDetails"},"decidedAt":{"type":"string","description":"When the decision was recorded, ISO 8601 in UTC.","format":"date-time"},"decidedBy":{"type":"string","description":"Unique identifier (GUID) of the reviewing user.","format":"uuid"},"decidedByName":{"type":"string","description":"Name of the reviewing user.","nullable":true}},"additionalProperties":false,"description":"The reviewer's decision. Recorded once and never changed. `Coc` holds what a\r\nChanged Circumstance decision adds."},"BrokerRequestOutcome":{"enum":["Accepted","Declined"],"type":"string","description":"The reviewer's decision on a request."},"CocDecisionDetails":{"type":"object","properties":{"requiresRedisclosure":{"type":"boolean","description":"True when the request was accepted and the loan must be re-disclosed."},"disclosureReason":{"$ref":"#/components/schemas/CocDisclosureReason"}},"additionalProperties":false,"description":"What a Changed Circumstance decision records. A disclosure reason is required when the request is\r\naccepted with re-disclosure; it is the reviewer's, stored apart from the broker's."},"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}/broker-requests/locked-rate-row":{"post":{"tags":["Loan applications"],"summary":"Requests another row of a locked loan's rate sheet.","description":"**Required scope:** `submit:broker-requests`","operationId":"LoanApplicationBrokerRequests_RequestLockedRateRow","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":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestLockRowRequest"}}}},"responses":{"200":{"description":"Request submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrokerRequest"}}}},"400":{"description":"The loan has no rate ladder, the row cannot be requested, the request is invalid, or the calling application has no acting user configured","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 perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The loan is outside the stages a Changed Circumstance can be requested in","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Lists a loan application's notes.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"LoanAppNoteSubjectType":{"enum":["LoanApplication","AiCall","Document"],"type":"string","description":"What a note is attached to. Each new place notes appear adds a value here (conditions and tasks next) plus a check that the subject belongs to the loan; nothing else changes."},"GetLoanAppNotesResponse":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"notes":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppNoteResponse"},"description":"Newest first.","nullable":true},"page":{"type":"integer","description":"The page number returned, starting at 1.","format":"int32"},"pageSize":{"type":"integer","description":"The maximum number of notes per page.","format":"int32"},"totalCount":{"type":"integer","description":"Notes matching the filter across all pages (deleted notes excluded).","format":"int32"}},"additionalProperties":false},"LoanAppNoteResponse":{"required":["canDelete","canEdit","createdAt","createdBy","id","isEdited","loanApplicationId","subjectId","subjectType","updatedAt"],"type":"object","properties":{"id":{"type":"string","description":"Id of the note (GUID).","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id of the loan application the note is on (GUID).","format":"uuid"},"subjectType":{"$ref":"#/components/schemas/LoanAppNoteSubjectType"},"subjectId":{"type":"string","description":"Id of what the note is about; subjectType says what kind of thing it is.","format":"uuid"},"body":{"type":"string","description":"Text of the note.","nullable":true},"createdBy":{"type":"string","description":"Id of the user who wrote the note (GUID).","format":"uuid"},"createdByName":{"type":"string","description":"Name of the user who wrote the note.","nullable":true},"createdAt":{"type":"string","description":"When the note was written (ISO 8601 date and time, UTC).","format":"date-time"},"updatedAt":{"type":"string","description":"When the note was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"isEdited":{"type":"boolean","description":"True when the note was edited after it was written."},"canEdit":{"type":"boolean","description":"The caller may edit this note (they wrote it)."},"canDelete":{"type":"boolean","description":"The caller may delete this note (they wrote it, or they are an Admin or CompanyAdmin)."}},"additionalProperties":false,"description":"A note on a loan application, or on something in it such as a document."},"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}/notes":{"get":{"tags":["Loan applications"],"summary":"Lists a loan application's notes.","description":"**Required scope:** `read:loan-applications`","operationId":"LoanApplicationNotes_GetNotes","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":"subjectType","in":"query","description":"Only notes on this kind of subject. LoanApplication is the only one today.","schema":{"$ref":"#/components/schemas/LoanAppNoteSubjectType"}},{"name":"subjectId","in":"query","description":"Only notes on this subject (needs subjectType).","schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"The page to return, starting at 1. Defaults to 1; 0 or less answers 400. With top and no skip, the list starts where this page would. Deprecated: use skip. When skip is sent, page is ignored.","deprecated":true,"schema":{"type":"integer","format":"int32","default":1}},{"name":"pageSize","in":"query","description":"Notes per page, 1 to 200. Defaults to 50; outside that range answers 400. Without top, it is also the number top returns. Deprecated: use top. When top is sent, pageSize is ignored.","deprecated":true,"schema":{"type":"integer","format":"int32","default":50}},{"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"}},{"name":"skip","in":"query","description":"The number of notes to skip before the page starts, newest first. Defaults to 0; a negative value counts as 0. When skip is sent, page is ignored.","schema":{"type":"integer","format":"int32"}},{"name":"top","in":"query","description":"The number of notes to return. Defaults to pageSize (50), at most 200; a larger value returns 200 and a value below 1 returns 1. When top is sent, pageSize is ignored. The response's totalCount is the number of matching notes across every page.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Notes retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLoanAppNotesResponse"}}}},"400":{"description":"Invalid identifier or paging","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"}}}}}}}}}
```

## Adds a note to a loan application.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"CreateLoanAppNoteRequest":{"required":["body"],"type":"object","properties":{"subjectType":{"$ref":"#/components/schemas/LoanAppNoteSubjectType"},"subjectId":{"type":"string","description":"The subject's id. For a loan-level note this is the loan id, and may be left out. Required when subjectType is AiCall.","format":"uuid","nullable":true},"body":{"type":"string","description":"Plain text."}},"additionalProperties":false,"description":"`subjectType`: Defaults to LoanApplication. Document is refused; AiCall needs subjectId."},"LoanAppNoteSubjectType":{"enum":["LoanApplication","AiCall","Document"],"type":"string","description":"What a note is attached to. Each new place notes appear adds a value here (conditions and tasks next) plus a check that the subject belongs to the loan; nothing else changes."},"LoanAppNoteResponse":{"required":["canDelete","canEdit","createdAt","createdBy","id","isEdited","loanApplicationId","subjectId","subjectType","updatedAt"],"type":"object","properties":{"id":{"type":"string","description":"Id of the note (GUID).","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id of the loan application the note is on (GUID).","format":"uuid"},"subjectType":{"$ref":"#/components/schemas/LoanAppNoteSubjectType"},"subjectId":{"type":"string","description":"Id of what the note is about; subjectType says what kind of thing it is.","format":"uuid"},"body":{"type":"string","description":"Text of the note.","nullable":true},"createdBy":{"type":"string","description":"Id of the user who wrote the note (GUID).","format":"uuid"},"createdByName":{"type":"string","description":"Name of the user who wrote the note.","nullable":true},"createdAt":{"type":"string","description":"When the note was written (ISO 8601 date and time, UTC).","format":"date-time"},"updatedAt":{"type":"string","description":"When the note was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"isEdited":{"type":"boolean","description":"True when the note was edited after it was written."},"canEdit":{"type":"boolean","description":"The caller may edit this note (they wrote it)."},"canDelete":{"type":"boolean","description":"The caller may delete this note (they wrote it, or they are an Admin or CompanyAdmin)."}},"additionalProperties":false,"description":"A note on a loan application, or on something in it such as a document."},"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}/notes":{"post":{"tags":["Loan applications"],"summary":"Adds a note to a loan application.","description":"**Required scope:** `create:loan-applications`","operationId":"LoanApplicationNotes_AddNote","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 note. subjectType defaults to LoanApplication; the body is plain text, 1 to 10,000 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLoanAppNoteRequest"}}}},"responses":{"201":{"description":"Note created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanAppNoteResponse"}}}},"400":{"description":"Invalid identifier or request payload, or no acting user configured","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 perform this action","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"}}}}}}}}}
```

## Edits a note on a loan application.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"UpdateLoanAppNoteRequest":{"required":["body"],"type":"object","properties":{"body":{"type":"string","description":"The new plain-text body. The previous body is kept in the note's history."}},"additionalProperties":false},"LoanAppNoteResponse":{"required":["canDelete","canEdit","createdAt","createdBy","id","isEdited","loanApplicationId","subjectId","subjectType","updatedAt"],"type":"object","properties":{"id":{"type":"string","description":"Id of the note (GUID).","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id of the loan application the note is on (GUID).","format":"uuid"},"subjectType":{"$ref":"#/components/schemas/LoanAppNoteSubjectType"},"subjectId":{"type":"string","description":"Id of what the note is about; subjectType says what kind of thing it is.","format":"uuid"},"body":{"type":"string","description":"Text of the note.","nullable":true},"createdBy":{"type":"string","description":"Id of the user who wrote the note (GUID).","format":"uuid"},"createdByName":{"type":"string","description":"Name of the user who wrote the note.","nullable":true},"createdAt":{"type":"string","description":"When the note was written (ISO 8601 date and time, UTC).","format":"date-time"},"updatedAt":{"type":"string","description":"When the note was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"isEdited":{"type":"boolean","description":"True when the note was edited after it was written."},"canEdit":{"type":"boolean","description":"The caller may edit this note (they wrote it)."},"canDelete":{"type":"boolean","description":"The caller may delete this note (they wrote it, or they are an Admin or CompanyAdmin)."}},"additionalProperties":false,"description":"A note on a loan application, or on something in it such as a document."},"LoanAppNoteSubjectType":{"enum":["LoanApplication","AiCall","Document"],"type":"string","description":"What a note is attached to. Each new place notes appear adds a value here (conditions and tasks next) plus a check that the subject belongs to the loan; nothing else changes."},"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}/notes/{noteId}":{"put":{"tags":["Loan applications"],"summary":"Edits a note on a loan application.","description":"**Required scope:** `update:loan-applications`","operationId":"LoanApplicationNotes_UpdateNote","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":"noteId","in":"path","description":"The note to change.","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 new body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLoanAppNoteRequest"}}}},"responses":{"200":{"description":"Note updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanAppNoteResponse"}}}},"400":{"description":"Invalid identifier or request payload, or no acting user configured","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":"Not authorized, or the note was written by someone else","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application or note 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"}}}}}}}}}
```

## Deletes a note on a loan application.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"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}/notes/{noteId}":{"delete":{"tags":["Loan applications"],"summary":"Deletes a note on a loan application.","description":"**Required scope:** `delete:loan-applications`","operationId":"LoanApplicationNotes_DeleteNote","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":"noteId","in":"path","description":"The note to delete.","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":{"204":{"description":"Note deleted"},"400":{"description":"Invalid identifier, or no acting user configured","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":"Not authorized, or the note was written by someone else","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application or note 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"}}}}}}}}}
```

## Gets a note's edit history.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"GetLoanAppNoteHistoryResponse":{"type":"object","properties":{"noteId":{"type":"string","description":"Unique identifier (GUID) of the note.","format":"uuid"},"currentBody":{"type":"string","description":"The current body, for showing alongside the earlier versions.","nullable":true},"versions":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppNoteVersion"},"description":"Earlier versions, newest first. Each holds the body as it was before that edit.","nullable":true}},"additionalProperties":false},"LoanAppNoteVersion":{"type":"object","properties":{"body":{"type":"string","description":"The note's text as it was before that edit.","nullable":true},"editedBy":{"type":"string","description":"Id of the user who made the edit (GUID).","format":"uuid"},"editedByName":{"type":"string","description":"Name of the user who made the edit.","nullable":true},"editedAt":{"type":"string","description":"When the edit was made (ISO 8601 date and time, UTC).","format":"date-time"}},"additionalProperties":false,"description":"An earlier version of a note."},"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}/notes/{noteId}/history":{"get":{"tags":["Loan applications"],"summary":"Gets a note's edit history.","description":"**Required scope:** `read:loan-applications`","operationId":"LoanApplicationNotes_GetNoteHistory","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":"noteId","in":"path","description":"The note.","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":"History retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLoanAppNoteHistoryResponse"}}}},"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 or note 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"}}}}}}}}}
```

## List or search Loan Applications

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> Supply clientId for a single client's loans, or searchText and/or structured filters (statuses, purposes, status/closing date ranges, loan amount and commission ranges, referringAgentId) to search across the company. Results are always scoped to the caller's company.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"GetLoanApplicationsResponse":{"required":["count"],"type":"object","properties":{"count":{"type":"integer","description":"Number of matching loan applications across every page, the same as totalCount. Kept for existing callers; read totalCount.","format":"int32"},"totalCount":{"type":"integer","description":"Number of matching loan applications across every page (value holds one page of them when skip or top is sent).","format":"int32","readOnly":true},"value":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplication"},"description":"The loan applications.","nullable":true}},"additionalProperties":false,"description":"A list of loan applications."},"LoanApplication":{"type":"object","properties":{"id":{"type":"string","description":"Id of the loan application (GUID), as used in loan-applications/{id} paths. The LOS loan id is loanInfo.loanId.","format":"uuid"},"loanInfo":{"$ref":"#/components/schemas/LoanInfo"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplicationTaskItem"},"description":"The loan's tasks and conditions.","nullable":true},"taskSummaries":{"type":"array","items":{"$ref":"#/components/schemas/TaskSummary"},"description":"Counts of the loan's tasks by status, split into user tasks and borrower tasks.","nullable":true},"loanTimeline":{"$ref":"#/components/schemas/LoanTimeline"},"isDeleted":{"type":"boolean","description":"True when the loan application has been deleted."},"createdTimestampUtc":{"type":"string","description":"When the loan application was created (ISO 8601 date and time, UTC).","format":"date-time"},"updatedTimestampUtc":{"type":"string","description":"When the loan application was last changed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedBy":{"type":"string","description":"Id (GUID) of the user who last changed the loan application.","format":"uuid","nullable":true},"isClientPortalHidden":{"type":"boolean","description":"True when the borrower's company does not use the borrower portal. False when that cannot be determined. Computed on read, never stored."},"isLosLead":{"type":"boolean","description":"True while the loan has a loan number but its application has not been submitted yet (its file was opened early, as a lead). False otherwise: a loan number then means the application was submitted."},"isSandbox":{"type":"boolean","description":"True when the loan is a sandbox, a copy made to try changes on. False on every ordinary loan. Read-only."},"sourceLoanApplicationId":{"type":"string","description":"For a sandbox, the id of the loan it was copied from. Null on every other loan.","format":"uuid","nullable":true},"sandboxSourceLoanNumber":{"type":"string","description":"For a sandbox, the LOS loan number of the loan it was copied from. Null on every other loan.","nullable":true}},"additionalProperties":false,"description":"A loan application: its loan details, tasks and conditions, and timeline."},"LoanInfo":{"type":"object","properties":{"loanId":{"type":"string","description":"The loan's id in the LOS (the same value as the loan's externalId). Null for a loan not in the LOS yet.","nullable":true},"loanNumber":{"type":"string","description":"The loan number the LOS assigned, shown to people.","nullable":true},"sourceLoanNumber":{"type":"string","description":"The loan number the originating system gave this loan, from an imported MISMO file. Never Henge's own loan number (loanNumber).","nullable":true},"loanAmount":{"type":"number","description":"Base loan amount, in dollars, before any financed mortgage insurance premium or funding fee.","format":"double","nullable":true},"loanType":{"$ref":"#/components/schemas/FieldType"},"mortgageLoanType":{"type":"string","description":"Raw product-class code of the loan, a number as text. It is not the loan type (loanType). Code 0 means government or unspecified.","nullable":true},"purpose":{"$ref":"#/components/schemas/FieldType"},"lienPosition":{"$ref":"#/components/schemas/FieldType"},"loanStatus":{"$ref":"#/components/schemas/FieldType"},"propertyType":{"$ref":"#/components/schemas/FieldType"},"loanStatusDate":{"type":"string","description":"When the loan reached its current status (ISO 8601 date and time).","format":"date-time","nullable":true},"appraisalValue":{"type":"number","description":"Appraised value of the subject property, in dollars.","format":"double","nullable":true},"purchasePrice":{"type":"number","description":"Purchase price of the subject property, in dollars. Purchase loans only.","format":"double","nullable":true},"subjectPropertyAddress":{"$ref":"#/components/schemas/SubjectPropertyAddress"},"occupancy":{"$ref":"#/components/schemas/FieldType"},"mannerOfTitle":{"type":"string","description":"How title will be held, as entered (free text). finalVesting is the newer field.","nullable":true},"refinance":{"$ref":"#/components/schemas/RefinanceInfo"},"assignments":{"$ref":"#/components/schemas/Assignments"},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/PosBorrower"},"description":"The loan's borrowers. A co-borrower is nested inside the borrower it is paired with, in coBorrower.","nullable":true},"proposedHousingExpense":{"$ref":"#/components/schemas/ProposedHousingExpense"},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/CustomField"},"description":"Custom fields configured on the loan, with their values.","nullable":true},"closingDate":{"type":"string","description":"Scheduled closing date (ISO 8601 date and time).","format":"date-time","nullable":true},"estimatedCompensation":{"type":"number","description":"Estimated originator compensation for the loan, in dollars.","format":"double","nullable":true},"lockedCompensation":{"type":"number","description":"Originator compensation fixed by the rate lock, in dollars.","format":"double","nullable":true},"lockStatus":{"type":"string","description":"Rate lock status as the LOS names it, for example Not Locked or Locked.","nullable":true},"confirmedLockPeriod":{"type":"string","description":"Length of the confirmed rate lock, in days, as text.","nullable":true},"downPayment":{"type":"number","description":"Down payment, in dollars.","format":"double","nullable":true},"downPaymentPercentage":{"type":"number","description":"Down payment as a percent of the purchase price, for example 20.","format":"double","nullable":true},"downPaymentSources":{"type":"array","items":{"$ref":"#/components/schemas/DownPaymentSource"},"description":"Where the down payment comes from.","nullable":true},"mortgageInsurance":{"type":"number","description":"Mortgage insurance amount, in dollars.","format":"double","nullable":true},"annualIncome":{"type":"number","description":"The borrower's total annual income, in dollars.","format":"double","nullable":true},"hasAssetsForDownPayment":{"type":"boolean","description":"True when the borrower has assets to cover the down payment."},"hoaAmount":{"type":"number","description":"Homeowners association dues, in dollars.","format":"double","nullable":true},"noteRate":{"type":"number","description":"Note rate as a percent, for example 6.875.","format":"double","nullable":true},"apr":{"type":"number","description":"Annual percentage rate, as a percent, for example 7.012.","format":"double","nullable":true},"ltvRatios":{"$ref":"#/components/schemas/LtvRatios"},"numberOfUnits":{"type":"integer","description":"Number of units in the subject property.","format":"int32","nullable":true},"qualification":{"$ref":"#/components/schemas/Qualification"},"loanTerm":{"type":"integer","description":"Loan term, in months.","format":"int32","nullable":true},"loanProgram":{"type":"string","description":"Name of the loan program the loan is in.","nullable":true},"lockExpirationDate":{"type":"string","description":"Date the rate lock expires (ISO 8601 date).","format":"date","nullable":true},"amortizationType":{"$ref":"#/components/schemas/FieldType"},"isTestFile":{"type":"boolean","description":"True for a test loan: one created from a non-production environment or by a test user."},"isDscrLoan":{"type":"boolean","description":"True for a debt service coverage ratio (DSCR) loan, qualified on the property's rental income rather than the borrower's income."},"subjectPropertyRentalIncome":{"$ref":"#/components/schemas/SubjectPropertyRentalIncome"},"loanLevelCredit":{"$ref":"#/components/schemas/LoanLevelCredit"},"credit":{"$ref":"#/components/schemas/LoanCredit"},"escrowWaiver":{"type":"boolean","description":"True when the borrower waives escrow of taxes and insurance. Null when not set.","nullable":true},"totalLoanAmount":{"type":"number","description":"Loan amount in dollars including any financed upfront mortgage insurance premium or funding fee, labelled Total Loan Amt in the LOS. loanAmount is the base amount before that financing, so the two differ on FHA, VA and USDA loans and agree on conventional ones. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"investorLockProjectedProfit":{"type":"number","description":"Projected profit on the investor lock, in dollars; negative for a loss. Read-only.","format":"double","nullable":true},"branchChannel":{"$ref":"#/components/schemas/FieldType"},"financedUpfrontMipOrFundingFee":{"type":"number","description":"The upfront mortgage insurance premium or funding fee rolled into the loan amount, in dollars. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"maturityTermInMonths":{"type":"integer","description":"Term in months at which the balance comes due. Equals loanTerm on a fully amortising loan and is shorter on a balloon.","format":"int32","nullable":true},"loanTypeOtherDescription":{"type":"string","description":"Free text describing the loan type when loanType is Other.","nullable":true},"armDescription":{"type":"string","description":"Description of the adjustable rate, for example 5/1 ARM. Empty on fixed-rate loans.","nullable":true},"printAmortizationTypeAsOther":{"type":"boolean","description":"True to print the amortization type as Other on the loan application form.","nullable":true},"amortizationTypeOtherDescription":{"type":"string","description":"The text printed as the amortization type when printAmortizationTypeAsOther is set.","nullable":true},"urlaLoanPurposeCode":{"type":"string","description":"Raw code for the loan purpose as stated on the 2019 loan application form (URLA). It is not purpose: the form keeps a three-way Purchase, Refinance or Other answer apart from the finer-grained purpose list, and the two can disagree.","nullable":true},"urlaLoanPurposeName":{"type":"string","description":"urlaLoanPurposeCode decoded, for example Purchase or Refinance. Null for a code not recognized. Read only.","nullable":true},"urlaLoanPurposeOtherDescription":{"type":"string","description":"Free text when the form's loan purpose is Other.","nullable":true},"isRenovationLoan":{"type":"boolean","description":"True when the loan finances renovation work, for example a HomeStyle or FHA 203(k) loan.","nullable":true},"isLineOfCredit":{"type":"boolean","description":"True when the loan is a line of credit rather than a closed-end mortgage.","nullable":true},"isNewConstruction":{"type":"boolean","description":"True when the subject property is new construction.","nullable":true},"isEmployeeLoan":{"type":"boolean","description":"True when the borrower is an employee of the lender.","nullable":true},"isOptionArm":{"type":"boolean","description":"True when the loan is a payment-option adjustable rate mortgage.","nullable":true},"optionArmTeaserRate":{"type":"number","description":"The introductory rate on a payment-option ARM, as a percent.","format":"double","nullable":true},"higherPricedMortgageTypeCode":{"type":"string","description":"Raw code for the higher-priced or high-cost classification, for example None. Can be overridden; lock it with fieldLocks or the LOS recomputes it from the APR test.","nullable":true},"higherPricedMortgageTypeName":{"type":"string","description":"higherPricedMortgageTypeCode decoded, for example None or HPML. Null for a code not recognized. Read only.","nullable":true},"leadSource":{"type":"string","description":"Where the lead came from.","nullable":true},"totalMonthlyLiabilities":{"type":"number","description":"Total monthly liability payments across all borrowers, in dollars, which the LOS divides into income for the back-end ratio. Calculated by the LOS; a write is ignored. Summing the borrowers' liability amounts does not reproduce it, because the LOS leaves out liabilities marked paid off or omitted.","format":"double","nullable":true},"presentHousingExpense":{"type":"number","description":"The borrower's present total monthly housing expense, in dollars: the baseline the payment shock is measured against. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"paymentShock":{"$ref":"#/components/schemas/PaymentShock"},"fieldLocks":{"$ref":"#/components/schemas/LoanFieldLocks"},"trusts":{"type":"array","items":{"$ref":"#/components/schemas/LoanTrust"},"description":"Trusts that will hold title, at most two. Depending on your company's setup they are read from and written to the LOS, or kept in Henge only.","nullable":true},"titleHeldInTrust":{"type":"boolean","description":"Will title be held in a trust: true yes, false no, null not answered. Not sent to the LOS.","nullable":true},"finalVesting":{"type":"string","description":"The final vesting statement as it will read on title. Depending on your company's setup it is read from and written to the LOS, or kept in Henge only.","nullable":true},"aus":{"$ref":"#/components/schemas/LoanAusResult"},"rateLock":{"$ref":"#/components/schemas/LoanRateLock"},"temporaryBuydown":{"$ref":"#/components/schemas/LoanTemporaryBuydown"}},"additionalProperties":false,"description":"The loan's terms and figures: amount, type, purpose, property, borrowers, rate, lock, housing expense and qualification."},"FieldType":{"type":"object","properties":{"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A value chosen from a list in the LOS, with its code and display name. Also the base of records that carry an LOS id."},"SubjectPropertyAddress":{"type":"object","properties":{"propertyId":{"type":"string","description":"Identifier (GUID) of the property this address belongs to.","format":"uuid","nullable":true},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"The address of the loan's subject property."},"RefinanceInfo":{"type":"object","properties":{"cashOutAmount":{"type":"number","description":"Cash the borrower takes out, in dollars.","format":"double","nullable":true},"purpose":{"$ref":"#/components/schemas/FieldType"},"purposeOtherDescription":{"type":"string","description":"Free-text refinance purpose when the purpose is Other.","nullable":true}},"additionalProperties":false,"description":"Details that apply to a refinance loan."},"Assignments":{"type":"object","properties":{"loanOfficer":{"$ref":"#/components/schemas/Contact"},"loanAssistant":{"$ref":"#/components/schemas/Contact"},"loanProcessor":{"$ref":"#/components/schemas/Contact"},"referredBy":{"$ref":"#/components/schemas/Contact"}},"additionalProperties":false,"description":"The people working a loan: its loan officer, assistant, processor and the referring contact. Each is null when none is assigned."},"Contact":{"type":"object","properties":{"id":{"type":"string","description":"Id of the contact (GUID).","format":"uuid","nullable":true},"email":{"type":"string","description":"Email address.","nullable":true},"firstName":{"type":"string","description":"First name.","nullable":true},"lastName":{"type":"string","description":"Last name.","nullable":true},"agentName":{"type":"string","description":"Full name of the agent.","nullable":true},"roleName":{"type":"string","description":"Display name of the contact's role.","nullable":true},"agentNMLS":{"type":"string","description":"The agent's NMLS id.","nullable":true},"role":{"$ref":"#/components/schemas/ContactRole"},"phone":{"type":"string","description":"Phone number.","nullable":true},"mobilePhone":{"type":"string","description":"Mobile phone number.","nullable":true},"companyPhone":{"type":"string","description":"The agent's company phone number.","nullable":true},"zip":{"type":"string","description":"ZIP or postal code.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"street":{"type":"string","description":"Street address.","nullable":true},"companyNMLS":{"type":"string","description":"The agent's company NMLS id.","nullable":true}},"additionalProperties":false,"description":"A person on or tied to a loan, such as the referring agent."},"ContactRole":{"enum":["Other","Appraiser","Escrow","CreditReport","Title","MortgageInsurance","ListingAgent","SellingAgent","Builder","Underwriter","Investor","Servicing","BuyerAttorney","SellerAttorney","HomeOwnerInsurance","HazardInsurance","MarketingLead","Seller","Surveyor","LoanOfficer","Bank","Lender","Processor","CallCenterAgent","LoanOpener","Manager","Broker","BrokerRep","ECOA","Realtor","Mortgagee","HomeOwnerAssociation","BuyerAgent","ClosingAgent","FairHousingLending","HomeInspection","FloodProvider","CreditReportAgency2","CreditReportAgency3","Shipper","BrokerProcessor","Trustee","Funder","PostCloser","Insuring","CollateralAgent","DocDrawer","PropertyManagement","TitleUnderwriter","CreditAuditor","DisclosureDesk","JuniorProcessor","JuniorUnderwriter","LegalAuditor","LoanOfficerAssistant","Purchaser","QCCompliance","Secondary","PestInspection","Subservicer","ExternalSecondary","ExternalPostCloser","LoanPurchasePayee","AppraisalManagementCompany","Referral","Notary","TaxServicer","SupervisoryAppraiser","Attorney","PropertyInspector","CPATaxPreparer","LockDesk","MortgageServiceOrganization","Verifications","TaxCollector","TaxTranscripts"],"type":"string","description":"The role a contact plays on a loan. Each value names that role: Other (anything not listed), Appraiser, Escrow, CreditReport (credit agency), Title, MortgageInsurance, ListingAgent, SellingAgent, Builder, Underwriter, Investor, Servicing, BuyerAttorney, SellerAttorney, HomeOwnerInsurance (obsolete; use HazardInsurance), HazardInsurance (homeowner's insurance), MarketingLead, Seller, Surveyor, LoanOfficer, Bank, Lender, Processor, CallCenterAgent, LoanOpener, Manager, Broker, BrokerRep, ECOA, Realtor, Mortgagee, HomeOwnerAssociation, BuyerAgent, ClosingAgent, FairHousingLending, HomeInspection, FloodProvider, CreditReportAgency2, CreditReportAgency3, Shipper, BrokerProcessor (external processor), Trustee, Funder, PostCloser, Insuring, CollateralAgent, DocDrawer, PropertyManagement, TitleUnderwriter, CreditAuditor, DisclosureDesk, JuniorProcessor, JuniorUnderwriter, LegalAuditor, LoanOfficerAssistant, Purchaser, QCCompliance, Secondary, PestInspection, Subservicer, ExternalSecondary, ExternalPostCloser, LoanPurchasePayee, AppraisalManagementCompany, Referral, Notary, TaxServicer, SupervisoryAppraiser, Attorney, PropertyInspector, CPATaxPreparer, LockDesk, MortgageServiceOrganization, Verifications, TaxCollector and TaxTranscripts."},"PosBorrower":{"type":"object","properties":{"hdBorrowerId":{"type":"string","description":"Id of the borrower on this loan (GUID). Other endpoints take it as ownerBorrowerIds.","format":"uuid","nullable":true},"clientId":{"type":"string","description":"Id of the borrower's client record (GUID).","format":"uuid","nullable":true},"externalId":{"type":"string","description":"The borrower's (consumer) id in the LOS.","nullable":true},"externalLabel":{"type":"string","description":"A display label kept by Henge. Not sent to the LOS.","nullable":true},"externalApplicationId":{"type":"string","description":"Id of the LOS application (borrower pair) this person is on, used to match the person to the right pair in the LOS. A co-borrower carries its pair's. Null until the LOS has reported it.","nullable":true},"externalLegacyApplicationId":{"type":"string","description":"Id of the borrower pair's older-style application record in the LOS, kept for LOS writes. Null when it has not been read yet.","nullable":true},"firstName":{"type":"string","description":"Borrower's legal first name, as on their ID; sent to the LOS.","nullable":true},"lastName":{"type":"string","description":"Borrower's legal last name, as on their ID; sent to the LOS.","nullable":true},"middleName":{"type":"string","description":"Borrower's middle name or initial.","nullable":true},"suffixName":{"type":"string","description":"Name suffix, for example Jr, Sr or III.","nullable":true},"contacts":{"$ref":"#/components/schemas/Contacts"},"maritalStatus":{"$ref":"#/components/schemas/FieldType"},"citizenship":{"$ref":"#/components/schemas/FieldType"},"birthDate":{"type":"string","description":"Date of birth (ISO 8601 date).","nullable":true},"language":{"$ref":"#/components/schemas/Language"},"isMilitary":{"type":"boolean","description":"True when the borrower serves or has served in the military.","nullable":true},"currentAddress":{"$ref":"#/components/schemas/Residence"},"mailingAddress":{"$ref":"#/components/schemas/MailingAddress"},"previousAddresses":{"type":"array","items":{"$ref":"#/components/schemas/Residence"},"description":"Earlier residences, listed when the borrower has lived at the current address for a short time.","nullable":true},"ownedProperties":{"type":"array","items":{"$ref":"#/components/schemas/OwnedProperty"},"description":"Real estate the borrower owns.","nullable":true},"declaration":{"$ref":"#/components/schemas/Declaration"},"demographics":{"$ref":"#/components/schemas/Demographics"},"employments":{"type":"array","items":{"$ref":"#/components/schemas/Employment"},"description":"The borrower's employers, current and previous.","nullable":true},"otherIncomes":{"type":"array","items":{"$ref":"#/components/schemas/Income"},"description":"Income that does not come from an employer, such as Social Security or rental income.","nullable":true},"liabilities":{"type":"array","items":{"$ref":"#/components/schemas/PosLiability"},"description":"The borrower's debts.","nullable":true},"veteranDetail":{"$ref":"#/components/schemas/VeteranDetail"},"creditScores":{"type":"array","items":{"$ref":"#/components/schemas/PosCreditScore"},"description":"Credit scores on the borrower's file.","nullable":true},"hmdaApplicantCreditScore":{"$ref":"#/components/schemas/HmdaApplicantCreditScore"},"creditAuthorizationDate":{"type":"string","description":"Date the borrower authorized a credit check (ISO 8601 date). Null when they have not.","nullable":true},"isBeta":{"type":"boolean","description":"True when the borrower's account is flagged for beta features of the borrower app.","nullable":true},"fico":{"type":"integer","description":"The borrower's FICO score on file, as a whole number. Null when not set.","format":"int32","nullable":true},"softCreditExternalId":{"type":"string","description":"Id of the soft credit check recorded for the borrower in the LOS. Null when none.","nullable":true},"isPrimary":{"type":"boolean","description":"True for the primary borrower of the pair."},"borrowerType":{"type":"string","description":"The borrower's role on the loan, as a code, for example Borrower or CoSigner.","nullable":true},"assets":{"type":"array","items":{"$ref":"#/components/schemas/PosAsset"},"description":"The assets the borrower reports.","nullable":true},"numberOfDependents":{"type":"integer","description":"Number of people who depend on the borrower for support.","format":"int32","nullable":true},"dependentAges":{"type":"string","description":"Ages of the borrower's dependents, as entered (free text).","nullable":true},"ssn":{"type":"string","description":"Social Security number, digits only (dashes are removed when you send it). Sensitive: only some callers receive it.","nullable":true},"encryptedSsn":{"type":"string","description":"The Social Security number in encrypted form, for passing between Henge services. Do not rely on its format.","nullable":true},"pairId":{"type":"string","description":"The borrower pair this borrower is on. Set by the server; a co-borrower carries its pair's.","format":"uuid","nullable":true},"pairIndex":{"type":"integer","description":"The pair's position on the loan, 0 to 3; 0 is the primary pair.","format":"int32"},"vestingType":{"$ref":"#/components/schemas/BorrowerVestingType"},"coBorrower":{"allOf":[{"$ref":"#/components/schemas/PosBorrower"}],"description":"The co-borrower this borrower is paired with, in the same shape."}},"additionalProperties":false,"description":"A borrower on the loan: identity, contact details, addresses, employment, income, assets, liabilities, credit and declarations. A co-borrower is nested in coBorrower."},"Contacts":{"type":"object","properties":{"email":{"type":"string","description":"Email address.","nullable":true},"homePhone":{"type":"string","description":"Home phone number.","nullable":true},"mobilePhone":{"type":"string","description":"Mobile phone number.","nullable":true},"workPhone":{"type":"string","description":"Work phone number.","nullable":true}},"additionalProperties":false,"description":"How to reach a borrower."},"Language":{"type":"object","properties":{"code":{"type":"string","description":"Language code.","nullable":true},"otherDescription":{"type":"string","description":"Free-text language name when the code is Other.","nullable":true},"refuseToAnswer":{"type":"boolean","description":"True when the borrower chose not to answer."}},"additionalProperties":false,"description":"The language the borrower prefers."},"Residence":{"type":"object","properties":{"residencyDurationInMonths":{"type":"integer","description":"Months the borrower has lived at this address.","format":"int32","nullable":true},"residencyType":{"type":"string","description":"Whether the borrower owns, rents or lives rent-free at the address, as the LOS names it.","nullable":true},"monthlyRent":{"type":"number","description":"Monthly rent, in dollars.","format":"double","nullable":true},"startDate":{"type":"string","description":"Date the borrower moved in (ISO 8601 date).","nullable":true},"endDate":{"type":"string","description":"Date the borrower moved out (ISO 8601 date). Empty for the current address.","nullable":true},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A place the borrower lives or has lived, with how long and what they pay."},"MailingAddress":{"type":"object","properties":{"isTheSameAsCurrentAddress":{"type":"boolean","description":"True when the mailing address is the borrower's current residence."},"isTheSameAsSubjectPropertyAddress":{"type":"boolean","description":"True when the mailing address is the subject property."},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A borrower's mailing address, which can be flagged as the same as their current or subject property address."},"OwnedProperty":{"type":"object","properties":{"externalLabel":{"type":"string","description":"A display label kept by Henge. Not sent to the LOS.","nullable":true},"dispositionStatus":{"$ref":"#/components/schemas/FieldType"},"occupancy":{"$ref":"#/components/schemas/FieldType"},"intendedOccupancy":{"$ref":"#/components/schemas/FieldType"},"intendedOccupancyOtherDescription":{"type":"string","description":"Free-text description when intendedOccupancy is Other.","nullable":true},"marketValue":{"type":"number","description":"Market value of the property, in dollars.","format":"double","nullable":true},"monthlyRentalGross":{"type":"number","description":"Gross monthly rental income from the property, in dollars.","format":"double"},"maintenanceExpense":{"type":"number","description":"Maintenance expense for the property, in dollars.","format":"double","nullable":true},"monthlyRentalNet":{"type":"number","description":"Monthly rental income net of the property's expenses, in dollars.","format":"double","nullable":true},"lienBalance":{"type":"number","description":"Unpaid balance of the liens on the property, in dollars, as entered.","format":"double","nullable":true},"lienMonthlyPayment":{"type":"number","description":"Monthly payment on the liens on the property, in dollars, as entered.","format":"double","nullable":true},"isSubject":{"type":"boolean","description":"True when this is the subject property of the loan."},"isCurrent":{"type":"boolean","description":"True when this is the borrower's current residence."},"liabilities":{"type":"array","items":{"$ref":"#/components/schemas/PosLiability"},"description":"The mortgages tied to this property. Null or empty when none.","nullable":true},"liability":{"$ref":"#/components/schemas/PosLiability"},"tieId":{"type":"string","description":"What to send as a liability's securedPropertyId to tie it to this property: the LOS id, or the address before the loan is in the LOS. Recomputed on every read.","nullable":true},"securingLiabilityIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Ids (GUIDs) of the stored liabilities tied to this property. Recomputed on every read; a save does not set it.","nullable":true},"derivedLienBalance":{"type":"number","description":"Sum of the tied liabilities' balances, in dollars; null when no liability is tied. lienBalance stays what was entered.","format":"double","nullable":true},"derivedLienMonthlyPayment":{"type":"number","description":"Sum of the tied liabilities' monthly payments, in dollars; null when no liability is tied or none has a payment.","format":"double","nullable":true},"hasLienDifference":{"type":"boolean","description":"True when an entered lien figure disagrees with the tied liabilities. It is reported, never corrected."},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A property the borrower owns (real estate owned): where it is, how it is used, its value and rent, and the mortgages tied to it."},"PosLiability":{"type":"object","properties":{"amount":{"type":"number","description":"Unpaid balance, in dollars.","format":"double"},"monthlyPayment":{"type":"number","description":"Monthly payment, in dollars.","format":"double","nullable":true},"remainingMonths":{"type":"integer","description":"Months left on the debt. Null when the file does not say.","format":"int32","nullable":true},"isPaidOffAtClosing":{"type":"boolean","description":"True when the debt will be paid off at closing. Null leaves the LOS's value alone.","nullable":true},"isExcludedFromRatios":{"type":"boolean","description":"True when the payment is left out of the debt-to-income ratios. Null leaves the LOS's value alone.","nullable":true},"accountNumber":{"type":"string","description":"Account number of the debt, as reported.","nullable":true},"isExpense":{"type":"boolean","description":"True when the row is an expense rather than a debt, for example in an export."},"temporaryId":{"type":"string","description":"A client-chosen id that lets a save match a new row to the id the LOS assigns. Not stored as a field.","nullable":true},"isDeleted":{"type":"boolean","description":"Set true on a save to delete the LOS record named by externalId."},"borrowerExternalId":{"$ref":"#/components/schemas/BorrowerExternalId"},"borrowerExternalIds":{"type":"array","items":{"$ref":"#/components/schemas/BorrowerExternalId"},"description":"Every borrower who owns the debt. When empty, the borrower in borrowerExternalId owns it.","nullable":true},"cosmosDbLiabilityId":{"type":"string","description":"Id (GUID) of the matching liability on the loan, which links this entry to the liabilities endpoints.","format":"uuid"},"creditorName":{"type":"string","description":"Name of the creditor or lender.","nullable":true},"description":{"type":"string","description":"Free-text description of the debt.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A debt listed on the loan application."},"BorrowerExternalId":{"type":"object","properties":{"externalId":{"type":"string","description":"The borrower's id in the LOS.","nullable":true},"isPrimary":{"type":"boolean","description":"True for the primary borrower."}},"additionalProperties":false,"description":"Identifies a borrower (consumer) in the LOS."},"Declaration":{"type":"object","properties":{"hasIntentToOccupy":{"type":"boolean","description":"Borrower intends to occupy the subject property as their primary residence."},"isHomeownerPastThreeYears":{"type":"boolean","description":"Borrower has owned a home in the past three years."},"priorPropertyUsage":{"$ref":"#/components/schemas/FieldType"},"priorPropertyTitle":{"$ref":"#/components/schemas/FieldType"},"isBuyerSellerSpecialRelationship":{"type":"boolean","description":"Borrower has a family or business relationship with the seller of the subject property."},"hasUndisclosedBorrowedFunds":{"type":"boolean","description":"Borrower is borrowing money for this transaction (for example the down payment) that is not disclosed elsewhere in the application."},"undisclosedBorrowedFundsAmount":{"type":"number","description":"Amount of that borrowed money, in dollars.","format":"double","nullable":true},"hasUndisclosedCreditApplication":{"type":"boolean","description":"Borrower has applied, or will apply before closing, for other credit that is not disclosed."},"hasUndisclosedMortgageApplication":{"type":"boolean","description":"Borrower has applied for another mortgage on a property that is not disclosed."},"hasCleanEnergyLien":{"type":"boolean","description":"The subject property is subject to a lien that takes priority, such as a clean energy lien."},"isUndisclosedComakerOfNote":{"type":"boolean","description":"Borrower is a co-maker or endorser on a note whose debt is not disclosed."},"hasOutstandingJudgements":{"type":"boolean","description":"Borrower has outstanding judgments against them."},"isDelinquent":{"type":"boolean","description":"Borrower is delinquent or in default on a federal debt or loan."},"isPartyToLawsuit":{"type":"boolean","description":"Borrower is a party to a lawsuit."},"hasDeedInLieu":{"type":"boolean","description":"Borrower has transferred title to a property in lieu of foreclosure in the past seven years."},"hasShortSale":{"type":"boolean","description":"Borrower has completed a pre-foreclosure sale or short sale in the past seven years."},"hasForeclosure":{"type":"boolean","description":"Borrower has had a property foreclosed upon in the past seven years."},"hasBankruptcy":{"type":"boolean","description":"Borrower has declared bankruptcy in the past seven years."},"bankruptcyTypes":{"type":"array","items":{"type":"string"},"description":"The type (chapter) of each bankruptcy declared, when hasBankruptcy is true.","nullable":true},"hasHousingCounselingConsent":{"type":"boolean","description":"Housing counseling consent recorded for the borrower."}},"additionalProperties":false,"description":"A borrower's answers to the declarations on the loan application (Section 5 of the URLA)."},"Demographics":{"type":"object","properties":{"ethnicity":{"$ref":"#/components/schemas/Ethnicity"},"gender":{"$ref":"#/components/schemas/FieldType"},"races":{"type":"array","items":{"$ref":"#/components/schemas/Race"},"description":"The races the borrower reported.","nullable":true},"hasRefusedToDiscloseRace":{"type":"boolean","description":"True when the borrower chose not to provide their race."},"hasRefusedToDiscloseGender":{"type":"boolean","description":"True when the borrower chose not to provide their gender."},"hasRefusedToDiscloseEthnicity":{"type":"boolean","description":"True when the borrower chose not to provide their ethnicity."},"applicationTaken":{"$ref":"#/components/schemas/FieldType"},"isRaceBasedOnVisualOrSurname":{"type":"boolean","description":"True when the race was recorded from visual observation or surname rather than provided by the borrower."},"isGenderBasedOnVisualOrSurname":{"type":"boolean","description":"True when the gender was recorded from visual observation or surname rather than provided by the borrower."},"isEthnicityBasedOnVisualOrSurname":{"type":"boolean","description":"True when the ethnicity was recorded from visual observation or surname rather than provided by the borrower."}},"additionalProperties":false,"description":"The government monitoring (HMDA) information a borrower provided or declined to provide: ethnicity, race and gender."},"Ethnicity":{"type":"object","properties":{"origins":{"type":"array","items":{"$ref":"#/components/schemas/EthnicityOrigin"},"description":"The origins the borrower selected, for example Mexican or Puerto Rican.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"The borrower's ethnicity (HMDA), with the origins they selected."},"EthnicityOrigin":{"type":"object","properties":{"otherDescription":{"type":"string","description":"Free-text origin the borrower gave when the origin is Other.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One ethnicity origin the borrower selected."},"Race":{"type":"object","properties":{"raceDesignations":{"type":"array","items":{"$ref":"#/components/schemas/RaceDesignation"},"description":"The designations the borrower selected within this race, for example Asian Indian or Chinese.","nullable":true},"additionalDescription":{"type":"string","description":"Free-text detail the borrower gave about this race.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A race the borrower reported (HMDA), with the designations they selected."},"RaceDesignation":{"type":"object","properties":{"otherDescription":{"type":"string","description":"Free-text designation the borrower gave when the designation is Other.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One race designation the borrower selected."},"Employment":{"type":"object","properties":{"externalId":{"type":"string","description":"Id of the employment record in the LOS.","nullable":true},"isCurrent":{"type":"boolean","description":"True for a current job, false for a previous one."},"isSelfEmployed":{"type":"boolean","description":"True when the borrower is self-employed in this job."},"ownershipShare":{"$ref":"#/components/schemas/FieldType"},"isPrimary":{"type":"boolean","description":"True for the borrower's primary employment. Null when not stated.","nullable":true},"name":{"type":"string","description":"Name of the employer.","nullable":true},"position":{"type":"string","description":"The borrower's job title.","nullable":true},"address":{"$ref":"#/components/schemas/PosAddress"},"startDate":{"type":"string","description":"Date the borrower started this job (ISO 8601 date).","nullable":true},"endDate":{"type":"string","description":"Date the borrower left this job (ISO 8601 date). Empty for a current job.","nullable":true},"professionStartDate":{"type":"string","description":"Date the borrower started working in this line of work (ISO 8601 date).","nullable":true},"lineOfWorkInMonths":{"type":"integer","description":"Months the borrower has worked in this line of work.","format":"int32","nullable":true},"businessPhone":{"type":"string","description":"The employer's phone number.","nullable":true},"email":{"type":"string","description":"Work email address for this employment.","nullable":true},"monthlyIncomeAmount":{"type":"number","description":"Total monthly income from this employment, in dollars.","format":"double","nullable":true},"incomes":{"type":"array","items":{"$ref":"#/components/schemas/Income"},"description":"The income components from this employment, such as base pay, overtime or bonus.","nullable":true}},"additionalProperties":false,"description":"One job the borrower holds or has held, with the income it pays."},"PosAddress":{"type":"object","properties":{"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A postal address."},"Income":{"type":"object","properties":{"amount":{"type":"number","description":"Income amount, in dollars per month.","format":"double"},"otherDescription":{"type":"string","description":"Free-text description when the income type is Other.","nullable":true},"isAssociatedWithEmployment":{"type":"boolean","description":"True when the income belongs to an employment, such as overtime or bonus, rather than standing alone."},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One income amount, either tied to an employment or standing alone."},"VeteranDetail":{"type":"object","properties":{"isVeteran":{"type":"boolean","description":"True when the borrower is a veteran."},"activeDuty":{"type":"boolean","description":"True when the borrower is currently on active duty."},"activeDutyExpirationDate":{"type":"string","description":"Date the borrower's current active duty ends (ISO 8601 date).","nullable":true},"retiredDischargedOrSeparated":{"type":"boolean","description":"True when the borrower has retired, been discharged or separated from service."},"reserveNationalGuardNeverActivated":{"type":"boolean","description":"True when the borrower is in the Reserves or National Guard and has never been activated."},"isSurvivingSpouseOfVeteran":{"type":"boolean","description":"True when the borrower is the surviving spouse of a veteran."},"serviceType":{"$ref":"#/components/schemas/FieldType"}},"additionalProperties":false,"description":"A borrower's military service details, relevant to VA loans."},"PosCreditScore":{"type":"object","properties":{"source":{"type":"string","description":"Where the score came from, such as the credit agency that reported it.","nullable":true},"score":{"type":"string","description":"The score value, as text.","nullable":true},"creditScoreImpairmentType":{"type":"string","description":"Why there is no usable score, when there is none: NotApplicable, NoScore, ThinFile or Other.","nullable":true},"isBrokerEntered":{"type":"boolean","description":"True when a broker typed the score in rather than it being read from a credit agency. A broker-entered score is never sent to the LOS as an agency score."}},"additionalProperties":false,"description":"One credit score on a borrower's file."},"HmdaApplicantCreditScore":{"type":"object","properties":{"reliedOnCreditScore":{"type":"integer","description":"The credit score relied on in the credit decision for this applicant; null when none.","format":"int32","nullable":true},"reliedOnCreditScoreMode":{"type":"string","description":"Whether the relied-on score is the applicant's individual score or a single score for the loan.","nullable":true},"reliedOnCreditScoreModelType":{"type":"string","description":"The credit scoring model of the relied-on score, as a code.","nullable":true}},"additionalProperties":false,"description":"The credit score relied on for an applicant, as reported for HMDA."},"PosAsset":{"type":"object","properties":{"institutionName":{"type":"string","description":"Name of the bank or institution that holds the asset.","nullable":true},"accountNumber":{"type":"string","description":"Account number, as entered.","nullable":true},"amount":{"type":"number","description":"Current balance or value, in dollars.","format":"double"},"accountName":{"type":"string","description":"Name of the account.","nullable":true},"accountHolderName":{"type":"string","description":"Name of the account holder.","nullable":true},"source":{"type":"string","description":"How the asset got on the loan, for example entered manually, linked through the bank connection or synced from the LOS.","nullable":true},"giftSource":{"type":"string","description":"Who the gift came from, for a gift asset.","nullable":true},"temporaryId":{"type":"string","description":"A client-chosen id that lets a save match a new row to the id the LOS assigns. Not stored as a field.","nullable":true},"assetAccountId":{"type":"string","description":"Id (GUID) of the asset account this asset belongs to.","format":"uuid"},"isDeleted":{"type":"boolean","description":"Set true on a save to delete the LOS record named by externalId."},"ownerBorrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The hdBorrowerIds of the asset's owners. Empty means the primary borrower. A new asset is added in the LOS under the first owner named; the full list stays in Henge.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"An asset the borrower reports: an account balance, a gift or another asset."},"BorrowerVestingType":{"enum":["Individual","Trustee","Settlor","SettlorTrustee","TitleOnly","NonTitleSpouse","Other"],"type":"string","description":"How a person on the loan takes title: Individual (as themselves), Trustee, Settlor, SettlorTrustee (settlor and trustee of the same trust), TitleOnly (on title but not a borrower), NonTitleSpouse (a spouse who is not on title) or Other."},"ProposedHousingExpense":{"type":"object","properties":{"firstMortgagePrincipalAndInterest":{"type":"number","description":"Principal and interest on this mortgage, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"otherMortgageLoanPrincipalAndInterest":{"type":"number","description":"Principal and interest on subordinate financing, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"hazardInsurance":{"type":"number","description":"Monthly hazard insurance, in dollars. Calculated by the LOS from hazardInsuranceBasis.","format":"double","nullable":true},"propertyTax":{"type":"number","description":"Monthly property taxes, in dollars. Calculated by the LOS from propertyTaxBasis.","format":"double","nullable":true},"mortgageInsurance":{"type":"number","description":"Monthly mortgage insurance, in dollars. Can be overridden; lock it in fieldLocks or the LOS recalculates it.","format":"double","nullable":true},"hoa":{"type":"number","description":"Monthly homeowners association dues, in dollars.","format":"double","nullable":true},"other":{"type":"number","description":"Other monthly taxes and expenses, in dollars. Can be overridden; lock it in fieldLocks or the LOS recalculates it.","format":"double","nullable":true},"total":{"type":"number","description":"The total proposed monthly housing payment (principal, interest, taxes and insurance), in dollars. Calculated by the LOS; a write is ignored. It is not simply the sum of the components above, so read it rather than adding them up.","format":"double","nullable":true},"hazardInsuranceBasis":{"$ref":"#/components/schemas/EscrowExpenseBasis"},"propertyTaxBasis":{"$ref":"#/components/schemas/EscrowExpenseBasis"}},"additionalProperties":false,"description":"The proposed monthly housing payment, component by component. Every component is nullable: a real zero is returned as 0, so an absent value stays distinguishable from a zero one."},"EscrowExpenseBasis":{"type":"object","properties":{"baseTypeCode":{"type":"string","description":"The LOS code for the base amount the percentage applies to. baseTypeName gives its name.","nullable":true},"baseTypeName":{"type":"string","description":"The name of the base amount (for example \"Total Loan Amount\"), or null for a code with no known name. Read only.","nullable":true},"baseAmount":{"type":"number","description":"The base amount in dollars, as the LOS calculated it. Read only: a value sent is ignored.","format":"double","nullable":true},"ratePercent":{"type":"number","description":"Annual percentage applied to `baseAmount`.","format":"double","nullable":true},"monthlyAddend":{"type":"number","description":"Flat monthly amount added on top of the percentage result.","format":"double","nullable":true},"reserveMonths":{"type":"integer","description":"Months of this expense collected as reserves at closing (hazard insurance and property tax only).\r\nThe loan system derives a default and takes an override only with its lock flag, which the housing write sends with it.\r\nRead from the loan; the loan form save never writes it.","format":"int32","nullable":true},"prepaidMonths":{"type":"integer","description":"Months of this expense prepaid at closing (hazard insurance only).","format":"int32","nullable":true}},"additionalProperties":false,"description":"How the LOS works out one escrowed housing expense: a percentage of a chosen base amount plus a flat monthly amount, for example hazard insurance as Total Loan Amount x 0.500% + $0.00."},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Id of the custom field.","nullable":true},"code":{"type":"string","description":"Short code of the custom field.","nullable":true},"externalId":{"type":"string","description":"Id of the field in the LOS.","nullable":true},"name":{"type":"string","description":"Display name of the custom field.","nullable":true},"value":{"type":"string","description":"The value stored in the field, as text.","nullable":true}},"additionalProperties":false,"description":"A custom field configured on the loan, with its value."},"DownPaymentSource":{"type":"object","properties":{"amount":{"type":"number","description":"Amount from this source, in dollars.","format":"double"},"source":{"type":"string","description":"The kind of source, for example savings, gift or sale of a property.","nullable":true},"explanation":{"type":"string","description":"Free-text explanation of the source, when one is needed.","nullable":true}},"additionalProperties":false},"LtvRatios":{"type":"object","properties":{"baseLTVRatio":{"type":"number","description":"Loan-to-value ratio on the base loan amount, as a percent.","format":"double","nullable":true},"grossLTVRatio":{"type":"number","description":"Loan-to-value ratio on the loan amount including financed upfront fees, as a percent.","format":"double","nullable":true},"baseCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio across all liens on the base loan amount, as a percent.","format":"double","nullable":true},"grossCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio across all liens including financed upfront fees, as a percent.","format":"double","nullable":true},"baseHomeEquityCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio counting the full credit limit of any home equity line, on the base loan amount, as a percent.","format":"double","nullable":true},"grossHomeEquityCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio counting the full credit limit of any home equity line, including financed upfront fees, as a percent.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's loan-to-value ratios, as percents."},"Qualification":{"type":"object","properties":{"housingExpenseRatio":{"type":"number","description":"Front-end ratio (housing expense to income), as a percent.","format":"double","nullable":true},"totalDebtExpenseRatio":{"type":"number","description":"Back-end ratio (total debt to income), as a percent.","format":"double","nullable":true},"totalMonthlyIncomeAmount":{"type":"number","description":"Total qualifying monthly income, in dollars.","format":"double","nullable":true},"qualifyingRatePercent":{"type":"number","description":"The rate the borrower is qualified at, as a percent. It is the note rate unless overridden; lock it in fieldLocks or the LOS recomputes it.","format":"double","nullable":true},"qualifyingTermInMonths":{"type":"integer","description":"The term in months the qualifying payment is amortized over.","format":"int32","nullable":true},"qualifyingTermCalculationTypeCode":{"type":"string","description":"Raw code for how the qualifying term is chosen, for example Standard Term.","nullable":true},"qualifyingTermCalculationTypeName":{"type":"string","description":"qualifyingTermCalculationTypeCode decoded, for example Standard Term. Null for a code not recognized. Read only.","nullable":true},"isQualifyingRateInterestOnly":{"type":"boolean","description":"True when the qualifying payment is interest-only.","nullable":true},"qualifyingPrincipalAndInterest":{"type":"number","description":"Qualifying principal and interest, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"qualifyingTotalPayment":{"type":"number","description":"Qualifying total monthly payment (principal, interest, taxes and insurance), in dollars. Calculated by the LOS; a write is ignored.","format":"double","nullable":true}},"additionalProperties":false,"description":"The ratios and payment figures the borrower is qualified on. The qualifying payment can differ from the proposed one when a qualifying rate or term overrides the note rate or term."},"SubjectPropertyRentalIncome":{"type":"object","properties":{"estimatedMonthlyMarketRent":{"type":"number","description":"Estimated market rent of the subject property per month, in dollars.","format":"double","nullable":true}},"additionalProperties":false,"description":"Rental income of the subject property."},"LoanLevelCredit":{"type":"object","properties":{"loanLevelCreditScoreValue":{"type":"string","description":"The credit score relied on for the loan, as reported for HMDA, as text.","nullable":true},"loanLevelCreditScoreSelectionMethodType":{"type":"string","description":"Whether the relied-on score is each applicant's individual score or a single score for the loan.","nullable":true},"creditScoreModelNameType":{"type":"string","description":"The credit scoring model of the relied-on score, as a code.","nullable":true},"creditScoreImpairmentType":{"type":"string","description":"The credit score impairment type recorded on the loan, as text.","nullable":true},"creditScoreCategoryType":{"type":"string","description":"The credit score category recorded on the loan, as text.","nullable":true},"creditScoreType1":{"type":"string","description":"Loan-level credit score of type 1 as held on the loan, as text; empty when none.","nullable":true},"creditScoreType2":{"type":"string","description":"Loan-level credit score of type 2 as held on the loan, as text; empty when none.","nullable":true},"creditScoreType2Soft":{"type":"string","description":"Loan-level credit score of type 2 from a soft pull, as text; empty when none.","nullable":true},"creditScore2Avg":{"type":"string","description":"Average of the type 2 scores, as text; empty when none.","nullable":true},"creditScoreType3":{"type":"string","description":"Loan-level credit score of type 3 as held on the loan, as text; empty when none.","nullable":true},"hmdaMultipleCreditScoresUsedIndicator":{"type":"boolean","description":"True when more than one credit score was used in the credit decision, as reported for HMDA.","nullable":true},"reliedOnCreditScoreSource":{"type":"string","description":"The source the relied-on credit score is calculated from: \"Type 2\" when it is that source, otherwise the value\r\nas the loan system holds it. The relied-on score is calculated from it unless it is Other.","nullable":true},"reliedOnCreditScoreModelName":{"type":"string","description":"The relied-on score's model name text (`sReliedOnCreditScoreModelName`).","nullable":true},"reliedOnCreditScoreSingleBorrower":{"type":"string","description":"Whose score is the single relied-on score (`sReliedOnCreditScoreSingleHmdaReportAsT`): Borrower or Coborrower.","nullable":true}},"additionalProperties":false,"description":"The credit score the loan relies on and how it was chosen, as held on the loan."},"LoanCredit":{"type":"object","properties":{"source":{"type":"string","description":"Report when the facts come from a credit report, Manual when they were entered by hand; null when the loan carries no credit at all.","nullable":true},"hasCreditReport":{"type":"boolean","description":"True when a credit report is on the loan, whether ordered through Henge or imported through the Loan Origination System."},"representativeScore":{"type":"integer","description":"The score pricing uses: the lowest representative score across the borrowers, by the usual rule\r\n(middle of three bureau scores, lower of two, the one when there is one). From the report when there\r\nis one, else from the broker's entry.","format":"int32","nullable":true},"pricingScore":{"type":"integer","description":"The score pricing uses (the lowest borrower's) when the scores are a manual entry; null otherwise.","format":"int32","nullable":true},"qualifyingScore":{"type":"integer","description":"The score qualification and the pre-approval check use: the average of the borrowers' middle scores, rounded half up. It differs from representativeScore (the lowest borrower's, used for pricing) on a loan with more than one borrower. Null when there are no scores.","format":"int32","nullable":true},"reports":{"type":"array","items":{"$ref":"#/components/schemas/LoanCreditReport"},"description":"Every credit report order on the loan, newest first, failed and cancelled ones included with their status. May be absent.","nullable":true},"mortgageLates":{"$ref":"#/components/schemas/MortgageLates"},"publicRecords":{"$ref":"#/components/schemas/CreditPublicRecords"},"manual":{"$ref":"#/components/schemas/ManualCreditEntry"},"reissue":{"$ref":"#/components/schemas/LoanCreditReissue"}},"additionalProperties":false,"description":"The loan's credit facts and where they come from: a credit report, or what a broker entered by hand to price and qualify before a report is on the loan. Rebuilt on every read. Once the loan has a report it always wins, and the broker's entry is kept with isCurrent false; broker-entered scores are never treated as bureau scores."},"LoanCreditReport":{"type":"object","properties":{"orderId":{"type":"string","description":"Id (GUID) of the credit report order.","format":"uuid"},"reportNumber":{"type":"string","description":"The agency's report number; null on a failed pull that was never issued one.","nullable":true},"status":{"type":"string","description":"The order's status by name, including Failed and Cancelled.","nullable":true},"isCurrent":{"type":"boolean","description":"True for the one order the rest of the platform reads scores from."},"source":{"type":"string","description":"How the order got onto the loan: Placed (ordered through Henge), Imported or Tracked.","nullable":true},"pullType":{"type":"string","description":"`Soft` or `Hard`; null when not known.","nullable":true},"agency":{"type":"string","description":"Name of the credit reporting agency.","nullable":true},"orderedAtUtc":{"type":"string","description":"When the report was ordered, in UTC (ISO 8601).","format":"date-time","nullable":true},"failureReason":{"type":"string","description":"The vendor's reason, on a failed order.","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/OrdersCreditReportBorrower"},"description":"The borrowers the report covers, with the bureau scores returned for each.","nullable":true},"averageScore":{"type":"integer","description":"Average of the borrowers' middle scores: what qualification uses.","format":"int32","nullable":true},"pricingScore":{"type":"integer","description":"The lowest borrower's middle score: what pricing uses.","format":"int32","nullable":true},"referenceNumbers":{"type":"array","items":{"type":"string"},"description":"The agency's reference (file) numbers of the report; more than one when separate reports were reissued for separate borrowers.","nullable":true},"vaultDocumentId":{"type":"string","description":"Id of the loan document that holds the report; null when none was filed.","format":"uuid","nullable":true},"liabilityImport":{"$ref":"#/components/schemas/OrdersCreditReportLiabilityImport"}},"additionalProperties":false,"description":"One credit report order as the loan shows it: which pull, how it stands and what it returned. It never holds a login."},"OrdersCreditReportBorrower":{"type":"object","properties":{"borrowerId":{"type":"string","description":"The borrower's identifier on the loan, when the pull was matched to one.","format":"uuid","nullable":true},"name":{"type":"string","description":"The borrower's name as on the report.","nullable":true},"experian":{"type":"integer","description":"Null when the bureau returned no score for this borrower.","format":"int32","nullable":true},"transUnion":{"type":"integer","description":"The TransUnion score; null when the bureau returned none for this borrower.","format":"int32","nullable":true},"equifax":{"type":"integer","description":"The Equifax score; null when the bureau returned none for this borrower.","format":"int32","nullable":true},"score":{"type":"integer","description":"The borrower's single score derived from the bureau scores; null with no scores.","format":"int32","nullable":true}},"additionalProperties":false,"description":"One borrower covered by a credit report, with the bureau scores it returned."},"OrdersCreditReportLiabilityImport":{"type":"object","properties":{"outcome":{"type":"string","description":"What the liability import did, as a short status word.","nullable":true},"imported":{"type":"integer","description":"Number of liabilities imported; null when none were attempted.","format":"int32","nullable":true},"message":{"type":"string","description":"An explanation of the outcome, such as a warning or the reason the import failed.","nullable":true}},"additionalProperties":false,"description":"What importing the report's liabilities into the loan did."},"MortgageLates":{"type":"object","properties":{"x30":{"type":"integer","description":"Mortgage payments 30 days late.","format":"int32","nullable":true},"x60":{"type":"integer","description":"Mortgage payments 60 days late.","format":"int32","nullable":true},"x90":{"type":"integer","description":"Mortgage payments 90 days late.","format":"int32","nullable":true},"x120":{"type":"integer","description":"Mortgage payments 120 days late.","format":"int32","nullable":true},"x150":{"type":"integer","description":"Mortgage payments 150 days late.","format":"int32","nullable":true},"rollingX30":{"type":"integer","description":"Mortgage payments 30 days late, counting rolling lates.","format":"int32","nullable":true},"rollingX60":{"type":"integer","description":"Mortgage payments 60 days late, counting rolling lates.","format":"int32","nullable":true},"rollingX90":{"type":"integer","description":"Mortgage payments 90 days late, counting rolling lates.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Counts of mortgage payments made late in the last 12 months. The x30 to x150 counts treat rolling lates as not allowed; the rollingX counts treat them as allowed. Null means not stated, 0 means none."},"CreditPublicRecords":{"type":"object","properties":{"foreclosure":{"$ref":"#/components/schemas/CreditPublicRecord"},"chapter7":{"$ref":"#/components/schemas/CreditPublicRecord"},"chapter13":{"$ref":"#/components/schemas/CreditPublicRecord"}},"additionalProperties":false,"description":"Foreclosure/NOD, Chapter 7 and Chapter 13 history."},"CreditPublicRecord":{"type":"object","properties":{"has":{"type":"boolean","description":"True when the borrower has this kind of public record."},"fileMonth":{"type":"integer","description":"1 to 12.","format":"int32","nullable":true},"fileYear":{"type":"integer","description":"Year the record was filed, four digits; null when not known.","format":"int32","nullable":true},"status":{"type":"string","description":"NotSatisfied, Discharged or Dismissed. Required when has is true.","nullable":true},"satisfiedMonth":{"type":"integer","description":"1 to 12.","format":"int32","nullable":true},"satisfiedYear":{"type":"integer","description":"Year the record was satisfied, four digits; null when it has not been or is not known.","format":"int32","nullable":true}},"additionalProperties":false,"description":"One public record: whether the borrower has one, when it was filed, its status and when it was satisfied."},"ManualCreditEntry":{"type":"object","properties":{"isCurrent":{"type":"boolean","description":"False once a credit report supersedes the entry, or one was on the loan before it was saved without being corrected by it: the entry is kept, but the report's values are current."},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/ManualCreditBorrowerScores"},"description":"Bureau scores per borrower: the borrower first, then the co-borrower when one was entered.","nullable":true},"mortgageLates":{"$ref":"#/components/schemas/MortgageLates"},"publicRecords":{"$ref":"#/components/schemas/CreditPublicRecords"},"enteredAtUtc":{"type":"string","description":"When the broker saved the entry, in UTC (ISO 8601).","format":"date-time"},"enteredBy":{"type":"string","description":"Id of the user who saved the entry.","format":"uuid","nullable":true},"enteredByName":{"type":"string","description":"Name of the user who saved the entry.","nullable":true},"supersededAtUtc":{"type":"string","description":"When a report replaced the entry, and the report's number.","format":"date-time","nullable":true},"supersededByReportId":{"type":"string","description":"The number of the credit report that replaced the entry; null while the entry is current.","nullable":true}},"additionalProperties":false,"description":"What a broker entered by hand, and whether it is still what the loan goes by."},"ManualCreditBorrowerScores":{"type":"object","properties":{"borrowerId":{"type":"string","description":"Id of the borrower on the loan the scores belong to, when the loan had one.","format":"uuid","nullable":true},"isCoBorrower":{"type":"boolean","description":"True for the co-borrower's scores, false for the borrower's."},"experian":{"type":"integer","description":"The Experian score the broker entered; null when none was entered.","format":"int32","nullable":true},"transUnion":{"type":"integer","description":"The TransUnion score the broker entered; null when none was entered.","format":"int32","nullable":true},"equifax":{"type":"integer","description":"The Equifax score the broker entered; null when none was entered.","format":"int32","nullable":true},"representativeScore":{"type":"integer","description":"Middle of three, lower of two, the one when there is one; null when none were entered.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Broker-entered bureau scores for one borrower. Stored and reported as broker-entered, never as a bureau score."},"LoanCreditReissue":{"type":"object","properties":{"agencyId":{"type":"string","description":"Id (GUID) of the credit reporting agency the report was reissued from.","format":"uuid"},"agencyName":{"type":"string","description":"Name of the credit reporting agency.","nullable":true},"agencyDuCode":{"type":"string","description":"The agency's DU credit provider code.","nullable":true},"reportType":{"type":"string","description":"\"HardPull\" or \"SoftPull\".","nullable":true},"reissuedTimestamp":{"type":"string","description":"When the report was reissued, in UTC (ISO 8601).","format":"date-time"},"reissuedBy":{"type":"string","description":"Id of the user who reissued the report; null when unknown.","format":"uuid","nullable":true},"reissuedByName":{"type":"string","description":"Name of the user who reissued the report.","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/LoanCreditReissueBorrower"},"description":"The borrowers the reissue landed for, each with the agency's reference number.","nullable":true}},"additionalProperties":false,"description":"The read-only view of the loan's latest credit report reissue: the agency, when and by whom, and the reference numbers. The agency login name, account id and password are never returned."},"LoanCreditReissueBorrower":{"type":"object","properties":{"borrowerId":{"type":"string","description":"Id (GUID) of the borrower on the loan.","format":"uuid"},"referenceNumber":{"type":"string","description":"The agency's reference (file) number of the report for this borrower.","nullable":true}},"additionalProperties":false,"description":"One borrower of a reissue: the borrower on the loan and the agency's reference number for them."},"PaymentShock":{"type":"object","properties":{"amount":{"type":"number","description":"Dollar increase over the present housing payment.","format":"double","nullable":true},"percent":{"type":"number","description":"Increase as a percentage of the present housing payment.","format":"double","nullable":true}},"additionalProperties":false,"description":"The jump from the borrower's present housing payment to the proposed one. Calculated by the LOS; read only."},"LoanFieldLocks":{"type":"object","properties":{"loanAmount":{"type":"boolean","description":"True when the loan amount is locked, so a change to the purchase price or down payment does not recalculate it.","nullable":true},"qualifyingRate":{"type":"boolean","description":"True when the qualifying rate is locked against its formula.","nullable":true},"mortgageInsurance":{"type":"boolean","description":"True when the monthly mortgage insurance is locked against the insurance schedule.","nullable":true},"otherHousingExpense":{"type":"boolean","description":"True when the other housing expense is locked.","nullable":true},"estimatedClosingDate":{"type":"boolean","description":"True when the estimated closing date is locked, so a status change does not recalculate it.","nullable":true},"higherPricedMortgageType":{"type":"boolean","description":"True when the higher-priced mortgage result is locked against the APR test.","nullable":true}},"additionalProperties":false,"description":"Which figures are locked in the LOS. A locked figure keeps the value it was given; an unlocked one is recalculated by the LOS from its inputs."},"LoanTrust":{"type":"object","properties":{"id":{"type":"string","description":"Stable id for the trust on this loan. Assigned on save when omitted.","format":"uuid","nullable":true},"name":{"type":"string","description":"The trust's exact name, including any amendment and restatement dates, as it will appear on title.","nullable":true},"classification":{"$ref":"#/components/schemas/LoanTrustClassification"},"establishedDate":{"type":"string","description":"The date the trust was established.","format":"date","nullable":true},"amendedDate":{"type":"string","description":"The date of the latest amendment or restatement, if any.","format":"date","nullable":true},"stateCode":{"type":"string","description":"Two-letter code of the state whose law governs the trust.","nullable":true},"parties":{"type":"array","items":{"$ref":"#/components/schemas/LoanTrustParty"},"description":"Trustees, settlors and beneficiaries.","nullable":true}},"additionalProperties":false,"description":"A trust that will hold title to the subject property. A trust is vesting, not a borrower: its settlors are ordinary borrowers, and the trust sits at loan level so it can name people from more than one borrower pair."},"LoanTrustClassification":{"enum":["InterVivosRevocable","Irrevocable","Land","Other"],"type":"string","description":"The legal classification of a trust: InterVivosRevocable (a living trust that can be changed or revoked), Irrevocable (cannot be revoked), Land (a land trust) or Other."},"LoanTrustParty":{"type":"object","properties":{"role":{"$ref":"#/components/schemas/LoanTrustPartyRole"},"borrowerId":{"type":"string","description":"The hdBorrowerId of the borrower this party is, on any pair. Must be a borrower on the loan.","format":"uuid","nullable":true},"name":{"type":"string","description":"The party's name when it is not a borrower on the loan.","nullable":true},"isInstitution":{"type":"boolean","description":"True when the party is an institution (a bank or trust company acting as trustee)."}},"additionalProperties":false,"description":"One party to a `LoanTrust`. A party who is a borrower on any pair is named by\r\n`borrowerId` (the borrower's `hdBorrowerId`); anyone else, a non-borrowing person or an\r\ninstitutional trustee, by `name`."},"LoanTrustPartyRole":{"enum":["Trustee","CoTrustee","SuccessorTrustee","Settlor","SettlorTrustee","Beneficiary"],"type":"string","description":"A party's role in a trust: Trustee, CoTrustee, SuccessorTrustee (takes over from a trustee), Settlor (created the trust), SettlorTrustee (both settlor and trustee) or Beneficiary."},"LoanAusResult":{"type":"object","properties":{"duCasefileId":{"type":"string","description":"The DU casefile id of the loan's latest DU run. A resubmission reuses it.","nullable":true},"lpaKey":{"type":"string","description":"The Freddie Mac LPA key written onto the loan by an LPA import; null when none.","nullable":true},"recommendation":{"type":"string","description":"The underwriting recommendation as text, for example Approve/Eligible.","nullable":true},"resultCode":{"type":"integer","description":"Numeric code of the result: 0 not submitted, 1 to 9 the DU results, 10 to 13 and 15 to 19 the LPA results, 14 out of scope. Null when nothing was sent.","format":"int32","nullable":true},"result":{"type":"string","description":"The name of resultCode; null when there is no code.","nullable":true}},"additionalProperties":false,"description":"The latest automated underwriting result held on the loan. It is read from the Loan Origination System on every loan read and is never written back; the run history is the aus/runs list."},"LoanRateLock":{"type":"object","properties":{"status":{"type":"string","description":"Lock status: Not Locked, Locked, Lock Requested, Lock Suspended or Lock Cancelled. Calculated by the LOS; never written.","nullable":true},"isLocked":{"type":"boolean","description":"True when status is Locked, false for any other status, null when there is no status.","nullable":true},"lockDate":{"type":"string","description":"Date the rate was locked, ISO 8601.","format":"date","nullable":true},"lockTime":{"type":"string","description":"Time of day of the lock, as the LOS formats it.","nullable":true},"periodDays":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Date the lock expires, ISO 8601. The LOS calculates it from the lock date and period.","format":"date","nullable":true},"noteRate":{"type":"number","description":"Locked note rate, in percent such as 6.875.","format":"double","nullable":true},"price":{"type":"number","description":"The locked price, as a percentage of par (100 = par). Read only.","format":"double","nullable":true},"lockIdentifier":{"type":"string","description":"The lock's own identifier, when the source has one, for example an imported file. Usually null.","nullable":true},"history":{"type":"array","items":{"$ref":"#/components/schemas/RateLockHistoryEntry"},"description":"Every lock, extension, relock and break the LOS recorded, newest first. Empty when the loan was never locked.","nullable":true},"ladder":{"$ref":"#/components/schemas/LoanRateLockLadder"},"priceGrid":{"$ref":"#/components/schemas/LoanRateLockPriceGrid"},"investorLock":{"$ref":"#/components/schemas/LoanInvestorLock"},"lockOutcome":{"type":"string","description":"What a write that asked to lock did, when the written values do not say it, for example values written but the lock not set, with the reason. Set only on a write response.","nullable":true}},"additionalProperties":false,"description":"The loan's rate lock with the broker as the LOS holds it, plus the lock history. It is read with the loan; only staff can change the lock date, period and note rate, through the rate lock endpoints. Everything else is calculated."},"RateLockHistoryEntry":{"type":"object","properties":{"kind":{"type":"string","description":"What happened, as the LOS names it: a lock, an extension, a relock or a break.","nullable":true},"occurredAt":{"type":"string","description":"When it happened, ISO 8601.","format":"date-time","nullable":true},"rate":{"type":"number","description":"Note rate at the time, in percent.","format":"double","nullable":true},"price":{"type":"number","description":"Price at the time, where 100 is par.","format":"double","nullable":true},"periodDays":{"type":"integer","description":"Lock period after the entry, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Lock expiration date after the entry, ISO 8601.","format":"date","nullable":true},"extensionDays":{"type":"integer","description":"Days an extension added, when the entry is an extension and they were recorded.","format":"int32","nullable":true},"user":{"type":"string","description":"Who made the change, as the LOS recorded it.","nullable":true},"note":{"type":"string","description":"Note recorded with the entry.","nullable":true}},"additionalProperties":false,"description":"One entry of a lock's history: a lock, extension, relock or break."},"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."},"LoanRateLockPriceGrid":{"type":"object","properties":{"basePrice":{"type":"number","description":"The base price, where 100 is par.","format":"double","nullable":true},"priceRow":{"type":"string","description":"Which price the grid's row is locked on: Base, BrokerBase, BrokerFinal or OriginatorPrice.","nullable":true},"visibleAdjustmentsTotal":{"type":"number","description":"Total of the adjustments the broker sees, in points.","format":"double","nullable":true},"hiddenAdjustmentsTotal":{"type":"number","description":"Total of the hidden lender adjustments, in points.","format":"double","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/LockAdjustment"},"description":"The adjustment lines on the price grid.","nullable":true},"originatorPrice":{"type":"number","description":"The Originator Price: the price before the originator compensation.","format":"double","nullable":true},"finalPrice":{"type":"number","description":"The Final Price: the price after the originator compensation.","format":"double","nullable":true},"investorPrice":{"type":"number","description":"The investor's price.","format":"double","nullable":true},"internalNote":{"type":"string","description":"The lock screen's internal notes.","nullable":true},"originatorCompensation":{"$ref":"#/components/schemas/LoanOriginatorCompensation"}},"additionalProperties":false,"description":"The front-end lock's price grid and the originator compensation, read live from the LOS. Set only on rate lock reads and writes. The investor price and the lender lines are not returned to third-party-originator (broker) callers."},"LockAdjustment":{"type":"object","properties":{"description":{"type":"string","description":"What the adjustment is for.","nullable":true},"points":{"type":"number","description":"The adjustment in points; a negative value adds to the price.","format":"double","nullable":true},"rate":{"type":"number","description":"Rate adjustment, in percentage points.","format":"double","nullable":true},"margin":{"type":"number","description":"Margin adjustment, in percentage points.","format":"double","nullable":true},"hidden":{"type":"boolean","description":"True for a hidden lender line the broker never sees (front-end lock only)."}},"additionalProperties":false,"description":"One adjustment line as the LOS holds it."},"LoanOriginatorCompensation":{"type":"object","properties":{"paidBy":{"type":"string","description":"Borrower or Lender (`sOriginatorCompensationPaymentSourceT`); null when not specified.","nullable":true},"percent":{"type":"number","description":"Compensation as a percent of the base amount, for example 2.0 for two percent.","format":"double","nullable":true},"minAmount":{"type":"number","description":"Minimum compensation in dollars.","format":"double","nullable":true},"fixedAmount":{"type":"number","description":"Fixed compensation in dollars.","format":"double","nullable":true},"baseType":{"type":"string","description":"LoanAmount or TotalLoanAmount (`sOriginatorCompensationBaseT`).","nullable":true},"lenderFeeOption":{"type":"string","description":"IncludedInLenderFees or InAdditionToLenderFees (`sOriginatorCompensationLenderFeeOptionT`).","nullable":true}},"additionalProperties":false,"description":"The loan's originator compensation inputs (`sOriginatorCompensation*`), as the LOS holds them."},"LoanInvestorLock":{"type":"object","properties":{"investorId":{"type":"integer","description":"Identifier of the investor in the LOS's investor list.","format":"int32","nullable":true},"investorName":{"type":"string","description":"Name of the investor.","nullable":true},"investorLoanNumber":{"type":"string","description":"The investor's loan number for this loan.","nullable":true},"confirmationNumber":{"type":"string","description":"Confirmation number the investor gave the lock.","nullable":true},"programName":{"type":"string","description":"Name of the investor program the loan is locked to.","nullable":true},"rateSheetTime":{"type":"string","description":"Effective time of the investor's rate sheet, as text in the form MM/dd/yyyy h:mm tt.","nullable":true},"commitmentType":{"type":"string","description":"Delivery commitment: BestEfforts, Mandatory, Hedged or Securitized.","nullable":true},"lockFee":{"type":"number","description":"Fee charged for the lock.","format":"double","nullable":true},"lockDate":{"type":"string","description":"Date the investor lock was made, ISO 8601.","format":"date","nullable":true},"periodDays":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Date the lock expires, ISO 8601: the lock date plus the period, with no weekend roll.","format":"date","nullable":true},"deliveryExpirationDate":{"type":"string","description":"Date delivery of the loan to the investor expires, ISO 8601, calculated as the expiration is.","format":"date","nullable":true},"noteRate":{"type":"number","description":"Locked note rate, in percent such as 6.875.","format":"double","nullable":true},"basePrice":{"type":"number","description":"Base price from the investor's rate sheet, where 100 is par.","format":"double","nullable":true},"totalAdjustments":{"type":"number","description":"Total of the price adjustments, in points.","format":"double","nullable":true},"finalPrice":{"type":"number","description":"Price after all adjustments, where 100 is par.","format":"double","nullable":true},"projectedProfit":{"type":"number","description":"Projected profit on the lock, as the LOS calculates it.","format":"double","nullable":true},"status":{"type":"string","description":"Not Locked, Locked, Lock Requested, Lock Suspended or Lock Cancelled.","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/LockAdjustment"},"description":"The price adjustment lines on the investor lock.","nullable":true},"history":{"type":"array","items":{"$ref":"#/components/schemas/RateLockHistoryEntry"},"description":"Every event on the investor lock, newest first.","nullable":true},"lockOutcome":{"type":"string","description":"What a write that asked to lock or break the lock did when the LOS did not do it. Set only on a write response.","nullable":true}},"additionalProperties":false,"description":"The back-end (investor) lock as the LOS holds it, read live. Set only on rate lock reads and writes, and never for third-party-originator (broker) callers."},"LoanTemporaryBuydown":{"type":"object","properties":{"steps":{"type":"array","items":{"$ref":"#/components/schemas/TemporaryBuydownStep"},"description":"The steps in order, each { rateReduction, months }: a 2-1 is [{ rateReduction: 2, months: 12 }, { rateReduction: 1, months: 12 }]. At most five. The list replaces the stored steps as a whole; empty slots are left out when read.","nullable":true},"contributorType":{"type":"string","description":"Who pays for the buydown, as the LOS's raw contributor code (sBuydownContributorT). Optional: left out, the LOS's value is not touched.","nullable":true},"totalFundsAmount":{"type":"number","description":"Total buydown funds in dollars (sBuydownTotalFundsAmt). Optional: left out, the LOS's value is not touched.","format":"double","nullable":true},"hasTemporaryBuydown":{"type":"boolean","description":"sHasTempBuydown - calculated by the LOS from the steps. Read only: a write is ignored.","nullable":true},"totalMonths":{"type":"integer","description":"sBuydwnTotalMon - calculated by the LOS. Read only.","format":"int32","nullable":true},"resultRate":{"type":"number","description":"sBuydownResultIR - calculated by the LOS. Read only.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's temporary buydown as the LOS holds it: up to five steps, who pays for it and how much, and what the LOS calculates from them. Changed only by a partial update that names it."},"TemporaryBuydownStep":{"type":"object","properties":{"rateReduction":{"type":"number","description":"Points the note rate is reduced by during this step (number, 2 means 2 points). Not negative.","format":"double"},"months":{"type":"integer","description":"Months this step lasts (integer). Required when rateReduction is above 0.","format":"int32"}},"additionalProperties":false,"description":"One step of a temporary buydown: how many points the rate is reduced for how many months."},"LoanApplicationTaskItem":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task or condition (GUID).","format":"uuid","nullable":true},"taskStatusTimestamp":{"type":"string","description":"When the task's status last changed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"When the task was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"createdTimestamp":{"type":"string","description":"When the task was created (ISO 8601 date and time, UTC).","format":"date-time"},"item":{"$ref":"#/components/schemas/Item"},"assignedToBorrowerId":{"type":"string","description":"Id (GUID) of the borrower the task is assigned to. Null for a user task or a task for the loan's borrowers generally.","format":"uuid","nullable":true},"status":{"$ref":"#/components/schemas/TaskStatus"},"document":{"$ref":"#/components/schemas/Document"},"rejectionReasonNote":{"type":"string","description":"The reviewer's free-text note when the task's document was rejected.","nullable":true},"rejectionReason":{"$ref":"#/components/schemas/TaskRejectionReason"},"creditReportType":{"$ref":"#/components/schemas/PosCreditReportType"},"isForPrimaryBorrower":{"type":"boolean","description":"True when the task is for the primary borrower, false when it is for the co-borrower. Null when it is for neither in particular.","nullable":true},"isRequired":{"type":"boolean","description":"Whether the task must be completed before the file can move forward."},"isAccountMainTask":{"type":"boolean","description":"True for the main task of an asset account, the one that requests the account's statements."},"questionType":{"$ref":"#/components/schemas/TaskQuestionType"},"yesNoResponse":{"type":"boolean","description":"The borrower's answer to a yes/no question task. Null until answered.","nullable":true},"shortAnswer":{"type":"string","description":"The borrower's answer to a short-answer question task. Null until answered.","nullable":true},"assignedToUser":{"$ref":"#/components/schemas/LoanAppUser"},"name":{"type":"string","description":"Display name of the task or condition.","nullable":true},"description":{"type":"string","description":"Description of the task. For a condition, the condition text: the reworded text when staff edited it in Henge, otherwise the LOS text.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the task among its siblings, lowest first.","format":"int32","nullable":true},"type":{"$ref":"#/components/schemas/TaskType"},"code":{"type":"string","description":"Short code of the task.","nullable":true},"conditionNo":{"type":"integer","description":"Condition number in the LOS. Conditions only.","format":"int32","nullable":true},"conditionCategory":{"type":"string","description":"Category of the condition in the LOS. Conditions only.","nullable":true},"conditionDueDate":{"type":"string","description":"Due date of the condition (ISO 8601 date). Conditions only.","format":"date","nullable":true},"conditionAssignedUserFullName":{"type":"string","description":"Full name of the user the condition is assigned to in the LOS. Conditions only.","nullable":true},"conditionBorrowerFullName":{"type":"string","description":"Full name of the borrower the condition is for. Conditions only.","nullable":true},"conditionIsHidden":{"type":"boolean","description":"True when the condition is hidden from the borrower. Staff roles still see it; a caller that receives a hidden condition is entitled to it.","nullable":true},"conditionSourceText":{"type":"string","description":"The LOS's original condition text. Set only when staff reworded the condition in Henge, in which case description carries the rewording; null otherwise.","nullable":true},"isConditionTextEdited":{"type":"boolean","description":"True when staff reworded this condition in Henge. The rewording is never sent to the LOS."},"notes":{"type":"string","description":"Notes on the task or condition.","nullable":true},"taskAssignmentType":{"$ref":"#/components/schemas/TaskAssignmentType"},"isSubscribed":{"type":"boolean","description":"Whether the calling user is subscribed to status-change notifications for this task. Null when not computed.","nullable":true},"conditionTaskId":{"type":"string","description":"Id (GUID) of the condition this task belongs to. Null on conditions and on standalone tasks. Read on create; ignored on update.","format":"uuid","nullable":true},"assetAccountId":{"type":"string","description":"Id (GUID) of the asset account the task belongs to, if any. Needed on create only for a Transaction History task; ignored on update.","format":"uuid","nullable":true},"assetAccountName":{"type":"string","description":"Name of the asset account the task belongs to. Response only, and filled only where the response includes accounts.","nullable":true},"creditReportNumber":{"type":"string","description":"For credit report tasks, the credit agency's report number.","nullable":true},"requestTaskId":{"type":"string","description":"Id of the first task of the document request this task is a copy of (one task per document). Null on the first task itself. On create, naming any task of a request makes the new task a copy that joins that request.","format":"uuid","nullable":true},"requestedStartDate":{"type":"string","description":"Transaction History tasks only: the first day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"requestedEndDate":{"type":"string","description":"Transaction History tasks only: the last day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"ownerPairId":{"type":"string","description":"Id (GUID) of the borrower pair staff made the owner of this task or condition. Empty when the owner is worked out on read.","format":"uuid","nullable":true},"appliesToAllPairs":{"type":"boolean","description":"True for a whole-loan task or condition that every borrower pair sees."}},"additionalProperties":false,"description":"A task or condition on a loan: a document request, a question, a user task or a condition from the LOS."},"Item":{"type":"object","properties":{"id":{"type":"string","description":"Id of the item (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the item; send it as the item code when you create a task.","nullable":true},"name":{"type":"string","description":"Display name of the item.","nullable":true},"groupCode":{"type":"string","description":"Code of the condition group the item's tasks are shown under. Null means Other.","nullable":true},"canCreateManually":{"type":"boolean","description":"True when staff can create a task for this item by hand."},"canUploadDocument":{"type":"boolean","description":"True when a document can be uploaded against this item."}},"additionalProperties":false,"description":"A kind of request a task can ask for, such as a specific document."},"TaskStatus":{"type":"object","properties":{"id":{"type":"string","description":"Id of the status (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the status.","nullable":true},"name":{"type":"string","description":"Display name of the status.","nullable":true}},"additionalProperties":false,"description":"The status of a task, for example Requested, Uploaded, Submitted or Accepted."},"Document":{"type":"object","properties":{"id":{"type":"string","description":"Id (GUID) of the document.","format":"uuid"},"name":{"type":"string","description":"The document's file name.","nullable":true},"externalId":{"type":"string","description":"The document's id in the Loan Origination System; empty until it has been sent there.","nullable":true},"isPdfConversionComplete":{"type":"boolean","description":"True once an uploaded file has been converted to PDF and can be opened; false while conversion is still running."},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the document belongs to.","format":"uuid","nullable":true},"loanApplicationTaskId":{"type":"string","description":"Id of the task or condition the document is attached to; null for a document uploaded straight to the loan.","format":"uuid","nullable":true},"blobName":{"type":"string","description":"The name the file is stored under. An internal storage key: download through the document routes rather than using it.","nullable":true},"createdTimestamp":{"type":"string","description":"When the document was created, in UTC (ISO 8601).","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the document was last changed, in UTC (ISO 8601).","format":"date-time"},"updatedBy":{"type":"string","description":"Id of the user who last changed the document; null when the change was automatic or unknown.","format":"uuid","nullable":true},"documentTypeId":{"type":"string","description":"Id of the platform's broad document category (such as a vault or task document). Not the loan document type, which is loanDocumentTypeId.","format":"uuid","nullable":true},"isVault":{"type":"boolean","description":"True when the document was uploaded straight to the loan's vault, false when it hangs off a\r\ntask, a condition or an asset account. Callers use it to decide what a user may do with the\r\ndocument: only a vault document can be deleted. Any document can be given a document type."},"loanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document is filed under (from the loan document types list); null when it has none.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the loan document type; null when the document has none.","nullable":true},"loanDocumentTypeExternalId":{"type":"string","description":"The loan document type's id in the Loan Origination System.","nullable":true},"loanDocumentTypeFolderName":{"type":"string","description":"Name of the folder the loan document type belongs to; null when the document has no type.","nullable":true},"description":{"type":"string","description":"A free-text description of the document; may be empty.","nullable":true},"isDeleted":{"type":"boolean","description":"True when the document has been deleted. Deleted documents are normally left out of lists."},"isInternal":{"type":"boolean","description":"True for a staff-only document that is hidden from borrowers and partner applications."},"isObsolete":{"type":"boolean","description":"The LOS no longer considers this document active. It stays visible so users can still see\r\nit, but it is not current and is never pushed back to the LOS."},"isProtected":{"type":"boolean","description":"The LOS holds the document as Protected, locked there against edits and deletion. Set and\r\ncleared by Admin and Processor through the document status endpoints, or in the LOS itself."},"losStatus":{"$ref":"#/components/schemas/LoanDocumentLosStatus"},"title":{"type":"string","description":"The title shown for the document; may be empty, in which case the file name is shown.","nullable":true},"splitFromDocumentId":{"type":"string","description":"On a part of a split combined PDF: the id of the original document it was cut from. Null on every other document.","format":"uuid","nullable":true},"splitStartPage":{"type":"integer","description":"On a part of a split combined PDF: the first page of the original it holds. Null on every other document.","format":"int32","nullable":true},"splitEndPage":{"type":"integer","description":"On a part of a split combined PDF: the last page of the original it holds. Null on every other document.","format":"int32","nullable":true},"isUnsorted":{"type":"boolean","description":"True while the document was bulk-uploaded to the loan with no task and no type and nobody has\r\nsorted it. It is held out of the LOS until it is put on a task or given a type."},"hasNoFile":{"type":"boolean","description":"True for a staff-only entry the Loan Origination System holds with no file here (a non-PDF assigned to a condition): there is nothing to open, download or move."},"intakeStatus":{"type":"string","description":"NeedsPassword or Duplicate for a bulk-uploaded document that is held for that reason; null\r\notherwise. See DocumentIntakeStatuses.","nullable":true},"duplicateOfDocumentId":{"type":"string","description":"The existing document this one repeats, when IntakeStatus is Duplicate.","format":"uuid","nullable":true},"indexStatus":{"type":"string","description":"Whether the document's text is searchable: Indexed, Pending, Failed or NotSubmitted. Set by\r\nthe document lists for staff callers; null when it was not looked up, or the lookup failed.","nullable":true},"analysis":{"$ref":"#/components/schemas/DocumentAnalysisSummary"},"internalNotes":{"type":"string","description":"Staff-only internal notes on the document, verbatim from the Loan Origination System. Returned only to callers who may see internal notes; null for everyone else.","nullable":true}},"additionalProperties":false,"description":"A document on a loan: the file, the task or condition it is attached to, its type and its status."},"LoanDocumentLosStatus":{"enum":["Active","Protected","Obsolete","Rejected","Screened"],"type":"string","description":"A loan document's status, one value per document, set here or in the LOS and kept in step both ways. The names are the LOS's own; the app shows Active as Pending, Screened as Accepted and Obsolete as Deleted."},"DocumentAnalysisSummary":{"type":"object","properties":{"status":{"type":"string","description":"Pending, Completed, Failed or Skipped. Failed reads \"Not analysed\".","nullable":true},"verdict":{"type":"string","description":"Whether the document is what was asked for: Matches, Mismatch, Unreadable or Unknown.","nullable":true},"reasonCode":{"type":"string","description":"On a Mismatch, why: WrongDocument, WrongPeriod, WrongAccount, WrongBorrower, MissingPages or Expired. On an Unreadable verdict from the page quality check, UnreadablePages.","nullable":true},"reason":{"type":"string","description":"One line in plain language explaining the verdict, written for the borrower.","nullable":true},"suggestedRejectionReasonCode":{"type":"string","description":"The seeded TaskRejectionReason code the panel pre-selects for a Mismatch.","nullable":true},"suggestedTaskId":{"type":"string","description":"Id of the task or condition the document appears to belong to; null when none matched.","format":"uuid","nullable":true},"suggestedTaskName":{"type":"string","description":"Name of the suggested task or condition.","nullable":true},"isOnSuggestedTask":{"type":"boolean","description":"False when the document sits on a different task than the best match: shown for confirmation."},"matchConfidence":{"type":"number","description":"How sure the analysis is of the suggested task, from 0 to 1.","format":"double","nullable":true},"suggestedLoanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document looks like; null when not determined.","format":"uuid","nullable":true},"suggestedLoanDocumentTypeName":{"type":"string","description":"Name of the suggested loan document type.","nullable":true},"suggestedTitle":{"type":"string","description":"The title the analysis suggests for the document, built from what it read (for example the account and statement period).","nullable":true},"titleAppliedAutomatically":{"type":"boolean","description":"True when the document's current title was set by the analysis rather than by a person."},"previousTitle":{"type":"string","description":"The title the document had before the analysis renamed it; null when it was not renamed.","nullable":true},"autoNameDisabled":{"type":"boolean","description":"True when a person undid an automatic name; the analysis never renames this document again."},"filedByType":{"type":"boolean","description":"Filed under the suggested LOS type and folder by the analysis, for a person to confirm or correct."},"duplicateOfDocumentId":{"type":"string","description":"Id of an earlier document on the loan with the same content, when this one repeats it; otherwise null.","format":"uuid","nullable":true},"supersedesDocumentId":{"type":"string","description":"Id of an earlier document this one replaces (a newer version of the same document); otherwise null.","format":"uuid","nullable":true},"supersededByDocumentId":{"type":"string","description":"Id of a newer document that replaces this one; otherwise null.","format":"uuid","nullable":true},"outcome":{"type":"string","description":"What a person did with the suggestion: Confirmed, Corrected, Rejected or Ignored; null while no one has acted.","nullable":true},"outcomeAt":{"type":"string","description":"When the person acted on the suggestion, in UTC (ISO 8601); null while no one has.","format":"date-time","nullable":true},"coveredPeriods":{"type":"array","items":{"type":"string"},"description":"For a request that needs a span of statements, the months the uploaded documents cover, each formatted yyyy-MM.","nullable":true},"missingPeriods":{"type":"array","items":{"type":"string"},"description":"The requested months no uploaded document covers yet, each formatted yyyy-MM.","nullable":true},"monthsMissing":{"type":"integer","description":"How many months of the request are still missing.","format":"int32","nullable":true},"analyzedAt":{"type":"string","description":"When the analysis was done, in UTC (ISO 8601).","format":"date-time"},"splitSuggestion":{"$ref":"#/components/schemas/SplitSuggestion"},"pageIssues":{"type":"array","items":{"$ref":"#/components/schemas/PageIssue"},"description":"The pages the quality check flagged, which the Unreadable-page request names.","nullable":true}},"additionalProperties":false,"description":"What the document review shows for a document: the suggested task, type and title, the verdict and whether the title was applied automatically. The evidence and page text the analysis read are not included."},"SplitSuggestion":{"type":"object","properties":{"pageCount":{"type":"integer","description":"Number of pages in the PDF that was analysed.","format":"int32"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/SplitPartRange"},"description":"The suggested page ranges, one per document found.","nullable":true},"reason":{"type":"string","description":"The segmenter's account of why, e.g. \"3 document(s) across 12 page(s)\".","nullable":true}},"additionalProperties":false,"description":"The split suggested for a PDF that holds several documents and was not split on upload. Nothing changes until a person accepts it."},"SplitPartRange":{"type":"object","properties":{"startPage":{"type":"integer","description":"First page of the run, counting from 1.","format":"int32"},"endPage":{"type":"integer","description":"Last page of the run, inclusive.","format":"int32"},"loanDocumentTypeId":{"type":"string","description":"What the segmenter took the run to be, for the suggestion only. Never trusted when splitting.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the document type the run was taken to be, for the suggestion only.","nullable":true}},"additionalProperties":false,"description":"One run of pages of a combined PDF that is one document. 1-based, inclusive."},"PageIssue":{"type":"object","properties":{"page":{"type":"integer","description":"The page the issue is on, starting at 1.","format":"int32"},"kind":{"type":"string","description":"The problem found: Blank (no text), LowConfidence (scan quality too low to read reliably) or CutOff (text stops mid-sentence).","nullable":true}},"additionalProperties":false,"description":"A page the quality check flagged. 1-based, in the document the analysis read."},"TaskRejectionReason":{"type":"object","properties":{"id":{"type":"string","description":"Id of the rejection reason (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the rejection reason.","nullable":true},"code":{"type":"string","description":"Stable code of the rejection reason.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the reason in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"A reason a reviewer gives for rejecting a task's document."},"PosCreditReportType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the report type (GUID).","format":"uuid","nullable":true},"code":{"type":"string","description":"Stable code of the report type.","nullable":true},"name":{"type":"string","description":"Display name of the report type.","nullable":true}},"additionalProperties":false,"description":"The type of credit report a credit report task asks for."},"TaskQuestionType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the question type (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the question type.","nullable":true},"code":{"type":"string","description":"Stable code of the question type.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the question type in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"For a question task, the kind of answer it asks for, such as yes/no or a short answer."},"LoanAppUser":{"type":"object","properties":{"id":{"type":"string","description":"Id of the user (GUID).","format":"uuid"},"firstName":{"type":"string","description":"The user's first name.","nullable":true},"lastName":{"type":"string","description":"The user's last name.","nullable":true}},"additionalProperties":false,"description":"A user, such as the staff member a task is assigned to."},"TaskType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the task type.","nullable":true},"name":{"type":"string","description":"Display name of the task type.","nullable":true}},"additionalProperties":false,"description":"The kind of task."},"TaskAssignmentType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the assignment type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the assignment type.","nullable":true},"name":{"type":"string","description":"Display name of the assignment type.","nullable":true}},"additionalProperties":false,"description":"Who a task is assigned to: a borrower or a user."},"TaskSummary":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/TaskStatus"},"count":{"type":"integer","description":"Number of tasks in this status.","format":"int32"},"isUserTask":{"type":"boolean","description":"True when the count is of tasks assigned to staff users, false when it is of tasks assigned to borrowers."}},"additionalProperties":false},"LoanTimeline":{"type":"object","properties":{"activeStatus":{"$ref":"#/components/schemas/LoanStatusBase"},"lastCompletedStatus":{"$ref":"#/components/schemas/LoanStatusBase"},"loanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/LoanStatus"},"description":"Every loan status with its order, completion and date.","nullable":true},"keyDates":{"$ref":"#/components/schemas/KeyDates"},"statusTracker":{"$ref":"#/components/schemas/StatusTracker"},"disclosureTracker":{"$ref":"#/components/schemas/DisclosureTracker"},"signaturePackages":{"type":"array","items":{"$ref":"#/components/schemas/SignaturePackage"},"description":"The loan's e-signature packages, built from its Disclosure tasks on a loan read.","nullable":true}},"additionalProperties":false,"description":"The loan's progress: its active and last completed status, all statuses, key dates and trackers."},"LoanStatusBase":{"type":"object","properties":{"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true}},"additionalProperties":false,"description":"A loan status: its code and display name."},"LoanStatus":{"type":"object","properties":{"displayOrder":{"type":"integer","description":"Position of the status in the loan timeline, starting at 0.","format":"int32"},"isComplete":{"type":"boolean","description":"True when the loan has passed this status."},"date":{"type":"string","description":"When the loan reached the status, ISO 8601; null if not yet.","format":"date-time","nullable":true},"statusDetails":{"type":"array","items":{"$ref":"#/components/schemas/StatusDetail"},"description":"Sub-steps of the status with their dates.","nullable":true},"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true}},"additionalProperties":false},"StatusDetail":{"type":"object","properties":{"displayOrder":{"type":"integer","description":"Position of the sub-step within its status.","format":"int32"},"code":{"type":"string","description":"Sub-step code.","nullable":true},"name":{"type":"string","description":"Sub-step display name.","nullable":true},"date":{"type":"string","description":"When the sub-step happened, ISO 8601; null if not yet.","format":"date-time","nullable":true}},"additionalProperties":false},"KeyDates":{"type":"object","properties":{"estimatedClosing":{"type":"string","description":"Estimated closing date, ISO 8601.","format":"date-time","nullable":true},"firstPaymentDate":{"type":"string","description":"Date the borrower's first payment is due, ISO 8601.","format":"date-time","nullable":true},"lockExpiration":{"type":"string","description":"Date the rate lock expires, ISO 8601; null when the loan is not locked.","format":"date-time","nullable":true},"rateLockedDate":{"type":"string","description":"Date the rate was locked, ISO 8601.","format":"date-time","nullable":true},"rateLockedTime":{"type":"string","description":"Time of day the rate was locked, as text.","nullable":true},"preApprovedDate":{"type":"string","description":"Date the loan was pre-approved (yyyy-MM-dd).","format":"date","nullable":true},"registeredDate":{"type":"string","description":"Date the loan was registered with the lender (yyyy-MM-dd).","format":"date","nullable":true},"appSubmittedDate":{"type":"string","description":"Date the application was submitted (yyyy-MM-dd).","format":"date","nullable":true},"closingDate":{"type":"string","description":"Scheduled closing date (yyyy-MM-dd).","format":"date","nullable":true}},"additionalProperties":false,"description":"The loan's key dates; each is null until it is known."},"StatusTracker":{"type":"object","properties":{"lastCompletedStep":{"type":"string","description":"Label of the last step the loan completed.","nullable":true},"currentStepLabel":{"type":"string","description":"Label of the step the loan is on now.","nullable":true},"summaryLoanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/StatusTrackerLoanStatus"},"description":"The statuses shown in the summary view, with their progress.","nullable":true},"allLoanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/StatusTrackerLoanStatusBase"},"description":"All statuses in the tracker, in display order.","nullable":true}},"additionalProperties":false,"description":"The borrower-facing progress tracker of a loan: the last completed step, the current step and the statuses shown."},"StatusTrackerLoanStatus":{"type":"object","properties":{"isComplete":{"type":"boolean","description":"True when the loan has passed this status."},"isInProgress":{"type":"boolean","description":"True when the loan is at this status now."},"isApproved":{"type":"boolean","description":"For the pre-approval status, true when approved and false when denied; null otherwise.","nullable":true},"subStatusLabel":{"type":"string","description":"A finer label for the status, when there is one.","nullable":true},"preApprovalDocumentId":{"type":"string","description":"Unique identifier (GUID) of the pre-approval letter document, when one was issued.","format":"uuid","nullable":true},"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the status in the tracker, starting at 0.","format":"int32"},"date":{"type":"string","description":"Date the loan reached the status (yyyy-MM-dd); null if not yet.","format":"date","nullable":true},"time":{"type":"string","description":"Time of day the loan reached the status, as text; null if not known.","nullable":true}},"additionalProperties":false},"StatusTrackerLoanStatusBase":{"type":"object","properties":{"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the status in the tracker, starting at 0.","format":"int32"},"date":{"type":"string","description":"Date the loan reached the status (yyyy-MM-dd); null if not yet.","format":"date","nullable":true},"time":{"type":"string","description":"Time of day the loan reached the status, as text; null if not known.","nullable":true}},"additionalProperties":false},"DisclosureTracker":{"type":"object","properties":{"loanEstimates":{"type":"array","items":{"$ref":"#/components/schemas/LoanEstimateDates"},"description":"Every Loan Estimate issued on the loan, in the order the Loan Origination System lists them.","nullable":true},"closingDisclosures":{"type":"array","items":{"$ref":"#/components/schemas/ClosingDisclosureDates"},"description":"Every Closing Disclosure issued on the loan, in the order the Loan Origination System lists them.","nullable":true}},"additionalProperties":false,"description":"The loan's disclosure history: each Loan Estimate and Closing Disclosure issued, with delivery, receipt and signature dates."},"LoanEstimateDates":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the Loan Estimate disclosure record.","nullable":true},"createdDate":{"type":"string","description":"Date the Loan Estimate was created (yyyy-MM-dd).","format":"date","nullable":true},"issuedDate":{"type":"string","description":"Date the Loan Estimate was issued (yyyy-MM-dd).","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the Loan Estimate was delivered, for example email or mail.","nullable":true},"receivedDate":{"type":"string","description":"Date the borrower received it (yyyy-MM-dd).","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date the borrower signed it (yyyy-MM-dd).","format":"date","nullable":true},"isLastDisclosed":{"type":"boolean","description":"The LOS read returns no last-disclosed flag, so this is never filled; see MismoNotCarried.","nullable":true},"disclosedApr":{"type":"number","description":"APR disclosed on the Loan Estimate, in percent (for example 6.912).","format":"double","nullable":true},"archiveId":{"type":"string","description":"The archive the LOS issued this disclosure from; null when the LOS sends blank or an all-zero GUID (a hand-entered record).","nullable":true},"archiveDate":{"type":"string","description":"The archive's date (the LOS's `ArchiveUsed`); a date only, no time of day.","format":"date","nullable":true},"transactionId":{"type":"string","description":"The id the disclosure was generated under, also on the e-sign package it was sent in; null when blank.","nullable":true},"isInitial":{"type":"boolean","description":"True when this is the initial Loan Estimate.","nullable":true},"isManual":{"type":"boolean","description":"True when the record was entered by hand rather than generated.","nullable":true},"isValid":{"type":"boolean","description":"The LOS's `Valid`. A record marked not valid stays in the list.","nullable":true},"losApr":{"type":"number","description":"The LOS's own APR (`LqbApr`).","format":"double","nullable":true},"docVendorApr":{"type":"number","description":"APR calculated by the document provider, in percent.","format":"double","nullable":true},"consumerDates":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerDisclosureDates"},"description":"Per-borrower disclosure dates.","nullable":true}},"additionalProperties":false},"ConsumerDisclosureDates":{"type":"object","properties":{"consumerId":{"type":"string","description":"The borrower's id in the Loan Origination System.","nullable":true},"consumerName":{"type":"string","description":"The borrower's name.","nullable":true},"issuedDate":{"type":"string","description":"Date the disclosure was issued to this borrower (ISO 8601 date).","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the disclosure was delivered to this borrower, as the Loan Origination System records it.","nullable":true},"receivedDate":{"type":"string","description":"Date this borrower received the disclosure (ISO 8601 date); null when not recorded.","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date this borrower signed the disclosure (ISO 8601 date); null when not signed.","format":"date","nullable":true}},"additionalProperties":false},"ClosingDisclosureDates":{"type":"object","properties":{"id":{"type":"string","description":"The disclosure's id in the Loan Origination System.","nullable":true},"createdDate":{"type":"string","description":"Date the disclosure was created (ISO 8601 date, no time of day).","format":"date","nullable":true},"issuedDate":{"type":"string","description":"Date the disclosure was issued to the borrowers (ISO 8601 date); null when not yet issued.","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the disclosure was delivered, as the Loan Origination System records it (for example email or mail).","nullable":true},"receivedDate":{"type":"string","description":"Date the borrowers received the disclosure (ISO 8601 date); null when not recorded. When several borrowers are listed, each borrower's own date is in consumerDates.","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date the disclosure was signed (ISO 8601 date); null when not signed.","format":"date","nullable":true},"isLastDisclosed":{"type":"boolean","description":"Never filled: the Loan Origination System returns no last-disclosed flag, so this is always null.","nullable":true},"eCloseStatus":{"type":"string","description":"The e-close status the Loan Origination System records for the disclosure; null when none.","nullable":true},"disclosedApr":{"type":"number","description":"The annual percentage rate disclosed, in percent (for example 6.912); null when not recorded.","format":"double","nullable":true},"archiveId":{"type":"string","description":"The id of the archive the Loan Origination System issued this disclosure from; null when it sent none (for example a hand-entered record).","nullable":true},"archiveDate":{"type":"string","description":"The archive's date (ISO 8601 date, no time of day).","format":"date","nullable":true},"transactionId":{"type":"string","description":"The id the disclosure was generated under, also on the e-sign package it was sent in; null when blank.","nullable":true},"isInitial":{"type":"boolean","description":"True when this is the initial Closing Disclosure.","nullable":true},"isManual":{"type":"boolean","description":"True when the record was entered by hand rather than generated by the Loan Origination System.","nullable":true},"isValid":{"type":"boolean","description":"False when the record is marked not valid in the Loan Origination System. Such a record stays in the list.","nullable":true},"losApr":{"type":"number","description":"The Loan Origination System's own annual percentage rate, in percent.","format":"double","nullable":true},"docVendorApr":{"type":"number","description":"The APR as the document vendor calculated it, in percent; null when not recorded.","format":"double","nullable":true},"isFinal":{"type":"boolean","description":"True when this is the final Closing Disclosure.","nullable":true},"isPreview":{"type":"boolean","description":"True when the disclosure was only a preview and was not issued to the borrowers.","nullable":true},"isPostClosing":{"type":"boolean","description":"True when the disclosure was issued after closing.","nullable":true},"consumerDates":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerDisclosureDates"},"description":"Issued, received and signed dates for each borrower on the disclosure.","nullable":true}},"additionalProperties":false},"SignaturePackage":{"type":"object","properties":{"packageId":{"type":"string","description":"The id of the e-sign package as the Loan Origination System holds it.","nullable":true},"name":{"type":"string","description":"The package's name.","nullable":true},"sentTimestamp":{"type":"string","description":"The earliest created timestamp of the package's tasks.","format":"date-time"},"status":{"type":"string","description":"Signed, AwaitingSignature, Reviewed or Cancelled. Reviewed and Cancelled are only reported by a live read of the package.","nullable":true},"signedTimestamp":{"type":"string","description":"The last signer's, only when the package is signed.","format":"date-time","nullable":true},"signers":{"type":"array","items":{"$ref":"#/components/schemas/SignaturePackageSigner"},"description":"The people who must sign the package and whether each has.","nullable":true}},"additionalProperties":false,"description":"One e-sign package sent from the LOS for a loan and who has signed it, built from the loan's\r\nDisclosure tasks (one per signer). Carries no access link and no participant id: nothing here\r\nopens a signing session. Not loan-file data, so it is never part of the MISMO export."},"SignaturePackageSigner":{"type":"object","properties":{"name":{"type":"string","description":"The signer's name.","nullable":true},"role":{"type":"string","description":"Borrower or LoanOfficer.","nullable":true},"signedTimestamp":{"type":"string","description":"When the signer signed, in UTC (ISO 8601); null while they have not.","format":"date-time","nullable":true}},"additionalProperties":false},"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":{"get":{"tags":["Loan applications"],"summary":"List or search Loan Applications","description":"**Required scope:** `read:loan-applications`\n\nSupply clientId for a single client's loans, or searchText and/or structured filters (statuses, purposes, status/closing date ranges, loan amount and commission ranges, referringAgentId) to search across the company. Results are always scoped to the caller's company.","operationId":"LoanApplications_GetLoanApplications","parameters":[{"name":"clientId","in":"query","description":"A client's id: returns that client's loans in your company, and every other parameter is ignored. Leave it out to search.","schema":{"type":"string","format":"uuid"}},{"name":"searchText","in":"query","description":"Free text. Split on spaces into at most 10 words, and every word must match: the loan number exactly, or part of a borrower's first name, last name or email, or part of the property street, ignoring case. Sending it (or any filter below) searches your whole company; sending neither returns your application's acting user's loans.","schema":{"type":"string"}},{"name":"statuses","in":"query","description":"Loan statuses to include, matched exactly against the loan's current LOS status name (for example `Loan Underwriting`, `Loan Funded`). Repeat the parameter for several (`statuses=A&statuses=B`); a loan matching any of them is included. A status that matches nothing returns no loans.","schema":{"type":"array","items":{"type":"string"}}},{"name":"purposes","in":"query","description":"Loan purposes to include, matched exactly: `Purchase` or `Refinance`. Repeat the parameter for several.","schema":{"type":"array","items":{"type":"string"}}},{"name":"referringAgentId","in":"query","description":"Only loans referred by this user (their `id`).","schema":{"type":"string","format":"uuid"}},{"name":"statusDateFrom","in":"query","description":"Only loans whose current status was set on or after this date and time (ISO 8601). It is the date of the latest status change, not a closing or funding date. Compared with the stored value as given, with no time zone conversion; a date alone means midnight at its start.","schema":{"type":"string","format":"date-time"}},{"name":"statusDateTo","in":"query","description":"Only loans whose current status was set on or before this date and time (ISO 8601). A date alone means midnight at its start, so send the next day, or the end of the day, to include the whole day.","schema":{"type":"string","format":"date-time"}},{"name":"closingDateFrom","in":"query","description":"Only loans with an estimated closing date on or after this date (ISO 8601). Many loans have no closing date and never match a closing date filter.","schema":{"type":"string","format":"date-time"}},{"name":"closingDateTo","in":"query","description":"Only loans with an estimated closing date on or before this date (ISO 8601). A date alone means midnight at its start.","schema":{"type":"string","format":"date-time"}},{"name":"loanAmountMin","in":"query","description":"Only loans with a loan amount of at least this many US dollars.","schema":{"type":"number","format":"double"}},{"name":"loanAmountMax","in":"query","description":"Only loans with a loan amount of at most this many US dollars.","schema":{"type":"number","format":"double"}},{"name":"commissionMin","in":"query","description":"Only loans whose locked compensation is at least this many US dollars. A loan with none never matches.","schema":{"type":"number","format":"double"}},{"name":"commissionMax","in":"query","description":"Only loans whose locked compensation is at most this many US dollars. A loan with none never matches.","schema":{"type":"number","format":"double"}},{"name":"orderBy","in":"query","description":"Sort order of a search, ignoring case: one of `createdtimestamp`, `status`, `loannumber`, `loanofficer`, `referredbyagent`, `address` or `borrower`, followed by a space and `asc` or `desc` (for example `borrower asc`). Defaults to `createdtimestamp desc`, newest first. Any other value answers 400 listing the accepted ones. Applies to a search only.","schema":{"type":"string"}},{"name":"skip","in":"query","description":"The number of matching loans to skip before the page starts, for paging a search. Defaults to 0; a negative value counts as 0.","schema":{"type":"integer","format":"int32"}},{"name":"top","in":"query","description":"The number of loans to return on a page of a search. Defaults to 25, at most 100; a larger value returns 100 and a value below 1 returns 1. The response's `totalCount` (and `count`) is the number of matches before paging.","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Matching loans","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLoanApplicationsResponse"}}}},"400":{"description":"Invalid filter or sort","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":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Create a Loan Application

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"LoanApplicationCreateDto":{"required":["propertyAddress"],"type":"object","properties":{"clientId":{"type":"string","description":"An existing client to make the borrower. Leave it out and send `borrowers` instead: a client is\r\nfound by email within your scope, or created.","format":"uuid","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplicationCreateBorrowerDto"},"description":"The borrowers when there is no `clientId`, the first being the primary. Each needs a first name,\r\nlast name and email.","nullable":true},"userId":{"type":"string","description":"Defaulted to current user, if not an admin","format":"uuid","nullable":true},"propertyAddress":{"$ref":"#/components/schemas/Address"}},"additionalProperties":false,"description":"Send `clientId`, or at least one entry in `borrowers`; when both are sent, `clientId` is used and `borrowers` is not read."},"LoanApplicationCreateBorrowerDto":{"type":"object","properties":{"clientId":{"type":"string","description":"An existing client for this borrower; leave it out to have one found or created.","format":"uuid","nullable":true},"firstName":{"type":"string","description":"Borrower's legal first name, as on their ID. Required when clientId is not sent.","nullable":true},"lastName":{"type":"string","description":"Borrower's legal last name, as on their ID. Required when clientId is not sent.","nullable":true},"email":{"type":"string","description":"Borrower's email address. An existing client with this email within your scope is reused; otherwise one is created. Required when clientId is not sent.","nullable":true},"phone":{"type":"string","description":"Borrower's phone number. Optional.","nullable":true}},"additionalProperties":false,"description":"A borrower to create the loan for, when you do not have a client id. The first one listed is the primary borrower. A borrower without its own `clientId` needs `firstName`, `lastName` and `email` (400 otherwise)."},"Address":{"required":["state"],"type":"object","properties":{"addressLine1":{"type":"string","description":"Street address, for example 123 Main St.","nullable":true},"addressLine2":{"type":"string","description":"Unit, suite or other second line; optional.","nullable":true},"city":{"type":"string","description":"City name.","nullable":true},"state":{"minLength":1,"type":"string","description":"Two-letter state code."},"zipCode":{"type":"string","description":"Postal (ZIP) code.","nullable":true}},"additionalProperties":false,"description":"A US mailing address."},"LoanModified":{"required":["createdTimestamp","id","type","updatedTimestamp"],"type":"object","properties":{"warnings":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplicationWarning"},"description":"Things to know about a create that still succeeded, each naming the request field it is about, for\r\nexample a client the loan officer already held for the borrower's email being reused. Empty when none.","nullable":true},"id":{"type":"string","description":"The unique identifier of the entity that was modified."},"type":{"type":"string","description":"A string indicating the type or category of the modified entity (e.g., “Webhook”, “LoanApplicationTask”)."},"createdTimestamp":{"type":"string","description":"The timestamp when the entity was first created.","format":"date-time"},"updatedTimestamp":{"type":"string","description":"The timestamp when the entity was last updated.","format":"date-time"}},"additionalProperties":false,"description":"The audit record of a loan create, with the warnings the create raised."},"LoanApplicationWarning":{"type":"object","properties":{"field":{"type":"string","description":"The request field the warning is about, for example `loanInfo.borrowers[0].contacts.email`.","nullable":true},"message":{"type":"string","description":"Plain-English text of the warning.","nullable":true}},"additionalProperties":false,"description":"Something the caller should know about a request that still succeeded."},"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":{"post":{"tags":["Loan applications"],"summary":"Create a Loan Application","description":"**Required scope:** `create:loan-applications`","operationId":"LoanApplications_Create","requestBody":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanApplicationCreateDto"}}}},"responses":{"200":{"description":"Loan created successfully A create answers 200 today. It will answer 201 with a Location header from a date announced in the changelog at least 60 days ahead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanModified"}}}},"201":{"description":"Created. Will be answered instead of 200 from a date announced in the changelog at least 60 days ahead; the Location header carries the new resource's URL.","headers":{"Location":{"description":"URL of the created resource: this request's path followed by the new id.","schema":{"type":"string","format":"uri-reference"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanModified"}}}},"400":{"description":"Bad Request","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":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Get Loan Details by Id or LOS loan id (externalId)

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"GetLoanApplicationResponse":{"required":["assetsLocked","createdTimestampUtc","id","isClientPortalHidden","isDeleted","isLoanEditable","isSetupComplete"],"type":"object","properties":{"losType":{"$ref":"#/components/schemas/Application"},"updatedByEmail":{"type":"string","description":"Email address of the user who last changed the loan application.","nullable":true},"updatedByFirstName":{"type":"string","description":"First name of the user who last changed the loan application.","nullable":true},"updatedByLastName":{"type":"string","description":"Last name of the user who last changed the loan application.","nullable":true},"updatedByIp":{"type":"string","description":"IP address the last change came from.","nullable":true},"isLoanEditable":{"type":"boolean","description":"True while the application can still be edited in Henge. False once it is submitted and the borrower has accepted e-consent, after which writes are refused."},"losLeadFileAvailable":{"type":"boolean","description":"True when the loan has no file in the loan origination system yet and a credit reissue or a DU run opens one for it, held as a lead until the application is submitted. False otherwise."},"skipStatedIncomePreapproval":{"type":"boolean","description":"True when the pre-approval step that asks for stated income is skipped for this loan. Null when not set.","nullable":true},"startStatedIncomePreapproval":{"type":"boolean","description":"True when the stated-income pre-approval flow was started for this loan. Null when not set.","nullable":true},"isSetupComplete":{"type":"boolean","description":"True when the loan's initial setup is complete."},"assetsLocked":{"type":"boolean","description":"The loan has reached approval, so its assets can no longer be changed from Henge. Computed on read for the loan page, never stored."},"preApproval":{"$ref":"#/components/schemas/PreApprovalSummary"},"timestamp":{"type":"integer","description":"Time of the last save of the application form, as a Unix timestamp in seconds. Null when there is none.","format":"int64","nullable":true},"referredBy":{"$ref":"#/components/schemas/Contact"},"company":{"$ref":"#/components/schemas/LoanCompany"},"notKept":{"type":"array","items":{"type":"string"},"description":"Fields of the update that were accepted but are not held by the loan afterwards, each with what the loan holds instead. Omitted when every field was kept.","nullable":true},"currentBorrowerId":{"type":"string","description":"The calling borrower's own borrower id on this loan. Filled only for a borrower caller on the borrower-facing API; omitted for every other caller, including Partner API callers.","format":"uuid","nullable":true},"currentPairIndex":{"type":"integer","description":"Position of the calling borrower's pair on the loan (0 is the primary pair). Filled only for a borrower caller.","format":"int32","nullable":true},"isPrimaryPair":{"type":"boolean","description":"The calling client is on pair 0; false when their pair is unknown. Null for a caller who is not a client.","nullable":true},"hasMultiplePairs":{"type":"boolean","description":"The loan holds more than one live pair (toggle on). Null for a caller who is not a client.","nullable":true},"sectionCompletion":{"$ref":"#/components/schemas/LoanAppSectionCompletionReport"},"figures":{"$ref":"#/components/schemas/LoanFigures"},"headerFigures":{"$ref":"#/components/schemas/LoanHeaderFigures"},"mortgageLoanTypeName":{"type":"string","description":"Readable name of loanInfo.mortgageLoanType, for example PrimeConforming. A convenience only: it is not the loan type, which is loanInfo.loanType.name. Null and omitted when the raw value is empty or not a recognized code.","nullable":true,"readOnly":true},"id":{"type":"string","description":"Id of the loan application (GUID), as used in loan-applications/{id} paths. The LOS loan id is loanInfo.loanId.","format":"uuid"},"loanInfo":{"$ref":"#/components/schemas/LoanInfo"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplicationTaskItem"},"description":"The loan's tasks and conditions.","nullable":true},"taskSummaries":{"type":"array","items":{"$ref":"#/components/schemas/TaskSummary"},"description":"Counts of the loan's tasks by status, split into user tasks and borrower tasks.","nullable":true},"loanTimeline":{"$ref":"#/components/schemas/LoanTimeline"},"isDeleted":{"type":"boolean","description":"True when the loan application has been deleted."},"createdTimestampUtc":{"type":"string","description":"When the loan application was created (ISO 8601 date and time, UTC).","format":"date-time"},"updatedTimestampUtc":{"type":"string","description":"When the loan application was last changed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedBy":{"type":"string","description":"Id (GUID) of the user who last changed the loan application.","format":"uuid","nullable":true},"isClientPortalHidden":{"type":"boolean","description":"True when the borrower's company does not use the borrower portal. False when that cannot be determined. Computed on read, never stored."},"isLosLead":{"type":"boolean","description":"True while the loan has a loan number but its application has not been submitted yet (its file was opened early, as a lead). False otherwise: a loan number then means the application was submitted."},"isSandbox":{"type":"boolean","description":"True when the loan is a sandbox, a copy made to try changes on. False on every ordinary loan. Read-only."},"sourceLoanApplicationId":{"type":"string","description":"For a sandbox, the id of the loan it was copied from. Null on every other loan.","format":"uuid","nullable":true},"sandboxSourceLoanNumber":{"type":"string","description":"For a sandbox, the LOS loan number of the loan it was copied from. Null on every other loan.","nullable":true}},"additionalProperties":false},"Application":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the application.","format":"uuid"},"type":{"type":"string","description":"The application's type.","nullable":true},"name":{"type":"string","description":"The application's name.","nullable":true}},"additionalProperties":false,"description":"A reference to an application: its id, type and name."},"PreApprovalSummary":{"type":"object","properties":{"isApproved":{"type":"boolean","description":"True when the latest pre-approval was approved, false when denied; null when none has run.","nullable":true},"denialReasons":{"type":"array","items":{"type":"string"},"description":"Why the latest pre-approval was denied; empty when it was approved.","nullable":true},"issuedDate":{"type":"string","description":"When the latest pre-approval was issued, ISO 8601 in UTC.","format":"date-time","nullable":true},"expiryDate":{"type":"string","description":"When the latest pre-approval letter expires, ISO 8601 in UTC.","format":"date-time","nullable":true},"creditPulledOn":{"type":"string","description":"When the soft credit pull the latest run used was pulled, ISO 8601 in UTC.","format":"date-time","nullable":true},"letterDocumentId":{"type":"string","description":"Unique identifier (GUID) of the pre-approval letter document, when one was issued.","format":"uuid","nullable":true},"canRerun":{"type":"boolean","description":"True when the pre-approval can be run again now."},"cannotRerunReason":{"type":"string","description":"Why it cannot be run again; null when it can.","nullable":true},"runs":{"type":"array","items":{"$ref":"#/components/schemas/PreApprovalRun"},"description":"Every persisted run, oldest first. Filled for staff roles only.","nullable":true}},"additionalProperties":false,"description":"The loan response's `preApproval` block: the last result, and whether and why a re-run is refused."},"PreApprovalRun":{"type":"object","properties":{"date":{"type":"string","description":"When the run was made, ISO 8601 in UTC.","format":"date-time"},"actorUserId":{"type":"string","description":"Unique identifier (GUID) of the user who ran it; null when no user ran it.","format":"uuid","nullable":true},"purchasePrice":{"type":"number","description":"Purchase price the run used, in dollars.","format":"double"},"downPayment":{"type":"number","description":"Down payment the run used, in dollars.","format":"double"},"annualIncome":{"type":"number","description":"Annual income the run used, in dollars.","format":"double"},"occupancy":{"type":"string","description":"Occupancy the run used: PrimaryResidence, SecondaryResidence or Investment.","nullable":true},"incomeType":{"type":"string","description":"Income type the run used, for example W2-earner.","nullable":true},"loanType":{"type":"string","description":"Loan type the run used: VA, FHA, Conventional or NonConforming.","nullable":true},"isApproved":{"type":"boolean","description":"True when the run was approved."},"denialReasons":{"type":"array","items":{"type":"string"},"description":"Why the run was denied; empty when approved.","nullable":true},"loanAmount":{"type":"number","description":"Loan amount of the run, in dollars.","format":"double"},"maxLoanAmount":{"type":"number","description":"Largest loan amount the borrower qualified for, in dollars.","format":"double"},"dti":{"type":"number","description":"Debt-to-income ratio of the run, in percent.","format":"double"},"ltv":{"type":"number","description":"Loan-to-value ratio of the run, in percent.","format":"double"},"creditScore":{"type":"integer","description":"Qualifying credit score of the run.","format":"int32"},"rate":{"type":"number","description":"Best note rate found, in percent; null when not approved.","format":"double","nullable":true},"loanProgram":{"type":"string","description":"Program priced, as a term label such as 30-Yr.; null when not approved.","nullable":true},"documentId":{"type":"string","description":"The letter document when approved; the denied document is filed by the subscriber, so it is not known here.","format":"uuid","nullable":true}},"additionalProperties":false,"description":"One persisted pre-approval run, appended to `PreApprovalRuns` and never trimmed."},"Contact":{"type":"object","properties":{"id":{"type":"string","description":"Id of the contact (GUID).","format":"uuid","nullable":true},"email":{"type":"string","description":"Email address.","nullable":true},"firstName":{"type":"string","description":"First name.","nullable":true},"lastName":{"type":"string","description":"Last name.","nullable":true},"agentName":{"type":"string","description":"Full name of the agent.","nullable":true},"roleName":{"type":"string","description":"Display name of the contact's role.","nullable":true},"agentNMLS":{"type":"string","description":"The agent's NMLS id.","nullable":true},"role":{"$ref":"#/components/schemas/ContactRole"},"phone":{"type":"string","description":"Phone number.","nullable":true},"mobilePhone":{"type":"string","description":"Mobile phone number.","nullable":true},"companyPhone":{"type":"string","description":"The agent's company phone number.","nullable":true},"zip":{"type":"string","description":"ZIP or postal code.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"street":{"type":"string","description":"Street address.","nullable":true},"companyNMLS":{"type":"string","description":"The agent's company NMLS id.","nullable":true}},"additionalProperties":false,"description":"A person on or tied to a loan, such as the referring agent."},"ContactRole":{"enum":["Other","Appraiser","Escrow","CreditReport","Title","MortgageInsurance","ListingAgent","SellingAgent","Builder","Underwriter","Investor","Servicing","BuyerAttorney","SellerAttorney","HomeOwnerInsurance","HazardInsurance","MarketingLead","Seller","Surveyor","LoanOfficer","Bank","Lender","Processor","CallCenterAgent","LoanOpener","Manager","Broker","BrokerRep","ECOA","Realtor","Mortgagee","HomeOwnerAssociation","BuyerAgent","ClosingAgent","FairHousingLending","HomeInspection","FloodProvider","CreditReportAgency2","CreditReportAgency3","Shipper","BrokerProcessor","Trustee","Funder","PostCloser","Insuring","CollateralAgent","DocDrawer","PropertyManagement","TitleUnderwriter","CreditAuditor","DisclosureDesk","JuniorProcessor","JuniorUnderwriter","LegalAuditor","LoanOfficerAssistant","Purchaser","QCCompliance","Secondary","PestInspection","Subservicer","ExternalSecondary","ExternalPostCloser","LoanPurchasePayee","AppraisalManagementCompany","Referral","Notary","TaxServicer","SupervisoryAppraiser","Attorney","PropertyInspector","CPATaxPreparer","LockDesk","MortgageServiceOrganization","Verifications","TaxCollector","TaxTranscripts"],"type":"string","description":"The role a contact plays on a loan. Each value names that role: Other (anything not listed), Appraiser, Escrow, CreditReport (credit agency), Title, MortgageInsurance, ListingAgent, SellingAgent, Builder, Underwriter, Investor, Servicing, BuyerAttorney, SellerAttorney, HomeOwnerInsurance (obsolete; use HazardInsurance), HazardInsurance (homeowner's insurance), MarketingLead, Seller, Surveyor, LoanOfficer, Bank, Lender, Processor, CallCenterAgent, LoanOpener, Manager, Broker, BrokerRep, ECOA, Realtor, Mortgagee, HomeOwnerAssociation, BuyerAgent, ClosingAgent, FairHousingLending, HomeInspection, FloodProvider, CreditReportAgency2, CreditReportAgency3, Shipper, BrokerProcessor (external processor), Trustee, Funder, PostCloser, Insuring, CollateralAgent, DocDrawer, PropertyManagement, TitleUnderwriter, CreditAuditor, DisclosureDesk, JuniorProcessor, JuniorUnderwriter, LegalAuditor, LoanOfficerAssistant, Purchaser, QCCompliance, Secondary, PestInspection, Subservicer, ExternalSecondary, ExternalPostCloser, LoanPurchasePayee, AppraisalManagementCompany, Referral, Notary, TaxServicer, SupervisoryAppraiser, Attorney, PropertyInspector, CPATaxPreparer, LockDesk, MortgageServiceOrganization, Verifications, TaxCollector and TaxTranscripts."},"LoanCompany":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the company.","format":"uuid"},"name":{"type":"string","description":"Company name.","nullable":true},"code":{"type":"string","description":"The company's short code.","nullable":true},"companyTypeName":{"type":"string","description":"Name of the company type, for example TPO; null for a standard company.","nullable":true}},"additionalProperties":false,"description":"The company a loan belongs to, as carried on a loan read. Enough for a reader to tell a TPO\r\nloan from a Standard one without a second call: `CompanyTypeName` is the company\r\ntype's name (\"TPO\"), and null means Standard, the same rule the companies endpoint applies."},"LoanAppSectionCompletionReport":{"type":"object","properties":{"sections":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppSectionCompletion"},"description":"Per-section completion report for the 7 borrower wizard sections, in sidebar order. Each entry carries the section status plus the required fields that still have no value, mirroring the frontend's section validation exactly.","nullable":true},"missingRequiredFields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppMissingField"},"description":"Every required field that still has no value, across all sections, in the order the application asks for them (section by section, top to bottom). The first entry is the next field to fill in.","nullable":true},"pairs":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppPairCompletion"},"description":"The missing required fields and rule errors of all sections grouped by borrower pair. missingRequiredFields keeps every entry; this adds the grouping.","nullable":true},"allSectionsComplete":{"type":"boolean","description":"True when every section's status is 'Completed' or 'Accepted' (the agent-side completion bar used for submission)."},"isReadyToSubmit":{"type":"boolean","description":"True when the loan application can be submitted right now: not already submitted, every section signed off, every validated section's required fields answered, and every required borrower task Uploaded/Submitted/Accepted. The server refuses a submit while this is false."},"submitBlockers":{"type":"array","items":{"type":"string"},"description":"Human-readable reasons the loan application cannot be submitted yet. Empty when isReadyToSubmit is true.","nullable":true},"blockers":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppReadinessBlocker"},"description":"The same reasons as submitBlockers, structured: kind, section or task, status, and the missing fields.","nullable":true}},"additionalProperties":false,"description":"How complete the borrower's loan application is, section by section, and whether it can be submitted."},"LoanAppSectionCompletion":{"type":"object","properties":{"sectionName":{"type":"string","description":"Wizard section name as shown in the borrower UI sidebar: 'About You', 'Loan & Property', 'Work & Income', 'Assets', 'Liabilities', 'Real Estate', or 'Additional Details'.","nullable":true},"taskCode":{"type":"string","description":"Code of the verification task that tracks this section, e.g. 'LoanAndPropertyVerification'.","nullable":true},"taskName":{"type":"string","description":"Name of the verification task that tracks this section, e.g. 'Loan and Property Verification'.","nullable":true},"status":{"type":"string","description":"Normalized section status as the borrower UI sidebar shows it: 'NotStarted', 'InProgress', 'Submitted', 'Completed', or 'Accepted'. Derived from the verification task status; sections in 'Completed' or 'Accepted' count toward overall loan app completion.","nullable":true},"rawTaskStatusName":{"type":"string","description":"The verification task's raw status name as stored (e.g. 'Uploaded', 'Requested'); null when the loan has no verification task for this section (e.g. loans synced from the LOS that never went through the wizard).","nullable":true},"isValid":{"type":"boolean","description":"True when every required field in this section has a value and no section rule is violated, i.e. the borrower could press 'Complete Section' right now. Always true for Assets and Liabilities, which have no field-level validation here (use the section status for them)."},"fields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppFieldStatus"},"description":"Every wizard field in this section with its per-loan required flag and whether it currently holds a value. Empty for Assets and Liabilities, which have no field-level validation.","nullable":true},"missingRequiredFields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppMissingField"},"description":"Convenience list: the entries from 'fields' that are required and have no value. Empty when the section's data is complete.","nullable":true},"ruleErrors":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppSectionRuleError"},"description":"Cross-field rule violations in this section (e.g. 2-year address/employment history gaps, loan amount above purchase price). Empty when no rules are violated.","nullable":true},"pairs":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppPairCompletion"},"description":"The same missing fields and rule errors grouped by borrower pair. The flat lists above keep every entry; this adds the grouping. Empty for sections with no per-borrower fields.","nullable":true},"notes":{"type":"array","items":{"type":"string"},"description":"Caveats about how this section's completion is evaluated, when applicable.","nullable":true}},"additionalProperties":false},"LoanAppFieldStatus":{"type":"object","properties":{"path":{"type":"string","description":"Dot-path of the field, e.g. 'loanInfo.borrowers[0].currentAddress.zipCode'. Matches the frontend validation key and doubles as the camelCase JSON path into this same response.","nullable":true},"label":{"type":"string","description":"Human-readable label for the field, e.g. 'Co-Borrower Current Address ZIP Code'.","nullable":true},"required":{"type":"boolean","description":"Whether this field is required for THIS loan, with conditional rules already resolved (e.g. purchase price is not required on a Refinance, dependent ages only when the borrower has dependents). A field that is required and has no value blocks section completion."},"hasValue":{"type":"boolean","description":"Whether the field currently holds an acceptable value. False when empty AND when a value fails its format check (e.g. a malformed SSN or email), matching the wizard's treatment of invalid values as missing. required && !hasValue means the field is blocking section completion."},"borrower":{"type":"string","description":"'Borrower' or 'CoBorrower' when the field belongs to a specific applicant; null for loan-level fields.","nullable":true},"pairIndex":{"type":"integer","description":"The borrower pair (0 is the primary pair) the field belongs to; null for loan-level fields.","format":"int32","nullable":true}},"additionalProperties":false},"LoanAppMissingField":{"type":"object","properties":{"fieldPath":{"type":"string","description":"Dot-path of the required field that has no value, e.g. 'loanInfo.borrowers[0].currentAddress.zipCode'. Matches the frontend validation key and doubles as the camelCase JSON path into this same response.","nullable":true},"label":{"type":"string","description":"Human-readable label for the field, e.g. 'Co-Borrower Current Address ZIP Code'.","nullable":true},"section":{"type":"string","description":"The wizard section the field is on, e.g. 'About You'.","nullable":true},"borrower":{"type":"string","description":"'Borrower' or 'CoBorrower' when the field belongs to a specific applicant; null for loan-level fields.","nullable":true},"pairIndex":{"type":"integer","description":"The borrower pair (0 is the primary pair) the field belongs to; null for loan-level fields.","format":"int32","nullable":true}},"additionalProperties":false},"LoanAppSectionRuleError":{"type":"object","properties":{"message":{"type":"string","description":"Cross-field rule violation message, identical to the text the borrower-facing wizard shows (e.g. 'Address history must be at least 2 years', 'Missing March 2024 - May 2024'). Month-coverage rules are evaluated with the server clock, so results near a month boundary can differ by one month from a browser in another timezone.","nullable":true},"borrower":{"type":"string","description":"'Borrower' or 'CoBorrower' when the rule applies to a specific applicant; null for loan-level rules.","nullable":true},"pairIndex":{"type":"integer","description":"The borrower pair (0 is the primary pair) the rule belongs to; null for loan-level rules.","format":"int32","nullable":true}},"additionalProperties":false},"LoanAppPairCompletion":{"type":"object","properties":{"pairIndex":{"type":"integer","description":"The borrower pair's position on the loan; 0 is the primary pair.","format":"int32"},"isValid":{"type":"boolean","description":"True when this pair has no missing required field and no rule error."},"missingRequiredFields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppMissingField"},"description":"The required fields of this pair's borrower and co-borrower that still have no value.","nullable":true},"ruleErrors":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppSectionRuleError"},"description":"The cross-field rule violations of this pair's borrower and co-borrower.","nullable":true},"status":{"type":"string","description":"Normalized status of this pair's own verification task for the section ('NotStarted', 'InProgress', 'Submitted', 'Completed', 'Accepted'). Set only when pairs are enabled, and only on sections that have one task per pair.","nullable":true},"rawTaskStatusName":{"type":"string","description":"This pair's verification task's raw status name; null when the pair has no task for the section yet.","nullable":true},"taskId":{"type":"string","description":"Id of this pair's verification task for the section, the id sign_off_loan_section takes; null when the pair has no task yet.","format":"uuid","nullable":true}},"additionalProperties":false},"LoanAppReadinessBlocker":{"type":"object","properties":{"kind":{"type":"string","description":"'AlreadySubmitted', 'SectionNotSignedOff', 'MissingFields', 'RequiredTask' or 'InvalidAsset'.","nullable":true},"section":{"type":"string","description":"Wizard section name, for SectionNotSignedOff and MissingFields.","nullable":true},"pairIndex":{"type":"integer","description":"The borrower pair (0 is the primary pair) a MissingFields blocker belongs to; null for a loan-level blocker.","format":"int32","nullable":true},"taskCode":{"type":"string","description":"Code of the section's verification task, for SectionNotSignedOff and MissingFields.","nullable":true},"taskId":{"type":"string","description":"The blocking task's id, for SectionNotSignedOff and RequiredTask; null when the section has no task.","format":"uuid","nullable":true},"task":{"type":"string","description":"The blocking task's name, for RequiredTask.","nullable":true},"status":{"type":"string","description":"The blocking task's status: the normalized section status for SectionNotSignedOff, the raw task status name for RequiredTask.","nullable":true},"assetAccountId":{"type":"string","description":"The asset account that cannot be submitted, for InvalidAsset; the message names the asset.","format":"uuid","nullable":true},"missingFields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppMissingField"},"description":"Required fields with no value, for MissingFields.","nullable":true},"ruleErrors":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppSectionRuleError"},"description":"Cross-field rule violations, for MissingFields.","nullable":true},"message":{"type":"string","description":"Human-readable form of this blocker.","nullable":true}},"additionalProperties":false,"description":"One reason a loan application cannot move forward (a section sign-off or the final submit).\r\nStructured so a client can render it without parsing text; `message` is the\r\nhuman-readable form."},"LoanFigures":{"type":"object","properties":{"frontEndDti":{"type":"number","description":"Qualifying front-end (housing expense) ratio, `sQualTopR`.","format":"double","nullable":true},"backEndDti":{"type":"number","description":"Qualifying back-end (total debt) ratio, `sQualBottomR`.","format":"double","nullable":true},"ltv":{"type":"number","description":"Base loan-to-value ratio, `sLtvR`.","format":"double","nullable":true},"cltv":{"type":"number","description":"Base combined loan-to-value ratio, `sCltvR`.","format":"double","nullable":true},"totalIncome":{"type":"number","description":"Total qualifying monthly income, `sLTotI`.","format":"double","nullable":true},"totalPayment":{"type":"number","description":"Total proposed monthly payment, `sMonthlyPmt`.","format":"double","nullable":true},"cashToClose":{"type":"number","description":"Cash to close, `sTransNetCash`.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's numbers as the LOS holds them after a change: both DTI ratios, LTV, CLTV, total income, total payment and cash to close. Each is read back from the LOS, never calculated here; null when the LOS returned nothing for it."},"LoanHeaderFigures":{"type":"object","properties":{"representativeFico":{"type":"integer","description":"Middle of the primary borrower of pair 1's bureau scores (lower of two, the one when one); null with no credit.","format":"int32","nullable":true},"ausEngine":{"type":"string","description":"The latest AUS run's engine, \"DU\" or \"LPA\" (`AusRunTypes`), by run date across both; null with no run.","nullable":true},"ausResult":{"type":"string","description":"The result text of the run shown as the LOS gives it, e.g. \"Approve/Eligible\"; null when no run has a result.","nullable":true},"ausSummary":{"type":"string","description":"The text the header shows for the AUS key: engine and result, e.g. \"DU Approve/Eligible\"; the engine and the run's status text when no run has a result; null with no run.","nullable":true},"ausRunDate":{"type":"string","description":"When the AUS run shown was made (UTC).","format":"date-time","nullable":true},"leSentDate":{"type":"string","description":"The issued date of the first initial Loan Estimate; null before one was sent.","format":"date","nullable":true},"rateLockStatus":{"type":"string","description":"The loan's rate lock status as the LOS reports it, for example Locked or Not Locked; null when unknown.","nullable":true},"rateLockExpirationDate":{"type":"string","description":"The rate lock's expiration date (`LoanRateLock.ExpirationDate`).","format":"date","nullable":true},"loanOfficerName":{"type":"string","description":"The loan officer's name.","nullable":true},"processorName":{"type":"string","description":"The loan processor's name.","nullable":true}},"additionalProperties":false,"description":"The header figures the loan page shows that no other field of the loan read carries: the representative FICO, the latest AUS run, the date the first Loan Estimate was sent, the rate lock and the two assigned people. Each is null when the loan has no value."},"LoanInfo":{"type":"object","properties":{"loanId":{"type":"string","description":"The loan's id in the LOS (the same value as the loan's externalId). Null for a loan not in the LOS yet.","nullable":true},"loanNumber":{"type":"string","description":"The loan number the LOS assigned, shown to people.","nullable":true},"sourceLoanNumber":{"type":"string","description":"The loan number the originating system gave this loan, from an imported MISMO file. Never Henge's own loan number (loanNumber).","nullable":true},"loanAmount":{"type":"number","description":"Base loan amount, in dollars, before any financed mortgage insurance premium or funding fee.","format":"double","nullable":true},"loanType":{"$ref":"#/components/schemas/FieldType"},"mortgageLoanType":{"type":"string","description":"Raw product-class code of the loan, a number as text. It is not the loan type (loanType). Code 0 means government or unspecified.","nullable":true},"purpose":{"$ref":"#/components/schemas/FieldType"},"lienPosition":{"$ref":"#/components/schemas/FieldType"},"loanStatus":{"$ref":"#/components/schemas/FieldType"},"propertyType":{"$ref":"#/components/schemas/FieldType"},"loanStatusDate":{"type":"string","description":"When the loan reached its current status (ISO 8601 date and time).","format":"date-time","nullable":true},"appraisalValue":{"type":"number","description":"Appraised value of the subject property, in dollars.","format":"double","nullable":true},"purchasePrice":{"type":"number","description":"Purchase price of the subject property, in dollars. Purchase loans only.","format":"double","nullable":true},"subjectPropertyAddress":{"$ref":"#/components/schemas/SubjectPropertyAddress"},"occupancy":{"$ref":"#/components/schemas/FieldType"},"mannerOfTitle":{"type":"string","description":"How title will be held, as entered (free text). finalVesting is the newer field.","nullable":true},"refinance":{"$ref":"#/components/schemas/RefinanceInfo"},"assignments":{"$ref":"#/components/schemas/Assignments"},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/PosBorrower"},"description":"The loan's borrowers. A co-borrower is nested inside the borrower it is paired with, in coBorrower.","nullable":true},"proposedHousingExpense":{"$ref":"#/components/schemas/ProposedHousingExpense"},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/CustomField"},"description":"Custom fields configured on the loan, with their values.","nullable":true},"closingDate":{"type":"string","description":"Scheduled closing date (ISO 8601 date and time).","format":"date-time","nullable":true},"estimatedCompensation":{"type":"number","description":"Estimated originator compensation for the loan, in dollars.","format":"double","nullable":true},"lockedCompensation":{"type":"number","description":"Originator compensation fixed by the rate lock, in dollars.","format":"double","nullable":true},"lockStatus":{"type":"string","description":"Rate lock status as the LOS names it, for example Not Locked or Locked.","nullable":true},"confirmedLockPeriod":{"type":"string","description":"Length of the confirmed rate lock, in days, as text.","nullable":true},"downPayment":{"type":"number","description":"Down payment, in dollars.","format":"double","nullable":true},"downPaymentPercentage":{"type":"number","description":"Down payment as a percent of the purchase price, for example 20.","format":"double","nullable":true},"downPaymentSources":{"type":"array","items":{"$ref":"#/components/schemas/DownPaymentSource"},"description":"Where the down payment comes from.","nullable":true},"mortgageInsurance":{"type":"number","description":"Mortgage insurance amount, in dollars.","format":"double","nullable":true},"annualIncome":{"type":"number","description":"The borrower's total annual income, in dollars.","format":"double","nullable":true},"hasAssetsForDownPayment":{"type":"boolean","description":"True when the borrower has assets to cover the down payment."},"hoaAmount":{"type":"number","description":"Homeowners association dues, in dollars.","format":"double","nullable":true},"noteRate":{"type":"number","description":"Note rate as a percent, for example 6.875.","format":"double","nullable":true},"apr":{"type":"number","description":"Annual percentage rate, as a percent, for example 7.012.","format":"double","nullable":true},"ltvRatios":{"$ref":"#/components/schemas/LtvRatios"},"numberOfUnits":{"type":"integer","description":"Number of units in the subject property.","format":"int32","nullable":true},"qualification":{"$ref":"#/components/schemas/Qualification"},"loanTerm":{"type":"integer","description":"Loan term, in months.","format":"int32","nullable":true},"loanProgram":{"type":"string","description":"Name of the loan program the loan is in.","nullable":true},"lockExpirationDate":{"type":"string","description":"Date the rate lock expires (ISO 8601 date).","format":"date","nullable":true},"amortizationType":{"$ref":"#/components/schemas/FieldType"},"isTestFile":{"type":"boolean","description":"True for a test loan: one created from a non-production environment or by a test user."},"isDscrLoan":{"type":"boolean","description":"True for a debt service coverage ratio (DSCR) loan, qualified on the property's rental income rather than the borrower's income."},"subjectPropertyRentalIncome":{"$ref":"#/components/schemas/SubjectPropertyRentalIncome"},"loanLevelCredit":{"$ref":"#/components/schemas/LoanLevelCredit"},"credit":{"$ref":"#/components/schemas/LoanCredit"},"escrowWaiver":{"type":"boolean","description":"True when the borrower waives escrow of taxes and insurance. Null when not set.","nullable":true},"totalLoanAmount":{"type":"number","description":"Loan amount in dollars including any financed upfront mortgage insurance premium or funding fee, labelled Total Loan Amt in the LOS. loanAmount is the base amount before that financing, so the two differ on FHA, VA and USDA loans and agree on conventional ones. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"investorLockProjectedProfit":{"type":"number","description":"Projected profit on the investor lock, in dollars; negative for a loss. Read-only.","format":"double","nullable":true},"branchChannel":{"$ref":"#/components/schemas/FieldType"},"financedUpfrontMipOrFundingFee":{"type":"number","description":"The upfront mortgage insurance premium or funding fee rolled into the loan amount, in dollars. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"maturityTermInMonths":{"type":"integer","description":"Term in months at which the balance comes due. Equals loanTerm on a fully amortising loan and is shorter on a balloon.","format":"int32","nullable":true},"loanTypeOtherDescription":{"type":"string","description":"Free text describing the loan type when loanType is Other.","nullable":true},"armDescription":{"type":"string","description":"Description of the adjustable rate, for example 5/1 ARM. Empty on fixed-rate loans.","nullable":true},"printAmortizationTypeAsOther":{"type":"boolean","description":"True to print the amortization type as Other on the loan application form.","nullable":true},"amortizationTypeOtherDescription":{"type":"string","description":"The text printed as the amortization type when printAmortizationTypeAsOther is set.","nullable":true},"urlaLoanPurposeCode":{"type":"string","description":"Raw code for the loan purpose as stated on the 2019 loan application form (URLA). It is not purpose: the form keeps a three-way Purchase, Refinance or Other answer apart from the finer-grained purpose list, and the two can disagree.","nullable":true},"urlaLoanPurposeName":{"type":"string","description":"urlaLoanPurposeCode decoded, for example Purchase or Refinance. Null for a code not recognized. Read only.","nullable":true},"urlaLoanPurposeOtherDescription":{"type":"string","description":"Free text when the form's loan purpose is Other.","nullable":true},"isRenovationLoan":{"type":"boolean","description":"True when the loan finances renovation work, for example a HomeStyle or FHA 203(k) loan.","nullable":true},"isLineOfCredit":{"type":"boolean","description":"True when the loan is a line of credit rather than a closed-end mortgage.","nullable":true},"isNewConstruction":{"type":"boolean","description":"True when the subject property is new construction.","nullable":true},"isEmployeeLoan":{"type":"boolean","description":"True when the borrower is an employee of the lender.","nullable":true},"isOptionArm":{"type":"boolean","description":"True when the loan is a payment-option adjustable rate mortgage.","nullable":true},"optionArmTeaserRate":{"type":"number","description":"The introductory rate on a payment-option ARM, as a percent.","format":"double","nullable":true},"higherPricedMortgageTypeCode":{"type":"string","description":"Raw code for the higher-priced or high-cost classification, for example None. Can be overridden; lock it with fieldLocks or the LOS recomputes it from the APR test.","nullable":true},"higherPricedMortgageTypeName":{"type":"string","description":"higherPricedMortgageTypeCode decoded, for example None or HPML. Null for a code not recognized. Read only.","nullable":true},"leadSource":{"type":"string","description":"Where the lead came from.","nullable":true},"totalMonthlyLiabilities":{"type":"number","description":"Total monthly liability payments across all borrowers, in dollars, which the LOS divides into income for the back-end ratio. Calculated by the LOS; a write is ignored. Summing the borrowers' liability amounts does not reproduce it, because the LOS leaves out liabilities marked paid off or omitted.","format":"double","nullable":true},"presentHousingExpense":{"type":"number","description":"The borrower's present total monthly housing expense, in dollars: the baseline the payment shock is measured against. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"paymentShock":{"$ref":"#/components/schemas/PaymentShock"},"fieldLocks":{"$ref":"#/components/schemas/LoanFieldLocks"},"trusts":{"type":"array","items":{"$ref":"#/components/schemas/LoanTrust"},"description":"Trusts that will hold title, at most two. Depending on your company's setup they are read from and written to the LOS, or kept in Henge only.","nullable":true},"titleHeldInTrust":{"type":"boolean","description":"Will title be held in a trust: true yes, false no, null not answered. Not sent to the LOS.","nullable":true},"finalVesting":{"type":"string","description":"The final vesting statement as it will read on title. Depending on your company's setup it is read from and written to the LOS, or kept in Henge only.","nullable":true},"aus":{"$ref":"#/components/schemas/LoanAusResult"},"rateLock":{"$ref":"#/components/schemas/LoanRateLock"},"temporaryBuydown":{"$ref":"#/components/schemas/LoanTemporaryBuydown"}},"additionalProperties":false,"description":"The loan's terms and figures: amount, type, purpose, property, borrowers, rate, lock, housing expense and qualification."},"FieldType":{"type":"object","properties":{"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A value chosen from a list in the LOS, with its code and display name. Also the base of records that carry an LOS id."},"SubjectPropertyAddress":{"type":"object","properties":{"propertyId":{"type":"string","description":"Identifier (GUID) of the property this address belongs to.","format":"uuid","nullable":true},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"The address of the loan's subject property."},"RefinanceInfo":{"type":"object","properties":{"cashOutAmount":{"type":"number","description":"Cash the borrower takes out, in dollars.","format":"double","nullable":true},"purpose":{"$ref":"#/components/schemas/FieldType"},"purposeOtherDescription":{"type":"string","description":"Free-text refinance purpose when the purpose is Other.","nullable":true}},"additionalProperties":false,"description":"Details that apply to a refinance loan."},"Assignments":{"type":"object","properties":{"loanOfficer":{"$ref":"#/components/schemas/Contact"},"loanAssistant":{"$ref":"#/components/schemas/Contact"},"loanProcessor":{"$ref":"#/components/schemas/Contact"},"referredBy":{"$ref":"#/components/schemas/Contact"}},"additionalProperties":false,"description":"The people working a loan: its loan officer, assistant, processor and the referring contact. Each is null when none is assigned."},"PosBorrower":{"type":"object","properties":{"hdBorrowerId":{"type":"string","description":"Id of the borrower on this loan (GUID). Other endpoints take it as ownerBorrowerIds.","format":"uuid","nullable":true},"clientId":{"type":"string","description":"Id of the borrower's client record (GUID).","format":"uuid","nullable":true},"externalId":{"type":"string","description":"The borrower's (consumer) id in the LOS.","nullable":true},"externalLabel":{"type":"string","description":"A display label kept by Henge. Not sent to the LOS.","nullable":true},"externalApplicationId":{"type":"string","description":"Id of the LOS application (borrower pair) this person is on, used to match the person to the right pair in the LOS. A co-borrower carries its pair's. Null until the LOS has reported it.","nullable":true},"externalLegacyApplicationId":{"type":"string","description":"Id of the borrower pair's older-style application record in the LOS, kept for LOS writes. Null when it has not been read yet.","nullable":true},"firstName":{"type":"string","description":"Borrower's legal first name, as on their ID; sent to the LOS.","nullable":true},"lastName":{"type":"string","description":"Borrower's legal last name, as on their ID; sent to the LOS.","nullable":true},"middleName":{"type":"string","description":"Borrower's middle name or initial.","nullable":true},"suffixName":{"type":"string","description":"Name suffix, for example Jr, Sr or III.","nullable":true},"contacts":{"$ref":"#/components/schemas/Contacts"},"maritalStatus":{"$ref":"#/components/schemas/FieldType"},"citizenship":{"$ref":"#/components/schemas/FieldType"},"birthDate":{"type":"string","description":"Date of birth (ISO 8601 date).","nullable":true},"language":{"$ref":"#/components/schemas/Language"},"isMilitary":{"type":"boolean","description":"True when the borrower serves or has served in the military.","nullable":true},"currentAddress":{"$ref":"#/components/schemas/Residence"},"mailingAddress":{"$ref":"#/components/schemas/MailingAddress"},"previousAddresses":{"type":"array","items":{"$ref":"#/components/schemas/Residence"},"description":"Earlier residences, listed when the borrower has lived at the current address for a short time.","nullable":true},"ownedProperties":{"type":"array","items":{"$ref":"#/components/schemas/OwnedProperty"},"description":"Real estate the borrower owns.","nullable":true},"declaration":{"$ref":"#/components/schemas/Declaration"},"demographics":{"$ref":"#/components/schemas/Demographics"},"employments":{"type":"array","items":{"$ref":"#/components/schemas/Employment"},"description":"The borrower's employers, current and previous.","nullable":true},"otherIncomes":{"type":"array","items":{"$ref":"#/components/schemas/Income"},"description":"Income that does not come from an employer, such as Social Security or rental income.","nullable":true},"liabilities":{"type":"array","items":{"$ref":"#/components/schemas/PosLiability"},"description":"The borrower's debts.","nullable":true},"veteranDetail":{"$ref":"#/components/schemas/VeteranDetail"},"creditScores":{"type":"array","items":{"$ref":"#/components/schemas/PosCreditScore"},"description":"Credit scores on the borrower's file.","nullable":true},"hmdaApplicantCreditScore":{"$ref":"#/components/schemas/HmdaApplicantCreditScore"},"creditAuthorizationDate":{"type":"string","description":"Date the borrower authorized a credit check (ISO 8601 date). Null when they have not.","nullable":true},"isBeta":{"type":"boolean","description":"True when the borrower's account is flagged for beta features of the borrower app.","nullable":true},"fico":{"type":"integer","description":"The borrower's FICO score on file, as a whole number. Null when not set.","format":"int32","nullable":true},"softCreditExternalId":{"type":"string","description":"Id of the soft credit check recorded for the borrower in the LOS. Null when none.","nullable":true},"isPrimary":{"type":"boolean","description":"True for the primary borrower of the pair."},"borrowerType":{"type":"string","description":"The borrower's role on the loan, as a code, for example Borrower or CoSigner.","nullable":true},"assets":{"type":"array","items":{"$ref":"#/components/schemas/PosAsset"},"description":"The assets the borrower reports.","nullable":true},"numberOfDependents":{"type":"integer","description":"Number of people who depend on the borrower for support.","format":"int32","nullable":true},"dependentAges":{"type":"string","description":"Ages of the borrower's dependents, as entered (free text).","nullable":true},"ssn":{"type":"string","description":"Social Security number, digits only (dashes are removed when you send it). Sensitive: only some callers receive it.","nullable":true},"encryptedSsn":{"type":"string","description":"The Social Security number in encrypted form, for passing between Henge services. Do not rely on its format.","nullable":true},"pairId":{"type":"string","description":"The borrower pair this borrower is on. Set by the server; a co-borrower carries its pair's.","format":"uuid","nullable":true},"pairIndex":{"type":"integer","description":"The pair's position on the loan, 0 to 3; 0 is the primary pair.","format":"int32"},"vestingType":{"$ref":"#/components/schemas/BorrowerVestingType"},"coBorrower":{"allOf":[{"$ref":"#/components/schemas/PosBorrower"}],"description":"The co-borrower this borrower is paired with, in the same shape."}},"additionalProperties":false,"description":"A borrower on the loan: identity, contact details, addresses, employment, income, assets, liabilities, credit and declarations. A co-borrower is nested in coBorrower."},"Contacts":{"type":"object","properties":{"email":{"type":"string","description":"Email address.","nullable":true},"homePhone":{"type":"string","description":"Home phone number.","nullable":true},"mobilePhone":{"type":"string","description":"Mobile phone number.","nullable":true},"workPhone":{"type":"string","description":"Work phone number.","nullable":true}},"additionalProperties":false,"description":"How to reach a borrower."},"Language":{"type":"object","properties":{"code":{"type":"string","description":"Language code.","nullable":true},"otherDescription":{"type":"string","description":"Free-text language name when the code is Other.","nullable":true},"refuseToAnswer":{"type":"boolean","description":"True when the borrower chose not to answer."}},"additionalProperties":false,"description":"The language the borrower prefers."},"Residence":{"type":"object","properties":{"residencyDurationInMonths":{"type":"integer","description":"Months the borrower has lived at this address.","format":"int32","nullable":true},"residencyType":{"type":"string","description":"Whether the borrower owns, rents or lives rent-free at the address, as the LOS names it.","nullable":true},"monthlyRent":{"type":"number","description":"Monthly rent, in dollars.","format":"double","nullable":true},"startDate":{"type":"string","description":"Date the borrower moved in (ISO 8601 date).","nullable":true},"endDate":{"type":"string","description":"Date the borrower moved out (ISO 8601 date). Empty for the current address.","nullable":true},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A place the borrower lives or has lived, with how long and what they pay."},"MailingAddress":{"type":"object","properties":{"isTheSameAsCurrentAddress":{"type":"boolean","description":"True when the mailing address is the borrower's current residence."},"isTheSameAsSubjectPropertyAddress":{"type":"boolean","description":"True when the mailing address is the subject property."},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A borrower's mailing address, which can be flagged as the same as their current or subject property address."},"OwnedProperty":{"type":"object","properties":{"externalLabel":{"type":"string","description":"A display label kept by Henge. Not sent to the LOS.","nullable":true},"dispositionStatus":{"$ref":"#/components/schemas/FieldType"},"occupancy":{"$ref":"#/components/schemas/FieldType"},"intendedOccupancy":{"$ref":"#/components/schemas/FieldType"},"intendedOccupancyOtherDescription":{"type":"string","description":"Free-text description when intendedOccupancy is Other.","nullable":true},"marketValue":{"type":"number","description":"Market value of the property, in dollars.","format":"double","nullable":true},"monthlyRentalGross":{"type":"number","description":"Gross monthly rental income from the property, in dollars.","format":"double"},"maintenanceExpense":{"type":"number","description":"Maintenance expense for the property, in dollars.","format":"double","nullable":true},"monthlyRentalNet":{"type":"number","description":"Monthly rental income net of the property's expenses, in dollars.","format":"double","nullable":true},"lienBalance":{"type":"number","description":"Unpaid balance of the liens on the property, in dollars, as entered.","format":"double","nullable":true},"lienMonthlyPayment":{"type":"number","description":"Monthly payment on the liens on the property, in dollars, as entered.","format":"double","nullable":true},"isSubject":{"type":"boolean","description":"True when this is the subject property of the loan."},"isCurrent":{"type":"boolean","description":"True when this is the borrower's current residence."},"liabilities":{"type":"array","items":{"$ref":"#/components/schemas/PosLiability"},"description":"The mortgages tied to this property. Null or empty when none.","nullable":true},"liability":{"$ref":"#/components/schemas/PosLiability"},"tieId":{"type":"string","description":"What to send as a liability's securedPropertyId to tie it to this property: the LOS id, or the address before the loan is in the LOS. Recomputed on every read.","nullable":true},"securingLiabilityIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Ids (GUIDs) of the stored liabilities tied to this property. Recomputed on every read; a save does not set it.","nullable":true},"derivedLienBalance":{"type":"number","description":"Sum of the tied liabilities' balances, in dollars; null when no liability is tied. lienBalance stays what was entered.","format":"double","nullable":true},"derivedLienMonthlyPayment":{"type":"number","description":"Sum of the tied liabilities' monthly payments, in dollars; null when no liability is tied or none has a payment.","format":"double","nullable":true},"hasLienDifference":{"type":"boolean","description":"True when an entered lien figure disagrees with the tied liabilities. It is reported, never corrected."},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A property the borrower owns (real estate owned): where it is, how it is used, its value and rent, and the mortgages tied to it."},"PosLiability":{"type":"object","properties":{"amount":{"type":"number","description":"Unpaid balance, in dollars.","format":"double"},"monthlyPayment":{"type":"number","description":"Monthly payment, in dollars.","format":"double","nullable":true},"remainingMonths":{"type":"integer","description":"Months left on the debt. Null when the file does not say.","format":"int32","nullable":true},"isPaidOffAtClosing":{"type":"boolean","description":"True when the debt will be paid off at closing. Null leaves the LOS's value alone.","nullable":true},"isExcludedFromRatios":{"type":"boolean","description":"True when the payment is left out of the debt-to-income ratios. Null leaves the LOS's value alone.","nullable":true},"accountNumber":{"type":"string","description":"Account number of the debt, as reported.","nullable":true},"isExpense":{"type":"boolean","description":"True when the row is an expense rather than a debt, for example in an export."},"temporaryId":{"type":"string","description":"A client-chosen id that lets a save match a new row to the id the LOS assigns. Not stored as a field.","nullable":true},"isDeleted":{"type":"boolean","description":"Set true on a save to delete the LOS record named by externalId."},"borrowerExternalId":{"$ref":"#/components/schemas/BorrowerExternalId"},"borrowerExternalIds":{"type":"array","items":{"$ref":"#/components/schemas/BorrowerExternalId"},"description":"Every borrower who owns the debt. When empty, the borrower in borrowerExternalId owns it.","nullable":true},"cosmosDbLiabilityId":{"type":"string","description":"Id (GUID) of the matching liability on the loan, which links this entry to the liabilities endpoints.","format":"uuid"},"creditorName":{"type":"string","description":"Name of the creditor or lender.","nullable":true},"description":{"type":"string","description":"Free-text description of the debt.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A debt listed on the loan application."},"BorrowerExternalId":{"type":"object","properties":{"externalId":{"type":"string","description":"The borrower's id in the LOS.","nullable":true},"isPrimary":{"type":"boolean","description":"True for the primary borrower."}},"additionalProperties":false,"description":"Identifies a borrower (consumer) in the LOS."},"Declaration":{"type":"object","properties":{"hasIntentToOccupy":{"type":"boolean","description":"Borrower intends to occupy the subject property as their primary residence."},"isHomeownerPastThreeYears":{"type":"boolean","description":"Borrower has owned a home in the past three years."},"priorPropertyUsage":{"$ref":"#/components/schemas/FieldType"},"priorPropertyTitle":{"$ref":"#/components/schemas/FieldType"},"isBuyerSellerSpecialRelationship":{"type":"boolean","description":"Borrower has a family or business relationship with the seller of the subject property."},"hasUndisclosedBorrowedFunds":{"type":"boolean","description":"Borrower is borrowing money for this transaction (for example the down payment) that is not disclosed elsewhere in the application."},"undisclosedBorrowedFundsAmount":{"type":"number","description":"Amount of that borrowed money, in dollars.","format":"double","nullable":true},"hasUndisclosedCreditApplication":{"type":"boolean","description":"Borrower has applied, or will apply before closing, for other credit that is not disclosed."},"hasUndisclosedMortgageApplication":{"type":"boolean","description":"Borrower has applied for another mortgage on a property that is not disclosed."},"hasCleanEnergyLien":{"type":"boolean","description":"The subject property is subject to a lien that takes priority, such as a clean energy lien."},"isUndisclosedComakerOfNote":{"type":"boolean","description":"Borrower is a co-maker or endorser on a note whose debt is not disclosed."},"hasOutstandingJudgements":{"type":"boolean","description":"Borrower has outstanding judgments against them."},"isDelinquent":{"type":"boolean","description":"Borrower is delinquent or in default on a federal debt or loan."},"isPartyToLawsuit":{"type":"boolean","description":"Borrower is a party to a lawsuit."},"hasDeedInLieu":{"type":"boolean","description":"Borrower has transferred title to a property in lieu of foreclosure in the past seven years."},"hasShortSale":{"type":"boolean","description":"Borrower has completed a pre-foreclosure sale or short sale in the past seven years."},"hasForeclosure":{"type":"boolean","description":"Borrower has had a property foreclosed upon in the past seven years."},"hasBankruptcy":{"type":"boolean","description":"Borrower has declared bankruptcy in the past seven years."},"bankruptcyTypes":{"type":"array","items":{"type":"string"},"description":"The type (chapter) of each bankruptcy declared, when hasBankruptcy is true.","nullable":true},"hasHousingCounselingConsent":{"type":"boolean","description":"Housing counseling consent recorded for the borrower."}},"additionalProperties":false,"description":"A borrower's answers to the declarations on the loan application (Section 5 of the URLA)."},"Demographics":{"type":"object","properties":{"ethnicity":{"$ref":"#/components/schemas/Ethnicity"},"gender":{"$ref":"#/components/schemas/FieldType"},"races":{"type":"array","items":{"$ref":"#/components/schemas/Race"},"description":"The races the borrower reported.","nullable":true},"hasRefusedToDiscloseRace":{"type":"boolean","description":"True when the borrower chose not to provide their race."},"hasRefusedToDiscloseGender":{"type":"boolean","description":"True when the borrower chose not to provide their gender."},"hasRefusedToDiscloseEthnicity":{"type":"boolean","description":"True when the borrower chose not to provide their ethnicity."},"applicationTaken":{"$ref":"#/components/schemas/FieldType"},"isRaceBasedOnVisualOrSurname":{"type":"boolean","description":"True when the race was recorded from visual observation or surname rather than provided by the borrower."},"isGenderBasedOnVisualOrSurname":{"type":"boolean","description":"True when the gender was recorded from visual observation or surname rather than provided by the borrower."},"isEthnicityBasedOnVisualOrSurname":{"type":"boolean","description":"True when the ethnicity was recorded from visual observation or surname rather than provided by the borrower."}},"additionalProperties":false,"description":"The government monitoring (HMDA) information a borrower provided or declined to provide: ethnicity, race and gender."},"Ethnicity":{"type":"object","properties":{"origins":{"type":"array","items":{"$ref":"#/components/schemas/EthnicityOrigin"},"description":"The origins the borrower selected, for example Mexican or Puerto Rican.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"The borrower's ethnicity (HMDA), with the origins they selected."},"EthnicityOrigin":{"type":"object","properties":{"otherDescription":{"type":"string","description":"Free-text origin the borrower gave when the origin is Other.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One ethnicity origin the borrower selected."},"Race":{"type":"object","properties":{"raceDesignations":{"type":"array","items":{"$ref":"#/components/schemas/RaceDesignation"},"description":"The designations the borrower selected within this race, for example Asian Indian or Chinese.","nullable":true},"additionalDescription":{"type":"string","description":"Free-text detail the borrower gave about this race.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A race the borrower reported (HMDA), with the designations they selected."},"RaceDesignation":{"type":"object","properties":{"otherDescription":{"type":"string","description":"Free-text designation the borrower gave when the designation is Other.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One race designation the borrower selected."},"Employment":{"type":"object","properties":{"externalId":{"type":"string","description":"Id of the employment record in the LOS.","nullable":true},"isCurrent":{"type":"boolean","description":"True for a current job, false for a previous one."},"isSelfEmployed":{"type":"boolean","description":"True when the borrower is self-employed in this job."},"ownershipShare":{"$ref":"#/components/schemas/FieldType"},"isPrimary":{"type":"boolean","description":"True for the borrower's primary employment. Null when not stated.","nullable":true},"name":{"type":"string","description":"Name of the employer.","nullable":true},"position":{"type":"string","description":"The borrower's job title.","nullable":true},"address":{"$ref":"#/components/schemas/PosAddress"},"startDate":{"type":"string","description":"Date the borrower started this job (ISO 8601 date).","nullable":true},"endDate":{"type":"string","description":"Date the borrower left this job (ISO 8601 date). Empty for a current job.","nullable":true},"professionStartDate":{"type":"string","description":"Date the borrower started working in this line of work (ISO 8601 date).","nullable":true},"lineOfWorkInMonths":{"type":"integer","description":"Months the borrower has worked in this line of work.","format":"int32","nullable":true},"businessPhone":{"type":"string","description":"The employer's phone number.","nullable":true},"email":{"type":"string","description":"Work email address for this employment.","nullable":true},"monthlyIncomeAmount":{"type":"number","description":"Total monthly income from this employment, in dollars.","format":"double","nullable":true},"incomes":{"type":"array","items":{"$ref":"#/components/schemas/Income"},"description":"The income components from this employment, such as base pay, overtime or bonus.","nullable":true}},"additionalProperties":false,"description":"One job the borrower holds or has held, with the income it pays."},"PosAddress":{"type":"object","properties":{"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A postal address."},"Income":{"type":"object","properties":{"amount":{"type":"number","description":"Income amount, in dollars per month.","format":"double"},"otherDescription":{"type":"string","description":"Free-text description when the income type is Other.","nullable":true},"isAssociatedWithEmployment":{"type":"boolean","description":"True when the income belongs to an employment, such as overtime or bonus, rather than standing alone."},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One income amount, either tied to an employment or standing alone."},"VeteranDetail":{"type":"object","properties":{"isVeteran":{"type":"boolean","description":"True when the borrower is a veteran."},"activeDuty":{"type":"boolean","description":"True when the borrower is currently on active duty."},"activeDutyExpirationDate":{"type":"string","description":"Date the borrower's current active duty ends (ISO 8601 date).","nullable":true},"retiredDischargedOrSeparated":{"type":"boolean","description":"True when the borrower has retired, been discharged or separated from service."},"reserveNationalGuardNeverActivated":{"type":"boolean","description":"True when the borrower is in the Reserves or National Guard and has never been activated."},"isSurvivingSpouseOfVeteran":{"type":"boolean","description":"True when the borrower is the surviving spouse of a veteran."},"serviceType":{"$ref":"#/components/schemas/FieldType"}},"additionalProperties":false,"description":"A borrower's military service details, relevant to VA loans."},"PosCreditScore":{"type":"object","properties":{"source":{"type":"string","description":"Where the score came from, such as the credit agency that reported it.","nullable":true},"score":{"type":"string","description":"The score value, as text.","nullable":true},"creditScoreImpairmentType":{"type":"string","description":"Why there is no usable score, when there is none: NotApplicable, NoScore, ThinFile or Other.","nullable":true},"isBrokerEntered":{"type":"boolean","description":"True when a broker typed the score in rather than it being read from a credit agency. A broker-entered score is never sent to the LOS as an agency score."}},"additionalProperties":false,"description":"One credit score on a borrower's file."},"HmdaApplicantCreditScore":{"type":"object","properties":{"reliedOnCreditScore":{"type":"integer","description":"The credit score relied on in the credit decision for this applicant; null when none.","format":"int32","nullable":true},"reliedOnCreditScoreMode":{"type":"string","description":"Whether the relied-on score is the applicant's individual score or a single score for the loan.","nullable":true},"reliedOnCreditScoreModelType":{"type":"string","description":"The credit scoring model of the relied-on score, as a code.","nullable":true}},"additionalProperties":false,"description":"The credit score relied on for an applicant, as reported for HMDA."},"PosAsset":{"type":"object","properties":{"institutionName":{"type":"string","description":"Name of the bank or institution that holds the asset.","nullable":true},"accountNumber":{"type":"string","description":"Account number, as entered.","nullable":true},"amount":{"type":"number","description":"Current balance or value, in dollars.","format":"double"},"accountName":{"type":"string","description":"Name of the account.","nullable":true},"accountHolderName":{"type":"string","description":"Name of the account holder.","nullable":true},"source":{"type":"string","description":"How the asset got on the loan, for example entered manually, linked through the bank connection or synced from the LOS.","nullable":true},"giftSource":{"type":"string","description":"Who the gift came from, for a gift asset.","nullable":true},"temporaryId":{"type":"string","description":"A client-chosen id that lets a save match a new row to the id the LOS assigns. Not stored as a field.","nullable":true},"assetAccountId":{"type":"string","description":"Id (GUID) of the asset account this asset belongs to.","format":"uuid"},"isDeleted":{"type":"boolean","description":"Set true on a save to delete the LOS record named by externalId."},"ownerBorrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The hdBorrowerIds of the asset's owners. Empty means the primary borrower. A new asset is added in the LOS under the first owner named; the full list stays in Henge.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"An asset the borrower reports: an account balance, a gift or another asset."},"BorrowerVestingType":{"enum":["Individual","Trustee","Settlor","SettlorTrustee","TitleOnly","NonTitleSpouse","Other"],"type":"string","description":"How a person on the loan takes title: Individual (as themselves), Trustee, Settlor, SettlorTrustee (settlor and trustee of the same trust), TitleOnly (on title but not a borrower), NonTitleSpouse (a spouse who is not on title) or Other."},"ProposedHousingExpense":{"type":"object","properties":{"firstMortgagePrincipalAndInterest":{"type":"number","description":"Principal and interest on this mortgage, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"otherMortgageLoanPrincipalAndInterest":{"type":"number","description":"Principal and interest on subordinate financing, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"hazardInsurance":{"type":"number","description":"Monthly hazard insurance, in dollars. Calculated by the LOS from hazardInsuranceBasis.","format":"double","nullable":true},"propertyTax":{"type":"number","description":"Monthly property taxes, in dollars. Calculated by the LOS from propertyTaxBasis.","format":"double","nullable":true},"mortgageInsurance":{"type":"number","description":"Monthly mortgage insurance, in dollars. Can be overridden; lock it in fieldLocks or the LOS recalculates it.","format":"double","nullable":true},"hoa":{"type":"number","description":"Monthly homeowners association dues, in dollars.","format":"double","nullable":true},"other":{"type":"number","description":"Other monthly taxes and expenses, in dollars. Can be overridden; lock it in fieldLocks or the LOS recalculates it.","format":"double","nullable":true},"total":{"type":"number","description":"The total proposed monthly housing payment (principal, interest, taxes and insurance), in dollars. Calculated by the LOS; a write is ignored. It is not simply the sum of the components above, so read it rather than adding them up.","format":"double","nullable":true},"hazardInsuranceBasis":{"$ref":"#/components/schemas/EscrowExpenseBasis"},"propertyTaxBasis":{"$ref":"#/components/schemas/EscrowExpenseBasis"}},"additionalProperties":false,"description":"The proposed monthly housing payment, component by component. Every component is nullable: a real zero is returned as 0, so an absent value stays distinguishable from a zero one."},"EscrowExpenseBasis":{"type":"object","properties":{"baseTypeCode":{"type":"string","description":"The LOS code for the base amount the percentage applies to. baseTypeName gives its name.","nullable":true},"baseTypeName":{"type":"string","description":"The name of the base amount (for example \"Total Loan Amount\"), or null for a code with no known name. Read only.","nullable":true},"baseAmount":{"type":"number","description":"The base amount in dollars, as the LOS calculated it. Read only: a value sent is ignored.","format":"double","nullable":true},"ratePercent":{"type":"number","description":"Annual percentage applied to `baseAmount`.","format":"double","nullable":true},"monthlyAddend":{"type":"number","description":"Flat monthly amount added on top of the percentage result.","format":"double","nullable":true},"reserveMonths":{"type":"integer","description":"Months of this expense collected as reserves at closing (hazard insurance and property tax only).\r\nThe loan system derives a default and takes an override only with its lock flag, which the housing write sends with it.\r\nRead from the loan; the loan form save never writes it.","format":"int32","nullable":true},"prepaidMonths":{"type":"integer","description":"Months of this expense prepaid at closing (hazard insurance only).","format":"int32","nullable":true}},"additionalProperties":false,"description":"How the LOS works out one escrowed housing expense: a percentage of a chosen base amount plus a flat monthly amount, for example hazard insurance as Total Loan Amount x 0.500% + $0.00."},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Id of the custom field.","nullable":true},"code":{"type":"string","description":"Short code of the custom field.","nullable":true},"externalId":{"type":"string","description":"Id of the field in the LOS.","nullable":true},"name":{"type":"string","description":"Display name of the custom field.","nullable":true},"value":{"type":"string","description":"The value stored in the field, as text.","nullable":true}},"additionalProperties":false,"description":"A custom field configured on the loan, with its value."},"DownPaymentSource":{"type":"object","properties":{"amount":{"type":"number","description":"Amount from this source, in dollars.","format":"double"},"source":{"type":"string","description":"The kind of source, for example savings, gift or sale of a property.","nullable":true},"explanation":{"type":"string","description":"Free-text explanation of the source, when one is needed.","nullable":true}},"additionalProperties":false},"LtvRatios":{"type":"object","properties":{"baseLTVRatio":{"type":"number","description":"Loan-to-value ratio on the base loan amount, as a percent.","format":"double","nullable":true},"grossLTVRatio":{"type":"number","description":"Loan-to-value ratio on the loan amount including financed upfront fees, as a percent.","format":"double","nullable":true},"baseCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio across all liens on the base loan amount, as a percent.","format":"double","nullable":true},"grossCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio across all liens including financed upfront fees, as a percent.","format":"double","nullable":true},"baseHomeEquityCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio counting the full credit limit of any home equity line, on the base loan amount, as a percent.","format":"double","nullable":true},"grossHomeEquityCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio counting the full credit limit of any home equity line, including financed upfront fees, as a percent.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's loan-to-value ratios, as percents."},"Qualification":{"type":"object","properties":{"housingExpenseRatio":{"type":"number","description":"Front-end ratio (housing expense to income), as a percent.","format":"double","nullable":true},"totalDebtExpenseRatio":{"type":"number","description":"Back-end ratio (total debt to income), as a percent.","format":"double","nullable":true},"totalMonthlyIncomeAmount":{"type":"number","description":"Total qualifying monthly income, in dollars.","format":"double","nullable":true},"qualifyingRatePercent":{"type":"number","description":"The rate the borrower is qualified at, as a percent. It is the note rate unless overridden; lock it in fieldLocks or the LOS recomputes it.","format":"double","nullable":true},"qualifyingTermInMonths":{"type":"integer","description":"The term in months the qualifying payment is amortized over.","format":"int32","nullable":true},"qualifyingTermCalculationTypeCode":{"type":"string","description":"Raw code for how the qualifying term is chosen, for example Standard Term.","nullable":true},"qualifyingTermCalculationTypeName":{"type":"string","description":"qualifyingTermCalculationTypeCode decoded, for example Standard Term. Null for a code not recognized. Read only.","nullable":true},"isQualifyingRateInterestOnly":{"type":"boolean","description":"True when the qualifying payment is interest-only.","nullable":true},"qualifyingPrincipalAndInterest":{"type":"number","description":"Qualifying principal and interest, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"qualifyingTotalPayment":{"type":"number","description":"Qualifying total monthly payment (principal, interest, taxes and insurance), in dollars. Calculated by the LOS; a write is ignored.","format":"double","nullable":true}},"additionalProperties":false,"description":"The ratios and payment figures the borrower is qualified on. The qualifying payment can differ from the proposed one when a qualifying rate or term overrides the note rate or term."},"SubjectPropertyRentalIncome":{"type":"object","properties":{"estimatedMonthlyMarketRent":{"type":"number","description":"Estimated market rent of the subject property per month, in dollars.","format":"double","nullable":true}},"additionalProperties":false,"description":"Rental income of the subject property."},"LoanLevelCredit":{"type":"object","properties":{"loanLevelCreditScoreValue":{"type":"string","description":"The credit score relied on for the loan, as reported for HMDA, as text.","nullable":true},"loanLevelCreditScoreSelectionMethodType":{"type":"string","description":"Whether the relied-on score is each applicant's individual score or a single score for the loan.","nullable":true},"creditScoreModelNameType":{"type":"string","description":"The credit scoring model of the relied-on score, as a code.","nullable":true},"creditScoreImpairmentType":{"type":"string","description":"The credit score impairment type recorded on the loan, as text.","nullable":true},"creditScoreCategoryType":{"type":"string","description":"The credit score category recorded on the loan, as text.","nullable":true},"creditScoreType1":{"type":"string","description":"Loan-level credit score of type 1 as held on the loan, as text; empty when none.","nullable":true},"creditScoreType2":{"type":"string","description":"Loan-level credit score of type 2 as held on the loan, as text; empty when none.","nullable":true},"creditScoreType2Soft":{"type":"string","description":"Loan-level credit score of type 2 from a soft pull, as text; empty when none.","nullable":true},"creditScore2Avg":{"type":"string","description":"Average of the type 2 scores, as text; empty when none.","nullable":true},"creditScoreType3":{"type":"string","description":"Loan-level credit score of type 3 as held on the loan, as text; empty when none.","nullable":true},"hmdaMultipleCreditScoresUsedIndicator":{"type":"boolean","description":"True when more than one credit score was used in the credit decision, as reported for HMDA.","nullable":true},"reliedOnCreditScoreSource":{"type":"string","description":"The source the relied-on credit score is calculated from: \"Type 2\" when it is that source, otherwise the value\r\nas the loan system holds it. The relied-on score is calculated from it unless it is Other.","nullable":true},"reliedOnCreditScoreModelName":{"type":"string","description":"The relied-on score's model name text (`sReliedOnCreditScoreModelName`).","nullable":true},"reliedOnCreditScoreSingleBorrower":{"type":"string","description":"Whose score is the single relied-on score (`sReliedOnCreditScoreSingleHmdaReportAsT`): Borrower or Coborrower.","nullable":true}},"additionalProperties":false,"description":"The credit score the loan relies on and how it was chosen, as held on the loan."},"LoanCredit":{"type":"object","properties":{"source":{"type":"string","description":"Report when the facts come from a credit report, Manual when they were entered by hand; null when the loan carries no credit at all.","nullable":true},"hasCreditReport":{"type":"boolean","description":"True when a credit report is on the loan, whether ordered through Henge or imported through the Loan Origination System."},"representativeScore":{"type":"integer","description":"The score pricing uses: the lowest representative score across the borrowers, by the usual rule\r\n(middle of three bureau scores, lower of two, the one when there is one). From the report when there\r\nis one, else from the broker's entry.","format":"int32","nullable":true},"pricingScore":{"type":"integer","description":"The score pricing uses (the lowest borrower's) when the scores are a manual entry; null otherwise.","format":"int32","nullable":true},"qualifyingScore":{"type":"integer","description":"The score qualification and the pre-approval check use: the average of the borrowers' middle scores, rounded half up. It differs from representativeScore (the lowest borrower's, used for pricing) on a loan with more than one borrower. Null when there are no scores.","format":"int32","nullable":true},"reports":{"type":"array","items":{"$ref":"#/components/schemas/LoanCreditReport"},"description":"Every credit report order on the loan, newest first, failed and cancelled ones included with their status. May be absent.","nullable":true},"mortgageLates":{"$ref":"#/components/schemas/MortgageLates"},"publicRecords":{"$ref":"#/components/schemas/CreditPublicRecords"},"manual":{"$ref":"#/components/schemas/ManualCreditEntry"},"reissue":{"$ref":"#/components/schemas/LoanCreditReissue"}},"additionalProperties":false,"description":"The loan's credit facts and where they come from: a credit report, or what a broker entered by hand to price and qualify before a report is on the loan. Rebuilt on every read. Once the loan has a report it always wins, and the broker's entry is kept with isCurrent false; broker-entered scores are never treated as bureau scores."},"LoanCreditReport":{"type":"object","properties":{"orderId":{"type":"string","description":"Id (GUID) of the credit report order.","format":"uuid"},"reportNumber":{"type":"string","description":"The agency's report number; null on a failed pull that was never issued one.","nullable":true},"status":{"type":"string","description":"The order's status by name, including Failed and Cancelled.","nullable":true},"isCurrent":{"type":"boolean","description":"True for the one order the rest of the platform reads scores from."},"source":{"type":"string","description":"How the order got onto the loan: Placed (ordered through Henge), Imported or Tracked.","nullable":true},"pullType":{"type":"string","description":"`Soft` or `Hard`; null when not known.","nullable":true},"agency":{"type":"string","description":"Name of the credit reporting agency.","nullable":true},"orderedAtUtc":{"type":"string","description":"When the report was ordered, in UTC (ISO 8601).","format":"date-time","nullable":true},"failureReason":{"type":"string","description":"The vendor's reason, on a failed order.","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/OrdersCreditReportBorrower"},"description":"The borrowers the report covers, with the bureau scores returned for each.","nullable":true},"averageScore":{"type":"integer","description":"Average of the borrowers' middle scores: what qualification uses.","format":"int32","nullable":true},"pricingScore":{"type":"integer","description":"The lowest borrower's middle score: what pricing uses.","format":"int32","nullable":true},"referenceNumbers":{"type":"array","items":{"type":"string"},"description":"The agency's reference (file) numbers of the report; more than one when separate reports were reissued for separate borrowers.","nullable":true},"vaultDocumentId":{"type":"string","description":"Id of the loan document that holds the report; null when none was filed.","format":"uuid","nullable":true},"liabilityImport":{"$ref":"#/components/schemas/OrdersCreditReportLiabilityImport"}},"additionalProperties":false,"description":"One credit report order as the loan shows it: which pull, how it stands and what it returned. It never holds a login."},"OrdersCreditReportBorrower":{"type":"object","properties":{"borrowerId":{"type":"string","description":"The borrower's identifier on the loan, when the pull was matched to one.","format":"uuid","nullable":true},"name":{"type":"string","description":"The borrower's name as on the report.","nullable":true},"experian":{"type":"integer","description":"Null when the bureau returned no score for this borrower.","format":"int32","nullable":true},"transUnion":{"type":"integer","description":"The TransUnion score; null when the bureau returned none for this borrower.","format":"int32","nullable":true},"equifax":{"type":"integer","description":"The Equifax score; null when the bureau returned none for this borrower.","format":"int32","nullable":true},"score":{"type":"integer","description":"The borrower's single score derived from the bureau scores; null with no scores.","format":"int32","nullable":true}},"additionalProperties":false,"description":"One borrower covered by a credit report, with the bureau scores it returned."},"OrdersCreditReportLiabilityImport":{"type":"object","properties":{"outcome":{"type":"string","description":"What the liability import did, as a short status word.","nullable":true},"imported":{"type":"integer","description":"Number of liabilities imported; null when none were attempted.","format":"int32","nullable":true},"message":{"type":"string","description":"An explanation of the outcome, such as a warning or the reason the import failed.","nullable":true}},"additionalProperties":false,"description":"What importing the report's liabilities into the loan did."},"MortgageLates":{"type":"object","properties":{"x30":{"type":"integer","description":"Mortgage payments 30 days late.","format":"int32","nullable":true},"x60":{"type":"integer","description":"Mortgage payments 60 days late.","format":"int32","nullable":true},"x90":{"type":"integer","description":"Mortgage payments 90 days late.","format":"int32","nullable":true},"x120":{"type":"integer","description":"Mortgage payments 120 days late.","format":"int32","nullable":true},"x150":{"type":"integer","description":"Mortgage payments 150 days late.","format":"int32","nullable":true},"rollingX30":{"type":"integer","description":"Mortgage payments 30 days late, counting rolling lates.","format":"int32","nullable":true},"rollingX60":{"type":"integer","description":"Mortgage payments 60 days late, counting rolling lates.","format":"int32","nullable":true},"rollingX90":{"type":"integer","description":"Mortgage payments 90 days late, counting rolling lates.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Counts of mortgage payments made late in the last 12 months. The x30 to x150 counts treat rolling lates as not allowed; the rollingX counts treat them as allowed. Null means not stated, 0 means none."},"CreditPublicRecords":{"type":"object","properties":{"foreclosure":{"$ref":"#/components/schemas/CreditPublicRecord"},"chapter7":{"$ref":"#/components/schemas/CreditPublicRecord"},"chapter13":{"$ref":"#/components/schemas/CreditPublicRecord"}},"additionalProperties":false,"description":"Foreclosure/NOD, Chapter 7 and Chapter 13 history."},"CreditPublicRecord":{"type":"object","properties":{"has":{"type":"boolean","description":"True when the borrower has this kind of public record."},"fileMonth":{"type":"integer","description":"1 to 12.","format":"int32","nullable":true},"fileYear":{"type":"integer","description":"Year the record was filed, four digits; null when not known.","format":"int32","nullable":true},"status":{"type":"string","description":"NotSatisfied, Discharged or Dismissed. Required when has is true.","nullable":true},"satisfiedMonth":{"type":"integer","description":"1 to 12.","format":"int32","nullable":true},"satisfiedYear":{"type":"integer","description":"Year the record was satisfied, four digits; null when it has not been or is not known.","format":"int32","nullable":true}},"additionalProperties":false,"description":"One public record: whether the borrower has one, when it was filed, its status and when it was satisfied."},"ManualCreditEntry":{"type":"object","properties":{"isCurrent":{"type":"boolean","description":"False once a credit report supersedes the entry, or one was on the loan before it was saved without being corrected by it: the entry is kept, but the report's values are current."},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/ManualCreditBorrowerScores"},"description":"Bureau scores per borrower: the borrower first, then the co-borrower when one was entered.","nullable":true},"mortgageLates":{"$ref":"#/components/schemas/MortgageLates"},"publicRecords":{"$ref":"#/components/schemas/CreditPublicRecords"},"enteredAtUtc":{"type":"string","description":"When the broker saved the entry, in UTC (ISO 8601).","format":"date-time"},"enteredBy":{"type":"string","description":"Id of the user who saved the entry.","format":"uuid","nullable":true},"enteredByName":{"type":"string","description":"Name of the user who saved the entry.","nullable":true},"supersededAtUtc":{"type":"string","description":"When a report replaced the entry, and the report's number.","format":"date-time","nullable":true},"supersededByReportId":{"type":"string","description":"The number of the credit report that replaced the entry; null while the entry is current.","nullable":true}},"additionalProperties":false,"description":"What a broker entered by hand, and whether it is still what the loan goes by."},"ManualCreditBorrowerScores":{"type":"object","properties":{"borrowerId":{"type":"string","description":"Id of the borrower on the loan the scores belong to, when the loan had one.","format":"uuid","nullable":true},"isCoBorrower":{"type":"boolean","description":"True for the co-borrower's scores, false for the borrower's."},"experian":{"type":"integer","description":"The Experian score the broker entered; null when none was entered.","format":"int32","nullable":true},"transUnion":{"type":"integer","description":"The TransUnion score the broker entered; null when none was entered.","format":"int32","nullable":true},"equifax":{"type":"integer","description":"The Equifax score the broker entered; null when none was entered.","format":"int32","nullable":true},"representativeScore":{"type":"integer","description":"Middle of three, lower of two, the one when there is one; null when none were entered.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Broker-entered bureau scores for one borrower. Stored and reported as broker-entered, never as a bureau score."},"LoanCreditReissue":{"type":"object","properties":{"agencyId":{"type":"string","description":"Id (GUID) of the credit reporting agency the report was reissued from.","format":"uuid"},"agencyName":{"type":"string","description":"Name of the credit reporting agency.","nullable":true},"agencyDuCode":{"type":"string","description":"The agency's DU credit provider code.","nullable":true},"reportType":{"type":"string","description":"\"HardPull\" or \"SoftPull\".","nullable":true},"reissuedTimestamp":{"type":"string","description":"When the report was reissued, in UTC (ISO 8601).","format":"date-time"},"reissuedBy":{"type":"string","description":"Id of the user who reissued the report; null when unknown.","format":"uuid","nullable":true},"reissuedByName":{"type":"string","description":"Name of the user who reissued the report.","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/LoanCreditReissueBorrower"},"description":"The borrowers the reissue landed for, each with the agency's reference number.","nullable":true}},"additionalProperties":false,"description":"The read-only view of the loan's latest credit report reissue: the agency, when and by whom, and the reference numbers. The agency login name, account id and password are never returned."},"LoanCreditReissueBorrower":{"type":"object","properties":{"borrowerId":{"type":"string","description":"Id (GUID) of the borrower on the loan.","format":"uuid"},"referenceNumber":{"type":"string","description":"The agency's reference (file) number of the report for this borrower.","nullable":true}},"additionalProperties":false,"description":"One borrower of a reissue: the borrower on the loan and the agency's reference number for them."},"PaymentShock":{"type":"object","properties":{"amount":{"type":"number","description":"Dollar increase over the present housing payment.","format":"double","nullable":true},"percent":{"type":"number","description":"Increase as a percentage of the present housing payment.","format":"double","nullable":true}},"additionalProperties":false,"description":"The jump from the borrower's present housing payment to the proposed one. Calculated by the LOS; read only."},"LoanFieldLocks":{"type":"object","properties":{"loanAmount":{"type":"boolean","description":"True when the loan amount is locked, so a change to the purchase price or down payment does not recalculate it.","nullable":true},"qualifyingRate":{"type":"boolean","description":"True when the qualifying rate is locked against its formula.","nullable":true},"mortgageInsurance":{"type":"boolean","description":"True when the monthly mortgage insurance is locked against the insurance schedule.","nullable":true},"otherHousingExpense":{"type":"boolean","description":"True when the other housing expense is locked.","nullable":true},"estimatedClosingDate":{"type":"boolean","description":"True when the estimated closing date is locked, so a status change does not recalculate it.","nullable":true},"higherPricedMortgageType":{"type":"boolean","description":"True when the higher-priced mortgage result is locked against the APR test.","nullable":true}},"additionalProperties":false,"description":"Which figures are locked in the LOS. A locked figure keeps the value it was given; an unlocked one is recalculated by the LOS from its inputs."},"LoanTrust":{"type":"object","properties":{"id":{"type":"string","description":"Stable id for the trust on this loan. Assigned on save when omitted.","format":"uuid","nullable":true},"name":{"type":"string","description":"The trust's exact name, including any amendment and restatement dates, as it will appear on title.","nullable":true},"classification":{"$ref":"#/components/schemas/LoanTrustClassification"},"establishedDate":{"type":"string","description":"The date the trust was established.","format":"date","nullable":true},"amendedDate":{"type":"string","description":"The date of the latest amendment or restatement, if any.","format":"date","nullable":true},"stateCode":{"type":"string","description":"Two-letter code of the state whose law governs the trust.","nullable":true},"parties":{"type":"array","items":{"$ref":"#/components/schemas/LoanTrustParty"},"description":"Trustees, settlors and beneficiaries.","nullable":true}},"additionalProperties":false,"description":"A trust that will hold title to the subject property. A trust is vesting, not a borrower: its settlors are ordinary borrowers, and the trust sits at loan level so it can name people from more than one borrower pair."},"LoanTrustClassification":{"enum":["InterVivosRevocable","Irrevocable","Land","Other"],"type":"string","description":"The legal classification of a trust: InterVivosRevocable (a living trust that can be changed or revoked), Irrevocable (cannot be revoked), Land (a land trust) or Other."},"LoanTrustParty":{"type":"object","properties":{"role":{"$ref":"#/components/schemas/LoanTrustPartyRole"},"borrowerId":{"type":"string","description":"The hdBorrowerId of the borrower this party is, on any pair. Must be a borrower on the loan.","format":"uuid","nullable":true},"name":{"type":"string","description":"The party's name when it is not a borrower on the loan.","nullable":true},"isInstitution":{"type":"boolean","description":"True when the party is an institution (a bank or trust company acting as trustee)."}},"additionalProperties":false,"description":"One party to a `LoanTrust`. A party who is a borrower on any pair is named by\r\n`borrowerId` (the borrower's `hdBorrowerId`); anyone else, a non-borrowing person or an\r\ninstitutional trustee, by `name`."},"LoanTrustPartyRole":{"enum":["Trustee","CoTrustee","SuccessorTrustee","Settlor","SettlorTrustee","Beneficiary"],"type":"string","description":"A party's role in a trust: Trustee, CoTrustee, SuccessorTrustee (takes over from a trustee), Settlor (created the trust), SettlorTrustee (both settlor and trustee) or Beneficiary."},"LoanAusResult":{"type":"object","properties":{"duCasefileId":{"type":"string","description":"The DU casefile id of the loan's latest DU run. A resubmission reuses it.","nullable":true},"lpaKey":{"type":"string","description":"The Freddie Mac LPA key written onto the loan by an LPA import; null when none.","nullable":true},"recommendation":{"type":"string","description":"The underwriting recommendation as text, for example Approve/Eligible.","nullable":true},"resultCode":{"type":"integer","description":"Numeric code of the result: 0 not submitted, 1 to 9 the DU results, 10 to 13 and 15 to 19 the LPA results, 14 out of scope. Null when nothing was sent.","format":"int32","nullable":true},"result":{"type":"string","description":"The name of resultCode; null when there is no code.","nullable":true}},"additionalProperties":false,"description":"The latest automated underwriting result held on the loan. It is read from the Loan Origination System on every loan read and is never written back; the run history is the aus/runs list."},"LoanRateLock":{"type":"object","properties":{"status":{"type":"string","description":"Lock status: Not Locked, Locked, Lock Requested, Lock Suspended or Lock Cancelled. Calculated by the LOS; never written.","nullable":true},"isLocked":{"type":"boolean","description":"True when status is Locked, false for any other status, null when there is no status.","nullable":true},"lockDate":{"type":"string","description":"Date the rate was locked, ISO 8601.","format":"date","nullable":true},"lockTime":{"type":"string","description":"Time of day of the lock, as the LOS formats it.","nullable":true},"periodDays":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Date the lock expires, ISO 8601. The LOS calculates it from the lock date and period.","format":"date","nullable":true},"noteRate":{"type":"number","description":"Locked note rate, in percent such as 6.875.","format":"double","nullable":true},"price":{"type":"number","description":"The locked price, as a percentage of par (100 = par). Read only.","format":"double","nullable":true},"lockIdentifier":{"type":"string","description":"The lock's own identifier, when the source has one, for example an imported file. Usually null.","nullable":true},"history":{"type":"array","items":{"$ref":"#/components/schemas/RateLockHistoryEntry"},"description":"Every lock, extension, relock and break the LOS recorded, newest first. Empty when the loan was never locked.","nullable":true},"ladder":{"$ref":"#/components/schemas/LoanRateLockLadder"},"priceGrid":{"$ref":"#/components/schemas/LoanRateLockPriceGrid"},"investorLock":{"$ref":"#/components/schemas/LoanInvestorLock"},"lockOutcome":{"type":"string","description":"What a write that asked to lock did, when the written values do not say it, for example values written but the lock not set, with the reason. Set only on a write response.","nullable":true}},"additionalProperties":false,"description":"The loan's rate lock with the broker as the LOS holds it, plus the lock history. It is read with the loan; only staff can change the lock date, period and note rate, through the rate lock endpoints. Everything else is calculated."},"RateLockHistoryEntry":{"type":"object","properties":{"kind":{"type":"string","description":"What happened, as the LOS names it: a lock, an extension, a relock or a break.","nullable":true},"occurredAt":{"type":"string","description":"When it happened, ISO 8601.","format":"date-time","nullable":true},"rate":{"type":"number","description":"Note rate at the time, in percent.","format":"double","nullable":true},"price":{"type":"number","description":"Price at the time, where 100 is par.","format":"double","nullable":true},"periodDays":{"type":"integer","description":"Lock period after the entry, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Lock expiration date after the entry, ISO 8601.","format":"date","nullable":true},"extensionDays":{"type":"integer","description":"Days an extension added, when the entry is an extension and they were recorded.","format":"int32","nullable":true},"user":{"type":"string","description":"Who made the change, as the LOS recorded it.","nullable":true},"note":{"type":"string","description":"Note recorded with the entry.","nullable":true}},"additionalProperties":false,"description":"One entry of a lock's history: a lock, extension, relock or break."},"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."},"LoanRateLockPriceGrid":{"type":"object","properties":{"basePrice":{"type":"number","description":"The base price, where 100 is par.","format":"double","nullable":true},"priceRow":{"type":"string","description":"Which price the grid's row is locked on: Base, BrokerBase, BrokerFinal or OriginatorPrice.","nullable":true},"visibleAdjustmentsTotal":{"type":"number","description":"Total of the adjustments the broker sees, in points.","format":"double","nullable":true},"hiddenAdjustmentsTotal":{"type":"number","description":"Total of the hidden lender adjustments, in points.","format":"double","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/LockAdjustment"},"description":"The adjustment lines on the price grid.","nullable":true},"originatorPrice":{"type":"number","description":"The Originator Price: the price before the originator compensation.","format":"double","nullable":true},"finalPrice":{"type":"number","description":"The Final Price: the price after the originator compensation.","format":"double","nullable":true},"investorPrice":{"type":"number","description":"The investor's price.","format":"double","nullable":true},"internalNote":{"type":"string","description":"The lock screen's internal notes.","nullable":true},"originatorCompensation":{"$ref":"#/components/schemas/LoanOriginatorCompensation"}},"additionalProperties":false,"description":"The front-end lock's price grid and the originator compensation, read live from the LOS. Set only on rate lock reads and writes. The investor price and the lender lines are not returned to third-party-originator (broker) callers."},"LockAdjustment":{"type":"object","properties":{"description":{"type":"string","description":"What the adjustment is for.","nullable":true},"points":{"type":"number","description":"The adjustment in points; a negative value adds to the price.","format":"double","nullable":true},"rate":{"type":"number","description":"Rate adjustment, in percentage points.","format":"double","nullable":true},"margin":{"type":"number","description":"Margin adjustment, in percentage points.","format":"double","nullable":true},"hidden":{"type":"boolean","description":"True for a hidden lender line the broker never sees (front-end lock only)."}},"additionalProperties":false,"description":"One adjustment line as the LOS holds it."},"LoanOriginatorCompensation":{"type":"object","properties":{"paidBy":{"type":"string","description":"Borrower or Lender (`sOriginatorCompensationPaymentSourceT`); null when not specified.","nullable":true},"percent":{"type":"number","description":"Compensation as a percent of the base amount, for example 2.0 for two percent.","format":"double","nullable":true},"minAmount":{"type":"number","description":"Minimum compensation in dollars.","format":"double","nullable":true},"fixedAmount":{"type":"number","description":"Fixed compensation in dollars.","format":"double","nullable":true},"baseType":{"type":"string","description":"LoanAmount or TotalLoanAmount (`sOriginatorCompensationBaseT`).","nullable":true},"lenderFeeOption":{"type":"string","description":"IncludedInLenderFees or InAdditionToLenderFees (`sOriginatorCompensationLenderFeeOptionT`).","nullable":true}},"additionalProperties":false,"description":"The loan's originator compensation inputs (`sOriginatorCompensation*`), as the LOS holds them."},"LoanInvestorLock":{"type":"object","properties":{"investorId":{"type":"integer","description":"Identifier of the investor in the LOS's investor list.","format":"int32","nullable":true},"investorName":{"type":"string","description":"Name of the investor.","nullable":true},"investorLoanNumber":{"type":"string","description":"The investor's loan number for this loan.","nullable":true},"confirmationNumber":{"type":"string","description":"Confirmation number the investor gave the lock.","nullable":true},"programName":{"type":"string","description":"Name of the investor program the loan is locked to.","nullable":true},"rateSheetTime":{"type":"string","description":"Effective time of the investor's rate sheet, as text in the form MM/dd/yyyy h:mm tt.","nullable":true},"commitmentType":{"type":"string","description":"Delivery commitment: BestEfforts, Mandatory, Hedged or Securitized.","nullable":true},"lockFee":{"type":"number","description":"Fee charged for the lock.","format":"double","nullable":true},"lockDate":{"type":"string","description":"Date the investor lock was made, ISO 8601.","format":"date","nullable":true},"periodDays":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Date the lock expires, ISO 8601: the lock date plus the period, with no weekend roll.","format":"date","nullable":true},"deliveryExpirationDate":{"type":"string","description":"Date delivery of the loan to the investor expires, ISO 8601, calculated as the expiration is.","format":"date","nullable":true},"noteRate":{"type":"number","description":"Locked note rate, in percent such as 6.875.","format":"double","nullable":true},"basePrice":{"type":"number","description":"Base price from the investor's rate sheet, where 100 is par.","format":"double","nullable":true},"totalAdjustments":{"type":"number","description":"Total of the price adjustments, in points.","format":"double","nullable":true},"finalPrice":{"type":"number","description":"Price after all adjustments, where 100 is par.","format":"double","nullable":true},"projectedProfit":{"type":"number","description":"Projected profit on the lock, as the LOS calculates it.","format":"double","nullable":true},"status":{"type":"string","description":"Not Locked, Locked, Lock Requested, Lock Suspended or Lock Cancelled.","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/LockAdjustment"},"description":"The price adjustment lines on the investor lock.","nullable":true},"history":{"type":"array","items":{"$ref":"#/components/schemas/RateLockHistoryEntry"},"description":"Every event on the investor lock, newest first.","nullable":true},"lockOutcome":{"type":"string","description":"What a write that asked to lock or break the lock did when the LOS did not do it. Set only on a write response.","nullable":true}},"additionalProperties":false,"description":"The back-end (investor) lock as the LOS holds it, read live. Set only on rate lock reads and writes, and never for third-party-originator (broker) callers."},"LoanTemporaryBuydown":{"type":"object","properties":{"steps":{"type":"array","items":{"$ref":"#/components/schemas/TemporaryBuydownStep"},"description":"The steps in order, each { rateReduction, months }: a 2-1 is [{ rateReduction: 2, months: 12 }, { rateReduction: 1, months: 12 }]. At most five. The list replaces the stored steps as a whole; empty slots are left out when read.","nullable":true},"contributorType":{"type":"string","description":"Who pays for the buydown, as the LOS's raw contributor code (sBuydownContributorT). Optional: left out, the LOS's value is not touched.","nullable":true},"totalFundsAmount":{"type":"number","description":"Total buydown funds in dollars (sBuydownTotalFundsAmt). Optional: left out, the LOS's value is not touched.","format":"double","nullable":true},"hasTemporaryBuydown":{"type":"boolean","description":"sHasTempBuydown - calculated by the LOS from the steps. Read only: a write is ignored.","nullable":true},"totalMonths":{"type":"integer","description":"sBuydwnTotalMon - calculated by the LOS. Read only.","format":"int32","nullable":true},"resultRate":{"type":"number","description":"sBuydownResultIR - calculated by the LOS. Read only.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's temporary buydown as the LOS holds it: up to five steps, who pays for it and how much, and what the LOS calculates from them. Changed only by a partial update that names it."},"TemporaryBuydownStep":{"type":"object","properties":{"rateReduction":{"type":"number","description":"Points the note rate is reduced by during this step (number, 2 means 2 points). Not negative.","format":"double"},"months":{"type":"integer","description":"Months this step lasts (integer). Required when rateReduction is above 0.","format":"int32"}},"additionalProperties":false,"description":"One step of a temporary buydown: how many points the rate is reduced for how many months."},"LoanApplicationTaskItem":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task or condition (GUID).","format":"uuid","nullable":true},"taskStatusTimestamp":{"type":"string","description":"When the task's status last changed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"When the task was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"createdTimestamp":{"type":"string","description":"When the task was created (ISO 8601 date and time, UTC).","format":"date-time"},"item":{"$ref":"#/components/schemas/Item"},"assignedToBorrowerId":{"type":"string","description":"Id (GUID) of the borrower the task is assigned to. Null for a user task or a task for the loan's borrowers generally.","format":"uuid","nullable":true},"status":{"$ref":"#/components/schemas/TaskStatus"},"document":{"$ref":"#/components/schemas/Document"},"rejectionReasonNote":{"type":"string","description":"The reviewer's free-text note when the task's document was rejected.","nullable":true},"rejectionReason":{"$ref":"#/components/schemas/TaskRejectionReason"},"creditReportType":{"$ref":"#/components/schemas/PosCreditReportType"},"isForPrimaryBorrower":{"type":"boolean","description":"True when the task is for the primary borrower, false when it is for the co-borrower. Null when it is for neither in particular.","nullable":true},"isRequired":{"type":"boolean","description":"Whether the task must be completed before the file can move forward."},"isAccountMainTask":{"type":"boolean","description":"True for the main task of an asset account, the one that requests the account's statements."},"questionType":{"$ref":"#/components/schemas/TaskQuestionType"},"yesNoResponse":{"type":"boolean","description":"The borrower's answer to a yes/no question task. Null until answered.","nullable":true},"shortAnswer":{"type":"string","description":"The borrower's answer to a short-answer question task. Null until answered.","nullable":true},"assignedToUser":{"$ref":"#/components/schemas/LoanAppUser"},"name":{"type":"string","description":"Display name of the task or condition.","nullable":true},"description":{"type":"string","description":"Description of the task. For a condition, the condition text: the reworded text when staff edited it in Henge, otherwise the LOS text.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the task among its siblings, lowest first.","format":"int32","nullable":true},"type":{"$ref":"#/components/schemas/TaskType"},"code":{"type":"string","description":"Short code of the task.","nullable":true},"conditionNo":{"type":"integer","description":"Condition number in the LOS. Conditions only.","format":"int32","nullable":true},"conditionCategory":{"type":"string","description":"Category of the condition in the LOS. Conditions only.","nullable":true},"conditionDueDate":{"type":"string","description":"Due date of the condition (ISO 8601 date). Conditions only.","format":"date","nullable":true},"conditionAssignedUserFullName":{"type":"string","description":"Full name of the user the condition is assigned to in the LOS. Conditions only.","nullable":true},"conditionBorrowerFullName":{"type":"string","description":"Full name of the borrower the condition is for. Conditions only.","nullable":true},"conditionIsHidden":{"type":"boolean","description":"True when the condition is hidden from the borrower. Staff roles still see it; a caller that receives a hidden condition is entitled to it.","nullable":true},"conditionSourceText":{"type":"string","description":"The LOS's original condition text. Set only when staff reworded the condition in Henge, in which case description carries the rewording; null otherwise.","nullable":true},"isConditionTextEdited":{"type":"boolean","description":"True when staff reworded this condition in Henge. The rewording is never sent to the LOS."},"notes":{"type":"string","description":"Notes on the task or condition.","nullable":true},"taskAssignmentType":{"$ref":"#/components/schemas/TaskAssignmentType"},"isSubscribed":{"type":"boolean","description":"Whether the calling user is subscribed to status-change notifications for this task. Null when not computed.","nullable":true},"conditionTaskId":{"type":"string","description":"Id (GUID) of the condition this task belongs to. Null on conditions and on standalone tasks. Read on create; ignored on update.","format":"uuid","nullable":true},"assetAccountId":{"type":"string","description":"Id (GUID) of the asset account the task belongs to, if any. Needed on create only for a Transaction History task; ignored on update.","format":"uuid","nullable":true},"assetAccountName":{"type":"string","description":"Name of the asset account the task belongs to. Response only, and filled only where the response includes accounts.","nullable":true},"creditReportNumber":{"type":"string","description":"For credit report tasks, the credit agency's report number.","nullable":true},"requestTaskId":{"type":"string","description":"Id of the first task of the document request this task is a copy of (one task per document). Null on the first task itself. On create, naming any task of a request makes the new task a copy that joins that request.","format":"uuid","nullable":true},"requestedStartDate":{"type":"string","description":"Transaction History tasks only: the first day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"requestedEndDate":{"type":"string","description":"Transaction History tasks only: the last day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"ownerPairId":{"type":"string","description":"Id (GUID) of the borrower pair staff made the owner of this task or condition. Empty when the owner is worked out on read.","format":"uuid","nullable":true},"appliesToAllPairs":{"type":"boolean","description":"True for a whole-loan task or condition that every borrower pair sees."}},"additionalProperties":false,"description":"A task or condition on a loan: a document request, a question, a user task or a condition from the LOS."},"Item":{"type":"object","properties":{"id":{"type":"string","description":"Id of the item (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the item; send it as the item code when you create a task.","nullable":true},"name":{"type":"string","description":"Display name of the item.","nullable":true},"groupCode":{"type":"string","description":"Code of the condition group the item's tasks are shown under. Null means Other.","nullable":true},"canCreateManually":{"type":"boolean","description":"True when staff can create a task for this item by hand."},"canUploadDocument":{"type":"boolean","description":"True when a document can be uploaded against this item."}},"additionalProperties":false,"description":"A kind of request a task can ask for, such as a specific document."},"TaskStatus":{"type":"object","properties":{"id":{"type":"string","description":"Id of the status (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the status.","nullable":true},"name":{"type":"string","description":"Display name of the status.","nullable":true}},"additionalProperties":false,"description":"The status of a task, for example Requested, Uploaded, Submitted or Accepted."},"Document":{"type":"object","properties":{"id":{"type":"string","description":"Id (GUID) of the document.","format":"uuid"},"name":{"type":"string","description":"The document's file name.","nullable":true},"externalId":{"type":"string","description":"The document's id in the Loan Origination System; empty until it has been sent there.","nullable":true},"isPdfConversionComplete":{"type":"boolean","description":"True once an uploaded file has been converted to PDF and can be opened; false while conversion is still running."},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the document belongs to.","format":"uuid","nullable":true},"loanApplicationTaskId":{"type":"string","description":"Id of the task or condition the document is attached to; null for a document uploaded straight to the loan.","format":"uuid","nullable":true},"blobName":{"type":"string","description":"The name the file is stored under. An internal storage key: download through the document routes rather than using it.","nullable":true},"createdTimestamp":{"type":"string","description":"When the document was created, in UTC (ISO 8601).","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the document was last changed, in UTC (ISO 8601).","format":"date-time"},"updatedBy":{"type":"string","description":"Id of the user who last changed the document; null when the change was automatic or unknown.","format":"uuid","nullable":true},"documentTypeId":{"type":"string","description":"Id of the platform's broad document category (such as a vault or task document). Not the loan document type, which is loanDocumentTypeId.","format":"uuid","nullable":true},"isVault":{"type":"boolean","description":"True when the document was uploaded straight to the loan's vault, false when it hangs off a\r\ntask, a condition or an asset account. Callers use it to decide what a user may do with the\r\ndocument: only a vault document can be deleted. Any document can be given a document type."},"loanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document is filed under (from the loan document types list); null when it has none.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the loan document type; null when the document has none.","nullable":true},"loanDocumentTypeExternalId":{"type":"string","description":"The loan document type's id in the Loan Origination System.","nullable":true},"loanDocumentTypeFolderName":{"type":"string","description":"Name of the folder the loan document type belongs to; null when the document has no type.","nullable":true},"description":{"type":"string","description":"A free-text description of the document; may be empty.","nullable":true},"isDeleted":{"type":"boolean","description":"True when the document has been deleted. Deleted documents are normally left out of lists."},"isInternal":{"type":"boolean","description":"True for a staff-only document that is hidden from borrowers and partner applications."},"isObsolete":{"type":"boolean","description":"The LOS no longer considers this document active. It stays visible so users can still see\r\nit, but it is not current and is never pushed back to the LOS."},"isProtected":{"type":"boolean","description":"The LOS holds the document as Protected, locked there against edits and deletion. Set and\r\ncleared by Admin and Processor through the document status endpoints, or in the LOS itself."},"losStatus":{"$ref":"#/components/schemas/LoanDocumentLosStatus"},"title":{"type":"string","description":"The title shown for the document; may be empty, in which case the file name is shown.","nullable":true},"splitFromDocumentId":{"type":"string","description":"On a part of a split combined PDF: the id of the original document it was cut from. Null on every other document.","format":"uuid","nullable":true},"splitStartPage":{"type":"integer","description":"On a part of a split combined PDF: the first page of the original it holds. Null on every other document.","format":"int32","nullable":true},"splitEndPage":{"type":"integer","description":"On a part of a split combined PDF: the last page of the original it holds. Null on every other document.","format":"int32","nullable":true},"isUnsorted":{"type":"boolean","description":"True while the document was bulk-uploaded to the loan with no task and no type and nobody has\r\nsorted it. It is held out of the LOS until it is put on a task or given a type."},"hasNoFile":{"type":"boolean","description":"True for a staff-only entry the Loan Origination System holds with no file here (a non-PDF assigned to a condition): there is nothing to open, download or move."},"intakeStatus":{"type":"string","description":"NeedsPassword or Duplicate for a bulk-uploaded document that is held for that reason; null\r\notherwise. See DocumentIntakeStatuses.","nullable":true},"duplicateOfDocumentId":{"type":"string","description":"The existing document this one repeats, when IntakeStatus is Duplicate.","format":"uuid","nullable":true},"indexStatus":{"type":"string","description":"Whether the document's text is searchable: Indexed, Pending, Failed or NotSubmitted. Set by\r\nthe document lists for staff callers; null when it was not looked up, or the lookup failed.","nullable":true},"analysis":{"$ref":"#/components/schemas/DocumentAnalysisSummary"},"internalNotes":{"type":"string","description":"Staff-only internal notes on the document, verbatim from the Loan Origination System. Returned only to callers who may see internal notes; null for everyone else.","nullable":true}},"additionalProperties":false,"description":"A document on a loan: the file, the task or condition it is attached to, its type and its status."},"LoanDocumentLosStatus":{"enum":["Active","Protected","Obsolete","Rejected","Screened"],"type":"string","description":"A loan document's status, one value per document, set here or in the LOS and kept in step both ways. The names are the LOS's own; the app shows Active as Pending, Screened as Accepted and Obsolete as Deleted."},"DocumentAnalysisSummary":{"type":"object","properties":{"status":{"type":"string","description":"Pending, Completed, Failed or Skipped. Failed reads \"Not analysed\".","nullable":true},"verdict":{"type":"string","description":"Whether the document is what was asked for: Matches, Mismatch, Unreadable or Unknown.","nullable":true},"reasonCode":{"type":"string","description":"On a Mismatch, why: WrongDocument, WrongPeriod, WrongAccount, WrongBorrower, MissingPages or Expired. On an Unreadable verdict from the page quality check, UnreadablePages.","nullable":true},"reason":{"type":"string","description":"One line in plain language explaining the verdict, written for the borrower.","nullable":true},"suggestedRejectionReasonCode":{"type":"string","description":"The seeded TaskRejectionReason code the panel pre-selects for a Mismatch.","nullable":true},"suggestedTaskId":{"type":"string","description":"Id of the task or condition the document appears to belong to; null when none matched.","format":"uuid","nullable":true},"suggestedTaskName":{"type":"string","description":"Name of the suggested task or condition.","nullable":true},"isOnSuggestedTask":{"type":"boolean","description":"False when the document sits on a different task than the best match: shown for confirmation."},"matchConfidence":{"type":"number","description":"How sure the analysis is of the suggested task, from 0 to 1.","format":"double","nullable":true},"suggestedLoanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document looks like; null when not determined.","format":"uuid","nullable":true},"suggestedLoanDocumentTypeName":{"type":"string","description":"Name of the suggested loan document type.","nullable":true},"suggestedTitle":{"type":"string","description":"The title the analysis suggests for the document, built from what it read (for example the account and statement period).","nullable":true},"titleAppliedAutomatically":{"type":"boolean","description":"True when the document's current title was set by the analysis rather than by a person."},"previousTitle":{"type":"string","description":"The title the document had before the analysis renamed it; null when it was not renamed.","nullable":true},"autoNameDisabled":{"type":"boolean","description":"True when a person undid an automatic name; the analysis never renames this document again."},"filedByType":{"type":"boolean","description":"Filed under the suggested LOS type and folder by the analysis, for a person to confirm or correct."},"duplicateOfDocumentId":{"type":"string","description":"Id of an earlier document on the loan with the same content, when this one repeats it; otherwise null.","format":"uuid","nullable":true},"supersedesDocumentId":{"type":"string","description":"Id of an earlier document this one replaces (a newer version of the same document); otherwise null.","format":"uuid","nullable":true},"supersededByDocumentId":{"type":"string","description":"Id of a newer document that replaces this one; otherwise null.","format":"uuid","nullable":true},"outcome":{"type":"string","description":"What a person did with the suggestion: Confirmed, Corrected, Rejected or Ignored; null while no one has acted.","nullable":true},"outcomeAt":{"type":"string","description":"When the person acted on the suggestion, in UTC (ISO 8601); null while no one has.","format":"date-time","nullable":true},"coveredPeriods":{"type":"array","items":{"type":"string"},"description":"For a request that needs a span of statements, the months the uploaded documents cover, each formatted yyyy-MM.","nullable":true},"missingPeriods":{"type":"array","items":{"type":"string"},"description":"The requested months no uploaded document covers yet, each formatted yyyy-MM.","nullable":true},"monthsMissing":{"type":"integer","description":"How many months of the request are still missing.","format":"int32","nullable":true},"analyzedAt":{"type":"string","description":"When the analysis was done, in UTC (ISO 8601).","format":"date-time"},"splitSuggestion":{"$ref":"#/components/schemas/SplitSuggestion"},"pageIssues":{"type":"array","items":{"$ref":"#/components/schemas/PageIssue"},"description":"The pages the quality check flagged, which the Unreadable-page request names.","nullable":true}},"additionalProperties":false,"description":"What the document review shows for a document: the suggested task, type and title, the verdict and whether the title was applied automatically. The evidence and page text the analysis read are not included."},"SplitSuggestion":{"type":"object","properties":{"pageCount":{"type":"integer","description":"Number of pages in the PDF that was analysed.","format":"int32"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/SplitPartRange"},"description":"The suggested page ranges, one per document found.","nullable":true},"reason":{"type":"string","description":"The segmenter's account of why, e.g. \"3 document(s) across 12 page(s)\".","nullable":true}},"additionalProperties":false,"description":"The split suggested for a PDF that holds several documents and was not split on upload. Nothing changes until a person accepts it."},"SplitPartRange":{"type":"object","properties":{"startPage":{"type":"integer","description":"First page of the run, counting from 1.","format":"int32"},"endPage":{"type":"integer","description":"Last page of the run, inclusive.","format":"int32"},"loanDocumentTypeId":{"type":"string","description":"What the segmenter took the run to be, for the suggestion only. Never trusted when splitting.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the document type the run was taken to be, for the suggestion only.","nullable":true}},"additionalProperties":false,"description":"One run of pages of a combined PDF that is one document. 1-based, inclusive."},"PageIssue":{"type":"object","properties":{"page":{"type":"integer","description":"The page the issue is on, starting at 1.","format":"int32"},"kind":{"type":"string","description":"The problem found: Blank (no text), LowConfidence (scan quality too low to read reliably) or CutOff (text stops mid-sentence).","nullable":true}},"additionalProperties":false,"description":"A page the quality check flagged. 1-based, in the document the analysis read."},"TaskRejectionReason":{"type":"object","properties":{"id":{"type":"string","description":"Id of the rejection reason (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the rejection reason.","nullable":true},"code":{"type":"string","description":"Stable code of the rejection reason.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the reason in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"A reason a reviewer gives for rejecting a task's document."},"PosCreditReportType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the report type (GUID).","format":"uuid","nullable":true},"code":{"type":"string","description":"Stable code of the report type.","nullable":true},"name":{"type":"string","description":"Display name of the report type.","nullable":true}},"additionalProperties":false,"description":"The type of credit report a credit report task asks for."},"TaskQuestionType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the question type (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the question type.","nullable":true},"code":{"type":"string","description":"Stable code of the question type.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the question type in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"For a question task, the kind of answer it asks for, such as yes/no or a short answer."},"LoanAppUser":{"type":"object","properties":{"id":{"type":"string","description":"Id of the user (GUID).","format":"uuid"},"firstName":{"type":"string","description":"The user's first name.","nullable":true},"lastName":{"type":"string","description":"The user's last name.","nullable":true}},"additionalProperties":false,"description":"A user, such as the staff member a task is assigned to."},"TaskType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the task type.","nullable":true},"name":{"type":"string","description":"Display name of the task type.","nullable":true}},"additionalProperties":false,"description":"The kind of task."},"TaskAssignmentType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the assignment type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the assignment type.","nullable":true},"name":{"type":"string","description":"Display name of the assignment type.","nullable":true}},"additionalProperties":false,"description":"Who a task is assigned to: a borrower or a user."},"TaskSummary":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/TaskStatus"},"count":{"type":"integer","description":"Number of tasks in this status.","format":"int32"},"isUserTask":{"type":"boolean","description":"True when the count is of tasks assigned to staff users, false when it is of tasks assigned to borrowers."}},"additionalProperties":false},"LoanTimeline":{"type":"object","properties":{"activeStatus":{"$ref":"#/components/schemas/LoanStatusBase"},"lastCompletedStatus":{"$ref":"#/components/schemas/LoanStatusBase"},"loanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/LoanStatus"},"description":"Every loan status with its order, completion and date.","nullable":true},"keyDates":{"$ref":"#/components/schemas/KeyDates"},"statusTracker":{"$ref":"#/components/schemas/StatusTracker"},"disclosureTracker":{"$ref":"#/components/schemas/DisclosureTracker"},"signaturePackages":{"type":"array","items":{"$ref":"#/components/schemas/SignaturePackage"},"description":"The loan's e-signature packages, built from its Disclosure tasks on a loan read.","nullable":true}},"additionalProperties":false,"description":"The loan's progress: its active and last completed status, all statuses, key dates and trackers."},"LoanStatusBase":{"type":"object","properties":{"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true}},"additionalProperties":false,"description":"A loan status: its code and display name."},"LoanStatus":{"type":"object","properties":{"displayOrder":{"type":"integer","description":"Position of the status in the loan timeline, starting at 0.","format":"int32"},"isComplete":{"type":"boolean","description":"True when the loan has passed this status."},"date":{"type":"string","description":"When the loan reached the status, ISO 8601; null if not yet.","format":"date-time","nullable":true},"statusDetails":{"type":"array","items":{"$ref":"#/components/schemas/StatusDetail"},"description":"Sub-steps of the status with their dates.","nullable":true},"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true}},"additionalProperties":false},"StatusDetail":{"type":"object","properties":{"displayOrder":{"type":"integer","description":"Position of the sub-step within its status.","format":"int32"},"code":{"type":"string","description":"Sub-step code.","nullable":true},"name":{"type":"string","description":"Sub-step display name.","nullable":true},"date":{"type":"string","description":"When the sub-step happened, ISO 8601; null if not yet.","format":"date-time","nullable":true}},"additionalProperties":false},"KeyDates":{"type":"object","properties":{"estimatedClosing":{"type":"string","description":"Estimated closing date, ISO 8601.","format":"date-time","nullable":true},"firstPaymentDate":{"type":"string","description":"Date the borrower's first payment is due, ISO 8601.","format":"date-time","nullable":true},"lockExpiration":{"type":"string","description":"Date the rate lock expires, ISO 8601; null when the loan is not locked.","format":"date-time","nullable":true},"rateLockedDate":{"type":"string","description":"Date the rate was locked, ISO 8601.","format":"date-time","nullable":true},"rateLockedTime":{"type":"string","description":"Time of day the rate was locked, as text.","nullable":true},"preApprovedDate":{"type":"string","description":"Date the loan was pre-approved (yyyy-MM-dd).","format":"date","nullable":true},"registeredDate":{"type":"string","description":"Date the loan was registered with the lender (yyyy-MM-dd).","format":"date","nullable":true},"appSubmittedDate":{"type":"string","description":"Date the application was submitted (yyyy-MM-dd).","format":"date","nullable":true},"closingDate":{"type":"string","description":"Scheduled closing date (yyyy-MM-dd).","format":"date","nullable":true}},"additionalProperties":false,"description":"The loan's key dates; each is null until it is known."},"StatusTracker":{"type":"object","properties":{"lastCompletedStep":{"type":"string","description":"Label of the last step the loan completed.","nullable":true},"currentStepLabel":{"type":"string","description":"Label of the step the loan is on now.","nullable":true},"summaryLoanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/StatusTrackerLoanStatus"},"description":"The statuses shown in the summary view, with their progress.","nullable":true},"allLoanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/StatusTrackerLoanStatusBase"},"description":"All statuses in the tracker, in display order.","nullable":true}},"additionalProperties":false,"description":"The borrower-facing progress tracker of a loan: the last completed step, the current step and the statuses shown."},"StatusTrackerLoanStatus":{"type":"object","properties":{"isComplete":{"type":"boolean","description":"True when the loan has passed this status."},"isInProgress":{"type":"boolean","description":"True when the loan is at this status now."},"isApproved":{"type":"boolean","description":"For the pre-approval status, true when approved and false when denied; null otherwise.","nullable":true},"subStatusLabel":{"type":"string","description":"A finer label for the status, when there is one.","nullable":true},"preApprovalDocumentId":{"type":"string","description":"Unique identifier (GUID) of the pre-approval letter document, when one was issued.","format":"uuid","nullable":true},"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the status in the tracker, starting at 0.","format":"int32"},"date":{"type":"string","description":"Date the loan reached the status (yyyy-MM-dd); null if not yet.","format":"date","nullable":true},"time":{"type":"string","description":"Time of day the loan reached the status, as text; null if not known.","nullable":true}},"additionalProperties":false},"StatusTrackerLoanStatusBase":{"type":"object","properties":{"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the status in the tracker, starting at 0.","format":"int32"},"date":{"type":"string","description":"Date the loan reached the status (yyyy-MM-dd); null if not yet.","format":"date","nullable":true},"time":{"type":"string","description":"Time of day the loan reached the status, as text; null if not known.","nullable":true}},"additionalProperties":false},"DisclosureTracker":{"type":"object","properties":{"loanEstimates":{"type":"array","items":{"$ref":"#/components/schemas/LoanEstimateDates"},"description":"Every Loan Estimate issued on the loan, in the order the Loan Origination System lists them.","nullable":true},"closingDisclosures":{"type":"array","items":{"$ref":"#/components/schemas/ClosingDisclosureDates"},"description":"Every Closing Disclosure issued on the loan, in the order the Loan Origination System lists them.","nullable":true}},"additionalProperties":false,"description":"The loan's disclosure history: each Loan Estimate and Closing Disclosure issued, with delivery, receipt and signature dates."},"LoanEstimateDates":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the Loan Estimate disclosure record.","nullable":true},"createdDate":{"type":"string","description":"Date the Loan Estimate was created (yyyy-MM-dd).","format":"date","nullable":true},"issuedDate":{"type":"string","description":"Date the Loan Estimate was issued (yyyy-MM-dd).","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the Loan Estimate was delivered, for example email or mail.","nullable":true},"receivedDate":{"type":"string","description":"Date the borrower received it (yyyy-MM-dd).","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date the borrower signed it (yyyy-MM-dd).","format":"date","nullable":true},"isLastDisclosed":{"type":"boolean","description":"The LOS read returns no last-disclosed flag, so this is never filled; see MismoNotCarried.","nullable":true},"disclosedApr":{"type":"number","description":"APR disclosed on the Loan Estimate, in percent (for example 6.912).","format":"double","nullable":true},"archiveId":{"type":"string","description":"The archive the LOS issued this disclosure from; null when the LOS sends blank or an all-zero GUID (a hand-entered record).","nullable":true},"archiveDate":{"type":"string","description":"The archive's date (the LOS's `ArchiveUsed`); a date only, no time of day.","format":"date","nullable":true},"transactionId":{"type":"string","description":"The id the disclosure was generated under, also on the e-sign package it was sent in; null when blank.","nullable":true},"isInitial":{"type":"boolean","description":"True when this is the initial Loan Estimate.","nullable":true},"isManual":{"type":"boolean","description":"True when the record was entered by hand rather than generated.","nullable":true},"isValid":{"type":"boolean","description":"The LOS's `Valid`. A record marked not valid stays in the list.","nullable":true},"losApr":{"type":"number","description":"The LOS's own APR (`LqbApr`).","format":"double","nullable":true},"docVendorApr":{"type":"number","description":"APR calculated by the document provider, in percent.","format":"double","nullable":true},"consumerDates":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerDisclosureDates"},"description":"Per-borrower disclosure dates.","nullable":true}},"additionalProperties":false},"ConsumerDisclosureDates":{"type":"object","properties":{"consumerId":{"type":"string","description":"The borrower's id in the Loan Origination System.","nullable":true},"consumerName":{"type":"string","description":"The borrower's name.","nullable":true},"issuedDate":{"type":"string","description":"Date the disclosure was issued to this borrower (ISO 8601 date).","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the disclosure was delivered to this borrower, as the Loan Origination System records it.","nullable":true},"receivedDate":{"type":"string","description":"Date this borrower received the disclosure (ISO 8601 date); null when not recorded.","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date this borrower signed the disclosure (ISO 8601 date); null when not signed.","format":"date","nullable":true}},"additionalProperties":false},"ClosingDisclosureDates":{"type":"object","properties":{"id":{"type":"string","description":"The disclosure's id in the Loan Origination System.","nullable":true},"createdDate":{"type":"string","description":"Date the disclosure was created (ISO 8601 date, no time of day).","format":"date","nullable":true},"issuedDate":{"type":"string","description":"Date the disclosure was issued to the borrowers (ISO 8601 date); null when not yet issued.","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the disclosure was delivered, as the Loan Origination System records it (for example email or mail).","nullable":true},"receivedDate":{"type":"string","description":"Date the borrowers received the disclosure (ISO 8601 date); null when not recorded. When several borrowers are listed, each borrower's own date is in consumerDates.","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date the disclosure was signed (ISO 8601 date); null when not signed.","format":"date","nullable":true},"isLastDisclosed":{"type":"boolean","description":"Never filled: the Loan Origination System returns no last-disclosed flag, so this is always null.","nullable":true},"eCloseStatus":{"type":"string","description":"The e-close status the Loan Origination System records for the disclosure; null when none.","nullable":true},"disclosedApr":{"type":"number","description":"The annual percentage rate disclosed, in percent (for example 6.912); null when not recorded.","format":"double","nullable":true},"archiveId":{"type":"string","description":"The id of the archive the Loan Origination System issued this disclosure from; null when it sent none (for example a hand-entered record).","nullable":true},"archiveDate":{"type":"string","description":"The archive's date (ISO 8601 date, no time of day).","format":"date","nullable":true},"transactionId":{"type":"string","description":"The id the disclosure was generated under, also on the e-sign package it was sent in; null when blank.","nullable":true},"isInitial":{"type":"boolean","description":"True when this is the initial Closing Disclosure.","nullable":true},"isManual":{"type":"boolean","description":"True when the record was entered by hand rather than generated by the Loan Origination System.","nullable":true},"isValid":{"type":"boolean","description":"False when the record is marked not valid in the Loan Origination System. Such a record stays in the list.","nullable":true},"losApr":{"type":"number","description":"The Loan Origination System's own annual percentage rate, in percent.","format":"double","nullable":true},"docVendorApr":{"type":"number","description":"The APR as the document vendor calculated it, in percent; null when not recorded.","format":"double","nullable":true},"isFinal":{"type":"boolean","description":"True when this is the final Closing Disclosure.","nullable":true},"isPreview":{"type":"boolean","description":"True when the disclosure was only a preview and was not issued to the borrowers.","nullable":true},"isPostClosing":{"type":"boolean","description":"True when the disclosure was issued after closing.","nullable":true},"consumerDates":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerDisclosureDates"},"description":"Issued, received and signed dates for each borrower on the disclosure.","nullable":true}},"additionalProperties":false},"SignaturePackage":{"type":"object","properties":{"packageId":{"type":"string","description":"The id of the e-sign package as the Loan Origination System holds it.","nullable":true},"name":{"type":"string","description":"The package's name.","nullable":true},"sentTimestamp":{"type":"string","description":"The earliest created timestamp of the package's tasks.","format":"date-time"},"status":{"type":"string","description":"Signed, AwaitingSignature, Reviewed or Cancelled. Reviewed and Cancelled are only reported by a live read of the package.","nullable":true},"signedTimestamp":{"type":"string","description":"The last signer's, only when the package is signed.","format":"date-time","nullable":true},"signers":{"type":"array","items":{"$ref":"#/components/schemas/SignaturePackageSigner"},"description":"The people who must sign the package and whether each has.","nullable":true}},"additionalProperties":false,"description":"One e-sign package sent from the LOS for a loan and who has signed it, built from the loan's\r\nDisclosure tasks (one per signer). Carries no access link and no participant id: nothing here\r\nopens a signing session. Not loan-file data, so it is never part of the MISMO export."},"SignaturePackageSigner":{"type":"object","properties":{"name":{"type":"string","description":"The signer's name.","nullable":true},"role":{"type":"string","description":"Borrower or LoanOfficer.","nullable":true},"signedTimestamp":{"type":"string","description":"When the signer signed, in UTC (ISO 8601); null while they have not.","format":"date-time","nullable":true}},"additionalProperties":false},"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}":{"get":{"tags":["Loan applications"],"summary":"Get Loan Details by Id or LOS loan id (externalId)","description":"**Required scope:** `read:loan-applications`","operationId":"LoanApplications_GetById","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"}},{"name":"include","in":"query","description":"Extra parts to add to the response, comma-separated, ignoring case and spaces. The one value is `completion`, which adds `sectionCompletion`: each application section's status, the required fields it still lacks and whether the loan can be submitted. Unknown values are ignored.","schema":{"type":"string"}}],"responses":{"200":{"description":"Loan with Id found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLoanApplicationResponse"}}}},"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":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Delete, logically, a Loan Application

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"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}":{"delete":{"tags":["Loan applications"],"summary":"Delete, logically, a Loan Application","description":"**Required scope:** `delete:loan-applications`","operationId":"LoanApplications_Delete","parameters":[{"name":"id","in":"path","description":"Loan ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Loan Application deleted successfully"},"400":{"description":"Bad Request","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":"Unauthorized","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":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Update individual fields of a Loan Application (1003)

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Send only the fields to change: an omitted field is left as stored and a field sent as null is> \
> cleared. Covers borrowers, addresses, employment and income, real estate owned, declarations,> \
> demographics, purchase price, down payment, property and loan terms. Liabilities and assets have> \
> their own endpoints.> \
> &#x20;          &#x20;> \
> Borrowers are addressed by their \`hdBorrowerId\`; a borrower entry without an id adds a> \
> co-borrower, and \`remove: true\` removes one. Employers and real estate owned are addressed by> \
> their \`externalId\`, or by \`index\` for a row that has none yet.> \
> &#x20;          &#x20;> \
> The change is saved exactly as the web app saves it, including its validation and, for a loan> \
> already in the LOS, its refusal once the loan is no longer editable (422). The response is the> \
> loan as saved with its \`sectionCompletion\` report, so the caller sees what is still missing.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"LoanApplicationPatch":{"type":"object","properties":{"loanAmount":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"loanTerm":{"type":"integer","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"int32"},"loanType":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"purpose":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"amortizationType":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"lienPosition":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"purchasePrice":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"downPayment":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"downPaymentPercentage":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"subjectPropertyAddress":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"appraisalValue":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"propertyType":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"occupancy":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"numberOfUnits":{"type":"integer","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"int32"},"cashOutAmount":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"estimatedMonthlyMarketRent":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"isRenovationLoan":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isNewConstruction":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isEmployeeLoan":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"leadSource":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/BorrowerPatch"},"description":"Changes to borrowers, each addressed by its id (hdBorrowerId from get_loan_application / GET loan-applications/{id}). A loan holds one primary borrower and at most one co-borrower. An entry without an id ADDS a co-borrower (refused if the loan already has one; firstName and lastName are required). An entry with an id and remove: true removes that co-borrower; the primary borrower cannot be removed. Omit to leave every borrower unchanged.","nullable":true},"temporaryBuydown":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"trusts":{"type":"array","items":{"type":"object"},"description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"titleHeldInTrust":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"finalVesting":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."}},"additionalProperties":false,"description":"A partial 1003: only the fields you want to change on the loan application. Leave a field out to keep its stored value; send null to clear it. Liabilities and assets have their own endpoints, and the loan's assignments, status, lock and compensation cannot be changed here. Send at least one property: a property left out is unchanged, one sent as null is cleared, and a body that changes nothing is refused."},"BorrowerPatch":{"type":"object","properties":{"id":{"type":"string","description":"The borrower's hdBorrowerId (GUID). Omit to add a co-borrower.","format":"uuid","nullable":true},"remove":{"type":"boolean","description":"true removes the co-borrower named by id. Only a co-borrower can be removed. Every other field is ignored when true."},"firstName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"middleName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"lastName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"suffixName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"birthDate":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"ssn":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"email":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"homePhone":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"mobilePhone":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"workPhone":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"maritalStatus":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"citizenship":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"numberOfDependents":{"type":"integer","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"int32"},"dependentAges":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isMilitary":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"vestingType":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"currentAddress":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"mailingAddress":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"previousAddresses":{"type":"array","items":{"type":"object"},"description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"declaration":{"$ref":"#/components/schemas/DeclarationPatch"},"demographics":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"veteranDetail":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"language":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"employments":{"type":"array","items":{"$ref":"#/components/schemas/EmploymentPatch"},"description":"Changes to employers, each addressed by id (the employer's externalId) or, for an employer that has no id yet, by index (its zero-based position in the list as last read). An entry with neither adds an employer; remove: true removes the addressed one. Omit to leave every employer unchanged.","nullable":true},"otherIncomes":{"type":"array","items":{"type":"object"},"description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"ownedProperties":{"type":"array","items":{"$ref":"#/components/schemas/OwnedPropertyPatch"},"description":"Changes to real estate owned, each addressed by id (the property's externalId) or, for one that has no id yet, by index (its zero-based position in the list as last read). An entry with neither adds a property; remove: true removes the addressed one. Omit to leave every property unchanged.","nullable":true}},"additionalProperties":false,"description":"One borrower's changes. Addressed by `id`, the stored `HdBorrowerId`. An entry without an `id` adds a co-borrower and needs `firstName` and `lastName`."},"DeclarationPatch":{"type":"object","properties":{"hasIntentToOccupy":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isHomeownerPastThreeYears":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"priorPropertyUsage":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"priorPropertyTitle":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isBuyerSellerSpecialRelationship":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasUndisclosedBorrowedFunds":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"undisclosedBorrowedFundsAmount":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"hasUndisclosedCreditApplication":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasUndisclosedMortgageApplication":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasCleanEnergyLien":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isUndisclosedComakerOfNote":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasOutstandingJudgements":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isDelinquent":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isPartyToLawsuit":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasDeedInLieu":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasShortSale":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasForeclosure":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasBankruptcy":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"bankruptcyTypes":{"type":"array","items":{"type":"string"},"description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"hasHousingCounselingConsent":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."}},"additionalProperties":false,"description":"The borrower's declarations, answer by answer. An answer left out is kept as stored; one sent as null is cleared."},"EmploymentPatch":{"type":"object","properties":{"id":{"type":"string","description":"The employer's externalId. Takes precedence over index.","nullable":true},"index":{"type":"integer","description":"Zero-based position of the employer in the list as last read. Use only for an employer that has no externalId yet.","format":"int32","nullable":true},"remove":{"type":"boolean","description":"true removes the addressed employer. Every other field is ignored when true."},"name":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"position":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isCurrent":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isSelfEmployed":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isPrimary":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"ownershipShare":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"startDate":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"endDate":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"professionStartDate":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"lineOfWorkInMonths":{"type":"integer","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"int32"},"businessPhone":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"email":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"monthlyIncomeAmount":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"address":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"incomes":{"type":"array","items":{"type":"object"},"description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."}},"additionalProperties":false,"description":"One employer's changes. Addressed by `id` (the stored `ExternalId`) or, for an\r\nemployer that has none yet, by `index`. An entry with neither `id` nor `index` adds an employer."},"OwnedPropertyPatch":{"type":"object","properties":{"id":{"type":"string","description":"The property's externalId. Takes precedence over index.","nullable":true},"index":{"type":"integer","description":"Zero-based position of the property in the list as last read. Use only for a property that has no externalId yet.","format":"int32","nullable":true},"remove":{"type":"boolean","description":"true removes the addressed property. Every other field is ignored when true."},"address":{"type":"object","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"dispositionStatus":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"occupancy":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"intendedOccupancy":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"intendedOccupancyOtherDescription":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"marketValue":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"monthlyRentalGross":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"maintenanceExpense":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"monthlyRentalNet":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"lienBalance":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"lienMonthlyPayment":{"type":"number","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it.","format":"double"},"isSubject":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isCurrent":{"type":"boolean","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."}},"additionalProperties":false,"description":"One real-estate-owned property's changes. Addressed by `id` (the stored\r\n`ExternalId`) or, for a property that has none yet, by `index`. An entry with neither `id` nor `index` adds a property."},"GetLoanApplicationResponse":{"required":["assetsLocked","createdTimestampUtc","id","isClientPortalHidden","isDeleted","isLoanEditable","isSetupComplete"],"type":"object","properties":{"losType":{"$ref":"#/components/schemas/Application"},"updatedByEmail":{"type":"string","description":"Email address of the user who last changed the loan application.","nullable":true},"updatedByFirstName":{"type":"string","description":"First name of the user who last changed the loan application.","nullable":true},"updatedByLastName":{"type":"string","description":"Last name of the user who last changed the loan application.","nullable":true},"updatedByIp":{"type":"string","description":"IP address the last change came from.","nullable":true},"isLoanEditable":{"type":"boolean","description":"True while the application can still be edited in Henge. False once it is submitted and the borrower has accepted e-consent, after which writes are refused."},"losLeadFileAvailable":{"type":"boolean","description":"True when the loan has no file in the loan origination system yet and a credit reissue or a DU run opens one for it, held as a lead until the application is submitted. False otherwise."},"skipStatedIncomePreapproval":{"type":"boolean","description":"True when the pre-approval step that asks for stated income is skipped for this loan. Null when not set.","nullable":true},"startStatedIncomePreapproval":{"type":"boolean","description":"True when the stated-income pre-approval flow was started for this loan. Null when not set.","nullable":true},"isSetupComplete":{"type":"boolean","description":"True when the loan's initial setup is complete."},"assetsLocked":{"type":"boolean","description":"The loan has reached approval, so its assets can no longer be changed from Henge. Computed on read for the loan page, never stored."},"preApproval":{"$ref":"#/components/schemas/PreApprovalSummary"},"timestamp":{"type":"integer","description":"Time of the last save of the application form, as a Unix timestamp in seconds. Null when there is none.","format":"int64","nullable":true},"referredBy":{"$ref":"#/components/schemas/Contact"},"company":{"$ref":"#/components/schemas/LoanCompany"},"notKept":{"type":"array","items":{"type":"string"},"description":"Fields of the update that were accepted but are not held by the loan afterwards, each with what the loan holds instead. Omitted when every field was kept.","nullable":true},"currentBorrowerId":{"type":"string","description":"The calling borrower's own borrower id on this loan. Filled only for a borrower caller on the borrower-facing API; omitted for every other caller, including Partner API callers.","format":"uuid","nullable":true},"currentPairIndex":{"type":"integer","description":"Position of the calling borrower's pair on the loan (0 is the primary pair). Filled only for a borrower caller.","format":"int32","nullable":true},"isPrimaryPair":{"type":"boolean","description":"The calling client is on pair 0; false when their pair is unknown. Null for a caller who is not a client.","nullable":true},"hasMultiplePairs":{"type":"boolean","description":"The loan holds more than one live pair (toggle on). Null for a caller who is not a client.","nullable":true},"sectionCompletion":{"$ref":"#/components/schemas/LoanAppSectionCompletionReport"},"figures":{"$ref":"#/components/schemas/LoanFigures"},"headerFigures":{"$ref":"#/components/schemas/LoanHeaderFigures"},"mortgageLoanTypeName":{"type":"string","description":"Readable name of loanInfo.mortgageLoanType, for example PrimeConforming. A convenience only: it is not the loan type, which is loanInfo.loanType.name. Null and omitted when the raw value is empty or not a recognized code.","nullable":true,"readOnly":true},"id":{"type":"string","description":"Id of the loan application (GUID), as used in loan-applications/{id} paths. The LOS loan id is loanInfo.loanId.","format":"uuid"},"loanInfo":{"$ref":"#/components/schemas/LoanInfo"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplicationTaskItem"},"description":"The loan's tasks and conditions.","nullable":true},"taskSummaries":{"type":"array","items":{"$ref":"#/components/schemas/TaskSummary"},"description":"Counts of the loan's tasks by status, split into user tasks and borrower tasks.","nullable":true},"loanTimeline":{"$ref":"#/components/schemas/LoanTimeline"},"isDeleted":{"type":"boolean","description":"True when the loan application has been deleted."},"createdTimestampUtc":{"type":"string","description":"When the loan application was created (ISO 8601 date and time, UTC).","format":"date-time"},"updatedTimestampUtc":{"type":"string","description":"When the loan application was last changed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedBy":{"type":"string","description":"Id (GUID) of the user who last changed the loan application.","format":"uuid","nullable":true},"isClientPortalHidden":{"type":"boolean","description":"True when the borrower's company does not use the borrower portal. False when that cannot be determined. Computed on read, never stored."},"isLosLead":{"type":"boolean","description":"True while the loan has a loan number but its application has not been submitted yet (its file was opened early, as a lead). False otherwise: a loan number then means the application was submitted."},"isSandbox":{"type":"boolean","description":"True when the loan is a sandbox, a copy made to try changes on. False on every ordinary loan. Read-only."},"sourceLoanApplicationId":{"type":"string","description":"For a sandbox, the id of the loan it was copied from. Null on every other loan.","format":"uuid","nullable":true},"sandboxSourceLoanNumber":{"type":"string","description":"For a sandbox, the LOS loan number of the loan it was copied from. Null on every other loan.","nullable":true}},"additionalProperties":false},"Application":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the application.","format":"uuid"},"type":{"type":"string","description":"The application's type.","nullable":true},"name":{"type":"string","description":"The application's name.","nullable":true}},"additionalProperties":false,"description":"A reference to an application: its id, type and name."},"PreApprovalSummary":{"type":"object","properties":{"isApproved":{"type":"boolean","description":"True when the latest pre-approval was approved, false when denied; null when none has run.","nullable":true},"denialReasons":{"type":"array","items":{"type":"string"},"description":"Why the latest pre-approval was denied; empty when it was approved.","nullable":true},"issuedDate":{"type":"string","description":"When the latest pre-approval was issued, ISO 8601 in UTC.","format":"date-time","nullable":true},"expiryDate":{"type":"string","description":"When the latest pre-approval letter expires, ISO 8601 in UTC.","format":"date-time","nullable":true},"creditPulledOn":{"type":"string","description":"When the soft credit pull the latest run used was pulled, ISO 8601 in UTC.","format":"date-time","nullable":true},"letterDocumentId":{"type":"string","description":"Unique identifier (GUID) of the pre-approval letter document, when one was issued.","format":"uuid","nullable":true},"canRerun":{"type":"boolean","description":"True when the pre-approval can be run again now."},"cannotRerunReason":{"type":"string","description":"Why it cannot be run again; null when it can.","nullable":true},"runs":{"type":"array","items":{"$ref":"#/components/schemas/PreApprovalRun"},"description":"Every persisted run, oldest first. Filled for staff roles only.","nullable":true}},"additionalProperties":false,"description":"The loan response's `preApproval` block: the last result, and whether and why a re-run is refused."},"PreApprovalRun":{"type":"object","properties":{"date":{"type":"string","description":"When the run was made, ISO 8601 in UTC.","format":"date-time"},"actorUserId":{"type":"string","description":"Unique identifier (GUID) of the user who ran it; null when no user ran it.","format":"uuid","nullable":true},"purchasePrice":{"type":"number","description":"Purchase price the run used, in dollars.","format":"double"},"downPayment":{"type":"number","description":"Down payment the run used, in dollars.","format":"double"},"annualIncome":{"type":"number","description":"Annual income the run used, in dollars.","format":"double"},"occupancy":{"type":"string","description":"Occupancy the run used: PrimaryResidence, SecondaryResidence or Investment.","nullable":true},"incomeType":{"type":"string","description":"Income type the run used, for example W2-earner.","nullable":true},"loanType":{"type":"string","description":"Loan type the run used: VA, FHA, Conventional or NonConforming.","nullable":true},"isApproved":{"type":"boolean","description":"True when the run was approved."},"denialReasons":{"type":"array","items":{"type":"string"},"description":"Why the run was denied; empty when approved.","nullable":true},"loanAmount":{"type":"number","description":"Loan amount of the run, in dollars.","format":"double"},"maxLoanAmount":{"type":"number","description":"Largest loan amount the borrower qualified for, in dollars.","format":"double"},"dti":{"type":"number","description":"Debt-to-income ratio of the run, in percent.","format":"double"},"ltv":{"type":"number","description":"Loan-to-value ratio of the run, in percent.","format":"double"},"creditScore":{"type":"integer","description":"Qualifying credit score of the run.","format":"int32"},"rate":{"type":"number","description":"Best note rate found, in percent; null when not approved.","format":"double","nullable":true},"loanProgram":{"type":"string","description":"Program priced, as a term label such as 30-Yr.; null when not approved.","nullable":true},"documentId":{"type":"string","description":"The letter document when approved; the denied document is filed by the subscriber, so it is not known here.","format":"uuid","nullable":true}},"additionalProperties":false,"description":"One persisted pre-approval run, appended to `PreApprovalRuns` and never trimmed."},"Contact":{"type":"object","properties":{"id":{"type":"string","description":"Id of the contact (GUID).","format":"uuid","nullable":true},"email":{"type":"string","description":"Email address.","nullable":true},"firstName":{"type":"string","description":"First name.","nullable":true},"lastName":{"type":"string","description":"Last name.","nullable":true},"agentName":{"type":"string","description":"Full name of the agent.","nullable":true},"roleName":{"type":"string","description":"Display name of the contact's role.","nullable":true},"agentNMLS":{"type":"string","description":"The agent's NMLS id.","nullable":true},"role":{"$ref":"#/components/schemas/ContactRole"},"phone":{"type":"string","description":"Phone number.","nullable":true},"mobilePhone":{"type":"string","description":"Mobile phone number.","nullable":true},"companyPhone":{"type":"string","description":"The agent's company phone number.","nullable":true},"zip":{"type":"string","description":"ZIP or postal code.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"street":{"type":"string","description":"Street address.","nullable":true},"companyNMLS":{"type":"string","description":"The agent's company NMLS id.","nullable":true}},"additionalProperties":false,"description":"A person on or tied to a loan, such as the referring agent."},"ContactRole":{"enum":["Other","Appraiser","Escrow","CreditReport","Title","MortgageInsurance","ListingAgent","SellingAgent","Builder","Underwriter","Investor","Servicing","BuyerAttorney","SellerAttorney","HomeOwnerInsurance","HazardInsurance","MarketingLead","Seller","Surveyor","LoanOfficer","Bank","Lender","Processor","CallCenterAgent","LoanOpener","Manager","Broker","BrokerRep","ECOA","Realtor","Mortgagee","HomeOwnerAssociation","BuyerAgent","ClosingAgent","FairHousingLending","HomeInspection","FloodProvider","CreditReportAgency2","CreditReportAgency3","Shipper","BrokerProcessor","Trustee","Funder","PostCloser","Insuring","CollateralAgent","DocDrawer","PropertyManagement","TitleUnderwriter","CreditAuditor","DisclosureDesk","JuniorProcessor","JuniorUnderwriter","LegalAuditor","LoanOfficerAssistant","Purchaser","QCCompliance","Secondary","PestInspection","Subservicer","ExternalSecondary","ExternalPostCloser","LoanPurchasePayee","AppraisalManagementCompany","Referral","Notary","TaxServicer","SupervisoryAppraiser","Attorney","PropertyInspector","CPATaxPreparer","LockDesk","MortgageServiceOrganization","Verifications","TaxCollector","TaxTranscripts"],"type":"string","description":"The role a contact plays on a loan. Each value names that role: Other (anything not listed), Appraiser, Escrow, CreditReport (credit agency), Title, MortgageInsurance, ListingAgent, SellingAgent, Builder, Underwriter, Investor, Servicing, BuyerAttorney, SellerAttorney, HomeOwnerInsurance (obsolete; use HazardInsurance), HazardInsurance (homeowner's insurance), MarketingLead, Seller, Surveyor, LoanOfficer, Bank, Lender, Processor, CallCenterAgent, LoanOpener, Manager, Broker, BrokerRep, ECOA, Realtor, Mortgagee, HomeOwnerAssociation, BuyerAgent, ClosingAgent, FairHousingLending, HomeInspection, FloodProvider, CreditReportAgency2, CreditReportAgency3, Shipper, BrokerProcessor (external processor), Trustee, Funder, PostCloser, Insuring, CollateralAgent, DocDrawer, PropertyManagement, TitleUnderwriter, CreditAuditor, DisclosureDesk, JuniorProcessor, JuniorUnderwriter, LegalAuditor, LoanOfficerAssistant, Purchaser, QCCompliance, Secondary, PestInspection, Subservicer, ExternalSecondary, ExternalPostCloser, LoanPurchasePayee, AppraisalManagementCompany, Referral, Notary, TaxServicer, SupervisoryAppraiser, Attorney, PropertyInspector, CPATaxPreparer, LockDesk, MortgageServiceOrganization, Verifications, TaxCollector and TaxTranscripts."},"LoanCompany":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the company.","format":"uuid"},"name":{"type":"string","description":"Company name.","nullable":true},"code":{"type":"string","description":"The company's short code.","nullable":true},"companyTypeName":{"type":"string","description":"Name of the company type, for example TPO; null for a standard company.","nullable":true}},"additionalProperties":false,"description":"The company a loan belongs to, as carried on a loan read. Enough for a reader to tell a TPO\r\nloan from a Standard one without a second call: `CompanyTypeName` is the company\r\ntype's name (\"TPO\"), and null means Standard, the same rule the companies endpoint applies."},"LoanAppSectionCompletionReport":{"type":"object","properties":{"sections":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppSectionCompletion"},"description":"Per-section completion report for the 7 borrower wizard sections, in sidebar order. Each entry carries the section status plus the required fields that still have no value, mirroring the frontend's section validation exactly.","nullable":true},"missingRequiredFields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppMissingField"},"description":"Every required field that still has no value, across all sections, in the order the application asks for them (section by section, top to bottom). The first entry is the next field to fill in.","nullable":true},"pairs":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppPairCompletion"},"description":"The missing required fields and rule errors of all sections grouped by borrower pair. missingRequiredFields keeps every entry; this adds the grouping.","nullable":true},"allSectionsComplete":{"type":"boolean","description":"True when every section's status is 'Completed' or 'Accepted' (the agent-side completion bar used for submission)."},"isReadyToSubmit":{"type":"boolean","description":"True when the loan application can be submitted right now: not already submitted, every section signed off, every validated section's required fields answered, and every required borrower task Uploaded/Submitted/Accepted. The server refuses a submit while this is false."},"submitBlockers":{"type":"array","items":{"type":"string"},"description":"Human-readable reasons the loan application cannot be submitted yet. Empty when isReadyToSubmit is true.","nullable":true},"blockers":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppReadinessBlocker"},"description":"The same reasons as submitBlockers, structured: kind, section or task, status, and the missing fields.","nullable":true}},"additionalProperties":false,"description":"How complete the borrower's loan application is, section by section, and whether it can be submitted."},"LoanAppSectionCompletion":{"type":"object","properties":{"sectionName":{"type":"string","description":"Wizard section name as shown in the borrower UI sidebar: 'About You', 'Loan & Property', 'Work & Income', 'Assets', 'Liabilities', 'Real Estate', or 'Additional Details'.","nullable":true},"taskCode":{"type":"string","description":"Code of the verification task that tracks this section, e.g. 'LoanAndPropertyVerification'.","nullable":true},"taskName":{"type":"string","description":"Name of the verification task that tracks this section, e.g. 'Loan and Property Verification'.","nullable":true},"status":{"type":"string","description":"Normalized section status as the borrower UI sidebar shows it: 'NotStarted', 'InProgress', 'Submitted', 'Completed', or 'Accepted'. Derived from the verification task status; sections in 'Completed' or 'Accepted' count toward overall loan app completion.","nullable":true},"rawTaskStatusName":{"type":"string","description":"The verification task's raw status name as stored (e.g. 'Uploaded', 'Requested'); null when the loan has no verification task for this section (e.g. loans synced from the LOS that never went through the wizard).","nullable":true},"isValid":{"type":"boolean","description":"True when every required field in this section has a value and no section rule is violated, i.e. the borrower could press 'Complete Section' right now. Always true for Assets and Liabilities, which have no field-level validation here (use the section status for them)."},"fields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppFieldStatus"},"description":"Every wizard field in this section with its per-loan required flag and whether it currently holds a value. Empty for Assets and Liabilities, which have no field-level validation.","nullable":true},"missingRequiredFields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppMissingField"},"description":"Convenience list: the entries from 'fields' that are required and have no value. Empty when the section's data is complete.","nullable":true},"ruleErrors":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppSectionRuleError"},"description":"Cross-field rule violations in this section (e.g. 2-year address/employment history gaps, loan amount above purchase price). Empty when no rules are violated.","nullable":true},"pairs":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppPairCompletion"},"description":"The same missing fields and rule errors grouped by borrower pair. The flat lists above keep every entry; this adds the grouping. Empty for sections with no per-borrower fields.","nullable":true},"notes":{"type":"array","items":{"type":"string"},"description":"Caveats about how this section's completion is evaluated, when applicable.","nullable":true}},"additionalProperties":false},"LoanAppFieldStatus":{"type":"object","properties":{"path":{"type":"string","description":"Dot-path of the field, e.g. 'loanInfo.borrowers[0].currentAddress.zipCode'. Matches the frontend validation key and doubles as the camelCase JSON path into this same response.","nullable":true},"label":{"type":"string","description":"Human-readable label for the field, e.g. 'Co-Borrower Current Address ZIP Code'.","nullable":true},"required":{"type":"boolean","description":"Whether this field is required for THIS loan, with conditional rules already resolved (e.g. purchase price is not required on a Refinance, dependent ages only when the borrower has dependents). A field that is required and has no value blocks section completion."},"hasValue":{"type":"boolean","description":"Whether the field currently holds an acceptable value. False when empty AND when a value fails its format check (e.g. a malformed SSN or email), matching the wizard's treatment of invalid values as missing. required && !hasValue means the field is blocking section completion."},"borrower":{"type":"string","description":"'Borrower' or 'CoBorrower' when the field belongs to a specific applicant; null for loan-level fields.","nullable":true},"pairIndex":{"type":"integer","description":"The borrower pair (0 is the primary pair) the field belongs to; null for loan-level fields.","format":"int32","nullable":true}},"additionalProperties":false},"LoanAppMissingField":{"type":"object","properties":{"fieldPath":{"type":"string","description":"Dot-path of the required field that has no value, e.g. 'loanInfo.borrowers[0].currentAddress.zipCode'. Matches the frontend validation key and doubles as the camelCase JSON path into this same response.","nullable":true},"label":{"type":"string","description":"Human-readable label for the field, e.g. 'Co-Borrower Current Address ZIP Code'.","nullable":true},"section":{"type":"string","description":"The wizard section the field is on, e.g. 'About You'.","nullable":true},"borrower":{"type":"string","description":"'Borrower' or 'CoBorrower' when the field belongs to a specific applicant; null for loan-level fields.","nullable":true},"pairIndex":{"type":"integer","description":"The borrower pair (0 is the primary pair) the field belongs to; null for loan-level fields.","format":"int32","nullable":true}},"additionalProperties":false},"LoanAppSectionRuleError":{"type":"object","properties":{"message":{"type":"string","description":"Cross-field rule violation message, identical to the text the borrower-facing wizard shows (e.g. 'Address history must be at least 2 years', 'Missing March 2024 - May 2024'). Month-coverage rules are evaluated with the server clock, so results near a month boundary can differ by one month from a browser in another timezone.","nullable":true},"borrower":{"type":"string","description":"'Borrower' or 'CoBorrower' when the rule applies to a specific applicant; null for loan-level rules.","nullable":true},"pairIndex":{"type":"integer","description":"The borrower pair (0 is the primary pair) the rule belongs to; null for loan-level rules.","format":"int32","nullable":true}},"additionalProperties":false},"LoanAppPairCompletion":{"type":"object","properties":{"pairIndex":{"type":"integer","description":"The borrower pair's position on the loan; 0 is the primary pair.","format":"int32"},"isValid":{"type":"boolean","description":"True when this pair has no missing required field and no rule error."},"missingRequiredFields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppMissingField"},"description":"The required fields of this pair's borrower and co-borrower that still have no value.","nullable":true},"ruleErrors":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppSectionRuleError"},"description":"The cross-field rule violations of this pair's borrower and co-borrower.","nullable":true},"status":{"type":"string","description":"Normalized status of this pair's own verification task for the section ('NotStarted', 'InProgress', 'Submitted', 'Completed', 'Accepted'). Set only when pairs are enabled, and only on sections that have one task per pair.","nullable":true},"rawTaskStatusName":{"type":"string","description":"This pair's verification task's raw status name; null when the pair has no task for the section yet.","nullable":true},"taskId":{"type":"string","description":"Id of this pair's verification task for the section, the id sign_off_loan_section takes; null when the pair has no task yet.","format":"uuid","nullable":true}},"additionalProperties":false},"LoanAppReadinessBlocker":{"type":"object","properties":{"kind":{"type":"string","description":"'AlreadySubmitted', 'SectionNotSignedOff', 'MissingFields', 'RequiredTask' or 'InvalidAsset'.","nullable":true},"section":{"type":"string","description":"Wizard section name, for SectionNotSignedOff and MissingFields.","nullable":true},"pairIndex":{"type":"integer","description":"The borrower pair (0 is the primary pair) a MissingFields blocker belongs to; null for a loan-level blocker.","format":"int32","nullable":true},"taskCode":{"type":"string","description":"Code of the section's verification task, for SectionNotSignedOff and MissingFields.","nullable":true},"taskId":{"type":"string","description":"The blocking task's id, for SectionNotSignedOff and RequiredTask; null when the section has no task.","format":"uuid","nullable":true},"task":{"type":"string","description":"The blocking task's name, for RequiredTask.","nullable":true},"status":{"type":"string","description":"The blocking task's status: the normalized section status for SectionNotSignedOff, the raw task status name for RequiredTask.","nullable":true},"assetAccountId":{"type":"string","description":"The asset account that cannot be submitted, for InvalidAsset; the message names the asset.","format":"uuid","nullable":true},"missingFields":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppMissingField"},"description":"Required fields with no value, for MissingFields.","nullable":true},"ruleErrors":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppSectionRuleError"},"description":"Cross-field rule violations, for MissingFields.","nullable":true},"message":{"type":"string","description":"Human-readable form of this blocker.","nullable":true}},"additionalProperties":false,"description":"One reason a loan application cannot move forward (a section sign-off or the final submit).\r\nStructured so a client can render it without parsing text; `message` is the\r\nhuman-readable form."},"LoanFigures":{"type":"object","properties":{"frontEndDti":{"type":"number","description":"Qualifying front-end (housing expense) ratio, `sQualTopR`.","format":"double","nullable":true},"backEndDti":{"type":"number","description":"Qualifying back-end (total debt) ratio, `sQualBottomR`.","format":"double","nullable":true},"ltv":{"type":"number","description":"Base loan-to-value ratio, `sLtvR`.","format":"double","nullable":true},"cltv":{"type":"number","description":"Base combined loan-to-value ratio, `sCltvR`.","format":"double","nullable":true},"totalIncome":{"type":"number","description":"Total qualifying monthly income, `sLTotI`.","format":"double","nullable":true},"totalPayment":{"type":"number","description":"Total proposed monthly payment, `sMonthlyPmt`.","format":"double","nullable":true},"cashToClose":{"type":"number","description":"Cash to close, `sTransNetCash`.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's numbers as the LOS holds them after a change: both DTI ratios, LTV, CLTV, total income, total payment and cash to close. Each is read back from the LOS, never calculated here; null when the LOS returned nothing for it."},"LoanHeaderFigures":{"type":"object","properties":{"representativeFico":{"type":"integer","description":"Middle of the primary borrower of pair 1's bureau scores (lower of two, the one when one); null with no credit.","format":"int32","nullable":true},"ausEngine":{"type":"string","description":"The latest AUS run's engine, \"DU\" or \"LPA\" (`AusRunTypes`), by run date across both; null with no run.","nullable":true},"ausResult":{"type":"string","description":"The result text of the run shown as the LOS gives it, e.g. \"Approve/Eligible\"; null when no run has a result.","nullable":true},"ausSummary":{"type":"string","description":"The text the header shows for the AUS key: engine and result, e.g. \"DU Approve/Eligible\"; the engine and the run's status text when no run has a result; null with no run.","nullable":true},"ausRunDate":{"type":"string","description":"When the AUS run shown was made (UTC).","format":"date-time","nullable":true},"leSentDate":{"type":"string","description":"The issued date of the first initial Loan Estimate; null before one was sent.","format":"date","nullable":true},"rateLockStatus":{"type":"string","description":"The loan's rate lock status as the LOS reports it, for example Locked or Not Locked; null when unknown.","nullable":true},"rateLockExpirationDate":{"type":"string","description":"The rate lock's expiration date (`LoanRateLock.ExpirationDate`).","format":"date","nullable":true},"loanOfficerName":{"type":"string","description":"The loan officer's name.","nullable":true},"processorName":{"type":"string","description":"The loan processor's name.","nullable":true}},"additionalProperties":false,"description":"The header figures the loan page shows that no other field of the loan read carries: the representative FICO, the latest AUS run, the date the first Loan Estimate was sent, the rate lock and the two assigned people. Each is null when the loan has no value."},"LoanInfo":{"type":"object","properties":{"loanId":{"type":"string","description":"The loan's id in the LOS (the same value as the loan's externalId). Null for a loan not in the LOS yet.","nullable":true},"loanNumber":{"type":"string","description":"The loan number the LOS assigned, shown to people.","nullable":true},"sourceLoanNumber":{"type":"string","description":"The loan number the originating system gave this loan, from an imported MISMO file. Never Henge's own loan number (loanNumber).","nullable":true},"loanAmount":{"type":"number","description":"Base loan amount, in dollars, before any financed mortgage insurance premium or funding fee.","format":"double","nullable":true},"loanType":{"$ref":"#/components/schemas/FieldType"},"mortgageLoanType":{"type":"string","description":"Raw product-class code of the loan, a number as text. It is not the loan type (loanType). Code 0 means government or unspecified.","nullable":true},"purpose":{"$ref":"#/components/schemas/FieldType"},"lienPosition":{"$ref":"#/components/schemas/FieldType"},"loanStatus":{"$ref":"#/components/schemas/FieldType"},"propertyType":{"$ref":"#/components/schemas/FieldType"},"loanStatusDate":{"type":"string","description":"When the loan reached its current status (ISO 8601 date and time).","format":"date-time","nullable":true},"appraisalValue":{"type":"number","description":"Appraised value of the subject property, in dollars.","format":"double","nullable":true},"purchasePrice":{"type":"number","description":"Purchase price of the subject property, in dollars. Purchase loans only.","format":"double","nullable":true},"subjectPropertyAddress":{"$ref":"#/components/schemas/SubjectPropertyAddress"},"occupancy":{"$ref":"#/components/schemas/FieldType"},"mannerOfTitle":{"type":"string","description":"How title will be held, as entered (free text). finalVesting is the newer field.","nullable":true},"refinance":{"$ref":"#/components/schemas/RefinanceInfo"},"assignments":{"$ref":"#/components/schemas/Assignments"},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/PosBorrower"},"description":"The loan's borrowers. A co-borrower is nested inside the borrower it is paired with, in coBorrower.","nullable":true},"proposedHousingExpense":{"$ref":"#/components/schemas/ProposedHousingExpense"},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/CustomField"},"description":"Custom fields configured on the loan, with their values.","nullable":true},"closingDate":{"type":"string","description":"Scheduled closing date (ISO 8601 date and time).","format":"date-time","nullable":true},"estimatedCompensation":{"type":"number","description":"Estimated originator compensation for the loan, in dollars.","format":"double","nullable":true},"lockedCompensation":{"type":"number","description":"Originator compensation fixed by the rate lock, in dollars.","format":"double","nullable":true},"lockStatus":{"type":"string","description":"Rate lock status as the LOS names it, for example Not Locked or Locked.","nullable":true},"confirmedLockPeriod":{"type":"string","description":"Length of the confirmed rate lock, in days, as text.","nullable":true},"downPayment":{"type":"number","description":"Down payment, in dollars.","format":"double","nullable":true},"downPaymentPercentage":{"type":"number","description":"Down payment as a percent of the purchase price, for example 20.","format":"double","nullable":true},"downPaymentSources":{"type":"array","items":{"$ref":"#/components/schemas/DownPaymentSource"},"description":"Where the down payment comes from.","nullable":true},"mortgageInsurance":{"type":"number","description":"Mortgage insurance amount, in dollars.","format":"double","nullable":true},"annualIncome":{"type":"number","description":"The borrower's total annual income, in dollars.","format":"double","nullable":true},"hasAssetsForDownPayment":{"type":"boolean","description":"True when the borrower has assets to cover the down payment."},"hoaAmount":{"type":"number","description":"Homeowners association dues, in dollars.","format":"double","nullable":true},"noteRate":{"type":"number","description":"Note rate as a percent, for example 6.875.","format":"double","nullable":true},"apr":{"type":"number","description":"Annual percentage rate, as a percent, for example 7.012.","format":"double","nullable":true},"ltvRatios":{"$ref":"#/components/schemas/LtvRatios"},"numberOfUnits":{"type":"integer","description":"Number of units in the subject property.","format":"int32","nullable":true},"qualification":{"$ref":"#/components/schemas/Qualification"},"loanTerm":{"type":"integer","description":"Loan term, in months.","format":"int32","nullable":true},"loanProgram":{"type":"string","description":"Name of the loan program the loan is in.","nullable":true},"lockExpirationDate":{"type":"string","description":"Date the rate lock expires (ISO 8601 date).","format":"date","nullable":true},"amortizationType":{"$ref":"#/components/schemas/FieldType"},"isTestFile":{"type":"boolean","description":"True for a test loan: one created from a non-production environment or by a test user."},"isDscrLoan":{"type":"boolean","description":"True for a debt service coverage ratio (DSCR) loan, qualified on the property's rental income rather than the borrower's income."},"subjectPropertyRentalIncome":{"$ref":"#/components/schemas/SubjectPropertyRentalIncome"},"loanLevelCredit":{"$ref":"#/components/schemas/LoanLevelCredit"},"credit":{"$ref":"#/components/schemas/LoanCredit"},"escrowWaiver":{"type":"boolean","description":"True when the borrower waives escrow of taxes and insurance. Null when not set.","nullable":true},"totalLoanAmount":{"type":"number","description":"Loan amount in dollars including any financed upfront mortgage insurance premium or funding fee, labelled Total Loan Amt in the LOS. loanAmount is the base amount before that financing, so the two differ on FHA, VA and USDA loans and agree on conventional ones. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"investorLockProjectedProfit":{"type":"number","description":"Projected profit on the investor lock, in dollars; negative for a loss. Read-only.","format":"double","nullable":true},"branchChannel":{"$ref":"#/components/schemas/FieldType"},"financedUpfrontMipOrFundingFee":{"type":"number","description":"The upfront mortgage insurance premium or funding fee rolled into the loan amount, in dollars. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"maturityTermInMonths":{"type":"integer","description":"Term in months at which the balance comes due. Equals loanTerm on a fully amortising loan and is shorter on a balloon.","format":"int32","nullable":true},"loanTypeOtherDescription":{"type":"string","description":"Free text describing the loan type when loanType is Other.","nullable":true},"armDescription":{"type":"string","description":"Description of the adjustable rate, for example 5/1 ARM. Empty on fixed-rate loans.","nullable":true},"printAmortizationTypeAsOther":{"type":"boolean","description":"True to print the amortization type as Other on the loan application form.","nullable":true},"amortizationTypeOtherDescription":{"type":"string","description":"The text printed as the amortization type when printAmortizationTypeAsOther is set.","nullable":true},"urlaLoanPurposeCode":{"type":"string","description":"Raw code for the loan purpose as stated on the 2019 loan application form (URLA). It is not purpose: the form keeps a three-way Purchase, Refinance or Other answer apart from the finer-grained purpose list, and the two can disagree.","nullable":true},"urlaLoanPurposeName":{"type":"string","description":"urlaLoanPurposeCode decoded, for example Purchase or Refinance. Null for a code not recognized. Read only.","nullable":true},"urlaLoanPurposeOtherDescription":{"type":"string","description":"Free text when the form's loan purpose is Other.","nullable":true},"isRenovationLoan":{"type":"boolean","description":"True when the loan finances renovation work, for example a HomeStyle or FHA 203(k) loan.","nullable":true},"isLineOfCredit":{"type":"boolean","description":"True when the loan is a line of credit rather than a closed-end mortgage.","nullable":true},"isNewConstruction":{"type":"boolean","description":"True when the subject property is new construction.","nullable":true},"isEmployeeLoan":{"type":"boolean","description":"True when the borrower is an employee of the lender.","nullable":true},"isOptionArm":{"type":"boolean","description":"True when the loan is a payment-option adjustable rate mortgage.","nullable":true},"optionArmTeaserRate":{"type":"number","description":"The introductory rate on a payment-option ARM, as a percent.","format":"double","nullable":true},"higherPricedMortgageTypeCode":{"type":"string","description":"Raw code for the higher-priced or high-cost classification, for example None. Can be overridden; lock it with fieldLocks or the LOS recomputes it from the APR test.","nullable":true},"higherPricedMortgageTypeName":{"type":"string","description":"higherPricedMortgageTypeCode decoded, for example None or HPML. Null for a code not recognized. Read only.","nullable":true},"leadSource":{"type":"string","description":"Where the lead came from.","nullable":true},"totalMonthlyLiabilities":{"type":"number","description":"Total monthly liability payments across all borrowers, in dollars, which the LOS divides into income for the back-end ratio. Calculated by the LOS; a write is ignored. Summing the borrowers' liability amounts does not reproduce it, because the LOS leaves out liabilities marked paid off or omitted.","format":"double","nullable":true},"presentHousingExpense":{"type":"number","description":"The borrower's present total monthly housing expense, in dollars: the baseline the payment shock is measured against. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"paymentShock":{"$ref":"#/components/schemas/PaymentShock"},"fieldLocks":{"$ref":"#/components/schemas/LoanFieldLocks"},"trusts":{"type":"array","items":{"$ref":"#/components/schemas/LoanTrust"},"description":"Trusts that will hold title, at most two. Depending on your company's setup they are read from and written to the LOS, or kept in Henge only.","nullable":true},"titleHeldInTrust":{"type":"boolean","description":"Will title be held in a trust: true yes, false no, null not answered. Not sent to the LOS.","nullable":true},"finalVesting":{"type":"string","description":"The final vesting statement as it will read on title. Depending on your company's setup it is read from and written to the LOS, or kept in Henge only.","nullable":true},"aus":{"$ref":"#/components/schemas/LoanAusResult"},"rateLock":{"$ref":"#/components/schemas/LoanRateLock"},"temporaryBuydown":{"$ref":"#/components/schemas/LoanTemporaryBuydown"}},"additionalProperties":false,"description":"The loan's terms and figures: amount, type, purpose, property, borrowers, rate, lock, housing expense and qualification."},"FieldType":{"type":"object","properties":{"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A value chosen from a list in the LOS, with its code and display name. Also the base of records that carry an LOS id."},"SubjectPropertyAddress":{"type":"object","properties":{"propertyId":{"type":"string","description":"Identifier (GUID) of the property this address belongs to.","format":"uuid","nullable":true},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"The address of the loan's subject property."},"RefinanceInfo":{"type":"object","properties":{"cashOutAmount":{"type":"number","description":"Cash the borrower takes out, in dollars.","format":"double","nullable":true},"purpose":{"$ref":"#/components/schemas/FieldType"},"purposeOtherDescription":{"type":"string","description":"Free-text refinance purpose when the purpose is Other.","nullable":true}},"additionalProperties":false,"description":"Details that apply to a refinance loan."},"Assignments":{"type":"object","properties":{"loanOfficer":{"$ref":"#/components/schemas/Contact"},"loanAssistant":{"$ref":"#/components/schemas/Contact"},"loanProcessor":{"$ref":"#/components/schemas/Contact"},"referredBy":{"$ref":"#/components/schemas/Contact"}},"additionalProperties":false,"description":"The people working a loan: its loan officer, assistant, processor and the referring contact. Each is null when none is assigned."},"PosBorrower":{"type":"object","properties":{"hdBorrowerId":{"type":"string","description":"Id of the borrower on this loan (GUID). Other endpoints take it as ownerBorrowerIds.","format":"uuid","nullable":true},"clientId":{"type":"string","description":"Id of the borrower's client record (GUID).","format":"uuid","nullable":true},"externalId":{"type":"string","description":"The borrower's (consumer) id in the LOS.","nullable":true},"externalLabel":{"type":"string","description":"A display label kept by Henge. Not sent to the LOS.","nullable":true},"externalApplicationId":{"type":"string","description":"Id of the LOS application (borrower pair) this person is on, used to match the person to the right pair in the LOS. A co-borrower carries its pair's. Null until the LOS has reported it.","nullable":true},"externalLegacyApplicationId":{"type":"string","description":"Id of the borrower pair's older-style application record in the LOS, kept for LOS writes. Null when it has not been read yet.","nullable":true},"firstName":{"type":"string","description":"Borrower's legal first name, as on their ID; sent to the LOS.","nullable":true},"lastName":{"type":"string","description":"Borrower's legal last name, as on their ID; sent to the LOS.","nullable":true},"middleName":{"type":"string","description":"Borrower's middle name or initial.","nullable":true},"suffixName":{"type":"string","description":"Name suffix, for example Jr, Sr or III.","nullable":true},"contacts":{"$ref":"#/components/schemas/Contacts"},"maritalStatus":{"$ref":"#/components/schemas/FieldType"},"citizenship":{"$ref":"#/components/schemas/FieldType"},"birthDate":{"type":"string","description":"Date of birth (ISO 8601 date).","nullable":true},"language":{"$ref":"#/components/schemas/Language"},"isMilitary":{"type":"boolean","description":"True when the borrower serves or has served in the military.","nullable":true},"currentAddress":{"$ref":"#/components/schemas/Residence"},"mailingAddress":{"$ref":"#/components/schemas/MailingAddress"},"previousAddresses":{"type":"array","items":{"$ref":"#/components/schemas/Residence"},"description":"Earlier residences, listed when the borrower has lived at the current address for a short time.","nullable":true},"ownedProperties":{"type":"array","items":{"$ref":"#/components/schemas/OwnedProperty"},"description":"Real estate the borrower owns.","nullable":true},"declaration":{"$ref":"#/components/schemas/Declaration"},"demographics":{"$ref":"#/components/schemas/Demographics"},"employments":{"type":"array","items":{"$ref":"#/components/schemas/Employment"},"description":"The borrower's employers, current and previous.","nullable":true},"otherIncomes":{"type":"array","items":{"$ref":"#/components/schemas/Income"},"description":"Income that does not come from an employer, such as Social Security or rental income.","nullable":true},"liabilities":{"type":"array","items":{"$ref":"#/components/schemas/PosLiability"},"description":"The borrower's debts.","nullable":true},"veteranDetail":{"$ref":"#/components/schemas/VeteranDetail"},"creditScores":{"type":"array","items":{"$ref":"#/components/schemas/PosCreditScore"},"description":"Credit scores on the borrower's file.","nullable":true},"hmdaApplicantCreditScore":{"$ref":"#/components/schemas/HmdaApplicantCreditScore"},"creditAuthorizationDate":{"type":"string","description":"Date the borrower authorized a credit check (ISO 8601 date). Null when they have not.","nullable":true},"isBeta":{"type":"boolean","description":"True when the borrower's account is flagged for beta features of the borrower app.","nullable":true},"fico":{"type":"integer","description":"The borrower's FICO score on file, as a whole number. Null when not set.","format":"int32","nullable":true},"softCreditExternalId":{"type":"string","description":"Id of the soft credit check recorded for the borrower in the LOS. Null when none.","nullable":true},"isPrimary":{"type":"boolean","description":"True for the primary borrower of the pair."},"borrowerType":{"type":"string","description":"The borrower's role on the loan, as a code, for example Borrower or CoSigner.","nullable":true},"assets":{"type":"array","items":{"$ref":"#/components/schemas/PosAsset"},"description":"The assets the borrower reports.","nullable":true},"numberOfDependents":{"type":"integer","description":"Number of people who depend on the borrower for support.","format":"int32","nullable":true},"dependentAges":{"type":"string","description":"Ages of the borrower's dependents, as entered (free text).","nullable":true},"ssn":{"type":"string","description":"Social Security number, digits only (dashes are removed when you send it). Sensitive: only some callers receive it.","nullable":true},"encryptedSsn":{"type":"string","description":"The Social Security number in encrypted form, for passing between Henge services. Do not rely on its format.","nullable":true},"pairId":{"type":"string","description":"The borrower pair this borrower is on. Set by the server; a co-borrower carries its pair's.","format":"uuid","nullable":true},"pairIndex":{"type":"integer","description":"The pair's position on the loan, 0 to 3; 0 is the primary pair.","format":"int32"},"vestingType":{"$ref":"#/components/schemas/BorrowerVestingType"},"coBorrower":{"allOf":[{"$ref":"#/components/schemas/PosBorrower"}],"description":"The co-borrower this borrower is paired with, in the same shape."}},"additionalProperties":false,"description":"A borrower on the loan: identity, contact details, addresses, employment, income, assets, liabilities, credit and declarations. A co-borrower is nested in coBorrower."},"Contacts":{"type":"object","properties":{"email":{"type":"string","description":"Email address.","nullable":true},"homePhone":{"type":"string","description":"Home phone number.","nullable":true},"mobilePhone":{"type":"string","description":"Mobile phone number.","nullable":true},"workPhone":{"type":"string","description":"Work phone number.","nullable":true}},"additionalProperties":false,"description":"How to reach a borrower."},"Language":{"type":"object","properties":{"code":{"type":"string","description":"Language code.","nullable":true},"otherDescription":{"type":"string","description":"Free-text language name when the code is Other.","nullable":true},"refuseToAnswer":{"type":"boolean","description":"True when the borrower chose not to answer."}},"additionalProperties":false,"description":"The language the borrower prefers."},"Residence":{"type":"object","properties":{"residencyDurationInMonths":{"type":"integer","description":"Months the borrower has lived at this address.","format":"int32","nullable":true},"residencyType":{"type":"string","description":"Whether the borrower owns, rents or lives rent-free at the address, as the LOS names it.","nullable":true},"monthlyRent":{"type":"number","description":"Monthly rent, in dollars.","format":"double","nullable":true},"startDate":{"type":"string","description":"Date the borrower moved in (ISO 8601 date).","nullable":true},"endDate":{"type":"string","description":"Date the borrower moved out (ISO 8601 date). Empty for the current address.","nullable":true},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A place the borrower lives or has lived, with how long and what they pay."},"MailingAddress":{"type":"object","properties":{"isTheSameAsCurrentAddress":{"type":"boolean","description":"True when the mailing address is the borrower's current residence."},"isTheSameAsSubjectPropertyAddress":{"type":"boolean","description":"True when the mailing address is the subject property."},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A borrower's mailing address, which can be flagged as the same as their current or subject property address."},"OwnedProperty":{"type":"object","properties":{"externalLabel":{"type":"string","description":"A display label kept by Henge. Not sent to the LOS.","nullable":true},"dispositionStatus":{"$ref":"#/components/schemas/FieldType"},"occupancy":{"$ref":"#/components/schemas/FieldType"},"intendedOccupancy":{"$ref":"#/components/schemas/FieldType"},"intendedOccupancyOtherDescription":{"type":"string","description":"Free-text description when intendedOccupancy is Other.","nullable":true},"marketValue":{"type":"number","description":"Market value of the property, in dollars.","format":"double","nullable":true},"monthlyRentalGross":{"type":"number","description":"Gross monthly rental income from the property, in dollars.","format":"double"},"maintenanceExpense":{"type":"number","description":"Maintenance expense for the property, in dollars.","format":"double","nullable":true},"monthlyRentalNet":{"type":"number","description":"Monthly rental income net of the property's expenses, in dollars.","format":"double","nullable":true},"lienBalance":{"type":"number","description":"Unpaid balance of the liens on the property, in dollars, as entered.","format":"double","nullable":true},"lienMonthlyPayment":{"type":"number","description":"Monthly payment on the liens on the property, in dollars, as entered.","format":"double","nullable":true},"isSubject":{"type":"boolean","description":"True when this is the subject property of the loan."},"isCurrent":{"type":"boolean","description":"True when this is the borrower's current residence."},"liabilities":{"type":"array","items":{"$ref":"#/components/schemas/PosLiability"},"description":"The mortgages tied to this property. Null or empty when none.","nullable":true},"liability":{"$ref":"#/components/schemas/PosLiability"},"tieId":{"type":"string","description":"What to send as a liability's securedPropertyId to tie it to this property: the LOS id, or the address before the loan is in the LOS. Recomputed on every read.","nullable":true},"securingLiabilityIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Ids (GUIDs) of the stored liabilities tied to this property. Recomputed on every read; a save does not set it.","nullable":true},"derivedLienBalance":{"type":"number","description":"Sum of the tied liabilities' balances, in dollars; null when no liability is tied. lienBalance stays what was entered.","format":"double","nullable":true},"derivedLienMonthlyPayment":{"type":"number","description":"Sum of the tied liabilities' monthly payments, in dollars; null when no liability is tied or none has a payment.","format":"double","nullable":true},"hasLienDifference":{"type":"boolean","description":"True when an entered lien figure disagrees with the tied liabilities. It is reported, never corrected."},"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A property the borrower owns (real estate owned): where it is, how it is used, its value and rent, and the mortgages tied to it."},"PosLiability":{"type":"object","properties":{"amount":{"type":"number","description":"Unpaid balance, in dollars.","format":"double"},"monthlyPayment":{"type":"number","description":"Monthly payment, in dollars.","format":"double","nullable":true},"remainingMonths":{"type":"integer","description":"Months left on the debt. Null when the file does not say.","format":"int32","nullable":true},"isPaidOffAtClosing":{"type":"boolean","description":"True when the debt will be paid off at closing. Null leaves the LOS's value alone.","nullable":true},"isExcludedFromRatios":{"type":"boolean","description":"True when the payment is left out of the debt-to-income ratios. Null leaves the LOS's value alone.","nullable":true},"accountNumber":{"type":"string","description":"Account number of the debt, as reported.","nullable":true},"isExpense":{"type":"boolean","description":"True when the row is an expense rather than a debt, for example in an export."},"temporaryId":{"type":"string","description":"A client-chosen id that lets a save match a new row to the id the LOS assigns. Not stored as a field.","nullable":true},"isDeleted":{"type":"boolean","description":"Set true on a save to delete the LOS record named by externalId."},"borrowerExternalId":{"$ref":"#/components/schemas/BorrowerExternalId"},"borrowerExternalIds":{"type":"array","items":{"$ref":"#/components/schemas/BorrowerExternalId"},"description":"Every borrower who owns the debt. When empty, the borrower in borrowerExternalId owns it.","nullable":true},"cosmosDbLiabilityId":{"type":"string","description":"Id (GUID) of the matching liability on the loan, which links this entry to the liabilities endpoints.","format":"uuid"},"creditorName":{"type":"string","description":"Name of the creditor or lender.","nullable":true},"description":{"type":"string","description":"Free-text description of the debt.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A debt listed on the loan application."},"BorrowerExternalId":{"type":"object","properties":{"externalId":{"type":"string","description":"The borrower's id in the LOS.","nullable":true},"isPrimary":{"type":"boolean","description":"True for the primary borrower."}},"additionalProperties":false,"description":"Identifies a borrower (consumer) in the LOS."},"Declaration":{"type":"object","properties":{"hasIntentToOccupy":{"type":"boolean","description":"Borrower intends to occupy the subject property as their primary residence."},"isHomeownerPastThreeYears":{"type":"boolean","description":"Borrower has owned a home in the past three years."},"priorPropertyUsage":{"$ref":"#/components/schemas/FieldType"},"priorPropertyTitle":{"$ref":"#/components/schemas/FieldType"},"isBuyerSellerSpecialRelationship":{"type":"boolean","description":"Borrower has a family or business relationship with the seller of the subject property."},"hasUndisclosedBorrowedFunds":{"type":"boolean","description":"Borrower is borrowing money for this transaction (for example the down payment) that is not disclosed elsewhere in the application."},"undisclosedBorrowedFundsAmount":{"type":"number","description":"Amount of that borrowed money, in dollars.","format":"double","nullable":true},"hasUndisclosedCreditApplication":{"type":"boolean","description":"Borrower has applied, or will apply before closing, for other credit that is not disclosed."},"hasUndisclosedMortgageApplication":{"type":"boolean","description":"Borrower has applied for another mortgage on a property that is not disclosed."},"hasCleanEnergyLien":{"type":"boolean","description":"The subject property is subject to a lien that takes priority, such as a clean energy lien."},"isUndisclosedComakerOfNote":{"type":"boolean","description":"Borrower is a co-maker or endorser on a note whose debt is not disclosed."},"hasOutstandingJudgements":{"type":"boolean","description":"Borrower has outstanding judgments against them."},"isDelinquent":{"type":"boolean","description":"Borrower is delinquent or in default on a federal debt or loan."},"isPartyToLawsuit":{"type":"boolean","description":"Borrower is a party to a lawsuit."},"hasDeedInLieu":{"type":"boolean","description":"Borrower has transferred title to a property in lieu of foreclosure in the past seven years."},"hasShortSale":{"type":"boolean","description":"Borrower has completed a pre-foreclosure sale or short sale in the past seven years."},"hasForeclosure":{"type":"boolean","description":"Borrower has had a property foreclosed upon in the past seven years."},"hasBankruptcy":{"type":"boolean","description":"Borrower has declared bankruptcy in the past seven years."},"bankruptcyTypes":{"type":"array","items":{"type":"string"},"description":"The type (chapter) of each bankruptcy declared, when hasBankruptcy is true.","nullable":true},"hasHousingCounselingConsent":{"type":"boolean","description":"Housing counseling consent recorded for the borrower."}},"additionalProperties":false,"description":"A borrower's answers to the declarations on the loan application (Section 5 of the URLA)."},"Demographics":{"type":"object","properties":{"ethnicity":{"$ref":"#/components/schemas/Ethnicity"},"gender":{"$ref":"#/components/schemas/FieldType"},"races":{"type":"array","items":{"$ref":"#/components/schemas/Race"},"description":"The races the borrower reported.","nullable":true},"hasRefusedToDiscloseRace":{"type":"boolean","description":"True when the borrower chose not to provide their race."},"hasRefusedToDiscloseGender":{"type":"boolean","description":"True when the borrower chose not to provide their gender."},"hasRefusedToDiscloseEthnicity":{"type":"boolean","description":"True when the borrower chose not to provide their ethnicity."},"applicationTaken":{"$ref":"#/components/schemas/FieldType"},"isRaceBasedOnVisualOrSurname":{"type":"boolean","description":"True when the race was recorded from visual observation or surname rather than provided by the borrower."},"isGenderBasedOnVisualOrSurname":{"type":"boolean","description":"True when the gender was recorded from visual observation or surname rather than provided by the borrower."},"isEthnicityBasedOnVisualOrSurname":{"type":"boolean","description":"True when the ethnicity was recorded from visual observation or surname rather than provided by the borrower."}},"additionalProperties":false,"description":"The government monitoring (HMDA) information a borrower provided or declined to provide: ethnicity, race and gender."},"Ethnicity":{"type":"object","properties":{"origins":{"type":"array","items":{"$ref":"#/components/schemas/EthnicityOrigin"},"description":"The origins the borrower selected, for example Mexican or Puerto Rican.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"The borrower's ethnicity (HMDA), with the origins they selected."},"EthnicityOrigin":{"type":"object","properties":{"otherDescription":{"type":"string","description":"Free-text origin the borrower gave when the origin is Other.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One ethnicity origin the borrower selected."},"Race":{"type":"object","properties":{"raceDesignations":{"type":"array","items":{"$ref":"#/components/schemas/RaceDesignation"},"description":"The designations the borrower selected within this race, for example Asian Indian or Chinese.","nullable":true},"additionalDescription":{"type":"string","description":"Free-text detail the borrower gave about this race.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"A race the borrower reported (HMDA), with the designations they selected."},"RaceDesignation":{"type":"object","properties":{"otherDescription":{"type":"string","description":"Free-text designation the borrower gave when the designation is Other.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One race designation the borrower selected."},"Employment":{"type":"object","properties":{"externalId":{"type":"string","description":"Id of the employment record in the LOS.","nullable":true},"isCurrent":{"type":"boolean","description":"True for a current job, false for a previous one."},"isSelfEmployed":{"type":"boolean","description":"True when the borrower is self-employed in this job."},"ownershipShare":{"$ref":"#/components/schemas/FieldType"},"isPrimary":{"type":"boolean","description":"True for the borrower's primary employment. Null when not stated.","nullable":true},"name":{"type":"string","description":"Name of the employer.","nullable":true},"position":{"type":"string","description":"The borrower's job title.","nullable":true},"address":{"$ref":"#/components/schemas/PosAddress"},"startDate":{"type":"string","description":"Date the borrower started this job (ISO 8601 date).","nullable":true},"endDate":{"type":"string","description":"Date the borrower left this job (ISO 8601 date). Empty for a current job.","nullable":true},"professionStartDate":{"type":"string","description":"Date the borrower started working in this line of work (ISO 8601 date).","nullable":true},"lineOfWorkInMonths":{"type":"integer","description":"Months the borrower has worked in this line of work.","format":"int32","nullable":true},"businessPhone":{"type":"string","description":"The employer's phone number.","nullable":true},"email":{"type":"string","description":"Work email address for this employment.","nullable":true},"monthlyIncomeAmount":{"type":"number","description":"Total monthly income from this employment, in dollars.","format":"double","nullable":true},"incomes":{"type":"array","items":{"$ref":"#/components/schemas/Income"},"description":"The income components from this employment, such as base pay, overtime or bonus.","nullable":true}},"additionalProperties":false,"description":"One job the borrower holds or has held, with the income it pays."},"PosAddress":{"type":"object","properties":{"externalId":{"type":"string","description":"Id of the address record in the LOS. Null when it is not in the LOS yet.","nullable":true},"street":{"type":"string","description":"Street number and name.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zipCode":{"type":"string","description":"ZIP or postal code.","nullable":true},"countryCode":{"type":"string","description":"Country, as a country code.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"unitIdentifier":{"type":"string","description":"Apartment, suite or unit number.","nullable":true}},"additionalProperties":false,"description":"A postal address."},"Income":{"type":"object","properties":{"amount":{"type":"number","description":"Income amount, in dollars per month.","format":"double"},"otherDescription":{"type":"string","description":"Free-text description when the income type is Other.","nullable":true},"isAssociatedWithEmployment":{"type":"boolean","description":"True when the income belongs to an employment, such as overtime or bonus, rather than standing alone."},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"One income amount, either tied to an employment or standing alone."},"VeteranDetail":{"type":"object","properties":{"isVeteran":{"type":"boolean","description":"True when the borrower is a veteran."},"activeDuty":{"type":"boolean","description":"True when the borrower is currently on active duty."},"activeDutyExpirationDate":{"type":"string","description":"Date the borrower's current active duty ends (ISO 8601 date).","nullable":true},"retiredDischargedOrSeparated":{"type":"boolean","description":"True when the borrower has retired, been discharged or separated from service."},"reserveNationalGuardNeverActivated":{"type":"boolean","description":"True when the borrower is in the Reserves or National Guard and has never been activated."},"isSurvivingSpouseOfVeteran":{"type":"boolean","description":"True when the borrower is the surviving spouse of a veteran."},"serviceType":{"$ref":"#/components/schemas/FieldType"}},"additionalProperties":false,"description":"A borrower's military service details, relevant to VA loans."},"PosCreditScore":{"type":"object","properties":{"source":{"type":"string","description":"Where the score came from, such as the credit agency that reported it.","nullable":true},"score":{"type":"string","description":"The score value, as text.","nullable":true},"creditScoreImpairmentType":{"type":"string","description":"Why there is no usable score, when there is none: NotApplicable, NoScore, ThinFile or Other.","nullable":true},"isBrokerEntered":{"type":"boolean","description":"True when a broker typed the score in rather than it being read from a credit agency. A broker-entered score is never sent to the LOS as an agency score."}},"additionalProperties":false,"description":"One credit score on a borrower's file."},"HmdaApplicantCreditScore":{"type":"object","properties":{"reliedOnCreditScore":{"type":"integer","description":"The credit score relied on in the credit decision for this applicant; null when none.","format":"int32","nullable":true},"reliedOnCreditScoreMode":{"type":"string","description":"Whether the relied-on score is the applicant's individual score or a single score for the loan.","nullable":true},"reliedOnCreditScoreModelType":{"type":"string","description":"The credit scoring model of the relied-on score, as a code.","nullable":true}},"additionalProperties":false,"description":"The credit score relied on for an applicant, as reported for HMDA."},"PosAsset":{"type":"object","properties":{"institutionName":{"type":"string","description":"Name of the bank or institution that holds the asset.","nullable":true},"accountNumber":{"type":"string","description":"Account number, as entered.","nullable":true},"amount":{"type":"number","description":"Current balance or value, in dollars.","format":"double"},"accountName":{"type":"string","description":"Name of the account.","nullable":true},"accountHolderName":{"type":"string","description":"Name of the account holder.","nullable":true},"source":{"type":"string","description":"How the asset got on the loan, for example entered manually, linked through the bank connection or synced from the LOS.","nullable":true},"giftSource":{"type":"string","description":"Who the gift came from, for a gift asset.","nullable":true},"temporaryId":{"type":"string","description":"A client-chosen id that lets a save match a new row to the id the LOS assigns. Not stored as a field.","nullable":true},"assetAccountId":{"type":"string","description":"Id (GUID) of the asset account this asset belongs to.","format":"uuid"},"isDeleted":{"type":"boolean","description":"Set true on a save to delete the LOS record named by externalId."},"ownerBorrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The hdBorrowerIds of the asset's owners. Empty means the primary borrower. A new asset is added in the LOS under the first owner named; the full list stays in Henge.","nullable":true},"externalId":{"type":"string","description":"The LOS code of the chosen value or, for a record such as an asset, income or liability, the LOS id of the record. Null when the record is not in the LOS yet.","nullable":true},"name":{"type":"string","description":"Display name of the chosen value or record type, as the LOS labels it.","nullable":true}},"additionalProperties":false,"description":"An asset the borrower reports: an account balance, a gift or another asset."},"BorrowerVestingType":{"enum":["Individual","Trustee","Settlor","SettlorTrustee","TitleOnly","NonTitleSpouse","Other"],"type":"string","description":"How a person on the loan takes title: Individual (as themselves), Trustee, Settlor, SettlorTrustee (settlor and trustee of the same trust), TitleOnly (on title but not a borrower), NonTitleSpouse (a spouse who is not on title) or Other."},"ProposedHousingExpense":{"type":"object","properties":{"firstMortgagePrincipalAndInterest":{"type":"number","description":"Principal and interest on this mortgage, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"otherMortgageLoanPrincipalAndInterest":{"type":"number","description":"Principal and interest on subordinate financing, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"hazardInsurance":{"type":"number","description":"Monthly hazard insurance, in dollars. Calculated by the LOS from hazardInsuranceBasis.","format":"double","nullable":true},"propertyTax":{"type":"number","description":"Monthly property taxes, in dollars. Calculated by the LOS from propertyTaxBasis.","format":"double","nullable":true},"mortgageInsurance":{"type":"number","description":"Monthly mortgage insurance, in dollars. Can be overridden; lock it in fieldLocks or the LOS recalculates it.","format":"double","nullable":true},"hoa":{"type":"number","description":"Monthly homeowners association dues, in dollars.","format":"double","nullable":true},"other":{"type":"number","description":"Other monthly taxes and expenses, in dollars. Can be overridden; lock it in fieldLocks or the LOS recalculates it.","format":"double","nullable":true},"total":{"type":"number","description":"The total proposed monthly housing payment (principal, interest, taxes and insurance), in dollars. Calculated by the LOS; a write is ignored. It is not simply the sum of the components above, so read it rather than adding them up.","format":"double","nullable":true},"hazardInsuranceBasis":{"$ref":"#/components/schemas/EscrowExpenseBasis"},"propertyTaxBasis":{"$ref":"#/components/schemas/EscrowExpenseBasis"}},"additionalProperties":false,"description":"The proposed monthly housing payment, component by component. Every component is nullable: a real zero is returned as 0, so an absent value stays distinguishable from a zero one."},"EscrowExpenseBasis":{"type":"object","properties":{"baseTypeCode":{"type":"string","description":"The LOS code for the base amount the percentage applies to. baseTypeName gives its name.","nullable":true},"baseTypeName":{"type":"string","description":"The name of the base amount (for example \"Total Loan Amount\"), or null for a code with no known name. Read only.","nullable":true},"baseAmount":{"type":"number","description":"The base amount in dollars, as the LOS calculated it. Read only: a value sent is ignored.","format":"double","nullable":true},"ratePercent":{"type":"number","description":"Annual percentage applied to `baseAmount`.","format":"double","nullable":true},"monthlyAddend":{"type":"number","description":"Flat monthly amount added on top of the percentage result.","format":"double","nullable":true},"reserveMonths":{"type":"integer","description":"Months of this expense collected as reserves at closing (hazard insurance and property tax only).\r\nThe loan system derives a default and takes an override only with its lock flag, which the housing write sends with it.\r\nRead from the loan; the loan form save never writes it.","format":"int32","nullable":true},"prepaidMonths":{"type":"integer","description":"Months of this expense prepaid at closing (hazard insurance only).","format":"int32","nullable":true}},"additionalProperties":false,"description":"How the LOS works out one escrowed housing expense: a percentage of a chosen base amount plus a flat monthly amount, for example hazard insurance as Total Loan Amount x 0.500% + $0.00."},"CustomField":{"type":"object","properties":{"id":{"type":"string","description":"Id of the custom field.","nullable":true},"code":{"type":"string","description":"Short code of the custom field.","nullable":true},"externalId":{"type":"string","description":"Id of the field in the LOS.","nullable":true},"name":{"type":"string","description":"Display name of the custom field.","nullable":true},"value":{"type":"string","description":"The value stored in the field, as text.","nullable":true}},"additionalProperties":false,"description":"A custom field configured on the loan, with its value."},"DownPaymentSource":{"type":"object","properties":{"amount":{"type":"number","description":"Amount from this source, in dollars.","format":"double"},"source":{"type":"string","description":"The kind of source, for example savings, gift or sale of a property.","nullable":true},"explanation":{"type":"string","description":"Free-text explanation of the source, when one is needed.","nullable":true}},"additionalProperties":false},"LtvRatios":{"type":"object","properties":{"baseLTVRatio":{"type":"number","description":"Loan-to-value ratio on the base loan amount, as a percent.","format":"double","nullable":true},"grossLTVRatio":{"type":"number","description":"Loan-to-value ratio on the loan amount including financed upfront fees, as a percent.","format":"double","nullable":true},"baseCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio across all liens on the base loan amount, as a percent.","format":"double","nullable":true},"grossCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio across all liens including financed upfront fees, as a percent.","format":"double","nullable":true},"baseHomeEquityCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio counting the full credit limit of any home equity line, on the base loan amount, as a percent.","format":"double","nullable":true},"grossHomeEquityCombinedLTVRatio":{"type":"number","description":"Combined loan-to-value ratio counting the full credit limit of any home equity line, including financed upfront fees, as a percent.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's loan-to-value ratios, as percents."},"Qualification":{"type":"object","properties":{"housingExpenseRatio":{"type":"number","description":"Front-end ratio (housing expense to income), as a percent.","format":"double","nullable":true},"totalDebtExpenseRatio":{"type":"number","description":"Back-end ratio (total debt to income), as a percent.","format":"double","nullable":true},"totalMonthlyIncomeAmount":{"type":"number","description":"Total qualifying monthly income, in dollars.","format":"double","nullable":true},"qualifyingRatePercent":{"type":"number","description":"The rate the borrower is qualified at, as a percent. It is the note rate unless overridden; lock it in fieldLocks or the LOS recomputes it.","format":"double","nullable":true},"qualifyingTermInMonths":{"type":"integer","description":"The term in months the qualifying payment is amortized over.","format":"int32","nullable":true},"qualifyingTermCalculationTypeCode":{"type":"string","description":"Raw code for how the qualifying term is chosen, for example Standard Term.","nullable":true},"qualifyingTermCalculationTypeName":{"type":"string","description":"qualifyingTermCalculationTypeCode decoded, for example Standard Term. Null for a code not recognized. Read only.","nullable":true},"isQualifyingRateInterestOnly":{"type":"boolean","description":"True when the qualifying payment is interest-only.","nullable":true},"qualifyingPrincipalAndInterest":{"type":"number","description":"Qualifying principal and interest, in dollars per month. Calculated by the LOS; a write is ignored.","format":"double","nullable":true},"qualifyingTotalPayment":{"type":"number","description":"Qualifying total monthly payment (principal, interest, taxes and insurance), in dollars. Calculated by the LOS; a write is ignored.","format":"double","nullable":true}},"additionalProperties":false,"description":"The ratios and payment figures the borrower is qualified on. The qualifying payment can differ from the proposed one when a qualifying rate or term overrides the note rate or term."},"SubjectPropertyRentalIncome":{"type":"object","properties":{"estimatedMonthlyMarketRent":{"type":"number","description":"Estimated market rent of the subject property per month, in dollars.","format":"double","nullable":true}},"additionalProperties":false,"description":"Rental income of the subject property."},"LoanLevelCredit":{"type":"object","properties":{"loanLevelCreditScoreValue":{"type":"string","description":"The credit score relied on for the loan, as reported for HMDA, as text.","nullable":true},"loanLevelCreditScoreSelectionMethodType":{"type":"string","description":"Whether the relied-on score is each applicant's individual score or a single score for the loan.","nullable":true},"creditScoreModelNameType":{"type":"string","description":"The credit scoring model of the relied-on score, as a code.","nullable":true},"creditScoreImpairmentType":{"type":"string","description":"The credit score impairment type recorded on the loan, as text.","nullable":true},"creditScoreCategoryType":{"type":"string","description":"The credit score category recorded on the loan, as text.","nullable":true},"creditScoreType1":{"type":"string","description":"Loan-level credit score of type 1 as held on the loan, as text; empty when none.","nullable":true},"creditScoreType2":{"type":"string","description":"Loan-level credit score of type 2 as held on the loan, as text; empty when none.","nullable":true},"creditScoreType2Soft":{"type":"string","description":"Loan-level credit score of type 2 from a soft pull, as text; empty when none.","nullable":true},"creditScore2Avg":{"type":"string","description":"Average of the type 2 scores, as text; empty when none.","nullable":true},"creditScoreType3":{"type":"string","description":"Loan-level credit score of type 3 as held on the loan, as text; empty when none.","nullable":true},"hmdaMultipleCreditScoresUsedIndicator":{"type":"boolean","description":"True when more than one credit score was used in the credit decision, as reported for HMDA.","nullable":true},"reliedOnCreditScoreSource":{"type":"string","description":"The source the relied-on credit score is calculated from: \"Type 2\" when it is that source, otherwise the value\r\nas the loan system holds it. The relied-on score is calculated from it unless it is Other.","nullable":true},"reliedOnCreditScoreModelName":{"type":"string","description":"The relied-on score's model name text (`sReliedOnCreditScoreModelName`).","nullable":true},"reliedOnCreditScoreSingleBorrower":{"type":"string","description":"Whose score is the single relied-on score (`sReliedOnCreditScoreSingleHmdaReportAsT`): Borrower or Coborrower.","nullable":true}},"additionalProperties":false,"description":"The credit score the loan relies on and how it was chosen, as held on the loan."},"LoanCredit":{"type":"object","properties":{"source":{"type":"string","description":"Report when the facts come from a credit report, Manual when they were entered by hand; null when the loan carries no credit at all.","nullable":true},"hasCreditReport":{"type":"boolean","description":"True when a credit report is on the loan, whether ordered through Henge or imported through the Loan Origination System."},"representativeScore":{"type":"integer","description":"The score pricing uses: the lowest representative score across the borrowers, by the usual rule\r\n(middle of three bureau scores, lower of two, the one when there is one). From the report when there\r\nis one, else from the broker's entry.","format":"int32","nullable":true},"pricingScore":{"type":"integer","description":"The score pricing uses (the lowest borrower's) when the scores are a manual entry; null otherwise.","format":"int32","nullable":true},"qualifyingScore":{"type":"integer","description":"The score qualification and the pre-approval check use: the average of the borrowers' middle scores, rounded half up. It differs from representativeScore (the lowest borrower's, used for pricing) on a loan with more than one borrower. Null when there are no scores.","format":"int32","nullable":true},"reports":{"type":"array","items":{"$ref":"#/components/schemas/LoanCreditReport"},"description":"Every credit report order on the loan, newest first, failed and cancelled ones included with their status. May be absent.","nullable":true},"mortgageLates":{"$ref":"#/components/schemas/MortgageLates"},"publicRecords":{"$ref":"#/components/schemas/CreditPublicRecords"},"manual":{"$ref":"#/components/schemas/ManualCreditEntry"},"reissue":{"$ref":"#/components/schemas/LoanCreditReissue"}},"additionalProperties":false,"description":"The loan's credit facts and where they come from: a credit report, or what a broker entered by hand to price and qualify before a report is on the loan. Rebuilt on every read. Once the loan has a report it always wins, and the broker's entry is kept with isCurrent false; broker-entered scores are never treated as bureau scores."},"LoanCreditReport":{"type":"object","properties":{"orderId":{"type":"string","description":"Id (GUID) of the credit report order.","format":"uuid"},"reportNumber":{"type":"string","description":"The agency's report number; null on a failed pull that was never issued one.","nullable":true},"status":{"type":"string","description":"The order's status by name, including Failed and Cancelled.","nullable":true},"isCurrent":{"type":"boolean","description":"True for the one order the rest of the platform reads scores from."},"source":{"type":"string","description":"How the order got onto the loan: Placed (ordered through Henge), Imported or Tracked.","nullable":true},"pullType":{"type":"string","description":"`Soft` or `Hard`; null when not known.","nullable":true},"agency":{"type":"string","description":"Name of the credit reporting agency.","nullable":true},"orderedAtUtc":{"type":"string","description":"When the report was ordered, in UTC (ISO 8601).","format":"date-time","nullable":true},"failureReason":{"type":"string","description":"The vendor's reason, on a failed order.","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/OrdersCreditReportBorrower"},"description":"The borrowers the report covers, with the bureau scores returned for each.","nullable":true},"averageScore":{"type":"integer","description":"Average of the borrowers' middle scores: what qualification uses.","format":"int32","nullable":true},"pricingScore":{"type":"integer","description":"The lowest borrower's middle score: what pricing uses.","format":"int32","nullable":true},"referenceNumbers":{"type":"array","items":{"type":"string"},"description":"The agency's reference (file) numbers of the report; more than one when separate reports were reissued for separate borrowers.","nullable":true},"vaultDocumentId":{"type":"string","description":"Id of the loan document that holds the report; null when none was filed.","format":"uuid","nullable":true},"liabilityImport":{"$ref":"#/components/schemas/OrdersCreditReportLiabilityImport"}},"additionalProperties":false,"description":"One credit report order as the loan shows it: which pull, how it stands and what it returned. It never holds a login."},"OrdersCreditReportBorrower":{"type":"object","properties":{"borrowerId":{"type":"string","description":"The borrower's identifier on the loan, when the pull was matched to one.","format":"uuid","nullable":true},"name":{"type":"string","description":"The borrower's name as on the report.","nullable":true},"experian":{"type":"integer","description":"Null when the bureau returned no score for this borrower.","format":"int32","nullable":true},"transUnion":{"type":"integer","description":"The TransUnion score; null when the bureau returned none for this borrower.","format":"int32","nullable":true},"equifax":{"type":"integer","description":"The Equifax score; null when the bureau returned none for this borrower.","format":"int32","nullable":true},"score":{"type":"integer","description":"The borrower's single score derived from the bureau scores; null with no scores.","format":"int32","nullable":true}},"additionalProperties":false,"description":"One borrower covered by a credit report, with the bureau scores it returned."},"OrdersCreditReportLiabilityImport":{"type":"object","properties":{"outcome":{"type":"string","description":"What the liability import did, as a short status word.","nullable":true},"imported":{"type":"integer","description":"Number of liabilities imported; null when none were attempted.","format":"int32","nullable":true},"message":{"type":"string","description":"An explanation of the outcome, such as a warning or the reason the import failed.","nullable":true}},"additionalProperties":false,"description":"What importing the report's liabilities into the loan did."},"MortgageLates":{"type":"object","properties":{"x30":{"type":"integer","description":"Mortgage payments 30 days late.","format":"int32","nullable":true},"x60":{"type":"integer","description":"Mortgage payments 60 days late.","format":"int32","nullable":true},"x90":{"type":"integer","description":"Mortgage payments 90 days late.","format":"int32","nullable":true},"x120":{"type":"integer","description":"Mortgage payments 120 days late.","format":"int32","nullable":true},"x150":{"type":"integer","description":"Mortgage payments 150 days late.","format":"int32","nullable":true},"rollingX30":{"type":"integer","description":"Mortgage payments 30 days late, counting rolling lates.","format":"int32","nullable":true},"rollingX60":{"type":"integer","description":"Mortgage payments 60 days late, counting rolling lates.","format":"int32","nullable":true},"rollingX90":{"type":"integer","description":"Mortgage payments 90 days late, counting rolling lates.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Counts of mortgage payments made late in the last 12 months. The x30 to x150 counts treat rolling lates as not allowed; the rollingX counts treat them as allowed. Null means not stated, 0 means none."},"CreditPublicRecords":{"type":"object","properties":{"foreclosure":{"$ref":"#/components/schemas/CreditPublicRecord"},"chapter7":{"$ref":"#/components/schemas/CreditPublicRecord"},"chapter13":{"$ref":"#/components/schemas/CreditPublicRecord"}},"additionalProperties":false,"description":"Foreclosure/NOD, Chapter 7 and Chapter 13 history."},"CreditPublicRecord":{"type":"object","properties":{"has":{"type":"boolean","description":"True when the borrower has this kind of public record."},"fileMonth":{"type":"integer","description":"1 to 12.","format":"int32","nullable":true},"fileYear":{"type":"integer","description":"Year the record was filed, four digits; null when not known.","format":"int32","nullable":true},"status":{"type":"string","description":"NotSatisfied, Discharged or Dismissed. Required when has is true.","nullable":true},"satisfiedMonth":{"type":"integer","description":"1 to 12.","format":"int32","nullable":true},"satisfiedYear":{"type":"integer","description":"Year the record was satisfied, four digits; null when it has not been or is not known.","format":"int32","nullable":true}},"additionalProperties":false,"description":"One public record: whether the borrower has one, when it was filed, its status and when it was satisfied."},"ManualCreditEntry":{"type":"object","properties":{"isCurrent":{"type":"boolean","description":"False once a credit report supersedes the entry, or one was on the loan before it was saved without being corrected by it: the entry is kept, but the report's values are current."},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/ManualCreditBorrowerScores"},"description":"Bureau scores per borrower: the borrower first, then the co-borrower when one was entered.","nullable":true},"mortgageLates":{"$ref":"#/components/schemas/MortgageLates"},"publicRecords":{"$ref":"#/components/schemas/CreditPublicRecords"},"enteredAtUtc":{"type":"string","description":"When the broker saved the entry, in UTC (ISO 8601).","format":"date-time"},"enteredBy":{"type":"string","description":"Id of the user who saved the entry.","format":"uuid","nullable":true},"enteredByName":{"type":"string","description":"Name of the user who saved the entry.","nullable":true},"supersededAtUtc":{"type":"string","description":"When a report replaced the entry, and the report's number.","format":"date-time","nullable":true},"supersededByReportId":{"type":"string","description":"The number of the credit report that replaced the entry; null while the entry is current.","nullable":true}},"additionalProperties":false,"description":"What a broker entered by hand, and whether it is still what the loan goes by."},"ManualCreditBorrowerScores":{"type":"object","properties":{"borrowerId":{"type":"string","description":"Id of the borrower on the loan the scores belong to, when the loan had one.","format":"uuid","nullable":true},"isCoBorrower":{"type":"boolean","description":"True for the co-borrower's scores, false for the borrower's."},"experian":{"type":"integer","description":"The Experian score the broker entered; null when none was entered.","format":"int32","nullable":true},"transUnion":{"type":"integer","description":"The TransUnion score the broker entered; null when none was entered.","format":"int32","nullable":true},"equifax":{"type":"integer","description":"The Equifax score the broker entered; null when none was entered.","format":"int32","nullable":true},"representativeScore":{"type":"integer","description":"Middle of three, lower of two, the one when there is one; null when none were entered.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Broker-entered bureau scores for one borrower. Stored and reported as broker-entered, never as a bureau score."},"LoanCreditReissue":{"type":"object","properties":{"agencyId":{"type":"string","description":"Id (GUID) of the credit reporting agency the report was reissued from.","format":"uuid"},"agencyName":{"type":"string","description":"Name of the credit reporting agency.","nullable":true},"agencyDuCode":{"type":"string","description":"The agency's DU credit provider code.","nullable":true},"reportType":{"type":"string","description":"\"HardPull\" or \"SoftPull\".","nullable":true},"reissuedTimestamp":{"type":"string","description":"When the report was reissued, in UTC (ISO 8601).","format":"date-time"},"reissuedBy":{"type":"string","description":"Id of the user who reissued the report; null when unknown.","format":"uuid","nullable":true},"reissuedByName":{"type":"string","description":"Name of the user who reissued the report.","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/LoanCreditReissueBorrower"},"description":"The borrowers the reissue landed for, each with the agency's reference number.","nullable":true}},"additionalProperties":false,"description":"The read-only view of the loan's latest credit report reissue: the agency, when and by whom, and the reference numbers. The agency login name, account id and password are never returned."},"LoanCreditReissueBorrower":{"type":"object","properties":{"borrowerId":{"type":"string","description":"Id (GUID) of the borrower on the loan.","format":"uuid"},"referenceNumber":{"type":"string","description":"The agency's reference (file) number of the report for this borrower.","nullable":true}},"additionalProperties":false,"description":"One borrower of a reissue: the borrower on the loan and the agency's reference number for them."},"PaymentShock":{"type":"object","properties":{"amount":{"type":"number","description":"Dollar increase over the present housing payment.","format":"double","nullable":true},"percent":{"type":"number","description":"Increase as a percentage of the present housing payment.","format":"double","nullable":true}},"additionalProperties":false,"description":"The jump from the borrower's present housing payment to the proposed one. Calculated by the LOS; read only."},"LoanFieldLocks":{"type":"object","properties":{"loanAmount":{"type":"boolean","description":"True when the loan amount is locked, so a change to the purchase price or down payment does not recalculate it.","nullable":true},"qualifyingRate":{"type":"boolean","description":"True when the qualifying rate is locked against its formula.","nullable":true},"mortgageInsurance":{"type":"boolean","description":"True when the monthly mortgage insurance is locked against the insurance schedule.","nullable":true},"otherHousingExpense":{"type":"boolean","description":"True when the other housing expense is locked.","nullable":true},"estimatedClosingDate":{"type":"boolean","description":"True when the estimated closing date is locked, so a status change does not recalculate it.","nullable":true},"higherPricedMortgageType":{"type":"boolean","description":"True when the higher-priced mortgage result is locked against the APR test.","nullable":true}},"additionalProperties":false,"description":"Which figures are locked in the LOS. A locked figure keeps the value it was given; an unlocked one is recalculated by the LOS from its inputs."},"LoanTrust":{"type":"object","properties":{"id":{"type":"string","description":"Stable id for the trust on this loan. Assigned on save when omitted.","format":"uuid","nullable":true},"name":{"type":"string","description":"The trust's exact name, including any amendment and restatement dates, as it will appear on title.","nullable":true},"classification":{"$ref":"#/components/schemas/LoanTrustClassification"},"establishedDate":{"type":"string","description":"The date the trust was established.","format":"date","nullable":true},"amendedDate":{"type":"string","description":"The date of the latest amendment or restatement, if any.","format":"date","nullable":true},"stateCode":{"type":"string","description":"Two-letter code of the state whose law governs the trust.","nullable":true},"parties":{"type":"array","items":{"$ref":"#/components/schemas/LoanTrustParty"},"description":"Trustees, settlors and beneficiaries.","nullable":true}},"additionalProperties":false,"description":"A trust that will hold title to the subject property. A trust is vesting, not a borrower: its settlors are ordinary borrowers, and the trust sits at loan level so it can name people from more than one borrower pair."},"LoanTrustClassification":{"enum":["InterVivosRevocable","Irrevocable","Land","Other"],"type":"string","description":"The legal classification of a trust: InterVivosRevocable (a living trust that can be changed or revoked), Irrevocable (cannot be revoked), Land (a land trust) or Other."},"LoanTrustParty":{"type":"object","properties":{"role":{"$ref":"#/components/schemas/LoanTrustPartyRole"},"borrowerId":{"type":"string","description":"The hdBorrowerId of the borrower this party is, on any pair. Must be a borrower on the loan.","format":"uuid","nullable":true},"name":{"type":"string","description":"The party's name when it is not a borrower on the loan.","nullable":true},"isInstitution":{"type":"boolean","description":"True when the party is an institution (a bank or trust company acting as trustee)."}},"additionalProperties":false,"description":"One party to a `LoanTrust`. A party who is a borrower on any pair is named by\r\n`borrowerId` (the borrower's `hdBorrowerId`); anyone else, a non-borrowing person or an\r\ninstitutional trustee, by `name`."},"LoanTrustPartyRole":{"enum":["Trustee","CoTrustee","SuccessorTrustee","Settlor","SettlorTrustee","Beneficiary"],"type":"string","description":"A party's role in a trust: Trustee, CoTrustee, SuccessorTrustee (takes over from a trustee), Settlor (created the trust), SettlorTrustee (both settlor and trustee) or Beneficiary."},"LoanAusResult":{"type":"object","properties":{"duCasefileId":{"type":"string","description":"The DU casefile id of the loan's latest DU run. A resubmission reuses it.","nullable":true},"lpaKey":{"type":"string","description":"The Freddie Mac LPA key written onto the loan by an LPA import; null when none.","nullable":true},"recommendation":{"type":"string","description":"The underwriting recommendation as text, for example Approve/Eligible.","nullable":true},"resultCode":{"type":"integer","description":"Numeric code of the result: 0 not submitted, 1 to 9 the DU results, 10 to 13 and 15 to 19 the LPA results, 14 out of scope. Null when nothing was sent.","format":"int32","nullable":true},"result":{"type":"string","description":"The name of resultCode; null when there is no code.","nullable":true}},"additionalProperties":false,"description":"The latest automated underwriting result held on the loan. It is read from the Loan Origination System on every loan read and is never written back; the run history is the aus/runs list."},"LoanRateLock":{"type":"object","properties":{"status":{"type":"string","description":"Lock status: Not Locked, Locked, Lock Requested, Lock Suspended or Lock Cancelled. Calculated by the LOS; never written.","nullable":true},"isLocked":{"type":"boolean","description":"True when status is Locked, false for any other status, null when there is no status.","nullable":true},"lockDate":{"type":"string","description":"Date the rate was locked, ISO 8601.","format":"date","nullable":true},"lockTime":{"type":"string","description":"Time of day of the lock, as the LOS formats it.","nullable":true},"periodDays":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Date the lock expires, ISO 8601. The LOS calculates it from the lock date and period.","format":"date","nullable":true},"noteRate":{"type":"number","description":"Locked note rate, in percent such as 6.875.","format":"double","nullable":true},"price":{"type":"number","description":"The locked price, as a percentage of par (100 = par). Read only.","format":"double","nullable":true},"lockIdentifier":{"type":"string","description":"The lock's own identifier, when the source has one, for example an imported file. Usually null.","nullable":true},"history":{"type":"array","items":{"$ref":"#/components/schemas/RateLockHistoryEntry"},"description":"Every lock, extension, relock and break the LOS recorded, newest first. Empty when the loan was never locked.","nullable":true},"ladder":{"$ref":"#/components/schemas/LoanRateLockLadder"},"priceGrid":{"$ref":"#/components/schemas/LoanRateLockPriceGrid"},"investorLock":{"$ref":"#/components/schemas/LoanInvestorLock"},"lockOutcome":{"type":"string","description":"What a write that asked to lock did, when the written values do not say it, for example values written but the lock not set, with the reason. Set only on a write response.","nullable":true}},"additionalProperties":false,"description":"The loan's rate lock with the broker as the LOS holds it, plus the lock history. It is read with the loan; only staff can change the lock date, period and note rate, through the rate lock endpoints. Everything else is calculated."},"RateLockHistoryEntry":{"type":"object","properties":{"kind":{"type":"string","description":"What happened, as the LOS names it: a lock, an extension, a relock or a break.","nullable":true},"occurredAt":{"type":"string","description":"When it happened, ISO 8601.","format":"date-time","nullable":true},"rate":{"type":"number","description":"Note rate at the time, in percent.","format":"double","nullable":true},"price":{"type":"number","description":"Price at the time, where 100 is par.","format":"double","nullable":true},"periodDays":{"type":"integer","description":"Lock period after the entry, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Lock expiration date after the entry, ISO 8601.","format":"date","nullable":true},"extensionDays":{"type":"integer","description":"Days an extension added, when the entry is an extension and they were recorded.","format":"int32","nullable":true},"user":{"type":"string","description":"Who made the change, as the LOS recorded it.","nullable":true},"note":{"type":"string","description":"Note recorded with the entry.","nullable":true}},"additionalProperties":false,"description":"One entry of a lock's history: a lock, extension, relock or break."},"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."},"LoanRateLockPriceGrid":{"type":"object","properties":{"basePrice":{"type":"number","description":"The base price, where 100 is par.","format":"double","nullable":true},"priceRow":{"type":"string","description":"Which price the grid's row is locked on: Base, BrokerBase, BrokerFinal or OriginatorPrice.","nullable":true},"visibleAdjustmentsTotal":{"type":"number","description":"Total of the adjustments the broker sees, in points.","format":"double","nullable":true},"hiddenAdjustmentsTotal":{"type":"number","description":"Total of the hidden lender adjustments, in points.","format":"double","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/LockAdjustment"},"description":"The adjustment lines on the price grid.","nullable":true},"originatorPrice":{"type":"number","description":"The Originator Price: the price before the originator compensation.","format":"double","nullable":true},"finalPrice":{"type":"number","description":"The Final Price: the price after the originator compensation.","format":"double","nullable":true},"investorPrice":{"type":"number","description":"The investor's price.","format":"double","nullable":true},"internalNote":{"type":"string","description":"The lock screen's internal notes.","nullable":true},"originatorCompensation":{"$ref":"#/components/schemas/LoanOriginatorCompensation"}},"additionalProperties":false,"description":"The front-end lock's price grid and the originator compensation, read live from the LOS. Set only on rate lock reads and writes. The investor price and the lender lines are not returned to third-party-originator (broker) callers."},"LockAdjustment":{"type":"object","properties":{"description":{"type":"string","description":"What the adjustment is for.","nullable":true},"points":{"type":"number","description":"The adjustment in points; a negative value adds to the price.","format":"double","nullable":true},"rate":{"type":"number","description":"Rate adjustment, in percentage points.","format":"double","nullable":true},"margin":{"type":"number","description":"Margin adjustment, in percentage points.","format":"double","nullable":true},"hidden":{"type":"boolean","description":"True for a hidden lender line the broker never sees (front-end lock only)."}},"additionalProperties":false,"description":"One adjustment line as the LOS holds it."},"LoanOriginatorCompensation":{"type":"object","properties":{"paidBy":{"type":"string","description":"Borrower or Lender (`sOriginatorCompensationPaymentSourceT`); null when not specified.","nullable":true},"percent":{"type":"number","description":"Compensation as a percent of the base amount, for example 2.0 for two percent.","format":"double","nullable":true},"minAmount":{"type":"number","description":"Minimum compensation in dollars.","format":"double","nullable":true},"fixedAmount":{"type":"number","description":"Fixed compensation in dollars.","format":"double","nullable":true},"baseType":{"type":"string","description":"LoanAmount or TotalLoanAmount (`sOriginatorCompensationBaseT`).","nullable":true},"lenderFeeOption":{"type":"string","description":"IncludedInLenderFees or InAdditionToLenderFees (`sOriginatorCompensationLenderFeeOptionT`).","nullable":true}},"additionalProperties":false,"description":"The loan's originator compensation inputs (`sOriginatorCompensation*`), as the LOS holds them."},"LoanInvestorLock":{"type":"object","properties":{"investorId":{"type":"integer","description":"Identifier of the investor in the LOS's investor list.","format":"int32","nullable":true},"investorName":{"type":"string","description":"Name of the investor.","nullable":true},"investorLoanNumber":{"type":"string","description":"The investor's loan number for this loan.","nullable":true},"confirmationNumber":{"type":"string","description":"Confirmation number the investor gave the lock.","nullable":true},"programName":{"type":"string","description":"Name of the investor program the loan is locked to.","nullable":true},"rateSheetTime":{"type":"string","description":"Effective time of the investor's rate sheet, as text in the form MM/dd/yyyy h:mm tt.","nullable":true},"commitmentType":{"type":"string","description":"Delivery commitment: BestEfforts, Mandatory, Hedged or Securitized.","nullable":true},"lockFee":{"type":"number","description":"Fee charged for the lock.","format":"double","nullable":true},"lockDate":{"type":"string","description":"Date the investor lock was made, ISO 8601.","format":"date","nullable":true},"periodDays":{"type":"integer","description":"Lock period, in days.","format":"int32","nullable":true},"expirationDate":{"type":"string","description":"Date the lock expires, ISO 8601: the lock date plus the period, with no weekend roll.","format":"date","nullable":true},"deliveryExpirationDate":{"type":"string","description":"Date delivery of the loan to the investor expires, ISO 8601, calculated as the expiration is.","format":"date","nullable":true},"noteRate":{"type":"number","description":"Locked note rate, in percent such as 6.875.","format":"double","nullable":true},"basePrice":{"type":"number","description":"Base price from the investor's rate sheet, where 100 is par.","format":"double","nullable":true},"totalAdjustments":{"type":"number","description":"Total of the price adjustments, in points.","format":"double","nullable":true},"finalPrice":{"type":"number","description":"Price after all adjustments, where 100 is par.","format":"double","nullable":true},"projectedProfit":{"type":"number","description":"Projected profit on the lock, as the LOS calculates it.","format":"double","nullable":true},"status":{"type":"string","description":"Not Locked, Locked, Lock Requested, Lock Suspended or Lock Cancelled.","nullable":true},"adjustments":{"type":"array","items":{"$ref":"#/components/schemas/LockAdjustment"},"description":"The price adjustment lines on the investor lock.","nullable":true},"history":{"type":"array","items":{"$ref":"#/components/schemas/RateLockHistoryEntry"},"description":"Every event on the investor lock, newest first.","nullable":true},"lockOutcome":{"type":"string","description":"What a write that asked to lock or break the lock did when the LOS did not do it. Set only on a write response.","nullable":true}},"additionalProperties":false,"description":"The back-end (investor) lock as the LOS holds it, read live. Set only on rate lock reads and writes, and never for third-party-originator (broker) callers."},"LoanTemporaryBuydown":{"type":"object","properties":{"steps":{"type":"array","items":{"$ref":"#/components/schemas/TemporaryBuydownStep"},"description":"The steps in order, each { rateReduction, months }: a 2-1 is [{ rateReduction: 2, months: 12 }, { rateReduction: 1, months: 12 }]. At most five. The list replaces the stored steps as a whole; empty slots are left out when read.","nullable":true},"contributorType":{"type":"string","description":"Who pays for the buydown, as the LOS's raw contributor code (sBuydownContributorT). Optional: left out, the LOS's value is not touched.","nullable":true},"totalFundsAmount":{"type":"number","description":"Total buydown funds in dollars (sBuydownTotalFundsAmt). Optional: left out, the LOS's value is not touched.","format":"double","nullable":true},"hasTemporaryBuydown":{"type":"boolean","description":"sHasTempBuydown - calculated by the LOS from the steps. Read only: a write is ignored.","nullable":true},"totalMonths":{"type":"integer","description":"sBuydwnTotalMon - calculated by the LOS. Read only.","format":"int32","nullable":true},"resultRate":{"type":"number","description":"sBuydownResultIR - calculated by the LOS. Read only.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's temporary buydown as the LOS holds it: up to five steps, who pays for it and how much, and what the LOS calculates from them. Changed only by a partial update that names it."},"TemporaryBuydownStep":{"type":"object","properties":{"rateReduction":{"type":"number","description":"Points the note rate is reduced by during this step (number, 2 means 2 points). Not negative.","format":"double"},"months":{"type":"integer","description":"Months this step lasts (integer). Required when rateReduction is above 0.","format":"int32"}},"additionalProperties":false,"description":"One step of a temporary buydown: how many points the rate is reduced for how many months."},"LoanApplicationTaskItem":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task or condition (GUID).","format":"uuid","nullable":true},"taskStatusTimestamp":{"type":"string","description":"When the task's status last changed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"When the task was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"createdTimestamp":{"type":"string","description":"When the task was created (ISO 8601 date and time, UTC).","format":"date-time"},"item":{"$ref":"#/components/schemas/Item"},"assignedToBorrowerId":{"type":"string","description":"Id (GUID) of the borrower the task is assigned to. Null for a user task or a task for the loan's borrowers generally.","format":"uuid","nullable":true},"status":{"$ref":"#/components/schemas/TaskStatus"},"document":{"$ref":"#/components/schemas/Document"},"rejectionReasonNote":{"type":"string","description":"The reviewer's free-text note when the task's document was rejected.","nullable":true},"rejectionReason":{"$ref":"#/components/schemas/TaskRejectionReason"},"creditReportType":{"$ref":"#/components/schemas/PosCreditReportType"},"isForPrimaryBorrower":{"type":"boolean","description":"True when the task is for the primary borrower, false when it is for the co-borrower. Null when it is for neither in particular.","nullable":true},"isRequired":{"type":"boolean","description":"Whether the task must be completed before the file can move forward."},"isAccountMainTask":{"type":"boolean","description":"True for the main task of an asset account, the one that requests the account's statements."},"questionType":{"$ref":"#/components/schemas/TaskQuestionType"},"yesNoResponse":{"type":"boolean","description":"The borrower's answer to a yes/no question task. Null until answered.","nullable":true},"shortAnswer":{"type":"string","description":"The borrower's answer to a short-answer question task. Null until answered.","nullable":true},"assignedToUser":{"$ref":"#/components/schemas/LoanAppUser"},"name":{"type":"string","description":"Display name of the task or condition.","nullable":true},"description":{"type":"string","description":"Description of the task. For a condition, the condition text: the reworded text when staff edited it in Henge, otherwise the LOS text.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the task among its siblings, lowest first.","format":"int32","nullable":true},"type":{"$ref":"#/components/schemas/TaskType"},"code":{"type":"string","description":"Short code of the task.","nullable":true},"conditionNo":{"type":"integer","description":"Condition number in the LOS. Conditions only.","format":"int32","nullable":true},"conditionCategory":{"type":"string","description":"Category of the condition in the LOS. Conditions only.","nullable":true},"conditionDueDate":{"type":"string","description":"Due date of the condition (ISO 8601 date). Conditions only.","format":"date","nullable":true},"conditionAssignedUserFullName":{"type":"string","description":"Full name of the user the condition is assigned to in the LOS. Conditions only.","nullable":true},"conditionBorrowerFullName":{"type":"string","description":"Full name of the borrower the condition is for. Conditions only.","nullable":true},"conditionIsHidden":{"type":"boolean","description":"True when the condition is hidden from the borrower. Staff roles still see it; a caller that receives a hidden condition is entitled to it.","nullable":true},"conditionSourceText":{"type":"string","description":"The LOS's original condition text. Set only when staff reworded the condition in Henge, in which case description carries the rewording; null otherwise.","nullable":true},"isConditionTextEdited":{"type":"boolean","description":"True when staff reworded this condition in Henge. The rewording is never sent to the LOS."},"notes":{"type":"string","description":"Notes on the task or condition.","nullable":true},"taskAssignmentType":{"$ref":"#/components/schemas/TaskAssignmentType"},"isSubscribed":{"type":"boolean","description":"Whether the calling user is subscribed to status-change notifications for this task. Null when not computed.","nullable":true},"conditionTaskId":{"type":"string","description":"Id (GUID) of the condition this task belongs to. Null on conditions and on standalone tasks. Read on create; ignored on update.","format":"uuid","nullable":true},"assetAccountId":{"type":"string","description":"Id (GUID) of the asset account the task belongs to, if any. Needed on create only for a Transaction History task; ignored on update.","format":"uuid","nullable":true},"assetAccountName":{"type":"string","description":"Name of the asset account the task belongs to. Response only, and filled only where the response includes accounts.","nullable":true},"creditReportNumber":{"type":"string","description":"For credit report tasks, the credit agency's report number.","nullable":true},"requestTaskId":{"type":"string","description":"Id of the first task of the document request this task is a copy of (one task per document). Null on the first task itself. On create, naming any task of a request makes the new task a copy that joins that request.","format":"uuid","nullable":true},"requestedStartDate":{"type":"string","description":"Transaction History tasks only: the first day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"requestedEndDate":{"type":"string","description":"Transaction History tasks only: the last day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"ownerPairId":{"type":"string","description":"Id (GUID) of the borrower pair staff made the owner of this task or condition. Empty when the owner is worked out on read.","format":"uuid","nullable":true},"appliesToAllPairs":{"type":"boolean","description":"True for a whole-loan task or condition that every borrower pair sees."}},"additionalProperties":false,"description":"A task or condition on a loan: a document request, a question, a user task or a condition from the LOS."},"Item":{"type":"object","properties":{"id":{"type":"string","description":"Id of the item (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the item; send it as the item code when you create a task.","nullable":true},"name":{"type":"string","description":"Display name of the item.","nullable":true},"groupCode":{"type":"string","description":"Code of the condition group the item's tasks are shown under. Null means Other.","nullable":true},"canCreateManually":{"type":"boolean","description":"True when staff can create a task for this item by hand."},"canUploadDocument":{"type":"boolean","description":"True when a document can be uploaded against this item."}},"additionalProperties":false,"description":"A kind of request a task can ask for, such as a specific document."},"TaskStatus":{"type":"object","properties":{"id":{"type":"string","description":"Id of the status (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the status.","nullable":true},"name":{"type":"string","description":"Display name of the status.","nullable":true}},"additionalProperties":false,"description":"The status of a task, for example Requested, Uploaded, Submitted or Accepted."},"Document":{"type":"object","properties":{"id":{"type":"string","description":"Id (GUID) of the document.","format":"uuid"},"name":{"type":"string","description":"The document's file name.","nullable":true},"externalId":{"type":"string","description":"The document's id in the Loan Origination System; empty until it has been sent there.","nullable":true},"isPdfConversionComplete":{"type":"boolean","description":"True once an uploaded file has been converted to PDF and can be opened; false while conversion is still running."},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the document belongs to.","format":"uuid","nullable":true},"loanApplicationTaskId":{"type":"string","description":"Id of the task or condition the document is attached to; null for a document uploaded straight to the loan.","format":"uuid","nullable":true},"blobName":{"type":"string","description":"The name the file is stored under. An internal storage key: download through the document routes rather than using it.","nullable":true},"createdTimestamp":{"type":"string","description":"When the document was created, in UTC (ISO 8601).","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the document was last changed, in UTC (ISO 8601).","format":"date-time"},"updatedBy":{"type":"string","description":"Id of the user who last changed the document; null when the change was automatic or unknown.","format":"uuid","nullable":true},"documentTypeId":{"type":"string","description":"Id of the platform's broad document category (such as a vault or task document). Not the loan document type, which is loanDocumentTypeId.","format":"uuid","nullable":true},"isVault":{"type":"boolean","description":"True when the document was uploaded straight to the loan's vault, false when it hangs off a\r\ntask, a condition or an asset account. Callers use it to decide what a user may do with the\r\ndocument: only a vault document can be deleted. Any document can be given a document type."},"loanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document is filed under (from the loan document types list); null when it has none.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the loan document type; null when the document has none.","nullable":true},"loanDocumentTypeExternalId":{"type":"string","description":"The loan document type's id in the Loan Origination System.","nullable":true},"loanDocumentTypeFolderName":{"type":"string","description":"Name of the folder the loan document type belongs to; null when the document has no type.","nullable":true},"description":{"type":"string","description":"A free-text description of the document; may be empty.","nullable":true},"isDeleted":{"type":"boolean","description":"True when the document has been deleted. Deleted documents are normally left out of lists."},"isInternal":{"type":"boolean","description":"True for a staff-only document that is hidden from borrowers and partner applications."},"isObsolete":{"type":"boolean","description":"The LOS no longer considers this document active. It stays visible so users can still see\r\nit, but it is not current and is never pushed back to the LOS."},"isProtected":{"type":"boolean","description":"The LOS holds the document as Protected, locked there against edits and deletion. Set and\r\ncleared by Admin and Processor through the document status endpoints, or in the LOS itself."},"losStatus":{"$ref":"#/components/schemas/LoanDocumentLosStatus"},"title":{"type":"string","description":"The title shown for the document; may be empty, in which case the file name is shown.","nullable":true},"splitFromDocumentId":{"type":"string","description":"On a part of a split combined PDF: the id of the original document it was cut from. Null on every other document.","format":"uuid","nullable":true},"splitStartPage":{"type":"integer","description":"On a part of a split combined PDF: the first page of the original it holds. Null on every other document.","format":"int32","nullable":true},"splitEndPage":{"type":"integer","description":"On a part of a split combined PDF: the last page of the original it holds. Null on every other document.","format":"int32","nullable":true},"isUnsorted":{"type":"boolean","description":"True while the document was bulk-uploaded to the loan with no task and no type and nobody has\r\nsorted it. It is held out of the LOS until it is put on a task or given a type."},"hasNoFile":{"type":"boolean","description":"True for a staff-only entry the Loan Origination System holds with no file here (a non-PDF assigned to a condition): there is nothing to open, download or move."},"intakeStatus":{"type":"string","description":"NeedsPassword or Duplicate for a bulk-uploaded document that is held for that reason; null\r\notherwise. See DocumentIntakeStatuses.","nullable":true},"duplicateOfDocumentId":{"type":"string","description":"The existing document this one repeats, when IntakeStatus is Duplicate.","format":"uuid","nullable":true},"indexStatus":{"type":"string","description":"Whether the document's text is searchable: Indexed, Pending, Failed or NotSubmitted. Set by\r\nthe document lists for staff callers; null when it was not looked up, or the lookup failed.","nullable":true},"analysis":{"$ref":"#/components/schemas/DocumentAnalysisSummary"},"internalNotes":{"type":"string","description":"Staff-only internal notes on the document, verbatim from the Loan Origination System. Returned only to callers who may see internal notes; null for everyone else.","nullable":true}},"additionalProperties":false,"description":"A document on a loan: the file, the task or condition it is attached to, its type and its status."},"LoanDocumentLosStatus":{"enum":["Active","Protected","Obsolete","Rejected","Screened"],"type":"string","description":"A loan document's status, one value per document, set here or in the LOS and kept in step both ways. The names are the LOS's own; the app shows Active as Pending, Screened as Accepted and Obsolete as Deleted."},"DocumentAnalysisSummary":{"type":"object","properties":{"status":{"type":"string","description":"Pending, Completed, Failed or Skipped. Failed reads \"Not analysed\".","nullable":true},"verdict":{"type":"string","description":"Whether the document is what was asked for: Matches, Mismatch, Unreadable or Unknown.","nullable":true},"reasonCode":{"type":"string","description":"On a Mismatch, why: WrongDocument, WrongPeriod, WrongAccount, WrongBorrower, MissingPages or Expired. On an Unreadable verdict from the page quality check, UnreadablePages.","nullable":true},"reason":{"type":"string","description":"One line in plain language explaining the verdict, written for the borrower.","nullable":true},"suggestedRejectionReasonCode":{"type":"string","description":"The seeded TaskRejectionReason code the panel pre-selects for a Mismatch.","nullable":true},"suggestedTaskId":{"type":"string","description":"Id of the task or condition the document appears to belong to; null when none matched.","format":"uuid","nullable":true},"suggestedTaskName":{"type":"string","description":"Name of the suggested task or condition.","nullable":true},"isOnSuggestedTask":{"type":"boolean","description":"False when the document sits on a different task than the best match: shown for confirmation."},"matchConfidence":{"type":"number","description":"How sure the analysis is of the suggested task, from 0 to 1.","format":"double","nullable":true},"suggestedLoanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document looks like; null when not determined.","format":"uuid","nullable":true},"suggestedLoanDocumentTypeName":{"type":"string","description":"Name of the suggested loan document type.","nullable":true},"suggestedTitle":{"type":"string","description":"The title the analysis suggests for the document, built from what it read (for example the account and statement period).","nullable":true},"titleAppliedAutomatically":{"type":"boolean","description":"True when the document's current title was set by the analysis rather than by a person."},"previousTitle":{"type":"string","description":"The title the document had before the analysis renamed it; null when it was not renamed.","nullable":true},"autoNameDisabled":{"type":"boolean","description":"True when a person undid an automatic name; the analysis never renames this document again."},"filedByType":{"type":"boolean","description":"Filed under the suggested LOS type and folder by the analysis, for a person to confirm or correct."},"duplicateOfDocumentId":{"type":"string","description":"Id of an earlier document on the loan with the same content, when this one repeats it; otherwise null.","format":"uuid","nullable":true},"supersedesDocumentId":{"type":"string","description":"Id of an earlier document this one replaces (a newer version of the same document); otherwise null.","format":"uuid","nullable":true},"supersededByDocumentId":{"type":"string","description":"Id of a newer document that replaces this one; otherwise null.","format":"uuid","nullable":true},"outcome":{"type":"string","description":"What a person did with the suggestion: Confirmed, Corrected, Rejected or Ignored; null while no one has acted.","nullable":true},"outcomeAt":{"type":"string","description":"When the person acted on the suggestion, in UTC (ISO 8601); null while no one has.","format":"date-time","nullable":true},"coveredPeriods":{"type":"array","items":{"type":"string"},"description":"For a request that needs a span of statements, the months the uploaded documents cover, each formatted yyyy-MM.","nullable":true},"missingPeriods":{"type":"array","items":{"type":"string"},"description":"The requested months no uploaded document covers yet, each formatted yyyy-MM.","nullable":true},"monthsMissing":{"type":"integer","description":"How many months of the request are still missing.","format":"int32","nullable":true},"analyzedAt":{"type":"string","description":"When the analysis was done, in UTC (ISO 8601).","format":"date-time"},"splitSuggestion":{"$ref":"#/components/schemas/SplitSuggestion"},"pageIssues":{"type":"array","items":{"$ref":"#/components/schemas/PageIssue"},"description":"The pages the quality check flagged, which the Unreadable-page request names.","nullable":true}},"additionalProperties":false,"description":"What the document review shows for a document: the suggested task, type and title, the verdict and whether the title was applied automatically. The evidence and page text the analysis read are not included."},"SplitSuggestion":{"type":"object","properties":{"pageCount":{"type":"integer","description":"Number of pages in the PDF that was analysed.","format":"int32"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/SplitPartRange"},"description":"The suggested page ranges, one per document found.","nullable":true},"reason":{"type":"string","description":"The segmenter's account of why, e.g. \"3 document(s) across 12 page(s)\".","nullable":true}},"additionalProperties":false,"description":"The split suggested for a PDF that holds several documents and was not split on upload. Nothing changes until a person accepts it."},"SplitPartRange":{"type":"object","properties":{"startPage":{"type":"integer","description":"First page of the run, counting from 1.","format":"int32"},"endPage":{"type":"integer","description":"Last page of the run, inclusive.","format":"int32"},"loanDocumentTypeId":{"type":"string","description":"What the segmenter took the run to be, for the suggestion only. Never trusted when splitting.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the document type the run was taken to be, for the suggestion only.","nullable":true}},"additionalProperties":false,"description":"One run of pages of a combined PDF that is one document. 1-based, inclusive."},"PageIssue":{"type":"object","properties":{"page":{"type":"integer","description":"The page the issue is on, starting at 1.","format":"int32"},"kind":{"type":"string","description":"The problem found: Blank (no text), LowConfidence (scan quality too low to read reliably) or CutOff (text stops mid-sentence).","nullable":true}},"additionalProperties":false,"description":"A page the quality check flagged. 1-based, in the document the analysis read."},"TaskRejectionReason":{"type":"object","properties":{"id":{"type":"string","description":"Id of the rejection reason (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the rejection reason.","nullable":true},"code":{"type":"string","description":"Stable code of the rejection reason.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the reason in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"A reason a reviewer gives for rejecting a task's document."},"PosCreditReportType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the report type (GUID).","format":"uuid","nullable":true},"code":{"type":"string","description":"Stable code of the report type.","nullable":true},"name":{"type":"string","description":"Display name of the report type.","nullable":true}},"additionalProperties":false,"description":"The type of credit report a credit report task asks for."},"TaskQuestionType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the question type (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the question type.","nullable":true},"code":{"type":"string","description":"Stable code of the question type.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the question type in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"For a question task, the kind of answer it asks for, such as yes/no or a short answer."},"LoanAppUser":{"type":"object","properties":{"id":{"type":"string","description":"Id of the user (GUID).","format":"uuid"},"firstName":{"type":"string","description":"The user's first name.","nullable":true},"lastName":{"type":"string","description":"The user's last name.","nullable":true}},"additionalProperties":false,"description":"A user, such as the staff member a task is assigned to."},"TaskType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the task type.","nullable":true},"name":{"type":"string","description":"Display name of the task type.","nullable":true}},"additionalProperties":false,"description":"The kind of task."},"TaskAssignmentType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the assignment type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the assignment type.","nullable":true},"name":{"type":"string","description":"Display name of the assignment type.","nullable":true}},"additionalProperties":false,"description":"Who a task is assigned to: a borrower or a user."},"TaskSummary":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/TaskStatus"},"count":{"type":"integer","description":"Number of tasks in this status.","format":"int32"},"isUserTask":{"type":"boolean","description":"True when the count is of tasks assigned to staff users, false when it is of tasks assigned to borrowers."}},"additionalProperties":false},"LoanTimeline":{"type":"object","properties":{"activeStatus":{"$ref":"#/components/schemas/LoanStatusBase"},"lastCompletedStatus":{"$ref":"#/components/schemas/LoanStatusBase"},"loanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/LoanStatus"},"description":"Every loan status with its order, completion and date.","nullable":true},"keyDates":{"$ref":"#/components/schemas/KeyDates"},"statusTracker":{"$ref":"#/components/schemas/StatusTracker"},"disclosureTracker":{"$ref":"#/components/schemas/DisclosureTracker"},"signaturePackages":{"type":"array","items":{"$ref":"#/components/schemas/SignaturePackage"},"description":"The loan's e-signature packages, built from its Disclosure tasks on a loan read.","nullable":true}},"additionalProperties":false,"description":"The loan's progress: its active and last completed status, all statuses, key dates and trackers."},"LoanStatusBase":{"type":"object","properties":{"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true}},"additionalProperties":false,"description":"A loan status: its code and display name."},"LoanStatus":{"type":"object","properties":{"displayOrder":{"type":"integer","description":"Position of the status in the loan timeline, starting at 0.","format":"int32"},"isComplete":{"type":"boolean","description":"True when the loan has passed this status."},"date":{"type":"string","description":"When the loan reached the status, ISO 8601; null if not yet.","format":"date-time","nullable":true},"statusDetails":{"type":"array","items":{"$ref":"#/components/schemas/StatusDetail"},"description":"Sub-steps of the status with their dates.","nullable":true},"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true}},"additionalProperties":false},"StatusDetail":{"type":"object","properties":{"displayOrder":{"type":"integer","description":"Position of the sub-step within its status.","format":"int32"},"code":{"type":"string","description":"Sub-step code.","nullable":true},"name":{"type":"string","description":"Sub-step display name.","nullable":true},"date":{"type":"string","description":"When the sub-step happened, ISO 8601; null if not yet.","format":"date-time","nullable":true}},"additionalProperties":false},"KeyDates":{"type":"object","properties":{"estimatedClosing":{"type":"string","description":"Estimated closing date, ISO 8601.","format":"date-time","nullable":true},"firstPaymentDate":{"type":"string","description":"Date the borrower's first payment is due, ISO 8601.","format":"date-time","nullable":true},"lockExpiration":{"type":"string","description":"Date the rate lock expires, ISO 8601; null when the loan is not locked.","format":"date-time","nullable":true},"rateLockedDate":{"type":"string","description":"Date the rate was locked, ISO 8601.","format":"date-time","nullable":true},"rateLockedTime":{"type":"string","description":"Time of day the rate was locked, as text.","nullable":true},"preApprovedDate":{"type":"string","description":"Date the loan was pre-approved (yyyy-MM-dd).","format":"date","nullable":true},"registeredDate":{"type":"string","description":"Date the loan was registered with the lender (yyyy-MM-dd).","format":"date","nullable":true},"appSubmittedDate":{"type":"string","description":"Date the application was submitted (yyyy-MM-dd).","format":"date","nullable":true},"closingDate":{"type":"string","description":"Scheduled closing date (yyyy-MM-dd).","format":"date","nullable":true}},"additionalProperties":false,"description":"The loan's key dates; each is null until it is known."},"StatusTracker":{"type":"object","properties":{"lastCompletedStep":{"type":"string","description":"Label of the last step the loan completed.","nullable":true},"currentStepLabel":{"type":"string","description":"Label of the step the loan is on now.","nullable":true},"summaryLoanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/StatusTrackerLoanStatus"},"description":"The statuses shown in the summary view, with their progress.","nullable":true},"allLoanStatuses":{"type":"array","items":{"$ref":"#/components/schemas/StatusTrackerLoanStatusBase"},"description":"All statuses in the tracker, in display order.","nullable":true}},"additionalProperties":false,"description":"The borrower-facing progress tracker of a loan: the last completed step, the current step and the statuses shown."},"StatusTrackerLoanStatus":{"type":"object","properties":{"isComplete":{"type":"boolean","description":"True when the loan has passed this status."},"isInProgress":{"type":"boolean","description":"True when the loan is at this status now."},"isApproved":{"type":"boolean","description":"For the pre-approval status, true when approved and false when denied; null otherwise.","nullable":true},"subStatusLabel":{"type":"string","description":"A finer label for the status, when there is one.","nullable":true},"preApprovalDocumentId":{"type":"string","description":"Unique identifier (GUID) of the pre-approval letter document, when one was issued.","format":"uuid","nullable":true},"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the status in the tracker, starting at 0.","format":"int32"},"date":{"type":"string","description":"Date the loan reached the status (yyyy-MM-dd); null if not yet.","format":"date","nullable":true},"time":{"type":"string","description":"Time of day the loan reached the status, as text; null if not known.","nullable":true}},"additionalProperties":false},"StatusTrackerLoanStatusBase":{"type":"object","properties":{"code":{"type":"string","description":"Status code.","nullable":true},"name":{"type":"string","description":"Status display name.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the status in the tracker, starting at 0.","format":"int32"},"date":{"type":"string","description":"Date the loan reached the status (yyyy-MM-dd); null if not yet.","format":"date","nullable":true},"time":{"type":"string","description":"Time of day the loan reached the status, as text; null if not known.","nullable":true}},"additionalProperties":false},"DisclosureTracker":{"type":"object","properties":{"loanEstimates":{"type":"array","items":{"$ref":"#/components/schemas/LoanEstimateDates"},"description":"Every Loan Estimate issued on the loan, in the order the Loan Origination System lists them.","nullable":true},"closingDisclosures":{"type":"array","items":{"$ref":"#/components/schemas/ClosingDisclosureDates"},"description":"Every Closing Disclosure issued on the loan, in the order the Loan Origination System lists them.","nullable":true}},"additionalProperties":false,"description":"The loan's disclosure history: each Loan Estimate and Closing Disclosure issued, with delivery, receipt and signature dates."},"LoanEstimateDates":{"type":"object","properties":{"id":{"type":"string","description":"Identifier of the Loan Estimate disclosure record.","nullable":true},"createdDate":{"type":"string","description":"Date the Loan Estimate was created (yyyy-MM-dd).","format":"date","nullable":true},"issuedDate":{"type":"string","description":"Date the Loan Estimate was issued (yyyy-MM-dd).","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the Loan Estimate was delivered, for example email or mail.","nullable":true},"receivedDate":{"type":"string","description":"Date the borrower received it (yyyy-MM-dd).","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date the borrower signed it (yyyy-MM-dd).","format":"date","nullable":true},"isLastDisclosed":{"type":"boolean","description":"The LOS read returns no last-disclosed flag, so this is never filled; see MismoNotCarried.","nullable":true},"disclosedApr":{"type":"number","description":"APR disclosed on the Loan Estimate, in percent (for example 6.912).","format":"double","nullable":true},"archiveId":{"type":"string","description":"The archive the LOS issued this disclosure from; null when the LOS sends blank or an all-zero GUID (a hand-entered record).","nullable":true},"archiveDate":{"type":"string","description":"The archive's date (the LOS's `ArchiveUsed`); a date only, no time of day.","format":"date","nullable":true},"transactionId":{"type":"string","description":"The id the disclosure was generated under, also on the e-sign package it was sent in; null when blank.","nullable":true},"isInitial":{"type":"boolean","description":"True when this is the initial Loan Estimate.","nullable":true},"isManual":{"type":"boolean","description":"True when the record was entered by hand rather than generated.","nullable":true},"isValid":{"type":"boolean","description":"The LOS's `Valid`. A record marked not valid stays in the list.","nullable":true},"losApr":{"type":"number","description":"The LOS's own APR (`LqbApr`).","format":"double","nullable":true},"docVendorApr":{"type":"number","description":"APR calculated by the document provider, in percent.","format":"double","nullable":true},"consumerDates":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerDisclosureDates"},"description":"Per-borrower disclosure dates.","nullable":true}},"additionalProperties":false},"ConsumerDisclosureDates":{"type":"object","properties":{"consumerId":{"type":"string","description":"The borrower's id in the Loan Origination System.","nullable":true},"consumerName":{"type":"string","description":"The borrower's name.","nullable":true},"issuedDate":{"type":"string","description":"Date the disclosure was issued to this borrower (ISO 8601 date).","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the disclosure was delivered to this borrower, as the Loan Origination System records it.","nullable":true},"receivedDate":{"type":"string","description":"Date this borrower received the disclosure (ISO 8601 date); null when not recorded.","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date this borrower signed the disclosure (ISO 8601 date); null when not signed.","format":"date","nullable":true}},"additionalProperties":false},"ClosingDisclosureDates":{"type":"object","properties":{"id":{"type":"string","description":"The disclosure's id in the Loan Origination System.","nullable":true},"createdDate":{"type":"string","description":"Date the disclosure was created (ISO 8601 date, no time of day).","format":"date","nullable":true},"issuedDate":{"type":"string","description":"Date the disclosure was issued to the borrowers (ISO 8601 date); null when not yet issued.","format":"date","nullable":true},"deliveryMethod":{"type":"string","description":"How the disclosure was delivered, as the Loan Origination System records it (for example email or mail).","nullable":true},"receivedDate":{"type":"string","description":"Date the borrowers received the disclosure (ISO 8601 date); null when not recorded. When several borrowers are listed, each borrower's own date is in consumerDates.","format":"date","nullable":true},"signedDate":{"type":"string","description":"Date the disclosure was signed (ISO 8601 date); null when not signed.","format":"date","nullable":true},"isLastDisclosed":{"type":"boolean","description":"Never filled: the Loan Origination System returns no last-disclosed flag, so this is always null.","nullable":true},"eCloseStatus":{"type":"string","description":"The e-close status the Loan Origination System records for the disclosure; null when none.","nullable":true},"disclosedApr":{"type":"number","description":"The annual percentage rate disclosed, in percent (for example 6.912); null when not recorded.","format":"double","nullable":true},"archiveId":{"type":"string","description":"The id of the archive the Loan Origination System issued this disclosure from; null when it sent none (for example a hand-entered record).","nullable":true},"archiveDate":{"type":"string","description":"The archive's date (ISO 8601 date, no time of day).","format":"date","nullable":true},"transactionId":{"type":"string","description":"The id the disclosure was generated under, also on the e-sign package it was sent in; null when blank.","nullable":true},"isInitial":{"type":"boolean","description":"True when this is the initial Closing Disclosure.","nullable":true},"isManual":{"type":"boolean","description":"True when the record was entered by hand rather than generated by the Loan Origination System.","nullable":true},"isValid":{"type":"boolean","description":"False when the record is marked not valid in the Loan Origination System. Such a record stays in the list.","nullable":true},"losApr":{"type":"number","description":"The Loan Origination System's own annual percentage rate, in percent.","format":"double","nullable":true},"docVendorApr":{"type":"number","description":"The APR as the document vendor calculated it, in percent; null when not recorded.","format":"double","nullable":true},"isFinal":{"type":"boolean","description":"True when this is the final Closing Disclosure.","nullable":true},"isPreview":{"type":"boolean","description":"True when the disclosure was only a preview and was not issued to the borrowers.","nullable":true},"isPostClosing":{"type":"boolean","description":"True when the disclosure was issued after closing.","nullable":true},"consumerDates":{"type":"array","items":{"$ref":"#/components/schemas/ConsumerDisclosureDates"},"description":"Issued, received and signed dates for each borrower on the disclosure.","nullable":true}},"additionalProperties":false},"SignaturePackage":{"type":"object","properties":{"packageId":{"type":"string","description":"The id of the e-sign package as the Loan Origination System holds it.","nullable":true},"name":{"type":"string","description":"The package's name.","nullable":true},"sentTimestamp":{"type":"string","description":"The earliest created timestamp of the package's tasks.","format":"date-time"},"status":{"type":"string","description":"Signed, AwaitingSignature, Reviewed or Cancelled. Reviewed and Cancelled are only reported by a live read of the package.","nullable":true},"signedTimestamp":{"type":"string","description":"The last signer's, only when the package is signed.","format":"date-time","nullable":true},"signers":{"type":"array","items":{"$ref":"#/components/schemas/SignaturePackageSigner"},"description":"The people who must sign the package and whether each has.","nullable":true}},"additionalProperties":false,"description":"One e-sign package sent from the LOS for a loan and who has signed it, built from the loan's\r\nDisclosure tasks (one per signer). Carries no access link and no participant id: nothing here\r\nopens a signing session. Not loan-file data, so it is never part of the MISMO export."},"SignaturePackageSigner":{"type":"object","properties":{"name":{"type":"string","description":"The signer's name.","nullable":true},"role":{"type":"string","description":"Borrower or LoanOfficer.","nullable":true},"signedTimestamp":{"type":"string","description":"When the signer signed, in UTC (ISO 8601); null while they have not.","format":"date-time","nullable":true}},"additionalProperties":false},"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}":{"patch":{"tags":["Loan applications"],"summary":"Update individual fields of a Loan Application (1003)","description":"**Required scope:** `update:loan-applications`\n\nSend only the fields to change: an omitted field is left as stored and a field sent as null is\r\ncleared. Covers borrowers, addresses, employment and income, real estate owned, declarations,\r\ndemographics, purchase price, down payment, property and loan terms. Liabilities and assets have\r\ntheir own endpoints.\r\n            \r\nBorrowers are addressed by their `hdBorrowerId`; a borrower entry without an id adds a\r\nco-borrower, and `remove: true` removes one. Employers and real estate owned are addressed by\r\ntheir `externalId`, or by `index` for a row that has none yet.\r\n            \r\nThe change is saved exactly as the web app saves it, including its validation and, for a loan\r\nalready in the LOS, its refusal once the loan is no longer editable (422). The response is the\r\nloan as saved with its `sectionCompletion` report, so the caller sees what is still missing.","operationId":"LoanApplicationsFields_UpdateFields","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 fields to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanApplicationPatch"}}}},"responses":{"200":{"description":"Updated. The loan as saved, with its completion report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLoanApplicationResponse"}}}},"400":{"description":"The request names no field, names a property the patch does not have, or addresses a borrower or row the loan does not have","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":"Unauthorized, or the request sets temporaryBuydown, which a partner cannot","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The loan is no longer editable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Retrieves a loan application's activity history.

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> Each entry says who made a change, when, and what changed, in the same words the web app shows.> \
> searchText keeps the entries whose change text contains it (case-insensitive); totalCount is the> \
> number of matching entries across every page.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"LoanActivityPage":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"totalCount":{"type":"integer","description":"Entries matching the search, across every page.","format":"int32"},"skip":{"type":"integer","description":"Number of entries skipped before this page.","format":"int32"},"top":{"type":"integer","description":"Maximum number of entries on this page.","format":"int32"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/LoanActivityEntry"},"description":"The activity entries on this page, newest first.","nullable":true}},"additionalProperties":false,"description":"One page of a loan's activity history, newest first."},"LoanActivityEntry":{"type":"object","properties":{"timestampUtc":{"type":"string","description":"When the change was made, ISO 8601 in UTC.","format":"date-time"},"updatedBy":{"type":"string","description":"Id of the user or client who made the change. Withheld from borrowers.","format":"uuid","nullable":true},"updatedByEmail":{"type":"string","description":"Withheld from borrowers: the Activities tab shows them a name, never an address.","nullable":true},"updatedByFirstName":{"type":"string","description":"First name of the user who made the change.","nullable":true},"updatedByLastName":{"type":"string","description":"Last name of the user who made the change.","nullable":true},"source":{"type":"string","description":"Where the change came from: `UI`, `PartnerApi`, `MCP` (an AI agent tool), `LOS` (a change found by reconciling with the LOS) or `System`. Null on entries written before it was recorded.","nullable":true},"agent":{"$ref":"#/components/schemas/LoanActivityAgent"},"subjects":{"type":"array","items":{"$ref":"#/components/schemas/ActivitySubject"},"description":"The items the change touched (a task, document, liability, asset or LOS field), each with type, id and name. Internal callers only, and only on entries that recorded them.","nullable":true},"values":{"type":"array","items":{"$ref":"#/components/schemas/ActivityValueChange"},"description":"What the change did to each field it touched: the field, its old and new value, and the type and id of the item the field belongs to. Internal callers only; values are cut to 500 characters.","nullable":true},"automation":{"type":"string","description":"The automatic check that wrote the entry, by name. Internal callers only.","nullable":true},"observation":{"type":"boolean","description":"True when the entry records something read or checked rather than a change, for example a document's text read or a document checked against its request. Internal callers only.","nullable":true},"losUserName":{"type":"string","description":"For an entry read from the LOS audit log, the name of the LOS user who made the change. Internal callers only.","nullable":true},"losCategory":{"type":"string","description":"For an entry from the LOS's audit log: its category, such as Field Change or Loan Status. Internal callers only.","nullable":true},"losOwnChange":{"type":"boolean","description":"True on an audit log row our own integration account made, present only when the caller asked for those. Internal callers only.","nullable":true},"changes":{"type":"array","items":{"type":"string"},"description":"Plain-language lines describing what changed.","nullable":true}},"additionalProperties":false,"description":"One entry of a loan's activity history: who did it, when, and what changed, in the words the\r\nweb app's Activities tab shows."},"LoanActivityAgent":{"type":"object","properties":{"toolName":{"type":"string","description":"Name of the agent tool that was called.","nullable":true},"oAuthClientId":{"type":"string","description":"Identifier of the OAuth client the call was made through.","nullable":true},"outcome":{"type":"string","description":"`Success` or `Error`.","nullable":true},"timestampUtc":{"type":"string","description":"When the call was made, ISO 8601 in UTC.","format":"date-time"},"agent":{"type":"string","description":"Stated by the client, not verified.","nullable":true},"platform":{"type":"string","description":"Stated by the client, not verified.","nullable":true},"sessionId":{"type":"string","description":"The agent's session id, as the client sent it.","nullable":true},"taskId":{"type":"string","description":"The queued task the work belonged to, as the client sent it.","nullable":true},"requestedBy":{"type":"string","description":"The person the agent says it acted for, as the client sent it. Stated, not verified.","nullable":true},"requestedByName":{"type":"string","description":"That person's name, as the client sent it. Stated, not verified.","nullable":true},"asked":{"type":"string","description":"What the agent says it was asked, as the client sent it. Stated, not verified. Masked and capped when stored.","nullable":true},"statedReason":{"type":"string","description":"The reason the agent gave for the change. Stated, not proven: a model's account of its reasons is not a reliable\r\nrecord of why it acted, so read it beside what changed, never in place of it. Masked and capped when stored.","nullable":true}},"additionalProperties":false,"description":"The automated agent call behind a loan activity entry: which tool, through which OAuth client, how it ended, and what the client said about itself. Never returned to a borrower or on the Partner API."},"ActivitySubject":{"type":"object","properties":{"type":{"type":"string","description":"Kind of item the change touched: Task, Document, Liability, Asset or LosField.","nullable":true},"id":{"type":"string","description":"Identifier of the item: a GUID for tasks, documents and assets, the LOS field id for a LosField.","nullable":true},"name":{"type":"string","description":"The item's display name when the entry was written; informational only.","nullable":true}},"additionalProperties":false,"description":"One item a loan change touched (a task, document, liability, asset or LOS field), with its type, id and display name. The name is for display only."},"ActivityValueChange":{"type":"object","properties":{"field":{"type":"string","description":"A plain label for what changed: \"Wording\", \"Due date\", \"Status\", an LOS field's label.","nullable":true},"oldValue":{"type":"string","description":"What the field held before; null when it held nothing.","nullable":true},"newValue":{"type":"string","description":"What the field holds now; null when it holds nothing.","nullable":true},"oldValueNotRead":{"type":"boolean","description":"True when the write path did not read what the field held before: `OldValue` is then null\r\nbecause it is unknown, not because the field was empty. Absent means it was read."},"subjectType":{"type":"string","description":"One of `ActivitySubjectTypes`: the type of the item the field belongs to.","nullable":true},"subjectId":{"type":"string","description":"The id of the item the field belongs to, as its `Id` spells it.","nullable":true}},"additionalProperties":false,"description":"A before-and-after value of one field of an item that a loan change touched; each value is cut to 500 characters."},"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}/activity":{"get":{"tags":["Loan applications"],"summary":"Retrieves a loan application's activity history.","description":"**Required scope:** `read:loan-applications`\n\nEach entry says who made a change, when, and what changed, in the same words the web app shows.\r\nsearchText keeps the entries whose change text contains it (case-insensitive); totalCount is the\r\nnumber of matching entries across every page.","operationId":"LoanApplicationActivity_GetLoanApplicationActivity","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":"searchText","in":"query","description":"Optional text to search for within the change descriptions.","schema":{"type":"string"}},{"name":"skip","in":"query","description":"Entries to skip. Defaults to 0.","schema":{"type":"integer","format":"int32"}},{"name":"top","in":"query","description":"Entries to return. Defaults to 25, at most 100.","schema":{"type":"integer","format":"int32"}},{"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":"Activity retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanActivityPage"}}}},"400":{"description":"Invalid identifier","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"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Retrieves the contacts saved against a loan application.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"LoanAppContact":{"type":"object","properties":{"externalId":{"type":"string","description":"Id of the contact on the loan (GUID).","format":"uuid","nullable":true},"role":{"$ref":"#/components/schemas/ContactRole"},"roleName":{"type":"string","description":"Display name of the contact's role.","nullable":true},"otherRoleName":{"type":"string","description":"Free-text label for a contact whose role is Other; without it they show as a bare Other.","nullable":true},"name":{"type":"string","description":"Full name of the contact.","nullable":true},"email":{"type":"string","description":"Email address.","nullable":true},"phone":{"type":"string","description":"Phone number.","nullable":true},"cellPhone":{"type":"string","description":"Cell phone number.","nullable":true},"fax":{"type":"string","description":"Fax number.","nullable":true},"pager":{"type":"string","description":"Pager number.","nullable":true},"companyName":{"type":"string","description":"Name of the contact's company.","nullable":true},"companyPhone":{"type":"string","description":"The company's phone number.","nullable":true},"companyFax":{"type":"string","description":"The company's fax number.","nullable":true},"branchName":{"type":"string","description":"Name of the branch the contact works at.","nullable":true},"departmentName":{"type":"string","description":"Name of the department the contact works in.","nullable":true},"employeeIdInCompany":{"type":"string","description":"The contact's employee id within their company.","nullable":true},"companyId":{"type":"string","description":"Identifier of the contact's company, as recorded on the contact.","nullable":true},"street":{"type":"string","description":"Street address.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zip":{"type":"string","description":"ZIP or postal code.","nullable":true},"notes":{"type":"string","description":"Free-text notes on the contact.","nullable":true},"isImported":{"type":"boolean","description":"True when the contact came from an imported file rather than from the LOS. A sync with the LOS keeps these rather than deleting what it did not create."},"isSystemCreated":{"type":"boolean","description":"True when the row is one the loan must not carry, such as a system integration account. Returned only when staff ask for system contacts; absent otherwise.","nullable":true},"isNotifyWhenLoanStatusChange":{"type":"boolean","description":"True when the LOS emails this contact when the loan status changes. Check it before sending a second notification."},"agentNMLS":{"type":"string","description":"The contact's NMLS id.","nullable":true},"companyNMLS":{"type":"string","description":"The contact's company NMLS id.","nullable":true},"agentLicenseNumber":{"type":"string","description":"The contact's license number.","nullable":true},"companyLicenseNumber":{"type":"string","description":"The company's license number.","nullable":true},"isAgentLicenseExpired":{"type":"boolean","description":"True when the contact's license has expired. A license number alone does not say whether it is still valid."},"isCompanyLicenseExpired":{"type":"boolean","description":"True when the company's license has expired."},"chumsId":{"type":"string","description":"The contact's CHUMS id (the id the FHA program uses for lenders and agents).","nullable":true},"caseNumber":{"type":"string","description":"Case number recorded on the contact.","nullable":true},"isLender":{"type":"boolean","description":"True when the contact is the lender."},"isOriginator":{"type":"boolean","description":"True when the contact is the loan originator."},"isLenderAffiliate":{"type":"boolean","description":"True when the contact is an affiliate of the lender."},"isOriginatorAffiliate":{"type":"boolean","description":"True when the contact is an affiliate of the originator."},"isListedInGFEProviderForm":{"type":"boolean","description":"True when the service provider has a relationship with the lender. The relationship fields below only mean something when this is set."},"providerItemNumber":{"type":"string","description":"Item number recorded for the provider's service on the disclosure.","nullable":true},"isLenderAssociation":{"type":"boolean","description":"True when the provider has an association with the lender (a disclosure fact)."},"isLenderRelative":{"type":"boolean","description":"True when the provider is a relative of the lender (a disclosure fact)."},"hasLenderRelationship":{"type":"boolean","description":"True when the provider has a business relationship with the lender (a disclosure fact)."},"hasLenderAccountLast12Months":{"type":"boolean","description":"True when the provider has had an account with the lender in the last 12 months (a disclosure fact)."},"isUsedRepeatlyByLenderLast12Months":{"type":"boolean","description":"True when the lender has used this provider repeatedly in the last 12 months. The property name keeps its original spelling."},"investorSoldDate":{"type":"string","description":"Date the loan was sold to this contact when it is the investor, as recorded.","nullable":true},"taxId":{"type":"string","description":"Tax id of the contact. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commission":{"type":"string","description":"Commission amount for the contact. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commissionMinBase":{"type":"string","description":"Minimum base amount for the commission. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commissionPointOfLoanAmount":{"type":"string","description":"Commission expressed as points of the loan amount. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commissionPointOfGrossProfit":{"type":"string","description":"Commission expressed as points of gross profit. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commissionPaid":{"type":"string","description":"Amount of commission paid. Returned only to staff with compensation access; absent for other callers.","nullable":true},"isCommissionPaid":{"type":"boolean","description":"True when the commission has been paid. Returned only to staff with compensation access; absent for other callers.","nullable":true},"isUseOriginatorCompensationAmount":{"type":"boolean","description":"True when the originator compensation amount is used as the commission. Returned only to staff with compensation access; absent for other callers.","nullable":true},"investorBasisPoints":{"type":"string","description":"Investor compensation, in basis points. Returned only to staff with compensation access; absent for other callers.","nullable":true},"paymentNotes":{"type":"string","description":"Free-text notes about how the contact is paid. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToBankName":{"type":"string","description":"Name of the bank the contact is paid through. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToBankCityState":{"type":"string","description":"City and state of that bank. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToABANumber":{"type":"string","description":"ABA routing number of that bank. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToAccountNumber":{"type":"string","description":"Account number to pay. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToAccountName":{"type":"string","description":"Account name to pay. Returned only to staff with compensation access; absent for other callers.","nullable":true},"furtherCreditToAccountNumber":{"type":"string","description":"Account number to credit further, when payment goes through an intermediary. Returned only to staff with compensation access; absent for other callers.","nullable":true},"furtherCreditToAccountName":{"type":"string","description":"Account name to credit further, when payment goes through an intermediary. Returned only to staff with compensation access; absent for other callers.","nullable":true}},"additionalProperties":false,"description":"One party on a loan, such as the loan officer, an agent, a title company or an investor. Compensation, banking and tax detail is returned only to staff with compensation access, and is absent (not null) for other callers."},"ContactRole":{"enum":["Other","Appraiser","Escrow","CreditReport","Title","MortgageInsurance","ListingAgent","SellingAgent","Builder","Underwriter","Investor","Servicing","BuyerAttorney","SellerAttorney","HomeOwnerInsurance","HazardInsurance","MarketingLead","Seller","Surveyor","LoanOfficer","Bank","Lender","Processor","CallCenterAgent","LoanOpener","Manager","Broker","BrokerRep","ECOA","Realtor","Mortgagee","HomeOwnerAssociation","BuyerAgent","ClosingAgent","FairHousingLending","HomeInspection","FloodProvider","CreditReportAgency2","CreditReportAgency3","Shipper","BrokerProcessor","Trustee","Funder","PostCloser","Insuring","CollateralAgent","DocDrawer","PropertyManagement","TitleUnderwriter","CreditAuditor","DisclosureDesk","JuniorProcessor","JuniorUnderwriter","LegalAuditor","LoanOfficerAssistant","Purchaser","QCCompliance","Secondary","PestInspection","Subservicer","ExternalSecondary","ExternalPostCloser","LoanPurchasePayee","AppraisalManagementCompany","Referral","Notary","TaxServicer","SupervisoryAppraiser","Attorney","PropertyInspector","CPATaxPreparer","LockDesk","MortgageServiceOrganization","Verifications","TaxCollector","TaxTranscripts"],"type":"string","description":"The role a contact plays on a loan. Each value names that role: Other (anything not listed), Appraiser, Escrow, CreditReport (credit agency), Title, MortgageInsurance, ListingAgent, SellingAgent, Builder, Underwriter, Investor, Servicing, BuyerAttorney, SellerAttorney, HomeOwnerInsurance (obsolete; use HazardInsurance), HazardInsurance (homeowner's insurance), MarketingLead, Seller, Surveyor, LoanOfficer, Bank, Lender, Processor, CallCenterAgent, LoanOpener, Manager, Broker, BrokerRep, ECOA, Realtor, Mortgagee, HomeOwnerAssociation, BuyerAgent, ClosingAgent, FairHousingLending, HomeInspection, FloodProvider, CreditReportAgency2, CreditReportAgency3, Shipper, BrokerProcessor (external processor), Trustee, Funder, PostCloser, Insuring, CollateralAgent, DocDrawer, PropertyManagement, TitleUnderwriter, CreditAuditor, DisclosureDesk, JuniorProcessor, JuniorUnderwriter, LegalAuditor, LoanOfficerAssistant, Purchaser, QCCompliance, Secondary, PestInspection, Subservicer, ExternalSecondary, ExternalPostCloser, LoanPurchasePayee, AppraisalManagementCompany, Referral, Notary, TaxServicer, SupervisoryAppraiser, Attorney, PropertyInspector, CPATaxPreparer, LockDesk, MortgageServiceOrganization, Verifications, TaxCollector and TaxTranscripts."},"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}/contacts":{"get":{"tags":["Loan applications"],"summary":"Retrieves the contacts saved against a loan application.","description":"**Required scope:** `read:loan-applications`","operationId":"LoanApplications_GetLoanApplicationContacts","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":"roles","in":"query","description":"Optional role filter, e.g. BuyerAgent, ListingAgent, Escrow. Omit for all.","schema":{"type":"array","items":{"type":"string"}}},{"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":"Contacts retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LoanAppContact"}}}}},"400":{"description":"Invalid identifier or role name","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"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Updates a contact on a loan application.

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Only the fields in the body change; a field sent as null is cleared. The role cannot be changed.> \
> A contact whose isLender is true cannot be edited. Restricted to Admin and Processor: the> \
> application must act as a user in its company who holds one of those roles. As on GET, the> \
> response leaves out the compensation, banking and tax fields.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"LoanAppContactPatch":{"type":"object","properties":{"name":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"email":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"phone":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"cellPhone":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"fax":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"pager":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"companyName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"companyPhone":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"companyFax":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"branchName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"departmentName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"employeeIdInCompany":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"street":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"city":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"county":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"state":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"zip":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"notes":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isNotifyWhenLoanStatusChange":{"type":"boolean","description":"Cannot be null."},"agentNMLS":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"companyNMLS":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"agentLicenseNumber":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"companyLicenseNumber":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"chumsId":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"caseNumber":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"taxId":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"commissionMinBase":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"commissionPointOfLoanAmount":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"commissionPointOfGrossProfit":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"commissionPaid":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"isCommissionPaid":{"type":"boolean","description":"Cannot be null."},"isUseOriginatorCompensationAmount":{"type":"boolean","description":"Cannot be null."},"investorBasisPoints":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"paymentNotes":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"payToBankName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"payToBankCityState":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"payToABANumber":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"payToAccountNumber":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"payToAccountName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"furtherCreditToAccountNumber":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."},"furtherCreditToAccountName":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."}},"additionalProperties":false,"description":"A partial update of one loan contact: a field left out keeps its LOS value, one sent as null is cleared, and only the fields sent are written. The role, the role label and the lender flags cannot be changed, and the commission total and licence-expired flags are calculated by the LOS. Send at least one property."},"LoanAppContact":{"type":"object","properties":{"externalId":{"type":"string","description":"Id of the contact on the loan (GUID).","format":"uuid","nullable":true},"role":{"$ref":"#/components/schemas/ContactRole"},"roleName":{"type":"string","description":"Display name of the contact's role.","nullable":true},"otherRoleName":{"type":"string","description":"Free-text label for a contact whose role is Other; without it they show as a bare Other.","nullable":true},"name":{"type":"string","description":"Full name of the contact.","nullable":true},"email":{"type":"string","description":"Email address.","nullable":true},"phone":{"type":"string","description":"Phone number.","nullable":true},"cellPhone":{"type":"string","description":"Cell phone number.","nullable":true},"fax":{"type":"string","description":"Fax number.","nullable":true},"pager":{"type":"string","description":"Pager number.","nullable":true},"companyName":{"type":"string","description":"Name of the contact's company.","nullable":true},"companyPhone":{"type":"string","description":"The company's phone number.","nullable":true},"companyFax":{"type":"string","description":"The company's fax number.","nullable":true},"branchName":{"type":"string","description":"Name of the branch the contact works at.","nullable":true},"departmentName":{"type":"string","description":"Name of the department the contact works in.","nullable":true},"employeeIdInCompany":{"type":"string","description":"The contact's employee id within their company.","nullable":true},"companyId":{"type":"string","description":"Identifier of the contact's company, as recorded on the contact.","nullable":true},"street":{"type":"string","description":"Street address.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"county":{"type":"string","description":"County name.","nullable":true},"state":{"type":"string","description":"State, as the two-letter postal code.","nullable":true},"zip":{"type":"string","description":"ZIP or postal code.","nullable":true},"notes":{"type":"string","description":"Free-text notes on the contact.","nullable":true},"isImported":{"type":"boolean","description":"True when the contact came from an imported file rather than from the LOS. A sync with the LOS keeps these rather than deleting what it did not create."},"isSystemCreated":{"type":"boolean","description":"True when the row is one the loan must not carry, such as a system integration account. Returned only when staff ask for system contacts; absent otherwise.","nullable":true},"isNotifyWhenLoanStatusChange":{"type":"boolean","description":"True when the LOS emails this contact when the loan status changes. Check it before sending a second notification."},"agentNMLS":{"type":"string","description":"The contact's NMLS id.","nullable":true},"companyNMLS":{"type":"string","description":"The contact's company NMLS id.","nullable":true},"agentLicenseNumber":{"type":"string","description":"The contact's license number.","nullable":true},"companyLicenseNumber":{"type":"string","description":"The company's license number.","nullable":true},"isAgentLicenseExpired":{"type":"boolean","description":"True when the contact's license has expired. A license number alone does not say whether it is still valid."},"isCompanyLicenseExpired":{"type":"boolean","description":"True when the company's license has expired."},"chumsId":{"type":"string","description":"The contact's CHUMS id (the id the FHA program uses for lenders and agents).","nullable":true},"caseNumber":{"type":"string","description":"Case number recorded on the contact.","nullable":true},"isLender":{"type":"boolean","description":"True when the contact is the lender."},"isOriginator":{"type":"boolean","description":"True when the contact is the loan originator."},"isLenderAffiliate":{"type":"boolean","description":"True when the contact is an affiliate of the lender."},"isOriginatorAffiliate":{"type":"boolean","description":"True when the contact is an affiliate of the originator."},"isListedInGFEProviderForm":{"type":"boolean","description":"True when the service provider has a relationship with the lender. The relationship fields below only mean something when this is set."},"providerItemNumber":{"type":"string","description":"Item number recorded for the provider's service on the disclosure.","nullable":true},"isLenderAssociation":{"type":"boolean","description":"True when the provider has an association with the lender (a disclosure fact)."},"isLenderRelative":{"type":"boolean","description":"True when the provider is a relative of the lender (a disclosure fact)."},"hasLenderRelationship":{"type":"boolean","description":"True when the provider has a business relationship with the lender (a disclosure fact)."},"hasLenderAccountLast12Months":{"type":"boolean","description":"True when the provider has had an account with the lender in the last 12 months (a disclosure fact)."},"isUsedRepeatlyByLenderLast12Months":{"type":"boolean","description":"True when the lender has used this provider repeatedly in the last 12 months. The property name keeps its original spelling."},"investorSoldDate":{"type":"string","description":"Date the loan was sold to this contact when it is the investor, as recorded.","nullable":true},"taxId":{"type":"string","description":"Tax id of the contact. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commission":{"type":"string","description":"Commission amount for the contact. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commissionMinBase":{"type":"string","description":"Minimum base amount for the commission. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commissionPointOfLoanAmount":{"type":"string","description":"Commission expressed as points of the loan amount. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commissionPointOfGrossProfit":{"type":"string","description":"Commission expressed as points of gross profit. Returned only to staff with compensation access; absent for other callers.","nullable":true},"commissionPaid":{"type":"string","description":"Amount of commission paid. Returned only to staff with compensation access; absent for other callers.","nullable":true},"isCommissionPaid":{"type":"boolean","description":"True when the commission has been paid. Returned only to staff with compensation access; absent for other callers.","nullable":true},"isUseOriginatorCompensationAmount":{"type":"boolean","description":"True when the originator compensation amount is used as the commission. Returned only to staff with compensation access; absent for other callers.","nullable":true},"investorBasisPoints":{"type":"string","description":"Investor compensation, in basis points. Returned only to staff with compensation access; absent for other callers.","nullable":true},"paymentNotes":{"type":"string","description":"Free-text notes about how the contact is paid. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToBankName":{"type":"string","description":"Name of the bank the contact is paid through. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToBankCityState":{"type":"string","description":"City and state of that bank. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToABANumber":{"type":"string","description":"ABA routing number of that bank. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToAccountNumber":{"type":"string","description":"Account number to pay. Returned only to staff with compensation access; absent for other callers.","nullable":true},"payToAccountName":{"type":"string","description":"Account name to pay. Returned only to staff with compensation access; absent for other callers.","nullable":true},"furtherCreditToAccountNumber":{"type":"string","description":"Account number to credit further, when payment goes through an intermediary. Returned only to staff with compensation access; absent for other callers.","nullable":true},"furtherCreditToAccountName":{"type":"string","description":"Account name to credit further, when payment goes through an intermediary. Returned only to staff with compensation access; absent for other callers.","nullable":true}},"additionalProperties":false,"description":"One party on a loan, such as the loan officer, an agent, a title company or an investor. Compensation, banking and tax detail is returned only to staff with compensation access, and is absent (not null) for other callers."},"ContactRole":{"enum":["Other","Appraiser","Escrow","CreditReport","Title","MortgageInsurance","ListingAgent","SellingAgent","Builder","Underwriter","Investor","Servicing","BuyerAttorney","SellerAttorney","HomeOwnerInsurance","HazardInsurance","MarketingLead","Seller","Surveyor","LoanOfficer","Bank","Lender","Processor","CallCenterAgent","LoanOpener","Manager","Broker","BrokerRep","ECOA","Realtor","Mortgagee","HomeOwnerAssociation","BuyerAgent","ClosingAgent","FairHousingLending","HomeInspection","FloodProvider","CreditReportAgency2","CreditReportAgency3","Shipper","BrokerProcessor","Trustee","Funder","PostCloser","Insuring","CollateralAgent","DocDrawer","PropertyManagement","TitleUnderwriter","CreditAuditor","DisclosureDesk","JuniorProcessor","JuniorUnderwriter","LegalAuditor","LoanOfficerAssistant","Purchaser","QCCompliance","Secondary","PestInspection","Subservicer","ExternalSecondary","ExternalPostCloser","LoanPurchasePayee","AppraisalManagementCompany","Referral","Notary","TaxServicer","SupervisoryAppraiser","Attorney","PropertyInspector","CPATaxPreparer","LockDesk","MortgageServiceOrganization","Verifications","TaxCollector","TaxTranscripts"],"type":"string","description":"The role a contact plays on a loan. Each value names that role: Other (anything not listed), Appraiser, Escrow, CreditReport (credit agency), Title, MortgageInsurance, ListingAgent, SellingAgent, Builder, Underwriter, Investor, Servicing, BuyerAttorney, SellerAttorney, HomeOwnerInsurance (obsolete; use HazardInsurance), HazardInsurance (homeowner's insurance), MarketingLead, Seller, Surveyor, LoanOfficer, Bank, Lender, Processor, CallCenterAgent, LoanOpener, Manager, Broker, BrokerRep, ECOA, Realtor, Mortgagee, HomeOwnerAssociation, BuyerAgent, ClosingAgent, FairHousingLending, HomeInspection, FloodProvider, CreditReportAgency2, CreditReportAgency3, Shipper, BrokerProcessor (external processor), Trustee, Funder, PostCloser, Insuring, CollateralAgent, DocDrawer, PropertyManagement, TitleUnderwriter, CreditAuditor, DisclosureDesk, JuniorProcessor, JuniorUnderwriter, LegalAuditor, LoanOfficerAssistant, Purchaser, QCCompliance, Secondary, PestInspection, Subservicer, ExternalSecondary, ExternalPostCloser, LoanPurchasePayee, AppraisalManagementCompany, Referral, Notary, TaxServicer, SupervisoryAppraiser, Attorney, PropertyInspector, CPATaxPreparer, LockDesk, MortgageServiceOrganization, Verifications, TaxCollector and TaxTranscripts."},"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}/contacts/{contactId}":{"patch":{"tags":["Loan applications"],"summary":"Updates a contact on a loan application.","description":"**Required scope:** `update:loan-applications`\n\nOnly the fields in the body change; a field sent as null is cleared. The role cannot be changed.\r\nA contact whose isLender is true cannot be edited. Restricted to Admin and Processor: the\r\napplication must act as a user in its company who holds one of those roles. As on GET, the\r\nresponse leaves out the compensation, banking and tax fields.","operationId":"LoanApplicationContacts_UpdateLoanApplicationContact","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":"contactId","in":"path","description":"The contact's externalId, as GET .../contacts returns it.","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 fields to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanAppContactPatch"}}}},"responses":{"200":{"description":"Contact updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanAppContact"}}}},"400":{"description":"No field to change, an invalid value, or the contact is the lender","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The application's acting user is not an Admin or Processor","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application or contact not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The change was refused, or the loan's contacts are being updated; try again","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Lists the print forms for a loan application.

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> Returns the 1003 and the 1008 unless forms names others; each is a short name (1003, 1008) or an> \
> LOS form name. The 1003 is available once the loan is in the LOS, the 1008 once> \
> the loan is approved. A form that is not available carries the reason.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"GetLoanPrintFormsResponse":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"forms":{"type":"array","items":{"$ref":"#/components/schemas/LoanPrintForm"},"description":"The forms that can be printed for the loan, each with whether it is available now.","nullable":true}},"additionalProperties":false},"LoanPrintForm":{"type":"object","properties":{"form":{"type":"string","description":"The short name the form is known by (for example 1003), or its LOS name when it has none.","nullable":true},"pdfName":{"type":"string","description":"The LOS form name to request when printing, for example _1003_19_Pdf.","nullable":true},"description":{"type":"string","description":"What the form is.","nullable":true},"isAvailable":{"type":"boolean","description":"True when the form can be printed for this loan now; otherwise see unavailableReason."},"unavailableReason":{"type":"string","description":"Why the form cannot be printed yet; null when it can.","nullable":true}},"additionalProperties":false,"description":"A form the LOS can print, and whether this loan can print it yet."},"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}/print-forms":{"get":{"tags":["Loan applications"],"summary":"Lists the print forms for a loan application.","description":"**Required scope:** `read:loan-applications`\n\nReturns the 1003 and the 1008 unless forms names others; each is a short name (1003, 1008) or an\r\nLOS form name. The 1003 is available once the loan is in the LOS, the 1008 once\r\nthe loan is approved. A form that is not available carries the reason.","operationId":"LoanApplicationPrintForms_GetLoanApplicationPrintForms","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":"forms","in":"query","description":"Forms to report on. Defaults to 1003 and 1008.","schema":{"type":"array","items":{"type":"string"}}},{"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":"Print forms retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLoanPrintFormsResponse"}}}},"400":{"description":"Invalid identifier or unsupported form","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"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Returns a print form for a loan application as a PDF.

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> form is 1003, 1008, or an LOS form name; anything else is rejected before the LOS> \
> is called. A form the loan cannot print yet, including any form on a loan not yet in> \
> the LOS, answers 422 with the reason. An LOS failure answers 502 and never a> \
> partial document.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"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}/print-forms/{form}":{"get":{"tags":["Loan applications"],"summary":"Returns a print form for a loan application as a PDF.","description":"**Required scope:** `read:loan-applications`\n\nform is 1003, 1008, or an LOS form name; anything else is rejected before the LOS\r\nis called. A form the loan cannot print yet, including any form on a loan not yet in\r\nthe LOS, answers 422 with the reason. An LOS failure answers 502 and never a\r\npartial document.","operationId":"LoanApplicationPrintForms_GetLoanApplicationPrintForm","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":"form","in":"path","description":"Form to print, e.g. 1003 or 1008.","required":true,"schema":{"type":"string"}},{"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 form as a PDF","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid identifier or unsupported form","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"}}}},"422":{"description":"Form not available for this loan yet","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"502":{"description":"LOS error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Lists every print form for a loan application.

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> Superseded revisions that the LOS still lists as obsolete are left out and cannot be printed.> \
> Each entry's form value is what the print endpoint takes.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"GetLoanPrintFormsResponse":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"forms":{"type":"array","items":{"$ref":"#/components/schemas/LoanPrintForm"},"description":"The forms that can be printed for the loan, each with whether it is available now.","nullable":true}},"additionalProperties":false},"LoanPrintForm":{"type":"object","properties":{"form":{"type":"string","description":"The short name the form is known by (for example 1003), or its LOS name when it has none.","nullable":true},"pdfName":{"type":"string","description":"The LOS form name to request when printing, for example _1003_19_Pdf.","nullable":true},"description":{"type":"string","description":"What the form is.","nullable":true},"isAvailable":{"type":"boolean","description":"True when the form can be printed for this loan now; otherwise see unavailableReason."},"unavailableReason":{"type":"string","description":"Why the form cannot be printed yet; null when it can.","nullable":true}},"additionalProperties":false,"description":"A form the LOS can print, and whether this loan can print it yet."},"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}/print-forms/catalog":{"get":{"tags":["Loan applications"],"summary":"Lists every print form for a loan application.","description":"**Required scope:** `read:loan-applications`\n\nSuperseded revisions that the LOS still lists as obsolete are left out and cannot be printed.\r\nEach entry's form value is what the print endpoint takes.","operationId":"LoanApplicationPrintForms_GetLoanApplicationPrintFormCatalog","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":"Print form catalogue retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLoanPrintFormsResponse"}}}},"400":{"description":"Invalid identifier","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"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Start a Loan Application

> \*\*Required scope:\*\* \`create:loan-applications\`\
> \
> Stores the loan's form, keeps its borrower records and creates the section sign-off tasks, so the> \
> 1003 can be filled in and each section signed off. Starting a loan that is already started changes> \
> nothing: the response says \`started: false\`.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"StartLoanApplicationResult":{"required":["loanApplicationId","started"],"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"started":{"type":"boolean","description":"True when this call started the loan; false when it was already started and nothing changed."},"message":{"type":"string","description":"A short message about the outcome, for example that the loan was already started.","nullable":true}},"additionalProperties":false},"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}/start":{"post":{"tags":["Loan applications"],"summary":"Start a Loan Application","description":"**Required scope:** `create:loan-applications`\n\nStores the loan's form, keeps its borrower records and creates the section sign-off tasks, so the\r\n1003 can be filled in and each section signed off. Starting a loan that is already started changes\r\nnothing: the response says `started: false`.","operationId":"LoanApplicationsStart_Start","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":"Started, or already started","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartLoanApplicationResult"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Submit a Loan Application

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Submits the loan as stored and starts it in the LOS. Refused with a 400 until every section is> \
> signed off, every section's required fields are answered and every required borrower task is> \
> done: the body's \`code\` is \`LoanApplicationIncomplete\` and \`blockers\` says what> \
> is missing. These are the rules \`GET loan-applications/{id}?include=completion\` reports,> \
> so read that first. A loan already in the LOS is refused (422). A successful submit fires the> \
> \`LoanApplication.Changed\` webhook.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Loan applications","description":"Loan applications (the 1003) and the work on them: create, search, read and update a loan, start and submit it, and read its activity, contacts, notes and print forms. Address a loan by its `id`, or by its LOS loan id with the `externalId` query parameter (see Identifiers). A loan outside your company answers 404, the same as one that does not exist.\n\n**Notes:** A loan's internal notes, which borrowers never see. A note you write is recorded as your application's acting user, and you can change or delete only that user's notes. Every note keeps its edit history.\n\n**Appraisal requests:** Ask the lender's processing team to order an appraisal on a loan, and read the requests made so far. A request emails processing and is recorded against your application's acting user, so making one has its own scope.\n\n**Broker requests:** Requests a broker sends the lender about a loan: a change of circumstance, an exception request on a non-QM loan, and another row of a locked loan's rate sheet. Read a request type's form first: it says whether the loan's stage allows the request and what it needs. A submitted request cannot be edited or withdrawn; the lender records the decision, which you read back on the request. The scope is granted on request.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `submit:appraisal-requests`, `submit:broker-requests`, `update:loan-applications`"}],"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":{"UpsertLoanApplicationResponse":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"externalLoanNumber":{"type":"string","description":"The loan number in the LOS; null until the loan has been sent there.","nullable":true},"externalId":{"type":"string","description":"The loan's id in the LOS (the externalId used on loan reads); null until the loan has been sent there.","nullable":true},"redirectUrl":{"type":"string","description":"A login token (URL-encoded, valid 30 days) that signs the new borrower in, returned only when a new borrower was created and the company's borrowers use the borrower portal; otherwise null. Treat it as a credential.","nullable":true},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplicationWarning"},"description":"Things the caller should know about a create that still succeeded, each naming the request field it\r\nis about. Empty when there are none.","nullable":true},"notKept":{"type":"array","items":{"type":"string"},"description":"Fields of a save that were accepted but not written, each with why and what the loan holds. Omitted when there are none.","nullable":true}},"additionalProperties":false},"LoanApplicationWarning":{"type":"object","properties":{"field":{"type":"string","description":"The request field the warning is about, for example `loanInfo.borrowers[0].contacts.email`.","nullable":true},"message":{"type":"string","description":"Plain-English text of the warning.","nullable":true}},"additionalProperties":false,"description":"Something the caller should know about a request that still succeeded."},"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}/submit":{"post":{"tags":["Loan applications"],"summary":"Submit a Loan Application","description":"**Required scope:** `update:loan-applications`\n\nSubmits the loan as stored and starts it in the LOS. Refused with a 400 until every section is\r\nsigned off, every section's required fields are answered and every required borrower task is\r\ndone: the body's `code` is `LoanApplicationIncomplete` and `blockers` says what\r\nis missing. These are the rules `GET loan-applications/{id}?include=completion` reports,\r\nso read that first. A loan already in the LOS is refused (422). A successful submit fires the\r\n`LoanApplication.Changed` webhook.","operationId":"LoanApplicationsSubmission_Submit","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":"Submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertLoanApplicationResponse"}}}},"400":{"description":"The loan application is not ready to submit (code LoanApplicationIncomplete, with blockers)","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":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The loan was already submitted","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","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/loan-applications.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.
