So, here is a C# code to get a loan in Encompass developer connect, I already explained how to get developer connect, install postman etc and how to start. Please go through previous post for more info or ask me.
var client = new RestClient(“https://api.elliemae.com/encompass/v1/loans/{32charactersguidwith4dashes}”);
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader(“Authorization”, “Bearer bearertoken”);
request.AddHeader(“Content-Type”, “application/json”);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
If everything is great, it will show status 200 and some 22000 lines output with all details of a loan. Few lines are here
{
“encompassId”: “32charactersguidwith4dashes”,
“additionalRequests”: {},
“adverseActionDate”: “2022-08-10T00:00:00Z”,
“alterationsImprovementsOrRepairsAmount”: 0,
“applications”: [
{
“id”: “_borrower1”,
“applicationId”: “_borrower1”,
“applicationIndex”: 0,
“assets”: [
{
“id”: “Asset/0”,
“assetType”: “LifeInsurance”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/1”,
“assetIndex”: 1,
“assetType”: “RetirementFund”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/2”,
“assetIndex”: 2,
“assetType”: “NetWorthOfBusinessOwned”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/3”,
“assetIndex”: 3,
“assetType”: “Stock”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/4”,
“assetIndex”: 4,
“assetType”: “Stock”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/5”,
“assetIndex”: 5,
“assetType”: “Stock”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/6”,
“assetIndex”: 6,
“assetType”: “Stock”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/7”,
“assetIndex”: 7,
“assetType”: “Automobile”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/8”,
“assetIndex”: 8,
“assetType”: “Automobile”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/9”,
“assetIndex”: 9,
“assetType”: “Automobile”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/10”,
“assetIndex”: 10,
“assetType”: “CashOnHand”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/11”,
“assetIndex”: 11,
“assetType”: “CashOnHand”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/12”,
“assetIndex”: 12,
“assetType”: “OtherNonLiquidAssets”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/13”,
“assetIndex”: 13,
“assetType”: “OtherNonLiquidAssets”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/14”,
“assetIndex”: 14,
“assetType”: “OtherNonLiquidAssets”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/15”,
“assetIndex”: 15,
“assetType”: “OtherNonLiquidAssets”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/16”,
“assetIndex”: 16,
“assetType”: “OtherNonLiquidAssets”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
},
{
“id”: “Asset/17”,
“assetIndex”: 17,
“assetType”: “OtherNonLiquidAssets”,
“borrowerId”: “_borrower1”,
“isEmpty”: true,
“noLinkToDocTrackIndicator”: true
}
],
“borrower”: {
“altId”: “_borrower1”,
“applicantType”: “Borrower”,
“bankruptcyIndicator”: false,
“borrowerType”: “Individual”,
“dependentCount”: 0,
“emailAddressText”: “emailaddress”,
“firstName”: “Test”,
“firstNameWithMiddleName”: “Test”,
“fullName”: “Test Homeowner”,
“fullNameWithSuffix”: “Test Homeowner”,
“fannieFirstName”: “Test”,
“hmda2003RaceNationalOriginType”: “”,
“homeownerPastThreeYearsIndicator”: false,
“intentToOccupyIndicator”: true,
“isBorrower”: true,
“lastName”: “Homeowner”,
“lastNameWithSuffix”: “Homeowner”,
“maritalStatusType”: “”,
“priorPropertyTitleType”: “”,
“priorPropertyUsageType”: “”,
“taxIdentificationIdentifier”: “999-40-5000”,
“vendor2”: “”,
“vendor3”: “”,
“vendor4”: “”,
“vendor5”: “”,
“vendor6”: “”,
“vendor7”: “”,
“vendor9”: “”,
“vendor10”: “”,
“vendor11”: “”,
“vendor12”: “”,
“vendor13”: “”,
“vendor14”: “”,
“vendor15”: “”,
“vendor16”: “”,
“vendor17”: “”,
“vendor18”: “”,
“vendor19”: “”,
“vendor20”: “”,
“vendor21”: “”,
“vendor22”: “”,
“vendor23”: “”,
“vendor24”: “”,
“vendor25”: “”,
“vendor26”: “”,
“vendor27”: “”,
“vendor28”: “”,
“vendor29”: “”,
“vendor30”: “”,
“dataVerify”: “”,
“vendor37”: “”,
“vendor38”: “”,
“vendor39”: “”,
“vendor40”: “”,
“hmdaGendertypeDoNotWishIndicator”: false,
“hmdaEthnicityDoNotWishIndicator”: false,
“hmdaRaceDoNotWishProvideIndicator”: false,
“spousalVABenefitsEligibilityIndicator”: false,
“hmda2CreditScoringModel”: “FICO Risk Score Classic 04”,
“ownershipConfirmationIndicator”: false,
“topRatioPercent”: 0,
“bottomRatioPercent”: 0,
“totalGrossMonthlyIncomeAmount”: 0
},
“coborrower”: {
“altId”: “_coborrower1”,
“applicantType”: “CoBorrower”,
“bankruptcyIndicator”: false,
“borrowerIndex”: 1,
“borrowerType”: “Individual”,
“dependentCount”: 0,
“emailAddressText”: “emailaddress”,
“firstName”: “Mary”,
“firstNameWithMiddleName”: “Mary”,
“fullName”: “Mary Homeowner”,
“fullNameWithSuffix”: “Mary Homeowner”,
“fannieFirstName”: “Mary”,
“hmda2003RaceNationalOriginType”: “”,
“homeownerPastThreeYearsIndicator”: false,
“intentToOccupyIndicator”: true,
“lastName”: “Homeowner”,
“lastNameWithSuffix”: “Homeowner”,
“maritalStatusType”: “”,
“priorPropertyTitleType”: “”,
“priorPropertyUsageType”: “”,
“taxIdentificationIdentifier”: “500-22-2000”,
“vendor2”: “”,
“vendor3”: “”,
“vendor4”: “”,
“vendor5”: “”,
“vendor6”: “”,
“vendor30”: “”,
“vendor37”: “”,
“vendor38”: “”,
“vendor39”: “”,
“vendor40”: “”,
“hmdaGendertypeDoNotWishIndicator”: false,
“hmdaEthnicityDoNotWishIndicator”: false,
“hmdaRaceDoNotWishProvideIndicator”: false,
“spousalVABenefitsEligibilityIndicator”: false,
“priorResidenceDoesNotApply”: false,
“ownershipConfirmationIndicator”: false
},