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

# Credit And Underwriting

**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.

**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.

**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.

**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.

`GET /types/credit-report-types` lists the credit report types an order accepts.

**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `update:loan-applications`

## Checks where a DU run stands, without submitting anything.

> \*\*Required scope:\*\* \`run:aus\`\
> \
> Use it for a run left Submitted (DU had not answered in time, or the result could not be read back yet) instead of submitting again. It reads the casefile status, then the recommendation, result code and findings the LOS holds, and updates the run when they differ. Only the loan's newest DU run can be checked; leave runId out for it.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"AusRunStatusCheckResult":{"type":"object","properties":{"run":{"$ref":"#/components/schemas/AusRunResult"},"changed":{"type":"boolean","description":"True when the check found a different recommendation, result or findings document than the run held and updated the run; false when nothing changed."},"issues":{"type":"array","items":{"type":"string"},"description":"Steps of the check that did not land (the findings listing, the stored copy); the next check or sync repeats them.","nullable":true}},"additionalProperties":false,"description":"The run after a status check, and whether the check changed it."},"AusRunResult":{"type":"object","properties":{"id":{"type":"string","description":"Unique id (GUID) of this automated underwriting run; use it as the runId when reading the run's findings.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the run belongs to.","format":"uuid"},"ausType":{"type":"string","description":"The automated underwriting system the run is for: DU (Fannie Mae Desktop Underwriter) or LPA (Freddie Mac Loan Product Advisor).","nullable":true},"source":{"type":"string","description":"Where the run came from: Submitted when it was submitted through Henge, or Imported when it was read in from an existing DU casefile or LPA key.","nullable":true},"casefileId":{"type":"string","description":"The DU casefile id the run belongs to. A later submission on the same loan reuses the casefile. Null for an LPA run.","nullable":true},"lpaKey":{"type":"string","description":"The Freddie Mac LPA key of an LPA run; null for a DU run.","nullable":true},"recommendation":{"type":"string","description":"The underwriting recommendation as text, for example Approve/Eligible. Null when the run has none, such as a credit-only run or a run that ended in an error.","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 no result was returned.","format":"int32","nullable":true},"result":{"type":"string","description":"The name of resultCode, for example the DU or LPA outcome it stands for. Null when there is no result code.","nullable":true},"riskClass":{"type":"string","description":"For an LPA result, its risk class: Accept or Caution. Null for a DU run or when there is no result.","nullable":true},"status":{"type":"string","description":"How the run ended: Completed (it went through and its result was read back), Submitted (it was accepted but the result could not be read back yet; a later check or loan sync picks it up) or Error (it was refused; message says why).","nullable":true},"casefileStatus":{"type":"string","description":"The status of the DU casefile as last read. Often empty, because the casefile status is not read for every run.","nullable":true},"message":{"type":"string","description":"For a run with status Error, why it was refused; otherwise usually empty.","nullable":true},"creditReissued":{"type":"boolean","description":"True when the broker's existing credit report was reissued onto the loan as part of this run, false when it was not (for example when the report already on the loan was used)."},"creditAgencyDuCode":{"type":"string","description":"The DU code of the credit reporting agency whose report the run used; null when no agency was named.","nullable":true},"creditAgencyName":{"type":"string","description":"Name of the credit reporting agency whose report the run used; null when no agency was named.","nullable":true},"creditReferenceNumber":{"type":"string","description":"The agency's reference (file) number of the report that was reissued; null when no report was reissued.","nullable":true},"creditOption":{"type":"string","description":"How credit reached the casefile on a submission: Reissue (the broker's existing report), OrderNew (a new report ordered) or UsePrevious (the report already in the casefile). Null on an import.","nullable":true},"orderingOption":{"type":"string","description":"What the run did: CreditAndUnderwriting, CreditOnly or UnderwritingOnly. Null on an import and on runs made before this was recorded.","nullable":true},"submissionOption":{"type":"string","description":"The submission type: Preliminary, Interim or Final. Null on an import and on runs made before this was recorded.","nullable":true},"creditReportId":{"type":"string","description":"The id of the credit report that was ordered for the run (credit option OrderNew), as the underwriting system returned it; null when none was named.","nullable":true},"findingsDocumentId":{"type":"string","description":"Id of the loan document that holds the DU findings report for this run; null when no findings report was filed.","format":"uuid","nullable":true},"hasFindings":{"type":"boolean","description":"True when the run's findings are available as data through the findings route; false for older runs made before findings were read as data."},"ltv":{"type":"string","description":"The findings' LTV as DU prints it (\"75.00%\"); null when there are no findings or DU states none.","nullable":true},"debtToIncomeRatio":{"type":"string","description":"The findings' debt-to-income ratio as DU prints it; null when absent.","nullable":true},"closeByDate":{"type":"string","description":"The date DU says the casefile must close by, as DU prints it (\"03/01/2027\"); null when it states none.","nullable":true},"submittedBy":{"type":"string","description":"Id of the user who submitted the run; null for an import or a run without a recorded submitter.","format":"uuid","nullable":true},"submittedByName":{"type":"string","description":"The submitter's display name, read with the run list (`GET .../aus/runs`); null on a run without a submitter, one whose user is gone, and on the result of a submit or a status check.","nullable":true},"brokerNmlsId":{"type":"string","description":"The broker NMLS id sent with the submission; null when none was sent.","nullable":true},"submittedUtc":{"type":"string","description":"When the run was recorded, in UTC (ISO 8601).","format":"date-time"}},"additionalProperties":false,"description":"One run, as the run history and the submit return it. Never carries a credential."},"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}/aus/du/status-check":{"post":{"tags":["Credit and underwriting"],"summary":"Checks where a DU run stands, without submitting anything.","description":"**Required scope:** `run:aus`\n\nUse it for a run left Submitted (DU had not answered in time, or the result could not be read back yet) instead of submitting again. It reads the casefile status, then the recommendation, result code and findings the LOS holds, and updates the run when they differ. Only the loan's newest DU run can be checked; leave runId out for it.","operationId":"LoanApplicationAus_CheckDuRunStatus","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":"runId","in":"query","description":"The run to check, an `id` from `GET /loan-applications/{id}/aus/runs`. Only the loan's newest DU run submitted through Henge can be checked, so leave it out to check that run.","schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"200":{"description":"The run, and whether the check changed it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AusRunStatusCheckResult"}}}},"400":{"description":"The loan has no DU run that can be checked, or the application has no acting user","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 LOS refused the status request; the run is left as it was","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Previews, then runs, Fannie Mae DU on a loan application.

> \*\*Required scope:\*\* \`run:aus\`\
> \
> Two calls. With no confirmationToken nothing is submitted: you get what the run would do and a single-use token (15 minutes, for the same acting user and loan). Call again with the token to submit; THAT SENDS THE LOAN TO FANNIE MAE THROUGH THE LOS AND ADDS A RUN TO THE LOAN'S HISTORY. The run uses a default saved credit credential: the acting user's own when they have one, else the loan company's, or the credential named in creditReissue (creditCredentialId and the report's referenceNumber, the same on both calls). A loan missing application data is refused with the fields named, a loan with no default credential to use is refused, and the agency's or DU's refusal comes back with its message. If the answer is a run with status Submitted, DU had not answered in time: do not submit again, call the status check.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"PartnerDuSubmitRequest":{"type":"object","properties":{"confirmationToken":{"type":"string","description":"Leave it out to preview. Pass the token a preview returned to submit; it works once, for the same acting user and loan, for 15 minutes.","nullable":true},"creditReissue":{"$ref":"#/components/schemas/PartnerDuCreditReissue"}},"additionalProperties":false,"description":"A DU run on the loan. Without `confirmationToken` it is a preview, which returns a token; send the request again with that token to submit. Without `creditReissue` the run uses your default saved credit credential (the acting user's own, else the loan company's) and runs credit and underwriting as a preliminary submission. A credential is named by its id; a login is never sent. `creditReissue`: Optional. Send the same value on the preview and on the confirm: the token is bound to it. Send {} to preview, then the preview's confirmationToken to submit."},"PartnerDuCreditReissue":{"required":["referenceNumber"],"type":"object","properties":{"creditCredentialId":{"type":"string","description":"A credential from `GET loan-applications/{id}/credit-credentials`. A credential the acting user may not use on the loan is a 403.","format":"uuid","nullable":true},"referenceNumber":{"type":"string","description":"The agency's report (file) number: one joint report for every borrower on the loan."},"instantViewPassword":{"type":"string","description":"The report's Instant View Password, for a report on another lender's account; used for this request only.","nullable":true}},"additionalProperties":false,"description":"A reissue by a saved credit credential: the credential's agency and login are used, and a partner types none."},"PartnerDuSubmitResponse":{"type":"object","properties":{"stage":{"type":"string","description":"`Preview` (nothing was submitted) or `Submitted`.","nullable":true},"message":{"type":"string","description":"In words, what the preview or the run did.","nullable":true},"confirmationToken":{"type":"string","description":"Token a preview returns; send it back to submit. It works once, for the same user and loan, for 15 minutes.","nullable":true},"tokenExpiresUtc":{"type":"string","description":"When the confirmation token expires, ISO 8601 UTC.","format":"date-time","nullable":true},"preview":{"$ref":"#/components/schemas/DuSubmissionPreview"},"run":{"$ref":"#/components/schemas/AusRunResult"},"issues":{"type":"array","items":{"type":"string"},"description":"Problems found with the loan data that stop or limit the submission.","nullable":true}},"additionalProperties":false,"description":"The preview or the result of submitting a loan to Desktop Underwriter."},"DuSubmissionPreview":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the submission would be made for.","format":"uuid"},"loanNumber":{"type":"string","description":"The loan's LOS number.","nullable":true},"casefileId":{"type":"string","description":"The casefile an earlier run left on the loan; null when this run opens a new casefile.","nullable":true},"orderingOption":{"type":"string","description":"What the submission would run: CreditAndUnderwriting, CreditOnly or UnderwritingOnly.","nullable":true},"submissionOption":{"type":"string","description":"The submission type: Preliminary, Interim or Final.","nullable":true},"creditOption":{"type":"string","description":"How credit would reach the casefile: Reissue, OrderNew or UsePrevious.","nullable":true},"creditProvider":{"type":"string","description":"With no reissue: the agency and saved credential the loan's report is brought into the casefile from.","nullable":true},"creditReissue":{"$ref":"#/components/schemas/DuReissuePreview"},"creditOrder":{"$ref":"#/components/schemas/DuOrderPreview"},"summary":{"type":"string","description":"The preview in words, for the person to read before they confirm.","nullable":true}},"additionalProperties":false,"description":"What a DU submission would do, shown before it is confirmed. It is built from the loan and the request alone: nothing is sent to the Loan Origination System, Fannie Mae or the credit agency to make it."},"DuReissuePreview":{"type":"object","properties":{"agencyName":{"type":"string","description":"The agency; null when the LOS's saved agency account is used.","nullable":true},"referenceNumber":{"type":"string","description":"The agency's reference (file) number of the report that would be reissued.","nullable":true},"loginName":{"type":"string","description":"The login name the caller typed. Never a saved credential's login.","nullable":true},"savedCredential":{"type":"string","description":"The saved credential used (nickname and owner), when one is.","nullable":true},"borrowers":{"type":"array","items":{"type":"string"},"description":"Every borrower on the loan: the one joint report applies to all of them.","nullable":true},"needsAgencyPassword":{"type":"boolean","description":"True when the confirming call must carry the agency password (a typed login)."}},"additionalProperties":false,"description":"The existing credit report a DU submission would bring onto the loan first: the agency, reference number and login to use."},"DuOrderPreview":{"type":"object","properties":{"agencyName":{"type":"string","description":"The agency DO orders from, and whose account is billed.","nullable":true},"agencyDuCode":{"type":"string","description":"The agency's DU code, e.g. \"200\" for Fannie Mae's Test Credit Agency.","nullable":true},"loginName":{"type":"string","description":"The login name the caller typed. Never a saved credential's login.","nullable":true},"savedCredential":{"type":"string","description":"The saved credential used (nickname and owner), when one is.","nullable":true},"borrowers":{"type":"array","items":{"type":"string"},"description":"Every borrower on the loan: the new report covers all of them.","nullable":true},"loanHasCreditReport":{"type":"boolean","description":"True when the loan already has a credit report, which the new one is different from."},"needsAgencyPassword":{"type":"boolean","description":"True when the confirming call must carry the agency password (a typed login)."}},"additionalProperties":false,"description":"What a DU submission that orders a new credit report would order and bill."},"AusRunResult":{"type":"object","properties":{"id":{"type":"string","description":"Unique id (GUID) of this automated underwriting run; use it as the runId when reading the run's findings.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the run belongs to.","format":"uuid"},"ausType":{"type":"string","description":"The automated underwriting system the run is for: DU (Fannie Mae Desktop Underwriter) or LPA (Freddie Mac Loan Product Advisor).","nullable":true},"source":{"type":"string","description":"Where the run came from: Submitted when it was submitted through Henge, or Imported when it was read in from an existing DU casefile or LPA key.","nullable":true},"casefileId":{"type":"string","description":"The DU casefile id the run belongs to. A later submission on the same loan reuses the casefile. Null for an LPA run.","nullable":true},"lpaKey":{"type":"string","description":"The Freddie Mac LPA key of an LPA run; null for a DU run.","nullable":true},"recommendation":{"type":"string","description":"The underwriting recommendation as text, for example Approve/Eligible. Null when the run has none, such as a credit-only run or a run that ended in an error.","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 no result was returned.","format":"int32","nullable":true},"result":{"type":"string","description":"The name of resultCode, for example the DU or LPA outcome it stands for. Null when there is no result code.","nullable":true},"riskClass":{"type":"string","description":"For an LPA result, its risk class: Accept or Caution. Null for a DU run or when there is no result.","nullable":true},"status":{"type":"string","description":"How the run ended: Completed (it went through and its result was read back), Submitted (it was accepted but the result could not be read back yet; a later check or loan sync picks it up) or Error (it was refused; message says why).","nullable":true},"casefileStatus":{"type":"string","description":"The status of the DU casefile as last read. Often empty, because the casefile status is not read for every run.","nullable":true},"message":{"type":"string","description":"For a run with status Error, why it was refused; otherwise usually empty.","nullable":true},"creditReissued":{"type":"boolean","description":"True when the broker's existing credit report was reissued onto the loan as part of this run, false when it was not (for example when the report already on the loan was used)."},"creditAgencyDuCode":{"type":"string","description":"The DU code of the credit reporting agency whose report the run used; null when no agency was named.","nullable":true},"creditAgencyName":{"type":"string","description":"Name of the credit reporting agency whose report the run used; null when no agency was named.","nullable":true},"creditReferenceNumber":{"type":"string","description":"The agency's reference (file) number of the report that was reissued; null when no report was reissued.","nullable":true},"creditOption":{"type":"string","description":"How credit reached the casefile on a submission: Reissue (the broker's existing report), OrderNew (a new report ordered) or UsePrevious (the report already in the casefile). Null on an import.","nullable":true},"orderingOption":{"type":"string","description":"What the run did: CreditAndUnderwriting, CreditOnly or UnderwritingOnly. Null on an import and on runs made before this was recorded.","nullable":true},"submissionOption":{"type":"string","description":"The submission type: Preliminary, Interim or Final. Null on an import and on runs made before this was recorded.","nullable":true},"creditReportId":{"type":"string","description":"The id of the credit report that was ordered for the run (credit option OrderNew), as the underwriting system returned it; null when none was named.","nullable":true},"findingsDocumentId":{"type":"string","description":"Id of the loan document that holds the DU findings report for this run; null when no findings report was filed.","format":"uuid","nullable":true},"hasFindings":{"type":"boolean","description":"True when the run's findings are available as data through the findings route; false for older runs made before findings were read as data."},"ltv":{"type":"string","description":"The findings' LTV as DU prints it (\"75.00%\"); null when there are no findings or DU states none.","nullable":true},"debtToIncomeRatio":{"type":"string","description":"The findings' debt-to-income ratio as DU prints it; null when absent.","nullable":true},"closeByDate":{"type":"string","description":"The date DU says the casefile must close by, as DU prints it (\"03/01/2027\"); null when it states none.","nullable":true},"submittedBy":{"type":"string","description":"Id of the user who submitted the run; null for an import or a run without a recorded submitter.","format":"uuid","nullable":true},"submittedByName":{"type":"string","description":"The submitter's display name, read with the run list (`GET .../aus/runs`); null on a run without a submitter, one whose user is gone, and on the result of a submit or a status check.","nullable":true},"brokerNmlsId":{"type":"string","description":"The broker NMLS id sent with the submission; null when none was sent.","nullable":true},"submittedUtc":{"type":"string","description":"When the run was recorded, in UTC (ISO 8601).","format":"date-time"}},"additionalProperties":false,"description":"One run, as the run history and the submit return it. Never carries a credential."},"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}/aus/du/submit":{"post":{"tags":["Credit and underwriting"],"summary":"Previews, then runs, Fannie Mae DU on a loan application.","description":"**Required scope:** `run:aus`\n\nTwo calls. With no confirmationToken nothing is submitted: you get what the run would do and a single-use token (15 minutes, for the same acting user and loan). Call again with the token to submit; THAT SENDS THE LOAN TO FANNIE MAE THROUGH THE LOS AND ADDS A RUN TO THE LOAN'S HISTORY. The run uses a default saved credit credential: the acting user's own when they have one, else the loan company's, or the credential named in creditReissue (creditCredentialId and the report's referenceNumber, the same on both calls). A loan missing application data is refused with the fields named, a loan with no default credential to use is refused, and the agency's or DU's refusal comes back with its message. If the answer is a run with status Submitted, DU had not answered in time: do not submit again, call the status check.","operationId":"LoanApplicationAus_SubmitToDu","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":"Empty to preview; the preview's confirmationToken to submit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDuSubmitRequest"}}}},"responses":{"200":{"description":"The preview, or the run","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerDuSubmitResponse"}}}},"400":{"description":"The loan cannot be submitted, the token is not valid for this call, or the application has no acting user","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":"DU, the LOS or the agency refused the submission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Reads the DU findings of an AUS run as data.

> \*\*Required scope:\*\* \`run:aus\`\
> \
> Name the run with runId (from the runs list), or leave it out for the newest run that has findings. A run made before findings were read as data, or whose findings could not be read, has none and is a 404.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"AusRunFindings":{"type":"object","properties":{"runId":{"type":"string","description":"Id (GUID) of the run the findings belong to.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the run belongs to.","format":"uuid"},"findingsDocumentId":{"type":"string","description":"Id of the loan document that holds the findings report the data was read from; null when none was filed.","format":"uuid","nullable":true},"findings":{"$ref":"#/components/schemas/DuFindings"}},"additionalProperties":false,"description":"The findings of one DU run, as the run findings route returns them."},"DuFindings":{"type":"object","properties":{"recommendation":{"type":"string","description":"The recommendation as the report states it, e.g. \"Approve/Ineligible\".","nullable":true},"casefileId":{"type":"string","description":"The DU casefile id the findings report is for.","nullable":true},"submissionNumber":{"type":"integer","description":"The number of the submission within the casefile, as the report states it; null when the report states none.","format":"int32","nullable":true},"submissionDate":{"type":"string","description":"The submission's date and time as the report prints them, e.g. \"11/18/2026 - 09:10AM\" (no time zone is stated).","nullable":true},"duVersion":{"type":"string","description":"The DU version that produced the findings, as the report prints it.","nullable":true},"creditReportId":{"type":"string","description":"The id of the credit report the findings were run on, as the report prints it; null when it prints none.","nullable":true},"lenderLoanNumber":{"type":"string","description":"The lender's loan number on the casefile, as the report prints it.","nullable":true},"borrowers":{"type":"string","description":"The borrowers' names on one line, as the report prints them.","nullable":true},"figures":{"$ref":"#/components/schemas/DuFindingsFigures"},"closeByDate":{"type":"string","description":"The date DU says the casefile must close by (the date in its credit-expiry message), as the report prints it; null when it states none.","nullable":true},"sections":{"type":"array","items":{"$ref":"#/components/schemas/DuFindingsSection"},"description":"DU's sections in DU's order; a section the parser does not know is kept under the name DU gave it.","nullable":true},"closingNote":{"type":"string","description":"What the report says after its recommendation, its own field; null when there is none.","nullable":true},"parserVersion":{"type":"integer","description":"The version of the parser that read the report; 0 for findings stored before it was kept. Findings of an older version are read again from the filed report.","format":"int32"}},"additionalProperties":false,"description":"A DU Underwriting Findings report read as data: the recommendation, the casefile's facts, the summary figures DU reports and its messages by section. Every value is DU's own text (a figure keeps its formatting, for example 75.00%), so nothing is reinterpreted; a figure DU does not state is null."},"DuFindingsFigures":{"type":"object","properties":{"ltv":{"type":"string","description":"Loan-to-value ratio as DU prints it, for example 75.00%; null when DU states none.","nullable":true},"cltv":{"type":"string","description":"Combined loan-to-value ratio as DU prints it; null when DU states none.","nullable":true},"hcltv":{"type":"string","description":"Home equity combined loan-to-value ratio (HCLTV) as DU prints it; null when DU states none.","nullable":true},"debtToIncomeRatio":{"type":"string","description":"Total debt-to-income ratio as DU prints it, for example 41.50%; null when DU states none.","nullable":true},"housingExpenseRatio":{"type":"string","description":"Housing expense (front-end) ratio as DU prints it; null when DU states none.","nullable":true},"totalLoanAmount":{"type":"string","description":"Total loan amount as DU prints it, in dollars; null when DU states none.","nullable":true},"noteRate":{"type":"string","description":"Note rate as DU prints it, in percent; null when DU states none.","nullable":true},"loanType":{"type":"string","description":"Loan type as DU prints it, for example Conventional; null when DU states none.","nullable":true},"term":{"type":"string","description":"Loan term as DU prints it; null when DU states none.","nullable":true},"amortization":{"type":"string","description":"Amortization type as DU prints it, for example Fixed Rate; null when DU states none.","nullable":true},"purpose":{"type":"string","description":"Loan purpose as DU prints it, for example Purchase or Refinance; null when DU states none.","nullable":true},"refinancePurpose":{"type":"string","description":"Refinance purpose as DU prints it; null when the loan is not a refinance or DU states none.","nullable":true},"appraisedValue":{"type":"string","description":"Appraised (or estimated) property value as DU prints it, in dollars; null when DU states none.","nullable":true},"occupancy":{"type":"string","description":"Occupancy as DU prints it, for example Principal Residence; null when DU states none.","nullable":true},"propertyType":{"type":"string","description":"Property type as DU prints it; null when DU states none.","nullable":true},"units":{"type":"string","description":"Number of units as DU prints it; null when DU states none.","nullable":true},"propertyAddress":{"type":"string","description":"Subject property address as DU prints it, on one line; null when DU states none.","nullable":true}},"additionalProperties":false,"description":"The summary figures a findings report states about the loan."},"DuFindingsSection":{"type":"object","properties":{"name":{"type":"string","description":"The heading as DU prints it, with the spaces around a slash dropped (\"Risk/Eligibility\").","nullable":true},"messages":{"type":"array","items":{"$ref":"#/components/schemas/DuFindingsMessage"},"description":"The messages DU printed in this section, in the order of the report.","nullable":true}},"additionalProperties":false},"DuFindingsMessage":{"type":"object","properties":{"number":{"type":"integer","description":"DU's number of the message in the report (the \"2.\" before its text); null for a bulleted one.","format":"int32","nullable":true},"messageId":{"type":"string","description":"DU's message id, the four digits after \"Msg\" (\"0027\"); null when the report prints none.","nullable":true},"text":{"type":"string","description":"The message's full text, unedited except that its \"Msg ####\" marker is its own field.","nullable":true},"table":{"$ref":"#/components/schemas/DuFindingsTable"}},"additionalProperties":false},"DuFindingsTable":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"},"description":"The column headings of the table, as DU prints them.","nullable":true},"rows":{"type":"array","items":{"type":"array","items":{"type":"string"}},"description":"The rows of the table; each row is a list of cell texts in column order.","nullable":true}},"additionalProperties":false,"description":"A table DU prints under a message: column headings and rows of text."},"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}/aus/findings":{"get":{"tags":["Credit and underwriting"],"summary":"Reads the DU findings of an AUS run as data.","description":"**Required scope:** `run:aus`\n\nName the run with runId (from the runs list), or leave it out for the newest run that has findings. A run made before findings were read as data, or whose findings could not be read, has none and is a 404.","operationId":"LoanApplicationAus_GetFindings","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":"runId","in":"query","description":"The run whose findings to read, an `id` from `GET /loan-applications/{id}/aus/runs`. Leave it out for the newest run that has findings; a run with none answers 404.","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":"Findings retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AusRunFindings"}}}},"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 findings 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"}}}}}}}}}
```

