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

# Assets And Liabilities

**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.

**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.

**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `update:loan-applications`

## List a loan's asset accounts and balances

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> Each account carries its asset type, the statements requested, the tasks linked to it and, once> \
> entered or pulled from Plaid, its asset: the balance (amount), account and institution name,> \
> source (Manual or Plaid) and the account number masked to the last four digits.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"GetAssetAccountsResponse":{"type":"object","properties":{"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/AssetAccountResponse"},"description":"The loan's asset accounts.","nullable":true},"assetsLocked":{"type":"boolean","description":"The loan has reached approval, so its assets can no longer be changed from Henge. Computed on read."},"routedTo":{"type":"string","description":"Where the write was kept: Henge or the LOS (for a locked loan). Set only by agent tools; otherwise absent.","nullable":true}},"additionalProperties":false},"AssetAccountResponse":{"type":"object","properties":{"id":{"type":"string","description":"Id of the asset account (GUID).","format":"uuid"},"name":{"type":"string","description":"Name of the account, for example \"Primary Checking\".","nullable":true},"description":{"type":"string","description":"Free-text description of the account.","nullable":true},"assetType":{"$ref":"#/components/schemas/AssetType"},"documentsNeeded":{"type":"integer","description":"How many statements the borrower is asked to provide.","format":"int32","nullable":true},"documentTimePeriod":{"$ref":"#/components/schemas/DocumentTimePeriod"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplicationTaskItem"},"description":"The document request tasks that belong to this account.","nullable":true},"createdTimestamp":{"type":"string","description":"When the account was created (ISO 8601 date and time, UTC).","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the account was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"asset":{"$ref":"#/components/schemas/Asset"},"isRequired":{"type":"boolean","description":"Whether documents for this account are required before the file can move forward."},"requiresPlaidReconnection":{"type":"boolean","description":"True when the account was linked through the bank connection and that link has expired, so the borrower must reconnect it before balances refresh."},"ownerBorrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The hdBorrowerIds of the account's owners. Null means the loan's primary borrower.","nullable":true},"potentialDuplicates":{"type":"array","items":{"$ref":"#/components/schemas/AssetPotentialDuplicate"},"description":"Other accounts on the loan that look like the same account: same institution, last four digits of the account number and owners, and a balance within tolerance. Worked out on every read; empty when there are none.","nullable":true},"notes":{"type":"array","items":{"$ref":"#/components/schemas/RecordNote"},"description":"Notes on this account, oldest first. Never sent to the LOS; empty for a borrower and on the Partner API.","nullable":true}},"additionalProperties":false,"description":"An asset account on the loan, with its requested documents and the borrowers who own it."},"AssetType":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the asset type.","format":"uuid"},"code":{"type":"string","description":"Short code of the asset type.","nullable":true},"name":{"type":"string","description":"Display name of the asset type.","nullable":true}},"additionalProperties":false,"description":"A kind of asset, for example checking or savings."},"DocumentTimePeriod":{"type":"object","properties":{"id":{"type":"string","description":"Id of the period (GUID).","format":"uuid","nullable":true},"code":{"type":"string","description":"Stable code of the period; send it as documentTimePeriodCode.","nullable":true},"name":{"type":"string","description":"Display name of the period.","nullable":true}},"additionalProperties":false,"description":"The period a statement covers when documents are requested for an asset account, for example Monthly."},"LoanApplicationTaskItem":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task or condition (GUID).","format":"uuid","nullable":true},"taskStatusTimestamp":{"type":"string","description":"When the task's status last changed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"When the task was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"createdTimestamp":{"type":"string","description":"When the task was created (ISO 8601 date and time, UTC).","format":"date-time"},"item":{"$ref":"#/components/schemas/Item"},"assignedToBorrowerId":{"type":"string","description":"Id (GUID) of the borrower the task is assigned to. Null for a user task or a task for the loan's borrowers generally.","format":"uuid","nullable":true},"status":{"$ref":"#/components/schemas/TaskStatus"},"document":{"$ref":"#/components/schemas/Document"},"rejectionReasonNote":{"type":"string","description":"The reviewer's free-text note when the task's document was rejected.","nullable":true},"rejectionReason":{"$ref":"#/components/schemas/TaskRejectionReason"},"creditReportType":{"$ref":"#/components/schemas/PosCreditReportType"},"isForPrimaryBorrower":{"type":"boolean","description":"True when the task is for the primary borrower, false when it is for the co-borrower. Null when it is for neither in particular.","nullable":true},"isRequired":{"type":"boolean","description":"Whether the task must be completed before the file can move forward."},"isAccountMainTask":{"type":"boolean","description":"True for the main task of an asset account, the one that requests the account's statements."},"questionType":{"$ref":"#/components/schemas/TaskQuestionType"},"yesNoResponse":{"type":"boolean","description":"The borrower's answer to a yes/no question task. Null until answered.","nullable":true},"shortAnswer":{"type":"string","description":"The borrower's answer to a short-answer question task. Null until answered.","nullable":true},"assignedToUser":{"$ref":"#/components/schemas/LoanAppUser"},"name":{"type":"string","description":"Display name of the task or condition.","nullable":true},"description":{"type":"string","description":"Description of the task. For a condition, the condition text: the reworded text when staff edited it in Henge, otherwise the LOS text.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the task among its siblings, lowest first.","format":"int32","nullable":true},"type":{"$ref":"#/components/schemas/TaskType"},"code":{"type":"string","description":"Short code of the task.","nullable":true},"conditionNo":{"type":"integer","description":"Condition number in the LOS. Conditions only.","format":"int32","nullable":true},"conditionCategory":{"type":"string","description":"Category of the condition in the LOS. Conditions only.","nullable":true},"conditionDueDate":{"type":"string","description":"Due date of the condition (ISO 8601 date). Conditions only.","format":"date","nullable":true},"conditionAssignedUserFullName":{"type":"string","description":"Full name of the user the condition is assigned to in the LOS. Conditions only.","nullable":true},"conditionBorrowerFullName":{"type":"string","description":"Full name of the borrower the condition is for. Conditions only.","nullable":true},"conditionIsHidden":{"type":"boolean","description":"True when the condition is hidden from the borrower. Staff roles still see it; a caller that receives a hidden condition is entitled to it.","nullable":true},"conditionSourceText":{"type":"string","description":"The LOS's original condition text. Set only when staff reworded the condition in Henge, in which case description carries the rewording; null otherwise.","nullable":true},"isConditionTextEdited":{"type":"boolean","description":"True when staff reworded this condition in Henge. The rewording is never sent to the LOS."},"notes":{"type":"string","description":"Notes on the task or condition.","nullable":true},"taskAssignmentType":{"$ref":"#/components/schemas/TaskAssignmentType"},"isSubscribed":{"type":"boolean","description":"Whether the calling user is subscribed to status-change notifications for this task. Null when not computed.","nullable":true},"conditionTaskId":{"type":"string","description":"Id (GUID) of the condition this task belongs to. Null on conditions and on standalone tasks. Read on create; ignored on update.","format":"uuid","nullable":true},"assetAccountId":{"type":"string","description":"Id (GUID) of the asset account the task belongs to, if any. Needed on create only for a Transaction History task; ignored on update.","format":"uuid","nullable":true},"assetAccountName":{"type":"string","description":"Name of the asset account the task belongs to. Response only, and filled only where the response includes accounts.","nullable":true},"creditReportNumber":{"type":"string","description":"For credit report tasks, the credit agency's report number.","nullable":true},"requestTaskId":{"type":"string","description":"Id of the first task of the document request this task is a copy of (one task per document). Null on the first task itself. On create, naming any task of a request makes the new task a copy that joins that request.","format":"uuid","nullable":true},"requestedStartDate":{"type":"string","description":"Transaction History tasks only: the first day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"requestedEndDate":{"type":"string","description":"Transaction History tasks only: the last day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"ownerPairId":{"type":"string","description":"Id (GUID) of the borrower pair staff made the owner of this task or condition. Empty when the owner is worked out on read.","format":"uuid","nullable":true},"appliesToAllPairs":{"type":"boolean","description":"True for a whole-loan task or condition that every borrower pair sees."}},"additionalProperties":false,"description":"A task or condition on a loan: a document request, a question, a user task or a condition from the LOS."},"Item":{"type":"object","properties":{"id":{"type":"string","description":"Id of the item (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the item; send it as the item code when you create a task.","nullable":true},"name":{"type":"string","description":"Display name of the item.","nullable":true},"groupCode":{"type":"string","description":"Code of the condition group the item's tasks are shown under. Null means Other.","nullable":true},"canCreateManually":{"type":"boolean","description":"True when staff can create a task for this item by hand."},"canUploadDocument":{"type":"boolean","description":"True when a document can be uploaded against this item."}},"additionalProperties":false,"description":"A kind of request a task can ask for, such as a specific document."},"TaskStatus":{"type":"object","properties":{"id":{"type":"string","description":"Id of the status (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the status.","nullable":true},"name":{"type":"string","description":"Display name of the status.","nullable":true}},"additionalProperties":false,"description":"The status of a task, for example Requested, Uploaded, Submitted or Accepted."},"Document":{"type":"object","properties":{"id":{"type":"string","description":"Id (GUID) of the document.","format":"uuid"},"name":{"type":"string","description":"The document's file name.","nullable":true},"externalId":{"type":"string","description":"The document's id in the Loan Origination System; empty until it has been sent there.","nullable":true},"isPdfConversionComplete":{"type":"boolean","description":"True once an uploaded file has been converted to PDF and can be opened; false while conversion is still running."},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the document belongs to.","format":"uuid","nullable":true},"loanApplicationTaskId":{"type":"string","description":"Id of the task or condition the document is attached to; null for a document uploaded straight to the loan.","format":"uuid","nullable":true},"blobName":{"type":"string","description":"The name the file is stored under. An internal storage key: download through the document routes rather than using it.","nullable":true},"createdTimestamp":{"type":"string","description":"When the document was created, in UTC (ISO 8601).","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the document was last changed, in UTC (ISO 8601).","format":"date-time"},"updatedBy":{"type":"string","description":"Id of the user who last changed the document; null when the change was automatic or unknown.","format":"uuid","nullable":true},"documentTypeId":{"type":"string","description":"Id of the platform's broad document category (such as a vault or task document). Not the loan document type, which is loanDocumentTypeId.","format":"uuid","nullable":true},"isVault":{"type":"boolean","description":"True when the document was uploaded straight to the loan's vault, false when it hangs off a\r\ntask, a condition or an asset account. Callers use it to decide what a user may do with the\r\ndocument: only a vault document can be deleted. Any document can be given a document type."},"loanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document is filed under (from the loan document types list); null when it has none.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the loan document type; null when the document has none.","nullable":true},"loanDocumentTypeExternalId":{"type":"string","description":"The loan document type's id in the Loan Origination System.","nullable":true},"loanDocumentTypeFolderName":{"type":"string","description":"Name of the folder the loan document type belongs to; null when the document has no type.","nullable":true},"description":{"type":"string","description":"A free-text description of the document; may be empty.","nullable":true},"isDeleted":{"type":"boolean","description":"True when the document has been deleted. Deleted documents are normally left out of lists."},"isInternal":{"type":"boolean","description":"True for a staff-only document that is hidden from borrowers and partner applications."},"isObsolete":{"type":"boolean","description":"The LOS no longer considers this document active. It stays visible so users can still see\r\nit, but it is not current and is never pushed back to the LOS."},"isProtected":{"type":"boolean","description":"The LOS holds the document as Protected, locked there against edits and deletion. Set and\r\ncleared by Admin and Processor through the document status endpoints, or in the LOS itself."},"losStatus":{"$ref":"#/components/schemas/LoanDocumentLosStatus"},"title":{"type":"string","description":"The title shown for the document; may be empty, in which case the file name is shown.","nullable":true},"splitFromDocumentId":{"type":"string","description":"On a part of a split combined PDF: the id of the original document it was cut from. Null on every other document.","format":"uuid","nullable":true},"splitStartPage":{"type":"integer","description":"On a part of a split combined PDF: the first page of the original it holds. Null on every other document.","format":"int32","nullable":true},"splitEndPage":{"type":"integer","description":"On a part of a split combined PDF: the last page of the original it holds. Null on every other document.","format":"int32","nullable":true},"isUnsorted":{"type":"boolean","description":"True while the document was bulk-uploaded to the loan with no task and no type and nobody has\r\nsorted it. It is held out of the LOS until it is put on a task or given a type."},"hasNoFile":{"type":"boolean","description":"True for a staff-only entry the Loan Origination System holds with no file here (a non-PDF assigned to a condition): there is nothing to open, download or move."},"intakeStatus":{"type":"string","description":"NeedsPassword or Duplicate for a bulk-uploaded document that is held for that reason; null\r\notherwise. See DocumentIntakeStatuses.","nullable":true},"duplicateOfDocumentId":{"type":"string","description":"The existing document this one repeats, when IntakeStatus is Duplicate.","format":"uuid","nullable":true},"indexStatus":{"type":"string","description":"Whether the document's text is searchable: Indexed, Pending, Failed or NotSubmitted. Set by\r\nthe document lists for staff callers; null when it was not looked up, or the lookup failed.","nullable":true},"analysis":{"$ref":"#/components/schemas/DocumentAnalysisSummary"},"internalNotes":{"type":"string","description":"Staff-only internal notes on the document, verbatim from the Loan Origination System. Returned only to callers who may see internal notes; null for everyone else.","nullable":true}},"additionalProperties":false,"description":"A document on a loan: the file, the task or condition it is attached to, its type and its status."},"LoanDocumentLosStatus":{"enum":["Active","Protected","Obsolete","Rejected","Screened"],"type":"string","description":"A loan document's status, one value per document, set here or in the LOS and kept in step both ways. The names are the LOS's own; the app shows Active as Pending, Screened as Accepted and Obsolete as Deleted."},"DocumentAnalysisSummary":{"type":"object","properties":{"status":{"type":"string","description":"Pending, Completed, Failed or Skipped. Failed reads \"Not analysed\".","nullable":true},"verdict":{"type":"string","description":"Whether the document is what was asked for: Matches, Mismatch, Unreadable or Unknown.","nullable":true},"reasonCode":{"type":"string","description":"On a Mismatch, why: WrongDocument, WrongPeriod, WrongAccount, WrongBorrower, MissingPages or Expired. On an Unreadable verdict from the page quality check, UnreadablePages.","nullable":true},"reason":{"type":"string","description":"One line in plain language explaining the verdict, written for the borrower.","nullable":true},"suggestedRejectionReasonCode":{"type":"string","description":"The seeded TaskRejectionReason code the panel pre-selects for a Mismatch.","nullable":true},"suggestedTaskId":{"type":"string","description":"Id of the task or condition the document appears to belong to; null when none matched.","format":"uuid","nullable":true},"suggestedTaskName":{"type":"string","description":"Name of the suggested task or condition.","nullable":true},"isOnSuggestedTask":{"type":"boolean","description":"False when the document sits on a different task than the best match: shown for confirmation."},"matchConfidence":{"type":"number","description":"How sure the analysis is of the suggested task, from 0 to 1.","format":"double","nullable":true},"suggestedLoanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document looks like; null when not determined.","format":"uuid","nullable":true},"suggestedLoanDocumentTypeName":{"type":"string","description":"Name of the suggested loan document type.","nullable":true},"suggestedTitle":{"type":"string","description":"The title the analysis suggests for the document, built from what it read (for example the account and statement period).","nullable":true},"titleAppliedAutomatically":{"type":"boolean","description":"True when the document's current title was set by the analysis rather than by a person."},"previousTitle":{"type":"string","description":"The title the document had before the analysis renamed it; null when it was not renamed.","nullable":true},"autoNameDisabled":{"type":"boolean","description":"True when a person undid an automatic name; the analysis never renames this document again."},"filedByType":{"type":"boolean","description":"Filed under the suggested LOS type and folder by the analysis, for a person to confirm or correct."},"duplicateOfDocumentId":{"type":"string","description":"Id of an earlier document on the loan with the same content, when this one repeats it; otherwise null.","format":"uuid","nullable":true},"supersedesDocumentId":{"type":"string","description":"Id of an earlier document this one replaces (a newer version of the same document); otherwise null.","format":"uuid","nullable":true},"supersededByDocumentId":{"type":"string","description":"Id of a newer document that replaces this one; otherwise null.","format":"uuid","nullable":true},"outcome":{"type":"string","description":"What a person did with the suggestion: Confirmed, Corrected, Rejected or Ignored; null while no one has acted.","nullable":true},"outcomeAt":{"type":"string","description":"When the person acted on the suggestion, in UTC (ISO 8601); null while no one has.","format":"date-time","nullable":true},"coveredPeriods":{"type":"array","items":{"type":"string"},"description":"For a request that needs a span of statements, the months the uploaded documents cover, each formatted yyyy-MM.","nullable":true},"missingPeriods":{"type":"array","items":{"type":"string"},"description":"The requested months no uploaded document covers yet, each formatted yyyy-MM.","nullable":true},"monthsMissing":{"type":"integer","description":"How many months of the request are still missing.","format":"int32","nullable":true},"analyzedAt":{"type":"string","description":"When the analysis was done, in UTC (ISO 8601).","format":"date-time"},"splitSuggestion":{"$ref":"#/components/schemas/SplitSuggestion"},"pageIssues":{"type":"array","items":{"$ref":"#/components/schemas/PageIssue"},"description":"The pages the quality check flagged, which the Unreadable-page request names.","nullable":true}},"additionalProperties":false,"description":"What the document review shows for a document: the suggested task, type and title, the verdict and whether the title was applied automatically. The evidence and page text the analysis read are not included."},"SplitSuggestion":{"type":"object","properties":{"pageCount":{"type":"integer","description":"Number of pages in the PDF that was analysed.","format":"int32"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/SplitPartRange"},"description":"The suggested page ranges, one per document found.","nullable":true},"reason":{"type":"string","description":"The segmenter's account of why, e.g. \"3 document(s) across 12 page(s)\".","nullable":true}},"additionalProperties":false,"description":"The split suggested for a PDF that holds several documents and was not split on upload. Nothing changes until a person accepts it."},"SplitPartRange":{"type":"object","properties":{"startPage":{"type":"integer","description":"First page of the run, counting from 1.","format":"int32"},"endPage":{"type":"integer","description":"Last page of the run, inclusive.","format":"int32"},"loanDocumentTypeId":{"type":"string","description":"What the segmenter took the run to be, for the suggestion only. Never trusted when splitting.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the document type the run was taken to be, for the suggestion only.","nullable":true}},"additionalProperties":false,"description":"One run of pages of a combined PDF that is one document. 1-based, inclusive."},"PageIssue":{"type":"object","properties":{"page":{"type":"integer","description":"The page the issue is on, starting at 1.","format":"int32"},"kind":{"type":"string","description":"The problem found: Blank (no text), LowConfidence (scan quality too low to read reliably) or CutOff (text stops mid-sentence).","nullable":true}},"additionalProperties":false,"description":"A page the quality check flagged. 1-based, in the document the analysis read."},"TaskRejectionReason":{"type":"object","properties":{"id":{"type":"string","description":"Id of the rejection reason (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the rejection reason.","nullable":true},"code":{"type":"string","description":"Stable code of the rejection reason.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the reason in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"A reason a reviewer gives for rejecting a task's document."},"PosCreditReportType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the report type (GUID).","format":"uuid","nullable":true},"code":{"type":"string","description":"Stable code of the report type.","nullable":true},"name":{"type":"string","description":"Display name of the report type.","nullable":true}},"additionalProperties":false,"description":"The type of credit report a credit report task asks for."},"TaskQuestionType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the question type (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the question type.","nullable":true},"code":{"type":"string","description":"Stable code of the question type.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the question type in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"For a question task, the kind of answer it asks for, such as yes/no or a short answer."},"LoanAppUser":{"type":"object","properties":{"id":{"type":"string","description":"Id of the user (GUID).","format":"uuid"},"firstName":{"type":"string","description":"The user's first name.","nullable":true},"lastName":{"type":"string","description":"The user's last name.","nullable":true}},"additionalProperties":false,"description":"A user, such as the staff member a task is assigned to."},"TaskType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the task type.","nullable":true},"name":{"type":"string","description":"Display name of the task type.","nullable":true}},"additionalProperties":false,"description":"The kind of task."},"TaskAssignmentType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the assignment type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the assignment type.","nullable":true},"name":{"type":"string","description":"Display name of the assignment type.","nullable":true}},"additionalProperties":false,"description":"Who a task is assigned to: a borrower or a user."},"Asset":{"type":"object","properties":{"amount":{"type":"number","description":"Account balance in dollars.","format":"double"},"accountName":{"type":"string","description":"Name of the account.","nullable":true},"accountNumber":{"type":"string","description":"Account number, masked to the last four digits on reads.","nullable":true},"institutionName":{"type":"string","description":"Name of the financial institution.","nullable":true},"source":{"type":"string","description":"Where the asset came from: Manual (entered by hand), a linked bank, or the LOS.","nullable":true},"giftSource":{"type":"string","description":"Who the gift came from, for a gift asset.","nullable":true},"meridianLinkAssetType":{"type":"string","description":"The asset type as the LOS names it.","nullable":true},"isUpdatedExternally":{"type":"boolean","description":"True when the LOS or a linked bank changed the record after it was created."}},"additionalProperties":false,"description":"An asset account on a loan: its balance, institution and where the record came from."},"AssetPotentialDuplicate":{"type":"object","properties":{"assetAccountId":{"type":"string","description":"Id of the other asset account (GUID).","format":"uuid"},"differences":{"type":"array","items":{"$ref":"#/components/schemas/DuplicateDifference"},"description":"How this account differs from that one, one item per field whose values differ. Empty when they agree on every field.","nullable":true}},"additionalProperties":false,"description":"Another asset account on the loan that looks like the same account."},"DuplicateDifference":{"type":"object","properties":{"field":{"type":"string","description":"The name of the field on which the two liabilities differ.","nullable":true},"thisValue":{"type":"string","description":"The field's value on this liability, as text.","nullable":true},"otherValue":{"type":"string","description":"The field's value on the possible duplicate, as text.","nullable":true}},"additionalProperties":false,"description":"One field on which a duplicate differs from the row it is read with: the values of both rows, as text."},"RecordNote":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the note.","format":"uuid"},"text":{"type":"string","description":"The note text.","nullable":true},"authorId":{"type":"string","description":"Who wrote it; null for a system note.","format":"uuid","nullable":true},"authorName":{"type":"string","description":"Name of the note's author; null for a system note.","nullable":true},"createdTimestamp":{"type":"string","description":"When the note was written, ISO 8601 in UTC.","format":"date-time"},"source":{"type":"string","description":"Where the note was written: `UI`, `MCP` (an AI agent tool) or `System`.","nullable":true}},"additionalProperties":false,"description":"A note on a liability or an asset account, returned with that record. It stays in Henge and is not sent to the LOS."},"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}/accounts":{"get":{"tags":["Assets and liabilities"],"summary":"List a loan's asset accounts and balances","description":"**Required scope:** `read:loan-applications`\n\nEach account carries its asset type, the statements requested, the tasks linked to it and, once\r\nentered or pulled from Plaid, its asset: the balance (amount), account and institution name,\r\nsource (Manual or Plaid) and the account number masked to the last four digits.","operationId":"LoanApplicationsAssets_GetAccounts","parameters":[{"name":"id","in":"path","description":"The loan application's id (a GUID). Send the empty GUID `00000000-0000-0000-0000-000000000000` when you address the loan by `externalId` instead. A loan in another company answers 404, the same as one that does not exist.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"200":{"description":"The loan's asset accounts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAssetAccountsResponse"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Create a manual asset account

> \*\*Required scope:\*\* \`create:loan-applications\`\
> \
> As in the web app, the account is created with its main task already linked: the statements task> \
> for its asset type (savings, checking, retirement, otherwise other assets), assigned to the primary> \
> borrower and Requested. A pending net sale proceeds account's task is named after the account and> \
> created Submitted, since it takes no documents. Add the balance with POST .../accounts/{accountId}/assets.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"AssetAccountRequest":{"type":"object","properties":{"name":{"type":"string","description":"The account's name, e.g. \"Chase Checking\". Required on create.","nullable":true},"description":{"type":"string","description":"Free-text description of the account. On update, omit to keep the current value.","nullable":true},"assetTypeCode":{"type":"string","description":"The asset type's code, as returned in assetType.code by GET loan-applications/{id}/accounts.\r\nRequired on create.","nullable":true},"documentTimePeriodCode":{"type":"string","description":"The period the requested statements cover, e.g. Monthly.","nullable":true},"documentsNeeded":{"type":"integer","description":"How many statements the borrower is asked for.","format":"int32","nullable":true},"isRequired":{"type":"boolean","description":"Whether documents for this account are required before the file can move forward. On update, omit to keep the current value.","nullable":true},"ownerBorrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The borrowers (hdBorrowerId, as returned in ownerBorrowerIds) who own the account: one borrower, or both of one\r\npair for a joint account. Borrowers from two pairs, or one not on the loan, are a 400. Left out on update it keeps\r\nthe owners; an empty list removes them, and the account is the primary borrower's. Only applied where the\r\nmultiple borrower pairs setting is on.","nullable":true}},"additionalProperties":false,"description":"An asset account to create, or the fields of one to change. On update, a field left null keeps its\r\nstored value. Creating an account (POST) needs name and assetTypeCode; an update (PUT) needs at least one field."},"Modified":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the entity that was modified."},"type":{"type":"string","description":"A string indicating the type or category of the modified entity (e.g., “Webhook”, “LoanApplicationTask”).","nullable":true},"createdTimestamp":{"type":"string","description":"The timestamp when the entity was first created.","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"The timestamp when the entity was last updated.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"Represents an audit record for an entity that has been created or updated."},"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}/accounts":{"post":{"tags":["Assets and liabilities"],"summary":"Create a manual asset account","description":"**Required scope:** `create:loan-applications`\n\nAs in the web app, the account is created with its main task already linked: the statements task\r\nfor its asset type (savings, checking, retirement, otherwise other assets), assigned to the primary\r\nborrower and Requested. A pending net sale proceeds account's task is named after the account and\r\ncreated Submitted, since it takes no documents. Add the balance with POST .../accounts/{accountId}/assets.","operationId":"LoanApplicationsAssets_CreateAccount","parameters":[{"name":"id","in":"path","description":"The loan application's id (a GUID). Send the empty GUID `00000000-0000-0000-0000-000000000000` when you address the loan by `externalId` instead. A loan in another company answers 404, the same as one that does not exist.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAccountRequest"}}}},"responses":{"200":{"description":"Asset account created A create answers 200 today. It will answer 201 with a Location header from a date announced in the changelog at least 60 days ahead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Modified"}}}},"201":{"description":"Created. Will be answered instead of 200 from a date announced in the changelog at least 60 days ahead; the Location header carries the new resource's URL.","headers":{"Location":{"description":"URL of the created resource: this request's path followed by the new id.","schema":{"type":"string","format":"uri-reference"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Modified"}}}},"400":{"description":"Name or a known assetTypeCode is missing","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Update an asset account

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"AssetAccountRequest":{"type":"object","properties":{"name":{"type":"string","description":"The account's name, e.g. \"Chase Checking\". Required on create.","nullable":true},"description":{"type":"string","description":"Free-text description of the account. On update, omit to keep the current value.","nullable":true},"assetTypeCode":{"type":"string","description":"The asset type's code, as returned in assetType.code by GET loan-applications/{id}/accounts.\r\nRequired on create.","nullable":true},"documentTimePeriodCode":{"type":"string","description":"The period the requested statements cover, e.g. Monthly.","nullable":true},"documentsNeeded":{"type":"integer","description":"How many statements the borrower is asked for.","format":"int32","nullable":true},"isRequired":{"type":"boolean","description":"Whether documents for this account are required before the file can move forward. On update, omit to keep the current value.","nullable":true},"ownerBorrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The borrowers (hdBorrowerId, as returned in ownerBorrowerIds) who own the account: one borrower, or both of one\r\npair for a joint account. Borrowers from two pairs, or one not on the loan, are a 400. Left out on update it keeps\r\nthe owners; an empty list removes them, and the account is the primary borrower's. Only applied where the\r\nmultiple borrower pairs setting is on.","nullable":true}},"additionalProperties":false,"description":"An asset account to create, or the fields of one to change. On update, a field left null keeps its\r\nstored value. Creating an account (POST) needs name and assetTypeCode; an update (PUT) needs at least one field."},"Modified":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the entity that was modified."},"type":{"type":"string","description":"A string indicating the type or category of the modified entity (e.g., “Webhook”, “LoanApplicationTask”).","nullable":true},"createdTimestamp":{"type":"string","description":"The timestamp when the entity was first created.","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"The timestamp when the entity was last updated.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"Represents an audit record for an entity that has been created or updated."},"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}/accounts/{accountId}":{"put":{"tags":["Assets and liabilities"],"summary":"Update an asset account","description":"**Required scope:** `update:loan-applications`","operationId":"LoanApplicationsAssets_UpdateAccount","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":"accountId","in":"path","description":"The asset account's `id`, as `GET /loan-applications/{id}/accounts` lists it.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAccountRequest"}}}},"responses":{"200":{"description":"Asset account updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Modified"}}}},"400":{"description":"No field supplied, or an unknown code","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan or asset account not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Delete an asset account and its tasks

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"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}/accounts/{accountId}":{"delete":{"tags":["Assets and liabilities"],"summary":"Delete an asset account and its tasks","description":"**Required scope:** `delete:loan-applications`","operationId":"LoanApplicationsAssets_DeleteAccount","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":"accountId","in":"path","description":"The asset account's `id`, as `GET /loan-applications/{id}/accounts` lists it. Its tasks are deleted with it.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"204":{"description":"Asset account deleted"},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan or asset account not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Add a manual asset to an asset account

> \*\*Required scope:\*\* \`create:loan-applications\`\
> \
> For a loan already in the LOS the asset is added there too.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"ManualAssetRequest":{"type":"object","properties":{"amount":{"type":"number","description":"The account balance. Required on add.","format":"double","nullable":true},"accountName":{"type":"string","description":"Name of the account, for example Chase Checking.","nullable":true},"accountNumber":{"type":"string","description":"The full account number. Reads return it masked to the last four digits, and a masked value is\r\nrefused here, so omit it on update to keep the stored number.","nullable":true},"institutionName":{"type":"string","description":"Name of the financial institution that holds the account.","nullable":true},"giftSource":{"type":"string","description":"Who the gift came from, when the asset is a gift.","nullable":true}},"additionalProperties":false,"description":"A manually entered asset: the balance of an asset account. On update, a field left null keeps its\r\nstored value. Adding the asset (POST) needs amount; an update (PUT) needs at least one field."},"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}/accounts/{accountId}/assets":{"post":{"tags":["Assets and liabilities"],"summary":"Add a manual asset to an asset account","description":"**Required scope:** `create:loan-applications`\n\nFor a loan already in the LOS the asset is added there too.","operationId":"LoanApplicationsAssets_AddAsset","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":"accountId","in":"path","description":"The asset account's `id`, as `GET /loan-applications/{id}/accounts` lists it.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualAssetRequest"}}}},"responses":{"204":{"description":"Asset added"},"400":{"description":"Amount missing, account number masked, or the account already has an asset","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan or asset account not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Update a manual asset

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Plaid assets cannot be changed, and neither can any asset once the loan is in the LOS.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"ManualAssetRequest":{"type":"object","properties":{"amount":{"type":"number","description":"The account balance. Required on add.","format":"double","nullable":true},"accountName":{"type":"string","description":"Name of the account, for example Chase Checking.","nullable":true},"accountNumber":{"type":"string","description":"The full account number. Reads return it masked to the last four digits, and a masked value is\r\nrefused here, so omit it on update to keep the stored number.","nullable":true},"institutionName":{"type":"string","description":"Name of the financial institution that holds the account.","nullable":true},"giftSource":{"type":"string","description":"Who the gift came from, when the asset is a gift.","nullable":true}},"additionalProperties":false,"description":"A manually entered asset: the balance of an asset account. On update, a field left null keeps its\r\nstored value. Adding the asset (POST) needs amount; an update (PUT) needs at least one field."},"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}/accounts/{accountId}/assets":{"put":{"tags":["Assets and liabilities"],"summary":"Update a manual asset","description":"**Required scope:** `update:loan-applications`\n\nPlaid assets cannot be changed, and neither can any asset once the loan is in the LOS.","operationId":"LoanApplicationsAssets_UpdateAsset","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":"accountId","in":"path","description":"The asset account's `id`, as `GET /loan-applications/{id}/accounts` lists it. Its manual asset is the one changed.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualAssetRequest"}}}},"responses":{"204":{"description":"Asset updated"},"400":{"description":"No field supplied, account number masked, a Plaid asset, or a loan already in the LOS","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan, asset account or asset not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Delete an asset

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"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}/accounts/{accountId}/assets":{"delete":{"tags":["Assets and liabilities"],"summary":"Delete an asset","description":"**Required scope:** `delete:loan-applications`","operationId":"LoanApplicationsAssets_DeleteAsset","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":"accountId","in":"path","description":"The asset account's `id`, as `GET /loan-applications/{id}/accounts` lists it. Its asset is removed and the account kept.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"204":{"description":"Asset deleted"},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan, asset account or asset not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Link a task to an asset account

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"Modified":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the entity that was modified."},"type":{"type":"string","description":"A string indicating the type or category of the modified entity (e.g., “Webhook”, “LoanApplicationTask”).","nullable":true},"createdTimestamp":{"type":"string","description":"The timestamp when the entity was first created.","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"The timestamp when the entity was last updated.","format":"date-time","nullable":true}},"additionalProperties":false,"description":"Represents an audit record for an entity that has been created or updated."},"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}/accounts/{accountId}/tasks/{taskId}/link":{"post":{"tags":["Assets and liabilities"],"summary":"Link a task to an asset account","description":"**Required scope:** `update:loan-applications`","operationId":"LoanApplicationsAssets_LinkTask","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":"accountId","in":"path","description":"The asset account's `id`, as `GET /loan-applications/{id}/accounts` lists it.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"taskId","in":"path","description":"The task's `id`, as `GET /loan-applications/{id}/tasks` lists it.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"200":{"description":"Task linked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Modified"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan, asset account or task not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Unlink a task from an asset account

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `update:loan-applications`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/loan-applications/{id}/accounts/{accountId}/tasks/{taskId}/link":{"delete":{"tags":["Assets and liabilities"],"summary":"Unlink a task from an asset account","description":"**Required scope:** `update:loan-applications`","operationId":"LoanApplicationsAssets_UnlinkTask","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":"accountId","in":"path","description":"The asset account's `id`, as `GET /loan-applications/{id}/accounts` lists it.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"taskId","in":"path","description":"The task's `id`, as `GET /loan-applications/{id}/tasks` lists it. The task itself is kept.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"204":{"description":"Task unlinked"},"400":{"description":"The task is a transaction history request, which cannot leave its account","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan or task not found, or the task is not linked to that account","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Refresh a loan's Plaid assets

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Restricted, as in the web app, to Admin and Processor: the application must be configured with an> \
> acting user in its company who holds one of those roles. Plaid answers asynchronously, so the new> \
> balances appear on GET .../accounts once its report arrives. A loan with no Plaid-linked account> \
> is accepted and nothing is requested.> \
> &#x20;          &#x20;> \
> Each refresh is a new, billed Plaid asset report, so a loan is refreshed at most once every 48> \
> hours, whichever surface asks. Inside that window the request is refused with a 429, a> \
> \`Retry-After\` header in seconds, and \`lastRefreshedAt\` and \`nextRefreshAt\` (UTC)> \
> in the body; nothing is requested from Plaid.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"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}/accounts/plaid/refresh":{"post":{"tags":["Assets and liabilities"],"summary":"Refresh a loan's Plaid assets","description":"**Required scope:** `update:loan-applications`\n\nRestricted, as in the web app, to Admin and Processor: the application must be configured with an\r\nacting user in its company who holds one of those roles. Plaid answers asynchronously, so the new\r\nbalances appear on GET .../accounts once its report arrives. A loan with no Plaid-linked account\r\nis accepted and nothing is requested.\r\n            \r\nEach refresh is a new, billed Plaid asset report, so a loan is refreshed at most once every 48\r\nhours, whichever surface asks. Inside that window the request is refused with a 429, a\r\n`Retry-After` header in seconds, and `lastRefreshedAt` and `nextRefreshAt` (UTC)\r\nin the body; nothing is requested from Plaid.","operationId":"LoanApplicationsAssets_RefreshPlaidAssets","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":{"202":{"description":"Refresh requested"},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The application's acting user is not an Admin or Processor","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"The loan was refreshed too recently (code PlaidRefreshThrottled, with nextRefreshAt)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Mark asset verification as requested

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"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}/accounts/verification/mark-as-requested":{"post":{"tags":["Assets and liabilities"],"summary":"Mark asset verification as requested","description":"**Required scope:** `update:loan-applications`","operationId":"LoanApplicationsAssets_MarkVerificationAsRequested","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":{"204":{"description":"Asset verification marked as requested"},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Create a Plaid Hosted Link for a borrower

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Returns the link's id, the URL to give the borrower and when it expires. The URL is for the borrower> \
> only: anyone holding it can link a bank account to this loan until it expires, so send it to the> \
> borrower alone (redirect, text or email) and do not log or share it elsewhere.> \
> &#x20;          &#x20;> \
> Open it as a full page, in a new tab, or in an out-of-process webview (ASWebAuthenticationSession on> \
> iOS, a Custom Tab on Android). Do not embed it in an iframe: Plaid advises against it, and banks> \
> that sign in with OAuth will not work there.> \
> &#x20;          &#x20;> \
> When the borrower finishes, Henge creates an asset account for each bank they linked, with its> \
> task, and requests a Plaid asset report. \*\*Each completed link creates a billed asset report.\*\* The> \
> balances appear on GET .../accounts once Plaid's report is ready, usually within minutes. Follow the> \
> outcome with GET .../plaid/hosted-links/{linkId}.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"PlaidHostedLinkRequest":{"type":"object","properties":{"borrowerId":{"type":"string","description":"The borrower who will connect their bank: a borrower id on the loan. Defaults to the primary\r\nborrower.","format":"uuid","nullable":true},"completionRedirectUri":{"type":"string","description":"Where Plaid sends the borrower when they finish, e.g. a page on your platform or your app's own\r\nURL scheme. When omitted, Plaid shows its own completion page.","nullable":true}},"additionalProperties":false,"description":"A Plaid Hosted Link to create for a borrower. Both fields are optional, and so is the body."},"PlaidHostedLinkResponse":{"type":"object","properties":{"linkId":{"type":"string","description":"Unique identifier (GUID) of the bank-linking session; use it to check its status.","format":"uuid"},"url":{"type":"string","description":"Link to give to the borrower so they can connect a bank account to the loan. Anyone who holds it can do so until it expires, so send it only to the borrower.","nullable":true},"expiresAt":{"type":"string","description":"When the link stops working, ISO 8601 in UTC.","format":"date-time"}},"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}/plaid/hosted-links":{"post":{"tags":["Assets and liabilities"],"summary":"Create a Plaid Hosted Link for a borrower","description":"**Required scope:** `update:loan-applications`\n\nReturns the link's id, the URL to give the borrower and when it expires. The URL is for the borrower\r\nonly: anyone holding it can link a bank account to this loan until it expires, so send it to the\r\nborrower alone (redirect, text or email) and do not log or share it elsewhere.\r\n            \r\nOpen it as a full page, in a new tab, or in an out-of-process webview (ASWebAuthenticationSession on\r\niOS, a Custom Tab on Android). Do not embed it in an iframe: Plaid advises against it, and banks\r\nthat sign in with OAuth will not work there.\r\n            \r\nWhen the borrower finishes, Henge creates an asset account for each bank they linked, with its\r\ntask, and requests a Plaid asset report. **Each completed link creates a billed asset report.** The\r\nbalances appear on GET .../accounts once Plaid's report is ready, usually within minutes. Follow the\r\noutcome with GET .../plaid/hosted-links/{linkId}.","operationId":"LoanApplicationsPlaidLinks_CreateHostedLink","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":"Optional: the borrower (defaults to the primary borrower) and where Plaid sends them when they finish.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaidHostedLinkRequest"}}}},"responses":{"200":{"description":"The link to give the borrower A create answers 200 today. It will answer 201 with a Location header from a date announced in the changelog at least 60 days ahead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaidHostedLinkResponse"}}}},"201":{"description":"Created. Will be answered instead of 200 from a date announced in the changelog at least 60 days ahead; the Location header carries the new resource's URL.","headers":{"Location":{"description":"URL of the created resource: this request's path followed by the new id.","schema":{"type":"string","format":"uri-reference"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaidHostedLinkResponse"}}}},"400":{"description":"The borrower is not on the loan, or completionRedirectUri is not an absolute URI","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Get a Plaid Hosted Link's status

> \*\*Required scope:\*\* \`read:loan-applications\`\
> \
> status is pending (not finished yet), completed, expired (never finished before expiresAt) or> \
> failed (the borrower left without connecting an account, or connecting failed; see failureReason).> \
> Once completed, accounts lists the accounts the link created, account numbers masked to the last> \
> four digits. Their balances fill in when Plaid's asset report is ready.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"PlaidHostedLinkStatusResponse":{"type":"object","properties":{"linkId":{"type":"string","description":"Unique identifier (GUID) of the bank-linking session.","format":"uuid"},"loanApplicationId":{"type":"string","description":"Unique identifier (GUID) of the loan the accounts are linked to.","format":"uuid"},"borrowerId":{"type":"string","description":"Unique identifier (GUID) of the borrower the link was issued for.","format":"uuid"},"status":{"type":"string","description":"State of the session: pending, completed, expired or failed.","nullable":true},"failureReason":{"type":"string","description":"Why the session failed; null unless it failed.","nullable":true},"expiresAt":{"type":"string","description":"When the link stops working, ISO 8601 in UTC.","format":"date-time"},"createdTimestamp":{"type":"string","description":"When the session was created, ISO 8601 in UTC.","format":"date-time"},"completedTimestamp":{"type":"string","description":"When the borrower finished linking, ISO 8601 in UTC; null until then.","format":"date-time","nullable":true},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/AssetAccountResponse"},"description":"Once completed, the asset accounts the link created, with account numbers masked; empty otherwise.","nullable":true}},"additionalProperties":false},"AssetAccountResponse":{"type":"object","properties":{"id":{"type":"string","description":"Id of the asset account (GUID).","format":"uuid"},"name":{"type":"string","description":"Name of the account, for example \"Primary Checking\".","nullable":true},"description":{"type":"string","description":"Free-text description of the account.","nullable":true},"assetType":{"$ref":"#/components/schemas/AssetType"},"documentsNeeded":{"type":"integer","description":"How many statements the borrower is asked to provide.","format":"int32","nullable":true},"documentTimePeriod":{"$ref":"#/components/schemas/DocumentTimePeriod"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/LoanApplicationTaskItem"},"description":"The document request tasks that belong to this account.","nullable":true},"createdTimestamp":{"type":"string","description":"When the account was created (ISO 8601 date and time, UTC).","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the account was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"asset":{"$ref":"#/components/schemas/Asset"},"isRequired":{"type":"boolean","description":"Whether documents for this account are required before the file can move forward."},"requiresPlaidReconnection":{"type":"boolean","description":"True when the account was linked through the bank connection and that link has expired, so the borrower must reconnect it before balances refresh."},"ownerBorrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The hdBorrowerIds of the account's owners. Null means the loan's primary borrower.","nullable":true},"potentialDuplicates":{"type":"array","items":{"$ref":"#/components/schemas/AssetPotentialDuplicate"},"description":"Other accounts on the loan that look like the same account: same institution, last four digits of the account number and owners, and a balance within tolerance. Worked out on every read; empty when there are none.","nullable":true},"notes":{"type":"array","items":{"$ref":"#/components/schemas/RecordNote"},"description":"Notes on this account, oldest first. Never sent to the LOS; empty for a borrower and on the Partner API.","nullable":true}},"additionalProperties":false,"description":"An asset account on the loan, with its requested documents and the borrowers who own it."},"AssetType":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the asset type.","format":"uuid"},"code":{"type":"string","description":"Short code of the asset type.","nullable":true},"name":{"type":"string","description":"Display name of the asset type.","nullable":true}},"additionalProperties":false,"description":"A kind of asset, for example checking or savings."},"DocumentTimePeriod":{"type":"object","properties":{"id":{"type":"string","description":"Id of the period (GUID).","format":"uuid","nullable":true},"code":{"type":"string","description":"Stable code of the period; send it as documentTimePeriodCode.","nullable":true},"name":{"type":"string","description":"Display name of the period.","nullable":true}},"additionalProperties":false,"description":"The period a statement covers when documents are requested for an asset account, for example Monthly."},"LoanApplicationTaskItem":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task or condition (GUID).","format":"uuid","nullable":true},"taskStatusTimestamp":{"type":"string","description":"When the task's status last changed (ISO 8601 date and time, UTC).","format":"date-time","nullable":true},"updatedTimestamp":{"type":"string","description":"When the task was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"createdTimestamp":{"type":"string","description":"When the task was created (ISO 8601 date and time, UTC).","format":"date-time"},"item":{"$ref":"#/components/schemas/Item"},"assignedToBorrowerId":{"type":"string","description":"Id (GUID) of the borrower the task is assigned to. Null for a user task or a task for the loan's borrowers generally.","format":"uuid","nullable":true},"status":{"$ref":"#/components/schemas/TaskStatus"},"document":{"$ref":"#/components/schemas/Document"},"rejectionReasonNote":{"type":"string","description":"The reviewer's free-text note when the task's document was rejected.","nullable":true},"rejectionReason":{"$ref":"#/components/schemas/TaskRejectionReason"},"creditReportType":{"$ref":"#/components/schemas/PosCreditReportType"},"isForPrimaryBorrower":{"type":"boolean","description":"True when the task is for the primary borrower, false when it is for the co-borrower. Null when it is for neither in particular.","nullable":true},"isRequired":{"type":"boolean","description":"Whether the task must be completed before the file can move forward."},"isAccountMainTask":{"type":"boolean","description":"True for the main task of an asset account, the one that requests the account's statements."},"questionType":{"$ref":"#/components/schemas/TaskQuestionType"},"yesNoResponse":{"type":"boolean","description":"The borrower's answer to a yes/no question task. Null until answered.","nullable":true},"shortAnswer":{"type":"string","description":"The borrower's answer to a short-answer question task. Null until answered.","nullable":true},"assignedToUser":{"$ref":"#/components/schemas/LoanAppUser"},"name":{"type":"string","description":"Display name of the task or condition.","nullable":true},"description":{"type":"string","description":"Description of the task. For a condition, the condition text: the reworded text when staff edited it in Henge, otherwise the LOS text.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the task among its siblings, lowest first.","format":"int32","nullable":true},"type":{"$ref":"#/components/schemas/TaskType"},"code":{"type":"string","description":"Short code of the task.","nullable":true},"conditionNo":{"type":"integer","description":"Condition number in the LOS. Conditions only.","format":"int32","nullable":true},"conditionCategory":{"type":"string","description":"Category of the condition in the LOS. Conditions only.","nullable":true},"conditionDueDate":{"type":"string","description":"Due date of the condition (ISO 8601 date). Conditions only.","format":"date","nullable":true},"conditionAssignedUserFullName":{"type":"string","description":"Full name of the user the condition is assigned to in the LOS. Conditions only.","nullable":true},"conditionBorrowerFullName":{"type":"string","description":"Full name of the borrower the condition is for. Conditions only.","nullable":true},"conditionIsHidden":{"type":"boolean","description":"True when the condition is hidden from the borrower. Staff roles still see it; a caller that receives a hidden condition is entitled to it.","nullable":true},"conditionSourceText":{"type":"string","description":"The LOS's original condition text. Set only when staff reworded the condition in Henge, in which case description carries the rewording; null otherwise.","nullable":true},"isConditionTextEdited":{"type":"boolean","description":"True when staff reworded this condition in Henge. The rewording is never sent to the LOS."},"notes":{"type":"string","description":"Notes on the task or condition.","nullable":true},"taskAssignmentType":{"$ref":"#/components/schemas/TaskAssignmentType"},"isSubscribed":{"type":"boolean","description":"Whether the calling user is subscribed to status-change notifications for this task. Null when not computed.","nullable":true},"conditionTaskId":{"type":"string","description":"Id (GUID) of the condition this task belongs to. Null on conditions and on standalone tasks. Read on create; ignored on update.","format":"uuid","nullable":true},"assetAccountId":{"type":"string","description":"Id (GUID) of the asset account the task belongs to, if any. Needed on create only for a Transaction History task; ignored on update.","format":"uuid","nullable":true},"assetAccountName":{"type":"string","description":"Name of the asset account the task belongs to. Response only, and filled only where the response includes accounts.","nullable":true},"creditReportNumber":{"type":"string","description":"For credit report tasks, the credit agency's report number.","nullable":true},"requestTaskId":{"type":"string","description":"Id of the first task of the document request this task is a copy of (one task per document). Null on the first task itself. On create, naming any task of a request makes the new task a copy that joins that request.","format":"uuid","nullable":true},"requestedStartDate":{"type":"string","description":"Transaction History tasks only: the first day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"requestedEndDate":{"type":"string","description":"Transaction History tasks only: the last day of the period the account activity must cover (ISO 8601 date).","format":"date","nullable":true},"ownerPairId":{"type":"string","description":"Id (GUID) of the borrower pair staff made the owner of this task or condition. Empty when the owner is worked out on read.","format":"uuid","nullable":true},"appliesToAllPairs":{"type":"boolean","description":"True for a whole-loan task or condition that every borrower pair sees."}},"additionalProperties":false,"description":"A task or condition on a loan: a document request, a question, a user task or a condition from the LOS."},"Item":{"type":"object","properties":{"id":{"type":"string","description":"Id of the item (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the item; send it as the item code when you create a task.","nullable":true},"name":{"type":"string","description":"Display name of the item.","nullable":true},"groupCode":{"type":"string","description":"Code of the condition group the item's tasks are shown under. Null means Other.","nullable":true},"canCreateManually":{"type":"boolean","description":"True when staff can create a task for this item by hand."},"canUploadDocument":{"type":"boolean","description":"True when a document can be uploaded against this item."}},"additionalProperties":false,"description":"A kind of request a task can ask for, such as a specific document."},"TaskStatus":{"type":"object","properties":{"id":{"type":"string","description":"Id of the status (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the status.","nullable":true},"name":{"type":"string","description":"Display name of the status.","nullable":true}},"additionalProperties":false,"description":"The status of a task, for example Requested, Uploaded, Submitted or Accepted."},"Document":{"type":"object","properties":{"id":{"type":"string","description":"Id (GUID) of the document.","format":"uuid"},"name":{"type":"string","description":"The document's file name.","nullable":true},"externalId":{"type":"string","description":"The document's id in the Loan Origination System; empty until it has been sent there.","nullable":true},"isPdfConversionComplete":{"type":"boolean","description":"True once an uploaded file has been converted to PDF and can be opened; false while conversion is still running."},"loanApplicationId":{"type":"string","description":"Id (GUID) of the loan the document belongs to.","format":"uuid","nullable":true},"loanApplicationTaskId":{"type":"string","description":"Id of the task or condition the document is attached to; null for a document uploaded straight to the loan.","format":"uuid","nullable":true},"blobName":{"type":"string","description":"The name the file is stored under. An internal storage key: download through the document routes rather than using it.","nullable":true},"createdTimestamp":{"type":"string","description":"When the document was created, in UTC (ISO 8601).","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the document was last changed, in UTC (ISO 8601).","format":"date-time"},"updatedBy":{"type":"string","description":"Id of the user who last changed the document; null when the change was automatic or unknown.","format":"uuid","nullable":true},"documentTypeId":{"type":"string","description":"Id of the platform's broad document category (such as a vault or task document). Not the loan document type, which is loanDocumentTypeId.","format":"uuid","nullable":true},"isVault":{"type":"boolean","description":"True when the document was uploaded straight to the loan's vault, false when it hangs off a\r\ntask, a condition or an asset account. Callers use it to decide what a user may do with the\r\ndocument: only a vault document can be deleted. Any document can be given a document type."},"loanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document is filed under (from the loan document types list); null when it has none.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the loan document type; null when the document has none.","nullable":true},"loanDocumentTypeExternalId":{"type":"string","description":"The loan document type's id in the Loan Origination System.","nullable":true},"loanDocumentTypeFolderName":{"type":"string","description":"Name of the folder the loan document type belongs to; null when the document has no type.","nullable":true},"description":{"type":"string","description":"A free-text description of the document; may be empty.","nullable":true},"isDeleted":{"type":"boolean","description":"True when the document has been deleted. Deleted documents are normally left out of lists."},"isInternal":{"type":"boolean","description":"True for a staff-only document that is hidden from borrowers and partner applications."},"isObsolete":{"type":"boolean","description":"The LOS no longer considers this document active. It stays visible so users can still see\r\nit, but it is not current and is never pushed back to the LOS."},"isProtected":{"type":"boolean","description":"The LOS holds the document as Protected, locked there against edits and deletion. Set and\r\ncleared by Admin and Processor through the document status endpoints, or in the LOS itself."},"losStatus":{"$ref":"#/components/schemas/LoanDocumentLosStatus"},"title":{"type":"string","description":"The title shown for the document; may be empty, in which case the file name is shown.","nullable":true},"splitFromDocumentId":{"type":"string","description":"On a part of a split combined PDF: the id of the original document it was cut from. Null on every other document.","format":"uuid","nullable":true},"splitStartPage":{"type":"integer","description":"On a part of a split combined PDF: the first page of the original it holds. Null on every other document.","format":"int32","nullable":true},"splitEndPage":{"type":"integer","description":"On a part of a split combined PDF: the last page of the original it holds. Null on every other document.","format":"int32","nullable":true},"isUnsorted":{"type":"boolean","description":"True while the document was bulk-uploaded to the loan with no task and no type and nobody has\r\nsorted it. It is held out of the LOS until it is put on a task or given a type."},"hasNoFile":{"type":"boolean","description":"True for a staff-only entry the Loan Origination System holds with no file here (a non-PDF assigned to a condition): there is nothing to open, download or move."},"intakeStatus":{"type":"string","description":"NeedsPassword or Duplicate for a bulk-uploaded document that is held for that reason; null\r\notherwise. See DocumentIntakeStatuses.","nullable":true},"duplicateOfDocumentId":{"type":"string","description":"The existing document this one repeats, when IntakeStatus is Duplicate.","format":"uuid","nullable":true},"indexStatus":{"type":"string","description":"Whether the document's text is searchable: Indexed, Pending, Failed or NotSubmitted. Set by\r\nthe document lists for staff callers; null when it was not looked up, or the lookup failed.","nullable":true},"analysis":{"$ref":"#/components/schemas/DocumentAnalysisSummary"},"internalNotes":{"type":"string","description":"Staff-only internal notes on the document, verbatim from the Loan Origination System. Returned only to callers who may see internal notes; null for everyone else.","nullable":true}},"additionalProperties":false,"description":"A document on a loan: the file, the task or condition it is attached to, its type and its status."},"LoanDocumentLosStatus":{"enum":["Active","Protected","Obsolete","Rejected","Screened"],"type":"string","description":"A loan document's status, one value per document, set here or in the LOS and kept in step both ways. The names are the LOS's own; the app shows Active as Pending, Screened as Accepted and Obsolete as Deleted."},"DocumentAnalysisSummary":{"type":"object","properties":{"status":{"type":"string","description":"Pending, Completed, Failed or Skipped. Failed reads \"Not analysed\".","nullable":true},"verdict":{"type":"string","description":"Whether the document is what was asked for: Matches, Mismatch, Unreadable or Unknown.","nullable":true},"reasonCode":{"type":"string","description":"On a Mismatch, why: WrongDocument, WrongPeriod, WrongAccount, WrongBorrower, MissingPages or Expired. On an Unreadable verdict from the page quality check, UnreadablePages.","nullable":true},"reason":{"type":"string","description":"One line in plain language explaining the verdict, written for the borrower.","nullable":true},"suggestedRejectionReasonCode":{"type":"string","description":"The seeded TaskRejectionReason code the panel pre-selects for a Mismatch.","nullable":true},"suggestedTaskId":{"type":"string","description":"Id of the task or condition the document appears to belong to; null when none matched.","format":"uuid","nullable":true},"suggestedTaskName":{"type":"string","description":"Name of the suggested task or condition.","nullable":true},"isOnSuggestedTask":{"type":"boolean","description":"False when the document sits on a different task than the best match: shown for confirmation."},"matchConfidence":{"type":"number","description":"How sure the analysis is of the suggested task, from 0 to 1.","format":"double","nullable":true},"suggestedLoanDocumentTypeId":{"type":"string","description":"Id of the loan document type the document looks like; null when not determined.","format":"uuid","nullable":true},"suggestedLoanDocumentTypeName":{"type":"string","description":"Name of the suggested loan document type.","nullable":true},"suggestedTitle":{"type":"string","description":"The title the analysis suggests for the document, built from what it read (for example the account and statement period).","nullable":true},"titleAppliedAutomatically":{"type":"boolean","description":"True when the document's current title was set by the analysis rather than by a person."},"previousTitle":{"type":"string","description":"The title the document had before the analysis renamed it; null when it was not renamed.","nullable":true},"autoNameDisabled":{"type":"boolean","description":"True when a person undid an automatic name; the analysis never renames this document again."},"filedByType":{"type":"boolean","description":"Filed under the suggested LOS type and folder by the analysis, for a person to confirm or correct."},"duplicateOfDocumentId":{"type":"string","description":"Id of an earlier document on the loan with the same content, when this one repeats it; otherwise null.","format":"uuid","nullable":true},"supersedesDocumentId":{"type":"string","description":"Id of an earlier document this one replaces (a newer version of the same document); otherwise null.","format":"uuid","nullable":true},"supersededByDocumentId":{"type":"string","description":"Id of a newer document that replaces this one; otherwise null.","format":"uuid","nullable":true},"outcome":{"type":"string","description":"What a person did with the suggestion: Confirmed, Corrected, Rejected or Ignored; null while no one has acted.","nullable":true},"outcomeAt":{"type":"string","description":"When the person acted on the suggestion, in UTC (ISO 8601); null while no one has.","format":"date-time","nullable":true},"coveredPeriods":{"type":"array","items":{"type":"string"},"description":"For a request that needs a span of statements, the months the uploaded documents cover, each formatted yyyy-MM.","nullable":true},"missingPeriods":{"type":"array","items":{"type":"string"},"description":"The requested months no uploaded document covers yet, each formatted yyyy-MM.","nullable":true},"monthsMissing":{"type":"integer","description":"How many months of the request are still missing.","format":"int32","nullable":true},"analyzedAt":{"type":"string","description":"When the analysis was done, in UTC (ISO 8601).","format":"date-time"},"splitSuggestion":{"$ref":"#/components/schemas/SplitSuggestion"},"pageIssues":{"type":"array","items":{"$ref":"#/components/schemas/PageIssue"},"description":"The pages the quality check flagged, which the Unreadable-page request names.","nullable":true}},"additionalProperties":false,"description":"What the document review shows for a document: the suggested task, type and title, the verdict and whether the title was applied automatically. The evidence and page text the analysis read are not included."},"SplitSuggestion":{"type":"object","properties":{"pageCount":{"type":"integer","description":"Number of pages in the PDF that was analysed.","format":"int32"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/SplitPartRange"},"description":"The suggested page ranges, one per document found.","nullable":true},"reason":{"type":"string","description":"The segmenter's account of why, e.g. \"3 document(s) across 12 page(s)\".","nullable":true}},"additionalProperties":false,"description":"The split suggested for a PDF that holds several documents and was not split on upload. Nothing changes until a person accepts it."},"SplitPartRange":{"type":"object","properties":{"startPage":{"type":"integer","description":"First page of the run, counting from 1.","format":"int32"},"endPage":{"type":"integer","description":"Last page of the run, inclusive.","format":"int32"},"loanDocumentTypeId":{"type":"string","description":"What the segmenter took the run to be, for the suggestion only. Never trusted when splitting.","format":"uuid","nullable":true},"loanDocumentTypeName":{"type":"string","description":"Name of the document type the run was taken to be, for the suggestion only.","nullable":true}},"additionalProperties":false,"description":"One run of pages of a combined PDF that is one document. 1-based, inclusive."},"PageIssue":{"type":"object","properties":{"page":{"type":"integer","description":"The page the issue is on, starting at 1.","format":"int32"},"kind":{"type":"string","description":"The problem found: Blank (no text), LowConfidence (scan quality too low to read reliably) or CutOff (text stops mid-sentence).","nullable":true}},"additionalProperties":false,"description":"A page the quality check flagged. 1-based, in the document the analysis read."},"TaskRejectionReason":{"type":"object","properties":{"id":{"type":"string","description":"Id of the rejection reason (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the rejection reason.","nullable":true},"code":{"type":"string","description":"Stable code of the rejection reason.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the reason in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"A reason a reviewer gives for rejecting a task's document."},"PosCreditReportType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the report type (GUID).","format":"uuid","nullable":true},"code":{"type":"string","description":"Stable code of the report type.","nullable":true},"name":{"type":"string","description":"Display name of the report type.","nullable":true}},"additionalProperties":false,"description":"The type of credit report a credit report task asks for."},"TaskQuestionType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the question type (GUID).","format":"uuid"},"name":{"type":"string","description":"Display name of the question type.","nullable":true},"code":{"type":"string","description":"Stable code of the question type.","nullable":true},"displayOrder":{"type":"integer","description":"Position of the question type in lists, lowest first.","format":"int32","nullable":true}},"additionalProperties":false,"description":"For a question task, the kind of answer it asks for, such as yes/no or a short answer."},"LoanAppUser":{"type":"object","properties":{"id":{"type":"string","description":"Id of the user (GUID).","format":"uuid"},"firstName":{"type":"string","description":"The user's first name.","nullable":true},"lastName":{"type":"string","description":"The user's last name.","nullable":true}},"additionalProperties":false,"description":"A user, such as the staff member a task is assigned to."},"TaskType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the task type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the task type.","nullable":true},"name":{"type":"string","description":"Display name of the task type.","nullable":true}},"additionalProperties":false,"description":"The kind of task."},"TaskAssignmentType":{"type":"object","properties":{"id":{"type":"string","description":"Id of the assignment type (GUID).","format":"uuid"},"code":{"type":"string","description":"Stable code of the assignment type.","nullable":true},"name":{"type":"string","description":"Display name of the assignment type.","nullable":true}},"additionalProperties":false,"description":"Who a task is assigned to: a borrower or a user."},"Asset":{"type":"object","properties":{"amount":{"type":"number","description":"Account balance in dollars.","format":"double"},"accountName":{"type":"string","description":"Name of the account.","nullable":true},"accountNumber":{"type":"string","description":"Account number, masked to the last four digits on reads.","nullable":true},"institutionName":{"type":"string","description":"Name of the financial institution.","nullable":true},"source":{"type":"string","description":"Where the asset came from: Manual (entered by hand), a linked bank, or the LOS.","nullable":true},"giftSource":{"type":"string","description":"Who the gift came from, for a gift asset.","nullable":true},"meridianLinkAssetType":{"type":"string","description":"The asset type as the LOS names it.","nullable":true},"isUpdatedExternally":{"type":"boolean","description":"True when the LOS or a linked bank changed the record after it was created."}},"additionalProperties":false,"description":"An asset account on a loan: its balance, institution and where the record came from."},"AssetPotentialDuplicate":{"type":"object","properties":{"assetAccountId":{"type":"string","description":"Id of the other asset account (GUID).","format":"uuid"},"differences":{"type":"array","items":{"$ref":"#/components/schemas/DuplicateDifference"},"description":"How this account differs from that one, one item per field whose values differ. Empty when they agree on every field.","nullable":true}},"additionalProperties":false,"description":"Another asset account on the loan that looks like the same account."},"DuplicateDifference":{"type":"object","properties":{"field":{"type":"string","description":"The name of the field on which the two liabilities differ.","nullable":true},"thisValue":{"type":"string","description":"The field's value on this liability, as text.","nullable":true},"otherValue":{"type":"string","description":"The field's value on the possible duplicate, as text.","nullable":true}},"additionalProperties":false,"description":"One field on which a duplicate differs from the row it is read with: the values of both rows, as text."},"RecordNote":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the note.","format":"uuid"},"text":{"type":"string","description":"The note text.","nullable":true},"authorId":{"type":"string","description":"Who wrote it; null for a system note.","format":"uuid","nullable":true},"authorName":{"type":"string","description":"Name of the note's author; null for a system note.","nullable":true},"createdTimestamp":{"type":"string","description":"When the note was written, ISO 8601 in UTC.","format":"date-time"},"source":{"type":"string","description":"Where the note was written: `UI`, `MCP` (an AI agent tool) or `System`.","nullable":true}},"additionalProperties":false,"description":"A note on a liability or an asset account, returned with that record. It stays in Henge and is not sent to the LOS."},"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}/plaid/hosted-links/{linkId}":{"get":{"tags":["Assets and liabilities"],"summary":"Get a Plaid Hosted Link's status","description":"**Required scope:** `read:loan-applications`\n\nstatus is pending (not finished yet), completed, expired (never finished before expiresAt) or\r\nfailed (the borrower left without connecting an account, or connecting failed; see failureReason).\r\nOnce completed, accounts lists the accounts the link created, account numbers masked to the last\r\nfour digits. Their balances fill in when Plaid's asset report is ready.","operationId":"LoanApplicationsPlaidLinks_GetHostedLinkStatus","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":"linkId","in":"path","description":"The linkId returned when the link was created.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"200":{"description":"The link's status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaidHostedLinkStatusResponse"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan or link not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Lists a loan application's liabilities.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"GetLiabilitiesResponse":{"type":"object","properties":{"loanAppId":{"type":"string","description":"Unique identifier (GUID) of the loan.","format":"uuid"},"liabilities":{"type":"array","items":{"$ref":"#/components/schemas/LiabilitiesLiability"},"description":"The loan's liabilities.","nullable":true},"creditReportImport":{"$ref":"#/components/schemas/LiabilitiesCreditReportLiabilityImport"}},"additionalProperties":false},"LiabilitiesLiability":{"type":"object","properties":{"id":{"type":"string","description":"Id of the liability (GUID).","format":"uuid"},"createdTimestamp":{"type":"string","description":"When the liability was created (ISO 8601 date and time, UTC).","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the liability was last changed (ISO 8601 date and time, UTC).","format":"date-time"},"borrowerId":{"type":"string","description":"Id of the first owner of the debt (GUID). Kept for older readers; use borrowerIds.","format":"uuid"},"borrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Ids of every borrower who owns the debt (GUIDs), in order.","nullable":true},"amount":{"type":"number","description":"Unpaid balance, in dollars.","format":"double"},"monthlyPayment":{"type":"number","description":"Monthly payment, in dollars.","format":"double","nullable":true},"isPaidOffAtClosing":{"type":"boolean","description":"True when the debt will be paid off at closing. Null when not stated.","nullable":true},"isExcludedFromRatios":{"type":"boolean","description":"True when the payment is left out of the debt-to-income ratios. Null when not stated.","nullable":true},"remainingMonths":{"type":"integer","description":"Months left on the debt.","format":"int32","nullable":true},"source":{"type":"string","description":"How the liability got on the loan, for example entered manually, imported from a credit report or synced from the LOS.","nullable":true},"liabilityType":{"type":"string","description":"The kind of debt, for example a mortgage, revolving or installment account.","nullable":true},"isUpdatedExternally":{"type":"boolean","description":"True when the row was changed by an external update, such as a sync from the LOS, after it was created."},"creditorName":{"type":"string","description":"Name of the creditor or lender.","nullable":true},"description":{"type":"string","description":"Free-text description of the debt.","nullable":true},"securedPropertyId":{"type":"string","description":"The owned property this debt is secured by (its tieId on the loan), or null.","nullable":true},"losLinkPending":{"type":"boolean","description":"True while the tie's link record has not reached the LOS (the write failed; the next sync retries). False otherwise."},"potentialDuplicates":{"type":"array","items":{"$ref":"#/components/schemas/PotentialDuplicate"},"description":"Other liabilities on the loan that look like the same debt. Worked out on every read.","nullable":true},"notes":{"type":"array","items":{"$ref":"#/components/schemas/RecordNote"},"description":"Notes on this row from people, agents and the system, oldest first. Never sent to the LOS; empty for a borrower.","nullable":true}},"additionalProperties":false,"description":"A debt on the loan, with its owners, payment and the property it is secured by."},"PotentialDuplicate":{"type":"object","properties":{"liabilityId":{"type":"string","description":"Id (GUID) of the liability this one may duplicate.","format":"uuid"},"confidenceScore":{"type":"number","description":"How confident the duplicate check is that the two liabilities are the same debt; a higher number is more likely.","format":"double"},"reasoning":{"type":"string","description":"The check's explanation, in plain language, of why the two look like the same debt.","nullable":true},"differences":{"type":"array","items":{"$ref":"#/components/schemas/DuplicateDifference"},"description":"How this liability differs from the possible duplicate, worked out from both as they are now on every read; never stored, so a change made after the check shows. Empty when the two agree on every field.","nullable":true}},"additionalProperties":false},"DuplicateDifference":{"type":"object","properties":{"field":{"type":"string","description":"The name of the field on which the two liabilities differ.","nullable":true},"thisValue":{"type":"string","description":"The field's value on this liability, as text.","nullable":true},"otherValue":{"type":"string","description":"The field's value on the possible duplicate, as text.","nullable":true}},"additionalProperties":false,"description":"One field on which a duplicate differs from the row it is read with: the values of both rows, as text."},"RecordNote":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the note.","format":"uuid"},"text":{"type":"string","description":"The note text.","nullable":true},"authorId":{"type":"string","description":"Who wrote it; null for a system note.","format":"uuid","nullable":true},"authorName":{"type":"string","description":"Name of the note's author; null for a system note.","nullable":true},"createdTimestamp":{"type":"string","description":"When the note was written, ISO 8601 in UTC.","format":"date-time"},"source":{"type":"string","description":"Where the note was written: `UI`, `MCP` (an AI agent tool) or `System`.","nullable":true}},"additionalProperties":false,"description":"A note on a liability or an asset account, returned with that record. It stays in Henge and is not sent to the LOS."},"LiabilitiesCreditReportLiabilityImport":{"type":"object","properties":{"creditReportNumber":{"type":"string","description":"Number of the credit report the import used.","nullable":true},"reportType":{"type":"string","description":"Whether the report was a HardPull or a SoftPull.","nullable":true},"status":{"type":"string","description":"Outcome of the import.","nullable":true},"issues":{"type":"array","items":{"type":"string"},"description":"Plain-English problems found, one per entry, with Social Security numbers shown as the last four digits only.","nullable":true},"importedLiabilityCount":{"type":"integer","description":"How many liabilities the import created.","format":"int32"},"importedTimestamp":{"type":"string","description":"When the import ran (ISO 8601 date and time, UTC).","format":"date-time"}},"additionalProperties":false,"description":"The outcome of the last attempt to import liabilities from a credit report, kept only while it needs attention."},"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}/liabilities":{"get":{"tags":["Assets and liabilities"],"summary":"Lists a loan application's liabilities.","description":"**Required scope:** `read:loan-applications`","operationId":"Liabilities_GetLiabilities","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":"Liabilities retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLiabilitiesResponse"}}}},"400":{"description":"Invalid identifier","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to access this resource","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Adds a liability to a loan application.

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

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"LiabilityCreateRequest":{"type":"object","properties":{"borrowerId":{"type":"string","description":"The borrower the debt belongs to. Omitted, or a borrower not on the loan, files it against the\r\nloan's first borrower, as the web app does.","format":"uuid"},"borrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Every borrower who owns the debt: a joint debt is one liability owned by all of them. Used in place of\r\n`BorrowerId` when it has any; omitted, `BorrowerId` alone owns it.","nullable":true},"amount":{"type":"number","description":"The unpaid balance of the debt (the payoff for a debt paid off at closing); the LOS stores it as the balance. The monthly payment is `MonthlyPayment`.","format":"double"},"liabilityType":{"type":"string","description":"The kind of debt, as the loan origination system names it: Mortgage, Heloc, Installment,\r\nRevolving, Open, Lease, Alimony, ChildSupport, SeparateMaintenance, JobRelatedExpense,\r\nOtherExpenseLiability or Other.","nullable":true},"creditorName":{"type":"string","description":"Who the debt is owed to.","nullable":true},"description":{"type":"string","description":"A free-text note about the debt.","nullable":true},"monthlyPayment":{"type":"number","description":"The monthly payment on the debt, which counts toward the debt ratios; the balance is `Amount`.","format":"double","nullable":true},"isPaidOffAtClosing":{"type":"boolean","description":"True when the debt is paid off from the loan proceeds at closing. On a loan in the loan origination system, true without `IsExcludedFromRatios` also leaves the debt out of the debt ratios.","nullable":true},"isExcludedFromRatios":{"type":"boolean","description":"True when the debt is left out of the debt ratios.","nullable":true},"remainingMonths":{"type":"integer","description":"Payments left on the debt, in months.","format":"int32","nullable":true},"securedPropertyId":{"type":"string","description":"The owned property this debt is secured by, by its tieId on the loan. Mortgage and Heloc only.","nullable":true}},"additionalProperties":false,"description":"A debt to add to a loan application. It is recorded with source Manual, as one entered on the\r\nweb app's Liabilities page is."},"CreateLiabilityResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the liability.","format":"uuid"},"createdTimestamp":{"type":"string","description":"When the liability was created, ISO 8601 in UTC.","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the liability was last changed, ISO 8601 in UTC.","format":"date-time"},"figures":{"$ref":"#/components/schemas/LoanFigures"},"routedTo":{"type":"string","description":"Where the write was kept: Henge or the LOS (for a locked loan). Set only by agent tools; otherwise absent.","nullable":true}},"additionalProperties":false},"LoanFigures":{"type":"object","properties":{"frontEndDti":{"type":"number","description":"Qualifying front-end (housing expense) ratio, `sQualTopR`.","format":"double","nullable":true},"backEndDti":{"type":"number","description":"Qualifying back-end (total debt) ratio, `sQualBottomR`.","format":"double","nullable":true},"ltv":{"type":"number","description":"Base loan-to-value ratio, `sLtvR`.","format":"double","nullable":true},"cltv":{"type":"number","description":"Base combined loan-to-value ratio, `sCltvR`.","format":"double","nullable":true},"totalIncome":{"type":"number","description":"Total qualifying monthly income, `sLTotI`.","format":"double","nullable":true},"totalPayment":{"type":"number","description":"Total proposed monthly payment, `sMonthlyPmt`.","format":"double","nullable":true},"cashToClose":{"type":"number","description":"Cash to close, `sTransNetCash`.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's numbers as the LOS holds them after a change: both DTI ratios, LTV, CLTV, total income, total payment and cash to close. Each is read back from the LOS, never calculated here; null when the LOS returned nothing for it."},"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}/liabilities":{"post":{"tags":["Assets and liabilities"],"summary":"Adds a liability to a loan application.","description":"**Required scope:** `create:loan-applications`","operationId":"Liabilities_AddLiability","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 debt to add.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiabilityCreateRequest"}}}},"responses":{"200":{"description":"Liability created successfully A create answers 200 today. It will answer 201 with a Location header from a date announced in the changelog at least 60 days ahead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLiabilityResponse"}}}},"201":{"description":"Created. Will be answered instead of 200 from a date announced in the changelog at least 60 days ahead; the Location header carries the new resource's URL.","headers":{"Location":{"description":"URL of the created resource: this request's path followed by the new id.","schema":{"type":"string","format":"uri-reference"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLiabilityResponse"}}}},"400":{"description":"Invalid identifier or request payload","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ValidationProblemDetails"}}}},"401":{"description":"Missing, invalid or expired access token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The client application is not authorized to perform this action","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Loan application not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Updates a liability on a loan application.

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Every field is replaced. A liability imported from a credit report can be changed like any other.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"LiabilityUpdateRequest":{"type":"object","properties":{"borrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Every borrower who owns the debt. Omitted or empty keeps the stored owners.","nullable":true},"amount":{"type":"number","description":"The unpaid balance of the debt (the payoff for a debt paid off at closing); the LOS stores it as the balance. The monthly payment is `MonthlyPayment`.","format":"double"},"liabilityType":{"type":"string","description":"The kind of debt; see `liabilityType`.","nullable":true},"creditorName":{"type":"string","description":"Who the debt is owed to.","nullable":true},"description":{"type":"string","description":"A free-text note about the debt.","nullable":true},"monthlyPayment":{"type":"number","description":"The monthly payment on the debt, which counts toward the debt ratios; the balance is `Amount`. Omitted keeps the stored value.","format":"double","nullable":true},"isPaidOffAtClosing":{"type":"boolean","description":"True when the debt is paid off from the loan proceeds at closing. Omitted keeps the stored value. On a loan in the loan origination system, changing it to true without `IsExcludedFromRatios` also leaves the debt out of the debt ratios.","nullable":true},"isExcludedFromRatios":{"type":"boolean","description":"True when the debt is left out of the debt ratios. Omitted keeps the stored value.","nullable":true},"remainingMonths":{"type":"integer","description":"Payments left on the debt, in months. Omitted keeps the stored value.","format":"int32","nullable":true},"securedPropertyId":{"type":"string","description":"A field of a partial update: leave it out to keep the stored value, or send null to clear it."}},"additionalProperties":false,"description":"The new values of a liability. A liability imported from a credit report cannot be changed here. Not every field is kept when left out: amount becomes 0, and liabilityType, creditorName and description are cleared. monthlyPayment, isPaidOffAtClosing, isExcludedFromRatios, remainingMonths, borrowerIds and securedPropertyId keep their stored value, except that on a loan in the loan origination system changing isPaidOffAtClosing to true without isExcludedFromRatios sets isExcludedFromRatios to true."},"UpdateLiabilityResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier (GUID) of the liability.","format":"uuid"},"createdTimestamp":{"type":"string","description":"When the liability was created, ISO 8601 in UTC.","format":"date-time"},"updatedTimestamp":{"type":"string","description":"When the liability was last changed, ISO 8601 in UTC.","format":"date-time"},"figures":{"$ref":"#/components/schemas/LoanFigures"},"routedTo":{"type":"string","description":"Where the write was kept: Henge or the LOS (for a locked loan). Set only by agent tools; otherwise absent.","nullable":true}},"additionalProperties":false},"LoanFigures":{"type":"object","properties":{"frontEndDti":{"type":"number","description":"Qualifying front-end (housing expense) ratio, `sQualTopR`.","format":"double","nullable":true},"backEndDti":{"type":"number","description":"Qualifying back-end (total debt) ratio, `sQualBottomR`.","format":"double","nullable":true},"ltv":{"type":"number","description":"Base loan-to-value ratio, `sLtvR`.","format":"double","nullable":true},"cltv":{"type":"number","description":"Base combined loan-to-value ratio, `sCltvR`.","format":"double","nullable":true},"totalIncome":{"type":"number","description":"Total qualifying monthly income, `sLTotI`.","format":"double","nullable":true},"totalPayment":{"type":"number","description":"Total proposed monthly payment, `sMonthlyPmt`.","format":"double","nullable":true},"cashToClose":{"type":"number","description":"Cash to close, `sTransNetCash`.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's numbers as the LOS holds them after a change: both DTI ratios, LTV, CLTV, total income, total payment and cash to close. Each is read back from the LOS, never calculated here; null when the LOS returned nothing for it."},"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}/liabilities/{liabilityId}":{"put":{"tags":["Assets and liabilities"],"summary":"Updates a liability on a loan application.","description":"**Required scope:** `update:loan-applications`\n\nEvery field is replaced. A liability imported from a credit report can be changed like any other.","operationId":"Liabilities_UpdateLiability","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":"liabilityId","in":"path","description":"The liability to change.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"requestBody":{"description":"The liability's new values. Every field is replaced.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiabilityUpdateRequest"}}}},"responses":{"200":{"description":"Liability updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLiabilityResponse"}}}},"400":{"description":"Invalid identifier or request payload","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 liability not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```

## Deletes a liability from a loan application.

> \*\*Required scope:\*\* \`delete:loan-applications\`\
> \
> A liability imported from a credit report cannot be deleted through this API.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `update:loan-applications`"}],"servers":[{"url":"https://uat-api.hengelending.com/partner","description":"UAT (sandbox): build and test here"},{"url":"https://api.hengelending.com/partner","description":"Production"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"Access token from POST /oauth/token, sent as `Authorization: Bearer <token>`.","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ValidationProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"The validation problems: each key is the name of the field that failed and its value lists the messages for that field. Present when `code` is `ValidationFailed`.","nullable":true},"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."}},"additionalProperties":{},"description":"The error body of a 400: the problem details shape, plus `errors`, which lists the problems by field when the request failed validation (`code` `ValidationFailed`). Branch on `code`."},"ProblemDetails":{"required":["status","title","detail","instance","code","traceId"],"type":"object","properties":{"type":{"type":"string","description":"A URI that identifies the kind of problem, or null when none is given.","nullable":true},"title":{"type":"string","description":"A short, human-readable summary of the problem; it does not change between occurrences of the same problem."},"status":{"type":"integer","description":"The HTTP status code of the response.","format":"int32"},"detail":{"type":"string","description":"A human-readable explanation of this occurrence of the problem."},"instance":{"type":"string","description":"A URI that identifies this occurrence of the problem, typically the request path."},"code":{"type":"string","description":"A stable error code, such as `NotFound`, `ValidationFailed`, `Conflict` or `BusinessRuleViolation`. Present on every error; the Errors guide lists every value."},"traceId":{"type":"string","description":"The request's trace id. Quote it when you contact support about a failed call."},"requiredScope":{"type":"string","description":"The scope the token lacks, by its standard name. Present when `code` is `MissingScope` (403); ask your Henge contact to grant it to your credential."}},"additionalProperties":{},"description":"An error, in the RFC 9457 problem details shape. Branch on `code`, never on `title` or `detail`, which are for people and may change."}}},"paths":{"/loan-applications/{id}/liabilities/{liabilityId}":{"delete":{"tags":["Assets and liabilities"],"summary":"Deletes a liability from a loan application.","description":"**Required scope:** `delete:loan-applications`\n\nA liability imported from a credit report cannot be deleted through this API.","operationId":"Liabilities_DeleteLiability","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":"liabilityId","in":"path","description":"The liability to delete.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"externalId","in":"query","description":"The loan's id in the loan origination system (`loanInfo.loanId` on a loan read; not the loan number), to address the loan by instead of the path `id`: put the empty GUID in the path; when sent it is matched exactly and wins over the path `id`, and a value that matches no loan in your company answers 404.","schema":{"type":"string"}}],"responses":{"204":{"description":"Liability deleted successfully"},"400":{"description":"Invalid identifier, or a credit report liability","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 liability 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"}}}}}}}}}
```

## Imports a loan application's liabilities from an existing credit report.

> \*\*Required scope:\*\* \`update:loan-applications\`\
> \
> Replaces the loan's credit-report liabilities with those on the report. Nothing is ordered or billed.

```json
{"openapi":"3.0.4","info":{"title":"Henge Partner API","version":"1.22.0"},"tags":[{"name":"Assets and liabilities","description":"**Assets:** A loan's asset accounts (checking, savings, retirement and so on) and the asset (balance) in each: add and change manual accounts and assets, link tasks to an account so the documents uploaded to them count toward it, mark verification as requested, and create Plaid Hosted Links so a borrower can connect their accounts, then refresh what Plaid returns.\n\n**Liabilities:** A loan's liabilities (debts): list, add, change and delete them, or import them from a credit report already on the loan.\n\n**Scopes:** `create:loan-applications`, `delete:loan-applications`, `read:loan-applications`, `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":{"ImportCreditReportLiabilitiesRequest":{"required":["creditReportNumber"],"type":"object","properties":{"creditReportNumber":{"type":"string","description":"The agency's number (file number) of the report whose liabilities are imported."},"reportType":{"$ref":"#/components/schemas/CreditReportType"},"pairIndex":{"type":"integer","description":"Which borrower pair the report is for, 0 to 3. Read only on a loan with more than one borrower pair, where leaving it out means the pair of the credit report task that carries the number, else pair 0. A loan with one pair has only pair 0.","format":"int32","nullable":true}},"additionalProperties":false,"description":"Imports the liabilities on a credit report the credit agency already holds, by report number. Nothing else changes: the report is not uploaded, no task changes hands and nothing is ordered or billed. `reportType`: Left out, the type of the credit report task that carries the number is used, else HardPull."},"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)."},"CreditReportImportResult":{"type":"object","properties":{"status":{"type":"string","description":"Imported, ImportedWithWarnings or Failed.","nullable":true},"issues":{"type":"array","items":{"type":"string"},"description":"Problems and warnings from the import, in plain English; Social Security numbers appear as the last four digits only.","nullable":true},"importedLiabilityCount":{"type":"integer","description":"Number of liabilities imported from the report.","format":"int32"},"matchedBorrowerIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Ids (GUIDs) of the loan's borrowers the report was matched to.","nullable":true},"creditReportNumber":{"type":"string","description":"The agency's number of the report that was imported.","nullable":true},"tiesNotCarried":{"type":"array","items":{"type":"string"},"description":"Imported mortgages and HELOCs that replaced a liability tied to a property but could not take over its link because more than one row fit; the loan officer ties them again by hand. Each entry names the creditor and type.","nullable":true},"tiedLiabilities":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportLiabilityTie"},"description":"Imported mortgages and HELOCs that the import linked to a property already on the loan. Filled only when property linking on import is enabled.","nullable":true},"suggestedLiabilities":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportPropertySuggestion"},"description":"Imported mortgages and HELOCs left untied, each with a property proposed for it. A suggestion is advice only: nothing stored changes for it. Filled only when property linking on import is enabled.","nullable":true},"untiedLiabilities":{"type":"array","items":{"$ref":"#/components/schemas/CreditReportUntiedLiability"},"description":"Imported mortgages and HELOCs with neither a link nor a suggestion, with the reason. Filled only when property linking on import is enabled.","nullable":true},"figures":{"$ref":"#/components/schemas/LoanFigures"}},"additionalProperties":false,"description":"What importing a credit report's liabilities into a loan did. Issues are written for the loan officer in plain English, with Social Security numbers shown as the last four digits only."},"CreditReportLiabilityTie":{"type":"object","properties":{"liabilityId":{"type":"string","description":"Id (GUID) of the imported liability.","format":"uuid"},"liability":{"type":"string","description":"The liability in words: creditor and type, for example Big Bank (Mortgage).","nullable":true},"propertyTieId":{"type":"string","description":"What the liability stores as its property link: the Loan Origination System id of the property, or its address before the loan is in the Loan Origination System.","nullable":true},"property":{"type":"string","description":"The property the liability was tied to, as a label.","nullable":true},"source":{"type":"string","description":"Why this property was chosen: Carried (a previous import's link was carried over to the row that replaced it) or OnlyProperty (the loan has exactly one candidate property).","nullable":true}},"additionalProperties":false,"description":"An imported mortgage or HELOC that the import tied to a property on the loan."},"CreditReportPropertySuggestion":{"type":"object","properties":{"liabilityId":{"type":"string","description":"Identifier (GUID) of the imported liability the suggestion is for.","format":"uuid"},"liability":{"type":"string","description":"Description of the liability, as imported from the credit report.","nullable":true},"kind":{"type":"string","description":"Kind of liability: a mortgage or a home equity line.","nullable":true},"propertyKey":{"type":"string","description":"Key shared by the liabilities that resolve to the same property.","nullable":true},"existingPropertyTieId":{"type":"string","description":"tieId of an owned property already on the loan that matches the address; null when the address is new.","nullable":true},"street":{"type":"string","description":"Street address of the proposed property.","nullable":true},"city":{"type":"string","description":"City of the proposed property.","nullable":true},"state":{"type":"string","description":"Two-letter state of the proposed property.","nullable":true},"zipCode":{"type":"string","description":"ZIP code of the proposed property.","nullable":true}},"additionalProperties":false,"description":"The property proposed for an imported mortgage or home equity line that was left untied to a property. It names an owned property already on the loan when the address matches one; otherwise it gives the address to add or complete. Liabilities that share a propertyKey resolve to one property."},"CreditReportUntiedLiability":{"type":"object","properties":{"liabilityId":{"type":"string","description":"Id (GUID) of the imported liability.","format":"uuid"},"liability":{"type":"string","description":"The liability in words: creditor and type.","nullable":true},"reason":{"type":"string","description":"Why no property could be tied or suggested, in plain English.","nullable":true}},"additionalProperties":false,"description":"An imported mortgage or HELOC with neither a property link nor a suggestion, and why."},"LoanFigures":{"type":"object","properties":{"frontEndDti":{"type":"number","description":"Qualifying front-end (housing expense) ratio, `sQualTopR`.","format":"double","nullable":true},"backEndDti":{"type":"number","description":"Qualifying back-end (total debt) ratio, `sQualBottomR`.","format":"double","nullable":true},"ltv":{"type":"number","description":"Base loan-to-value ratio, `sLtvR`.","format":"double","nullable":true},"cltv":{"type":"number","description":"Base combined loan-to-value ratio, `sCltvR`.","format":"double","nullable":true},"totalIncome":{"type":"number","description":"Total qualifying monthly income, `sLTotI`.","format":"double","nullable":true},"totalPayment":{"type":"number","description":"Total proposed monthly payment, `sMonthlyPmt`.","format":"double","nullable":true},"cashToClose":{"type":"number","description":"Cash to close, `sTransNetCash`.","format":"double","nullable":true}},"additionalProperties":false,"description":"The loan's numbers as the LOS holds them after a change: both DTI ratios, LTV, CLTV, total income, total payment and cash to close. Each is read back from the LOS, never calculated here; null when the LOS returned nothing for it."},"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}/liabilities/import-from-credit-report":{"post":{"tags":["Assets and liabilities"],"summary":"Imports a loan application's liabilities from an existing credit report.","description":"**Required scope:** `update:loan-applications`\n\nReplaces the loan's credit-report liabilities with those on the report. Nothing is ordered or billed.","operationId":"Liabilities_ImportLiabilitiesFromCreditReport","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 credit report number and, optionally, the report type it was pulled as.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportCreditReportLiabilitiesRequest"}}}},"responses":{"200":{"description":"The import outcome, including any issues to fix","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditReportImportResult"}}}},"400":{"description":"Invalid identifier or request payload","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 credit report is not available","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"An unexpected error occurred","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}
```


---

# 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/assets-and-liabilities.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.
