Download Smart Checklist document

This request downloads a smart checklist document.

This request downloads a document from a Smart Checklist.

This request requires 2 steps. The first step is to capture the several values of the Smart Checklist Item, and the second step is to download the document.

Step 1 - Capture Smart Checklist Item Values

The first step is to capture several values from the Smart Checklist item. To do this, send a GET request to the following URL:

https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans({{loanID}})/ChecklistItemValues?$expand=Attachments

Parameters:
loanID: The ID of the loan.

The request will return a response exampled below:

{
"d": {
    "results": \[
        {
            "metadata": {
                "uri": "<https://loanpro.simnang.com/api/public/api/1/odata.svc/ChecklistItemValues(id=139)">,
                "type": "Entity.ChecklistItemValue"
            },
            "Checklist": {
                "deferred": {
                    "uri": "ChecklistItemValues(id=139)/Checklist"
                }
            },
            "StatusCatalog": {
                "deferred": {
                    "uri": "ChecklistItemValues(id=139)/StatusCatalog"
                }
            },
            "Attachments": {
                "results": \[
                    {
                        "metadata": {
                            "uri": "<https://loanpro.simnang.com/api/public/api/1/odata.svc/FileAttachments(id=534)">,
                            "type": "Entity.FileAttachment"
                        },
                        "StatusCatalog": {
                            "\_\_deferred": {
                                "uri": "FileAttachments(id=534)/StatusCatalog"
                            }
                        },
                        "id": 534,
                        "parentType": "Entity.ChecklistItemValue",
                        "parentId": 139,
                        "fileName": "paystub_1725900558_66df270e5c301.pdf",
                        "fileOriginalName": "paystub.pdf",
                        "fileSize": 34310,
                        "fileMime": "application/pdf",
                        "statusCatalogId": null,
                        "fileUrl": null
                    }
                ]
            },
            "id": 139,
            "entityId": 9114,
            "entityType": "Entity.Loan",
            "statusId": null,
            "checklistId": 1,
            "checklistItemId": 11,
            "checklistItemValue": 0,
            "lastUpdated": "/Date(1725900558)/"
        }
    ],
    "summary": {
        "start": 0,
        "pageSize": 50,
        "total": 1
    }
}
}

You will need to capture the following data from the response:
parentId
statusCatalogId
fileName
checklistID: 1

Anything fileName saved under a value of “1” will need to be downloaded. This contains documents loaded under the Loan Origination document section

Step 2 - Download document

This step will download the document. To do this, send a GET request to the following URL:

https://loanpro.simnang.com/api/public/api/1/files/{tenantID}/ChecklistItemValues({parentId})/fileName

Parameters:
tenantID: The ID of the Tenant.
parentId: The ID of the parent checklist item.