## Lists a loan application's AUS runs.

> \*\*Required scope:\*\* \`run:aus\`\
> \
> Every DU submission made from the portal and every DO/DU or LPA import, newest first.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"GetAusRunsResponse":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the runs belong to.","format":"uuid"},"latest":{"$ref":"#/components/schemas/AusRunResult"},"runs":{"type":"array","items":{"$ref":"#/components/schemas/AusRunResult"},"description":"Every run, newest first.","nullable":true}},"additionalProperties":false},"AusRunResult":{"type":"object","properties":{"id":{"type":"string","description":"Unique id (GUID) of this automated underwriting run; use it as the runId when reading the run's findings.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the run belongs to.","format":"uuid"},"ausType":{"type":"string","description":"The automated underwriting system the run is for: DU (Fannie Mae Desktop Underwriter) or LPA (Freddie Mac Loan Product Advisor).","nullable":true},"source":{"type":"string","description":"Where the run came from: Submitted when it was submitted through Henge, or Imported when it was read in from an existing DU casefile or LPA key.","nullable":true},"casefileId":{"type":"string","description":"The DU casefile id the run belongs to. A later submission on the same loan reuses the casefile. Null for an LPA run.","nullable":true},"lpaKey":{"type":"string","description":"The Freddie Mac LPA key of an LPA run; null for a DU run.","nullable":true},"recommendation":{"type":"string","description":"The underwriting recommendation as text, for example Approve/Eligible. Null when the run has none, such as a credit-only run or a run that ended in an error.","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 no result was returned.","format":"int32","nullable":true},"result":{"type":"string","description":"The name of resultCode, for example the DU or LPA outcome it stands for. Null when there is no result code.","nullable":true},"riskClass":{"type":"string","description":"For an LPA result, its risk class: Accept or Caution. Null for a DU run or when there is no result.","nullable":true},"status":{"type":"string","description":"How the run ended: Completed (it went through and its result was read back), Submitted (it was accepted but the result could not be read back yet; a later check or loan sync picks it up) or Error (it was refused; message says why).","nullable":true},"casefileStatus":{"type":"string","description":"The status of the DU casefile as last read. Often empty, because the casefile status is not read for every run.","nullable":true},"message":{"type":"string","description":"For a run with status Error, why it was refused; otherwise usually empty.","nullable":true},"creditReissued":{"type":"boolean","description":"True when the broker's existing credit report was reissued onto the loan as part of this run, false when it was not (for example when the report already on the loan was used)."},"creditAgencyDuCode":{"type":"string","description":"The DU code of the credit reporting agency whose report the run used; null when no agency was named.","nullable":true},"creditAgencyName":{"type":"string","description":"Name of the credit reporting agency whose report the run used; null when no agency was named.","nullable":true},"creditReferenceNumber":{"type":"string","description":"The agency's reference (file) number of the report that was reissued; null when no report was reissued.","nullable":true},"creditOption":{"type":"string","description":"How credit reached the casefile on a submission: Reissue (the broker's existing report), OrderNew (a new report ordered) or UsePrevious (the report already in the casefile). Null on an import.","nullable":true},"orderingOption":{"type":"string","description":"What the run did: CreditAndUnderwriting, CreditOnly or UnderwritingOnly. Null on an import and on runs made before this was recorded.","nullable":true},"submissionOption":{"type":"string","description":"The submission type: Preliminary, Interim or Final. Null on an import and on runs made before this was recorded.","nullable":true},"creditReportId":{"type":"string","description":"The id of the credit report that was ordered for the run (credit option OrderNew), as the underwriting system returned it; null when none was named.","nullable":true},"findingsDocumentId":{"type":"string","description":"Id of the loan document that holds the DU findings report for this run; null when no findings report was filed.","format":"uuid","nullable":true},"hasFindings":{"type":"boolean","description":"True when the run's findings are available as data through the findings route; false for older runs made before findings were read as data."},"ltv":{"type":"string","description":"The findings' LTV as DU prints it (\"75.00%\"); null when there are no findings or DU states none.","nullable":true},"debtToIncomeRatio":{"type":"string","description":"The findings' debt-to-income ratio as DU prints it; null when absent.","nullable":true},"closeByDate":{"type":"string","description":"The date DU says the casefile must close by, as DU prints it (\"03/01/2027\"); null when it states none.","nullable":true},"submittedBy":{"type":"string","description":"Id of the user who submitted the run; null for an import or a run without a recorded submitter.","format":"uuid","nullable":true},"submittedByName":{"type":"string","description":"The submitter's display name, read with the run list (`GET .../aus/runs`); null on a run without a submitter, one whose user is gone, and on the result of a submit or a status check.","nullable":true},"brokerNmlsId":{"type":"string","description":"The broker NMLS id sent with the submission; null when none was sent.","nullable":true},"submittedUtc":{"type":"string","description":"When the run was recorded, in UTC (ISO 8601).","format":"date-time"}},"additionalProperties":false,"description":"One run, as the run history and the submit return it. Never carries a credential."},"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}/aus/runs":{"get":{"tags":["Credit and underwriting"],"summary":"Lists a loan application's AUS runs.","description":"**Required scope:** `run:aus`\n\nEvery DU submission made from the portal and every DO/DU or LPA import, newest first.","operationId":"LoanApplicationAus_GetRuns","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":"Runs retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAusRunsResponse"}}}},"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"}}}}}}}}}
```

## Lists the saved credit credentials usable on a loan application.

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> Each credential shows its owner (company or user), nickname, agency, the last 3 characters of its username and whether its agency canOrder a new report. Pass its id as creditCredentialId on an order. defaultCredentialId is the acting user's own default, else the company's. No password or full username is ever returned.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"PartnerCreditCredentialsResponse":{"type":"object","properties":{"credentials":{"type":"array","items":{"$ref":"#/components/schemas/CreditCredential"},"description":"The acting user's own first (when their company allows them), then the loan company's.","nullable":true},"defaultCredentialId":{"type":"string","description":"The acting user's own default, else the loan company's.","format":"uuid","nullable":true}},"additionalProperties":false,"description":"The saved credit credentials usable on a loan, as the Partner API lists them. A partner cannot add a\r\ncredential, so unlike the web app's list there is no save target."},"CreditCredential":{"type":"object","properties":{"id":{"type":"string","description":"Id (GUID) of the saved credential; send it as creditCredentialId to use it.","format":"uuid"},"owner":{"type":"string","description":"Who owns the credential: company or user.","nullable":true},"companyId":{"type":"string","description":"The owning company (a user credential: the user's company).","format":"uuid"},"ownerUserId":{"type":"string","description":"The owning user; null for a company credential.","format":"uuid","nullable":true},"nickname":{"type":"string","description":"The name the credential is listed under; unique for one owner.","nullable":true},"agencyId":{"type":"string","description":"Id (GUID) of the credit reporting agency the credential is for.","format":"uuid","nullable":true},"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},"usernameHint":{"type":"string","description":"The last 3 characters of the hard-pull username; never more.","nullable":true},"hasSoftPullLogin":{"type":"boolean","description":"True when a soft-pull login is saved as well as the hard-pull login. The logins themselves are never returned."},"accountIdHint":{"type":"string","description":"The last 3 characters of the agency account id; empty when none is saved.","nullable":true},"isDefault":{"type":"boolean","description":"True when this is its owner's default credential, used when a request names none."},"canOrder":{"type":"boolean","description":"True when the credential's agency can take a new report order, so the credential can be used to order a new credit report."}},"additionalProperties":false,"description":"A saved credit credential: a credit reporting agency plus its login, kept by a company or by one of its users. The login is write-only: a response carries the last 3 characters of the hard-pull username and whether a soft-pull login is saved, never a password or the full username."},"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}/credit-credentials":{"get":{"tags":["Credit and underwriting"],"summary":"Lists the saved credit credentials usable on a loan application.","description":"**Required scope:** `read:loan-applications`\n\nEach credential shows its owner (company or user), nickname, agency, the last 3 characters of its username and whether its agency canOrder a new report. Pass its id as creditCredentialId on an order. defaultCredentialId is the acting user's own default, else the company's. No password or full username is ever returned.","operationId":"CreditReports_GetCreditCredentials","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":"Credentials retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCreditCredentialsResponse"}}}},"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"}}}}}}}}}
```

## Reissues a broker's existing credit report onto a loan application with a saved credit credential.

> \*\*Required scope:\*\* \`order:credit-reports\`\
> \
> WRITES TO THE LOS AND REPLACES THE LOAN'S LIABILITIES THERE WITH THE REPORT'S. Send borrowers (each with the agency's reference number) and, optionally, creditCredentialId from GET credit-credentials; with none, the default credential is used and with no default the request is refused. The credential's agency and login are used and never returned. A credential the acting user may not use on the loan is a 403. The agency's refusal comes back as a 422 with its message and nothing on the loan changes.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"PartnerReissueCreditReportRequest":{"required":["borrowers"],"type":"object","properties":{"creditCredentialId":{"type":"string","description":"A credential from `GET loan-applications/{id}/credit-credentials`. Leave it out to use the default one. A credential the acting user may not use on the loan is a 403.","format":"uuid","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/ReissueCreditReportBorrower"},"description":"One entry per borrower on the report. The same reference number on every borrower is one joint report."},"reportType":{"$ref":"#/components/schemas/CreditReportType"}},"additionalProperties":false,"description":"Body of the Partner API's credit report reissue. The agency and login come from a saved credit credential\r\n(`creditCredentialId`, or the default one when it is left out); a partner types no login and adds no credential. `reportType`: HardPull when left out."},"ReissueCreditReportBorrower":{"required":["borrowerId","referenceNumber"],"type":"object","properties":{"borrowerId":{"type":"string","description":"Id (GUID) of the borrower on the loan the report covers.","format":"uuid"},"referenceNumber":{"type":"string","description":"The agency's reference (file) number of the report for this borrower. The same number on every borrower means one joint report."},"instantViewPassword":{"type":"string","description":"The report's Instant View Password, needed for a report on another lender's account. Optional; leave blank when not needed. The same value goes on every borrower of a joint report; it is used for the one request and never stored.","nullable":true}},"additionalProperties":false},"CreditReportType":{"enum":["SoftPull","HardPull"],"type":"string","description":"How a credit report is pulled: SoftPull (no inquiry on the borrower's file) or HardPull (leaves an inquiry and is billed with the card in billingInformation)."},"ReissueCreditReportResult":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the report was reissued onto.","format":"uuid"},"agency":{"$ref":"#/components/schemas/CreditReportingAgencyResult"},"reportType":{"type":"string","description":"HardPull or SoftPull: how the report was pulled.","nullable":true},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/ReissueCreditReportBorrowerResult"},"description":"Each borrower the reissue landed for, with the agency's reference number and the scores read back.","nullable":true},"importedLiabilityCount":{"type":"integer","description":"Number of liabilities imported from the reissued report.","format":"int32"},"issues":{"type":"array","items":{"type":"string"},"description":"Follow-up steps that did not land (such as the liability or document sync); they are retried on the next sync.","nullable":true},"reissuedTimestamp":{"type":"string","description":"When the report was reissued, in UTC (ISO 8601).","format":"date-time"},"savedCredentialId":{"type":"string","description":"The id of the credential a typed login was saved as; null when nothing was saved.","format":"uuid","nullable":true}},"additionalProperties":false,"description":"What a credit report reissue did. Scores are what the Loan Origination System read back from the agency; issues are follow-up steps that did not land and will be retried on the next sync."},"CreditReportingAgencyResult":{"type":"object","properties":{"id":{"type":"string","description":"Id (GUID) of the agency; send it as agencyId on a reissue.","format":"uuid"},"name":{"type":"string","description":"The agency's name.","nullable":true},"duCode":{"type":"string","description":"The agency's Fannie Mae DU credit provider code, for example 001.","nullable":true},"freddieCode":{"type":"string","description":"The agency's Freddie Mac LPA code; null while not available.","nullable":true},"platform":{"type":"string","description":"The agency's credit platform; null while not available.","nullable":true},"canOrder":{"type":"boolean","description":"True when the agency can take a new report order, so a saved credential for it can order a new report. False means the agency is for reissue and automated underwriting only."},"isDuOnly":{"type":"boolean","description":"True for an agency that can only be named for a new report ordered through a DU submission (such as Fannie Mae's test credit agency); it is refused for a reissue or a credit report order."}},"additionalProperties":false,"description":"A credit reporting agency a broker can reissue a credit report from, as the agencies list returns it."},"ReissueCreditReportBorrowerResult":{"type":"object","properties":{"borrowerId":{"type":"string","description":"Id (GUID) of the borrower on the loan.","format":"uuid"},"firstName":{"type":"string","description":"Borrower's first name.","nullable":true},"lastName":{"type":"string","description":"Borrower's last name.","nullable":true},"referenceNumber":{"type":"string","description":"The agency's reference (file) number of the borrower's report.","nullable":true},"creditScores":{"type":"array","items":{"$ref":"#/components/schemas/PosCreditScore"},"description":"The bureau scores read back for the borrower.","nullable":true},"representativeScore":{"type":"integer","description":"The score used for the borrower: the middle of three bureau scores, the lower of two, or the only one. Null when there are no scores.","format":"int32","nullable":true}},"additionalProperties":false},"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."},"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}/credit-report/reissue":{"post":{"tags":["Credit and underwriting"],"summary":"Reissues a broker's existing credit report onto a loan application with a saved credit credential.","description":"**Required scope:** `order:credit-reports`\n\nWRITES TO THE LOS AND REPLACES THE LOAN'S LIABILITIES THERE WITH THE REPORT'S. Send borrowers (each with the agency's reference number) and, optionally, creditCredentialId from GET credit-credentials; with none, the default credential is used and with no default the request is refused. The credential's agency and login are used and never returned. A credential the acting user may not use on the loan is a 403. The agency's refusal comes back as a 422 with its message and nothing on the loan changes.","operationId":"CreditReports_ReissueCreditReport","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 credential, and each borrower's reference number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerReissueCreditReportRequest"}}}},"responses":{"200":{"description":"Credit report reissued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReissueCreditReportResult"}}}},"400":{"description":"Missing or invalid details, no credential to use, or the application has no acting user","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, or the credential may not be used on this loan","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 agency or the LOS refused the reissue","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Orders a credit report on a loan application's credit report task.

> \*\*Required scope:\*\* \`order:credit-reports\`\
> \
> Billed. Requires creditTermsAccepted = true, a report type, the borrower's identity and current address, and for a HardPull the card and its billing address. A missing detail is refused with a 400 rather than defaulted, and a task that already has a report is refused; use liabilities/import-from-credit-report to import an existing report. WHEN A RETRY IS SAFE: the task is claimed before the vendor is asked, and the claim takes the vendor's report number as soon as the vendor answers. (1) 409 CreditOrderInProgress: another order for the task is in flight; nothing was sent, so wait and read the task, then retry only if it never completes. (2) 200 with alreadyOrdered = true: the vendor already accepted an order (creditReportNumber) and this call was not billed; its import did not finish, so bring it in with liabilities/import-from-credit-report. (3) A call that times out, gets a 5xx or fails in an unknown way after the request was sent leaves the task claimed for 10 minutes: retrying inside that window returns 409 CreditOrderInProgress and bills nothing. (4) After 10 minutes with no vendor answer a retry is sent to the vendor and the response's message says it may duplicate an order the vendor received, so check the vendor account for a second charge. (5) A vendor refusal (a 4xx such as a bad login, a 422, a connection that never opened) leaves nothing claimed: correct it and retry at once. An order rejected for no file keeps its report number as a Failed order and a re-order is allowed.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"CreditReportOrderRequest":{"required":["borrowers","creditTermsAccepted","reportType"],"type":"object","properties":{"reportType":{"$ref":"#/components/schemas/CreditReportType"},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportBorrower"},"description":"Exactly one borrower: first, last name, SSN, birth date and current address, with a co-borrower\r\nnested as coBorrower for a joint report."},"billingInformation":{"$ref":"#/components/schemas/BillingInformation"},"creditTermsAccepted":{"type":"boolean","description":"Must be true: the borrower has authorized this credit pull and accepted its fee."},"creditCredentialId":{"type":"string","description":"Optional. The saved credit credential to order on, from `GET loan-applications/{id}/credit-credentials`:\r\nthe loan company's, or the acting user's own. Its agency must be able to order (`canOrder`). Left out, the\r\ncompany's default credential that can order is used, else the Henge account. The credential's saved login\r\nis used; it is never part of a request.","format":"uuid","nullable":true},"creditVendorAccountId":{"type":"string","description":"The earlier name of `creditCredentialId`, kept as its alias. When both are sent the credential id wins.","format":"uuid","nullable":true}},"additionalProperties":false,"description":"A credit report order, carrying what the web app's credit report form collects. Ordering is\r\nbilled, so nothing is defaulted: a missing detail refuses the order with a 400. For a HardPull also send billingInformation with the card and its billing address; for a SoftPull it is ignored."},"CreditReportType":{"enum":["SoftPull","HardPull"],"type":"string","description":"How a credit report is pulled: SoftPull (no inquiry on the borrower's file) or HardPull (leaves an inquiry and is billed with the card in billingInformation)."},"CreditReportBorrower":{"required":["birthDate","currentAddress","firstName","lastName","ssn"],"type":"object","properties":{"firstName":{"type":"string","description":"Borrower's legal first name, as on their ID. Required when ordering a credit report."},"lastName":{"type":"string","description":"Borrower's legal last name, as on their ID. Required when ordering a credit report."},"middleName":{"type":"string","description":"Borrower's middle name or initial; optional.","nullable":true},"suffixName":{"type":"string","description":"Name suffix such as Jr or III; optional.","nullable":true},"birthDate":{"type":"string","description":"Borrower's date of birth. Required when ordering a credit report."},"currentAddress":{"$ref":"#/components/schemas/CreditReportAddress"},"previousAddresses":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportAddress"},"description":"Prior addresses of the borrower, when the report needs them; optional.","nullable":true},"creditScores":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportCreditScore"},"description":"Bureau credit scores for the borrower, as returned by a credit report. Not used on an order request.","nullable":true},"liabilities":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportLiability"},"description":"Liabilities read from the credit report for the borrower. Not used on an order request.","nullable":true},"ssn":{"type":"string","description":"Borrower's Social Security number, nine digits (dashes are accepted and removed). Required when ordering a credit report; never returned in a response."},"coBorrower":{"allOf":[{"$ref":"#/components/schemas/CreditReportBorrower"}],"description":"The co-borrower, nested here for a joint report. Takes the same fields as the borrower."}},"additionalProperties":false,"description":"A borrower on a credit report order: name, birth date, Social Security number and current address, with a co-borrower nested for a joint report. In a returned report it also carries the scores and liabilities. The same fields are required on its coBorrower when one is sent."},"CreditReportAddress":{"type":"object","properties":{"street":{"type":"string","description":"Street address, including unit number.","nullable":true},"city":{"type":"string","description":"City.","nullable":true},"state":{"type":"string","description":"Two-letter state code.","nullable":true},"zipCode":{"type":"string","description":"ZIP code, five digits or ZIP+4.","nullable":true}},"additionalProperties":false,"description":"A postal address. All four fields are required for a borrower's currentAddress and for a HardPull's billing address; previousAddresses are not checked."},"CreditReportCreditScore":{"type":"object","properties":{"source":{"$ref":"#/components/schemas/CreditScoreSource"},"score":{"type":"string","description":"The credit score as a number in text, for example 742.","nullable":true}},"additionalProperties":false},"CreditScoreSource":{"enum":["Equifax","Experian","TransUnion"],"type":"string","description":"The credit bureau a score came from: Equifax, Experian or TransUnion."},"CreditReportLiability":{"type":"object","properties":{"name":{"type":"string","description":"Name of the account or creditor as the credit report lists it.","nullable":true},"amount":{"type":"number","description":"Outstanding balance, in dollars.","format":"double"},"monthlyPayment":{"type":"number","description":"Monthly payment, in dollars.","format":"double"},"isExpense":{"type":"boolean","description":"True when the account is counted as a recurring expense rather than a debt to be paid off."},"accountNumber":{"type":"string","description":"The account number as the credit report prints it (typically masked).","nullable":true},"accountHolderName":{"type":"string","description":"Name of the account holder as the credit report lists it.","nullable":true},"creditorName":{"type":"string","description":"Name of the creditor that holds the account.","nullable":true},"isJointDesignator":{"type":"boolean","description":"The report marks the account with a joint ECOA designator (joint contractual liability or joint participating). Not part of the order request."}},"additionalProperties":false},"BillingInformation":{"type":"object","properties":{"address":{"$ref":"#/components/schemas/CreditReportAddress"},"creditCard":{"$ref":"#/components/schemas/CreditCard"}},"additionalProperties":false,"description":"The card a hard-pull credit report is charged to and that card's billing address. Required for a HardPull and ignored for a SoftPull."},"CreditCard":{"type":"object","properties":{"cardNumber":{"type":"integer","description":"The card number, 12 to 19 digits, with no spaces or dashes.","format":"int64"},"cvv":{"type":"string","description":"The card security code, 3 or 4 digits.","nullable":true},"expiration":{"type":"string","description":"The card expiration month, formatted YYYY-MM.","nullable":true},"year":{"type":"integer","description":"Not used: send the expiration month and year together in expiration, formatted YYYY-MM.","format":"int32"}},"additionalProperties":false,"description":"The payment card charged for a hard-pull credit report. Sent for the order only and never returned. For a HardPull, cardNumber, cvv and expiration are required."},"CreditReportOrderResult":{"required":["alreadyOrdered","hasBankruptcy","hasCollections"],"type":"object","properties":{"creditReportNumber":{"type":"string","description":"The agency's number (file number) of the report that was ordered; use it to import liabilities or reissue later.","nullable":true},"creditReportType":{"type":"string","description":"SoftPull or HardPull, as the agency reports it.","nullable":true},"status":{"$ref":"#/components/schemas/Status"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Error"},"description":"Problems the agency reported for the order; empty when it succeeded.","nullable":true},"hasBankruptcy":{"type":"boolean","description":"True when the report shows a bankruptcy."},"hasCollections":{"type":"boolean","description":"True when the report shows collection accounts."},"borrowers":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportOrderBorrowerScores"},"description":"The borrowers covered by the report and the bureau scores returned for each.","nullable":true},"fileOutcomes":{"type":"array","items":{"$ref":"#/components/schemas/CreditFileOutcome"},"description":"Per-borrower, per-bureau results of the pull: whether each bureau returned a file. Empty when the agency reported none.","nullable":true},"failureReason":{"type":"string","description":"Set when the vendor issued a report number but no bureau returned a file: the task was put back to\r\nRejected with this reason, and nothing was imported. Null on a successful order.","nullable":true},"alreadyOrdered":{"type":"boolean","description":"True when the task already had an order the vendor accepted: nothing was ordered or billed by this call, and\r\n`creditReportNumber` is that order's."},"message":{"type":"string","description":"Why an existing order was returned and how to bring its report in, or a warning that this order may duplicate one the\r\nvendor received without answering. Null otherwise.","nullable":true}},"additionalProperties":false,"description":"What a credit report order returns: the report number, status, bureau scores and any errors. The borrowers' Social Security numbers and the report itself are never part of it; the report is filed on the task and in the loan's documents, and its liabilities are imported onto the loan."},"Status":{"type":"object","properties":{"statusCode":{"type":"string","description":"The agency's status code for the order.","nullable":true},"statusDescription":{"type":"string","description":"The agency's text for the status code.","nullable":true}},"additionalProperties":false,"description":"The outcome of a credit report order as the credit agency reports it."},"Error":{"type":"object","properties":{"type":{"type":"string","description":"The kind of problem the agency reported.","nullable":true},"errorMessage":{"type":"string","description":"The agency's message describing the problem.","nullable":true}},"additionalProperties":false},"CreditReportOrderBorrowerScores":{"type":"object","properties":{"firstName":{"type":"string","description":"Borrower's first name as on the report.","nullable":true},"lastName":{"type":"string","description":"Borrower's last name as on the report.","nullable":true},"creditScores":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportCreditScore"},"description":"The scores the bureaus returned for this borrower, one per bureau; a bureau that returned none is absent.","nullable":true}},"additionalProperties":false,"description":"A borrower covered by an ordered report, with the bureau scores returned."},"CreditFileOutcome":{"type":"object","properties":{"borrowerName":{"type":"string","description":"Name of the borrower the credit file was pulled for.","nullable":true},"bureau":{"type":"string","description":"The credit bureau the file was requested from: Equifax, Experian or TransUnion.","nullable":true},"resultStatus":{"type":"string","description":"The MISMO CreditFileResultStatusType: FileReturned, NoFileReturnedCreditFreeze, ...","nullable":true},"message":{"type":"string","description":"The vendor's own text for this file, when it sent one.","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}/tasks/{taskId}/credit-report/order":{"post":{"tags":["Credit and underwriting"],"summary":"Orders a credit report on a loan application's credit report task.","description":"**Required scope:** `order:credit-reports`\n\nBilled. Requires creditTermsAccepted = true, a report type, the borrower's identity and current address, and for a HardPull the card and its billing address. A missing detail is refused with a 400 rather than defaulted, and a task that already has a report is refused; use liabilities/import-from-credit-report to import an existing report. WHEN A RETRY IS SAFE: the task is claimed before the vendor is asked, and the claim takes the vendor's report number as soon as the vendor answers. (1) 409 CreditOrderInProgress: another order for the task is in flight; nothing was sent, so wait and read the task, then retry only if it never completes. (2) 200 with alreadyOrdered = true: the vendor already accepted an order (creditReportNumber) and this call was not billed; its import did not finish, so bring it in with liabilities/import-from-credit-report. (3) A call that times out, gets a 5xx or fails in an unknown way after the request was sent leaves the task claimed for 10 minutes: retrying inside that window returns 409 CreditOrderInProgress and bills nothing. (4) After 10 minutes with no vendor answer a retry is sent to the vendor and the response's message says it may duplicate an order the vendor received, so check the vendor account for a second charge. (5) A vendor refusal (a 4xx such as a bad login, a 422, a connection that never opened) leaves nothing claimed: correct it and retry at once. An order rejected for no file keeps its report number as a Failed order and a re-order is allowed.","operationId":"CreditReports_OrderCreditReport","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":"taskId","in":"path","description":"The loan application's credit report task.","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":"What the web app's credit report form collects. Nothing is defaulted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditReportOrderRequest"}}}},"responses":{"200":{"description":"Credit report ordered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditReportOrderResult"}}}},"400":{"description":"Missing or invalid order details, or the task cannot be ordered on","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 or task not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"An order for the task is in flight (code CreditOrderInProgress); nothing was sent to the vendor","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The credit vendor could not pull the report","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 a loan application's income verifications.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"IncomeVerificationOrderSummary":{"type":"object","properties":{"orderId":{"type":"string","description":"Id of the verification order (GUID).","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id of the loan application the order is for (GUID).","format":"uuid"},"borrowerId":{"type":"string","description":"Id of the borrower being verified (GUID).","format":"uuid","nullable":true},"status":{"type":"string","description":"Order status, for example Ordered, InProgress, Completed, Failed or Cancelled.","nullable":true},"providerStatus":{"type":"string","description":"The vendor's own status code, e.g. `user_session_started`.","nullable":true},"reportReferenceNumber":{"type":"string","description":"The reference number the automated underwriting systems take. Set once the report is ready.","nullable":true},"hasReportDeficiencies":{"type":"boolean","description":"The report is ready but the vendor says it may contain deficiencies."},"failureMessage":{"type":"string","description":"The vendor's message when the order failed.","nullable":true},"verifiedDate":{"type":"string","description":"When the vendor verified the borrower's income and employment. No validity or expiry is computed from it.","format":"date","nullable":true},"verifiedEmployer":{"type":"string","description":"The employer the vendor verified.","nullable":true},"reportDocumentId":{"type":"string","description":"The vault document the report was filed as.","format":"uuid","nullable":true},"satisfiedTaskIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The borrower's tasks this verification satisfied.","nullable":true},"referenceInLos":{"type":"boolean","description":"Whether the report reference was written to the LOS and read back. Null when none was attempted.","nullable":true},"alreadyOrdered":{"type":"boolean","description":"This call found an order already in place and placed nothing."},"needsAttention":{"type":"boolean","description":"True when the order is still open well past when the verification provider should have answered, so staff should look at it. Computed on read from the order's age."},"attentionMessage":{"type":"string","description":"What staff should do about an order that needsAttention; null otherwise.","nullable":true},"createdUtc":{"type":"string","description":"When the order was placed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedUtc":{"type":"string","description":"When the order was last updated (ISO 8601 date and time, UTC).","format":"date-time","nullable":true}},"additionalProperties":false,"description":"An income and employment verification order and its result."},"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}/income-verifications":{"get":{"tags":["Credit and underwriting"],"summary":"Lists a loan application's income verifications.","description":"**Required scope:** `read:loan-applications`","operationId":"LoanApplicationIncomeVerifications_GetIncomeVerifications","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":"Verifications retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IncomeVerificationOrderSummary"}}}}},"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, or the feature is off for the caller","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Orders an income and employment verification.

> \*\*Required scope:\*\* \`order:voe-voi\`\
> \
> Billed scope. The borrower must have authorized the verification, else the order is refused with a 422 before the vendor is called. A borrower with an open or completed order gets it back with alreadyOrdered = true, so a retry cannot bill twice. A vendor failure is a Failed order with its failureMessage.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"PartnerOrderIncomeVerificationRequest":{"required":["borrowerId"],"type":"object","properties":{"borrowerId":{"type":"string","description":"The borrower to verify. Must be on the loan and must have authorized the verification.","format":"uuid"}},"additionalProperties":false,"description":"The body of an income and employment verification order."},"IncomeVerificationOrderSummary":{"type":"object","properties":{"orderId":{"type":"string","description":"Id of the verification order (GUID).","format":"uuid"},"loanApplicationId":{"type":"string","description":"Id of the loan application the order is for (GUID).","format":"uuid"},"borrowerId":{"type":"string","description":"Id of the borrower being verified (GUID).","format":"uuid","nullable":true},"status":{"type":"string","description":"Order status, for example Ordered, InProgress, Completed, Failed or Cancelled.","nullable":true},"providerStatus":{"type":"string","description":"The vendor's own status code, e.g. `user_session_started`.","nullable":true},"reportReferenceNumber":{"type":"string","description":"The reference number the automated underwriting systems take. Set once the report is ready.","nullable":true},"hasReportDeficiencies":{"type":"boolean","description":"The report is ready but the vendor says it may contain deficiencies."},"failureMessage":{"type":"string","description":"The vendor's message when the order failed.","nullable":true},"verifiedDate":{"type":"string","description":"When the vendor verified the borrower's income and employment. No validity or expiry is computed from it.","format":"date","nullable":true},"verifiedEmployer":{"type":"string","description":"The employer the vendor verified.","nullable":true},"reportDocumentId":{"type":"string","description":"The vault document the report was filed as.","format":"uuid","nullable":true},"satisfiedTaskIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The borrower's tasks this verification satisfied.","nullable":true},"referenceInLos":{"type":"boolean","description":"Whether the report reference was written to the LOS and read back. Null when none was attempted.","nullable":true},"alreadyOrdered":{"type":"boolean","description":"This call found an order already in place and placed nothing."},"needsAttention":{"type":"boolean","description":"True when the order is still open well past when the verification provider should have answered, so staff should look at it. Computed on read from the order's age."},"attentionMessage":{"type":"string","description":"What staff should do about an order that needsAttention; null otherwise.","nullable":true},"createdUtc":{"type":"string","description":"When the order was placed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedUtc":{"type":"string","description":"When the order was last updated (ISO 8601 date and time, UTC).","format":"date-time","nullable":true}},"additionalProperties":false,"description":"An income and employment verification order and its result."},"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}/income-verifications":{"post":{"tags":["Credit and underwriting"],"summary":"Orders an income and employment verification.","description":"**Required scope:** `order:voe-voi`\n\nBilled scope. The borrower must have authorized the verification, else the order is refused with a 422 before the vendor is called. A borrower with an open or completed order gets it back with alreadyOrdered = true, so a retry cannot bill twice. A vendor failure is a Failed order with its failureMessage.","operationId":"LoanApplicationIncomeVerifications_OrderIncomeVerification","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 borrower to verify.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerOrderIncomeVerificationRequest"}}}},"responses":{"200":{"description":"The order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomeVerificationOrderSummary"}}}},"400":{"description":"No borrower given, or the calling application has no acting user","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 or borrower not found, or the feature is off for the caller","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"The borrower has not authorized the verification","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Evaluates the stated-income pre-approval on a scenario without saving anything.

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> Nothing is written: not the loan, its status, the vault, the service bus or email, and no credit is pulled (the stored soft pull is used). Omitted inputs use the loan's values, so an empty body evaluates the loan as it stands. 409 when the primary borrower has no soft pull, or when verified approval is complete, the loan skipped the stated-income pre-approval or it is a DSCR loan.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"PreApprovalInputs":{"type":"object","properties":{"purchasePrice":{"type":"number","description":"Purchase price of the property, in dollars. Left out, it is read from the loan.","format":"double","nullable":true},"downPayment":{"type":"number","description":"The loan amount is the purchase price less this.","format":"double","nullable":true},"annualIncome":{"type":"number","description":"Borrower's annual income, in dollars. Left out, it is read from the loan.","format":"double","nullable":true},"occupancy":{"type":"string","description":"How the property will be used: PrimaryResidence, SecondaryResidence or Investment.","nullable":true},"incomeType":{"type":"string","description":"Type of the borrower's income, for example W2-earner.","nullable":true},"loanType":{"type":"string","description":"VA, FHA, Conventional or NonConforming. Left out, it is inferred from the loan as before.","nullable":true},"hasAny":{"type":"boolean","description":"True when the caller named at least one input.","readOnly":true}},"additionalProperties":false,"description":"The scenario a pre-approval is run on. Every field is optional; one left out is read from the loan,\r\nso an empty body evaluates the loan as it stands. A down payment or purchase price must leave a loan amount above zero and not above the purchase price."},"EvaluatePreApprovalResponse":{"type":"object","properties":{"creditPulledOn":{"type":"string","description":"When the stored soft credit pull the evaluation used was pulled, ISO 8601 in UTC.","format":"date-time","nullable":true},"creditScore":{"type":"integer","description":"The qualifying credit score used for the decision.","format":"int32"},"downPayment":{"type":"number","description":"Down payment in dollars (purchase price less loan amount).","format":"double"},"downPaymentPercentage":{"type":"number","description":"Down payment as a percent of the purchase price, rounded to a whole number.","format":"double"},"ltv":{"type":"number","description":"Loan-to-value ratio in percent, rounded to a whole number.","format":"double"},"dti":{"type":"number","description":"Debt-to-income ratio in percent, rounded to a whole number: monthly debt payments from the credit report over monthly income.","format":"double"},"loanAmount":{"type":"number","description":"Loan amount the pre-approval was run for, in dollars.","format":"double"},"maxLoanAmount":{"type":"number","description":"Largest loan amount the borrower qualifies for, in dollars.","format":"double"},"issuedDate":{"type":"string","description":"When the pre-approval was issued, ISO 8601 in UTC.","format":"date-time"},"expirationDate":{"type":"string","description":"When the pre-approval letter expires, ISO 8601; null when not approved.","format":"date-time","nullable":true},"denialReasons":{"type":"array","items":{"type":"string"},"description":"Why the pre-approval was denied; empty or null when it was approved.","nullable":true},"rate":{"type":"number","description":"Best note rate found for the scenario, in percent (for example 6.875); null when not approved.","format":"double","nullable":true},"loanProgram":{"type":"string","description":"The program priced, as a term label such as 30-Yr.; null when not approved.","nullable":true},"preApprovalDocumentId":{"type":"string","description":"Unique identifier (GUID) of the pre-approval letter in the loan's documents, when one was created.","format":"uuid","nullable":true},"totalDebt":{"type":"number","description":"Total balance of the liabilities on the credit report, in dollars.","format":"double"},"monthlyPayment":{"type":"number","description":"Total monthly payments of those liabilities, in dollars.","format":"double"},"annualIncome":{"type":"number","description":"Annual income used, in dollars.","format":"double"},"purchasePrice":{"type":"number","description":"Purchase price used, in dollars.","format":"double"},"loanType":{"type":"string","description":"Loan type the rules were applied for: VA, FHA, Conventional or NonConforming.","nullable":true},"occupancy":{"type":"string","description":"Occupancy used: PrimaryResidence, SecondaryResidence or Investment.","nullable":true},"incomeType":{"type":"string","description":"Income type used, for example W2-earner.","nullable":true},"hasBankruptcy":{"type":"boolean","description":"True when the credit report shows a bankruptcy."},"hasCollections":{"type":"boolean","description":"True when the credit report shows collections."},"citizenship":{"type":"string","description":"The primary borrower's citizenship status.","nullable":true},"isApproved":{"type":"boolean","description":"True when there are no denial reasons. Read-only.","readOnly":true}},"additionalProperties":false,"description":"The process response, plus when the stored soft pull it was run on was pulled."},"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}/pre-approval/evaluate":{"post":{"tags":["Credit and underwriting"],"summary":"Evaluates the stated-income pre-approval on a scenario without saving anything.","description":"**Required scope:** `read:loan-applications`\n\nNothing is written: not the loan, its status, the vault, the service bus or email, and no credit is pulled (the stored soft pull is used). Omitted inputs use the loan's values, so an empty body evaluates the loan as it stands. 409 when the primary borrower has no soft pull, or when verified approval is complete, the loan skipped the stated-income pre-approval or it is a DSCR loan.","operationId":"PreApproval_Evaluate","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 scenario. Every field is optional and falls back to the loan's value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreApprovalInputs"}}}},"responses":{"200":{"description":"The result of the evaluation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluatePreApprovalResponse"}}}},"400":{"description":"An input is invalid","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 access token lacks the read:loan-applications scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"No soft pull on file, or a re-run is not allowed (see the code)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Runs the stated-income pre-approval, saving the inputs, the result and a new letter.

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Inputs given are saved to the loan first, then the status is written, the run is added to the pre-approval history and an approval files a new letter (the previous letter stays in the vault, retitled with its issue date). NO MAIL GOES OUT unless emailBorrowerOnSuccess is true, and then only on an approval; a denial never emails the borrower. 409 when the primary borrower has no soft pull on file, or a re-run is not allowed.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"PartnerProcessPreApprovalRequest":{"type":"object","properties":{"emailBorrowerOnSuccess":{"type":"boolean","description":"Email the borrower the approved letter when the result is an approval. Defaults to false: no mail\r\ngoes out unless this is true. A denial never emails the borrower."},"purchasePrice":{"type":"number","description":"Purchase price of the property, in dollars. Left out, it is read from the loan.","format":"double","nullable":true},"downPayment":{"type":"number","description":"The loan amount is the purchase price less this.","format":"double","nullable":true},"annualIncome":{"type":"number","description":"Borrower's annual income, in dollars. Left out, it is read from the loan.","format":"double","nullable":true},"occupancy":{"type":"string","description":"How the property will be used: PrimaryResidence, SecondaryResidence or Investment.","nullable":true},"incomeType":{"type":"string","description":"Type of the borrower's income, for example W2-earner.","nullable":true},"loanType":{"type":"string","description":"VA, FHA, Conventional or NonConforming. Left out, it is inferred from the loan as before.","nullable":true},"hasAny":{"type":"boolean","description":"True when the caller named at least one input.","readOnly":true}},"additionalProperties":false,"description":"The body of `pre-approval/process`: the scenario, all optional, and whether the borrower is emailed. A down payment or purchase price must leave a loan amount above zero and not above the purchase price."},"ProcessPreApprovalResponse":{"type":"object","properties":{"creditScore":{"type":"integer","description":"The qualifying credit score used for the decision.","format":"int32"},"downPayment":{"type":"number","description":"Down payment in dollars (purchase price less loan amount).","format":"double"},"downPaymentPercentage":{"type":"number","description":"Down payment as a percent of the purchase price, rounded to a whole number.","format":"double"},"ltv":{"type":"number","description":"Loan-to-value ratio in percent, rounded to a whole number.","format":"double"},"dti":{"type":"number","description":"Debt-to-income ratio in percent, rounded to a whole number: monthly debt payments from the credit report over monthly income.","format":"double"},"loanAmount":{"type":"number","description":"Loan amount the pre-approval was run for, in dollars.","format":"double"},"maxLoanAmount":{"type":"number","description":"Largest loan amount the borrower qualifies for, in dollars.","format":"double"},"issuedDate":{"type":"string","description":"When the pre-approval was issued, ISO 8601 in UTC.","format":"date-time"},"expirationDate":{"type":"string","description":"When the pre-approval letter expires, ISO 8601; null when not approved.","format":"date-time","nullable":true},"denialReasons":{"type":"array","items":{"type":"string"},"description":"Why the pre-approval was denied; empty or null when it was approved.","nullable":true},"rate":{"type":"number","description":"Best note rate found for the scenario, in percent (for example 6.875); null when not approved.","format":"double","nullable":true},"loanProgram":{"type":"string","description":"The program priced, as a term label such as 30-Yr.; null when not approved.","nullable":true},"preApprovalDocumentId":{"type":"string","description":"Unique identifier (GUID) of the pre-approval letter in the loan's documents, when one was created.","format":"uuid","nullable":true},"totalDebt":{"type":"number","description":"Total balance of the liabilities on the credit report, in dollars.","format":"double"},"monthlyPayment":{"type":"number","description":"Total monthly payments of those liabilities, in dollars.","format":"double"},"annualIncome":{"type":"number","description":"Annual income used, in dollars.","format":"double"},"purchasePrice":{"type":"number","description":"Purchase price used, in dollars.","format":"double"},"loanType":{"type":"string","description":"Loan type the rules were applied for: VA, FHA, Conventional or NonConforming.","nullable":true},"occupancy":{"type":"string","description":"Occupancy used: PrimaryResidence, SecondaryResidence or Investment.","nullable":true},"incomeType":{"type":"string","description":"Income type used, for example W2-earner.","nullable":true},"hasBankruptcy":{"type":"boolean","description":"True when the credit report shows a bankruptcy."},"hasCollections":{"type":"boolean","description":"True when the credit report shows collections."},"citizenship":{"type":"string","description":"The primary borrower's citizenship status.","nullable":true},"isApproved":{"type":"boolean","description":"True when there are no denial reasons. Read-only.","readOnly":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}/pre-approval/process":{"post":{"tags":["Credit and underwriting"],"summary":"Runs the stated-income pre-approval, saving the inputs, the result and a new letter.","description":"**Required scope:** `update:loan-applications`\n\nInputs given are saved to the loan first, then the status is written, the run is added to the pre-approval history and an approval files a new letter (the previous letter stays in the vault, retitled with its issue date). NO MAIL GOES OUT unless emailBorrowerOnSuccess is true, and then only on an approval; a denial never emails the borrower. 409 when the primary borrower has no soft pull on file, or a re-run is not allowed.","operationId":"PreApproval_Process","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 scenario and emailBorrowerOnSuccess. Every field is optional.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerProcessPreApprovalRequest"}}}},"responses":{"200":{"description":"The result of the run","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessPreApprovalResponse"}}}},"400":{"description":"An input is invalid","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 access token lacks the update:loan-applications scope.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"A re-run is not allowed (see the code)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Loan Application Task Credit Report Types

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Credit and underwriting","description":"**Credit reports:** Order a credit report on a loan's credit report task, or reissue a report the broker already pulled onto the loan. Both use a saved credit credential, named by its id from the credit credentials list; a login is never sent in the request. Ordering is billed by the credit agency, so its scope is granted on request.\n\n**Automated underwriting:** Run Fannie Mae Desktop Underwriter (DU) on a loan and read its AUS runs and findings. A submission takes two calls: the first returns a preview and a single-use confirmation token, the second sends the token and runs DU. For a run left `Submitted`, use the status check rather than submitting again. A run names the credit agency login it used (never a password), so the reads need the same scope as a submission. The scope is granted on request.\n\n**Pre-approval:** Stated-income pre-approval on a loan: evaluate a scenario without saving anything, or process it to save the inputs and the result and produce a new pre-approval letter.\n\n**Income verification:** Order an income and employment verification (VOE/VOI) for a borrower, and read the orders on a loan with their status and results. An order needs the borrower's consent on the loan, and a borrower already verified is not billed again. Ordering is billed by the verification provider, so its scope is granted on request. Until income verification is turned on for your company, every route here answers 404.\n\n`GET /types/credit-report-types` lists the credit report types an order accepts.\n\n**Scopes:** `order:credit-reports`, `order:voe-voi`, `read:loan-applications`, `read:types`, `run:aus`, `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":{"TypeResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the type; send it where an endpoint asks for this type.","format":"uuid"},"name":{"type":"string","description":"Display name of the type.","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":{"/types/credit-report-types":{"get":{"tags":["Credit and underwriting"],"summary":"Loan Application Task Credit Report Types","description":"**Required scope:** `read:types`","operationId":"Types_CreditReportTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TypeResponse"}}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The access token lacks the read:types scope.","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/credit-and-underwriting.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.
