Sample code
The following download(s) show a working integration that follows the Snapdocs suggested best practice, hooked to a pretend system of record and an interactive UI to test the integration paths.
| Product | Sample | Download |
|---|---|---|
| eClose | eClose connector in C# (.NET 10), with a pretend LOS | Download |
| eVault | eVault connector in C# (.NET 10), with a pretend loan aggregation system and a simulated eVault | Download |
* Downloading a sample means you agree to the Snapdocs Sample Materials notice, which appears when you choose Download.
eClose connector
The connector follows the integration architecture: a Closing Sender, a Listener, and Status and Doc(s) Handlers. It also follows the Snapdocs API best practices defined in various Snapdocs API guides: token caching, safe retries, a 200 listener acknowledgment with separate handlers run as retried jobs, and HMAC signature checks.
We couple this with a small pretend LOS with a very light UI and loan data and documents represented by local files. Once you fill out your settings with a working non-production API key, the screens can send loans. Interact with the closing as you would normally, see the status events return and completed documents download.
This integration cannot figure out the LOS interaction needed to Send Loans to Snapdocs, how status updates should display in the LOS, or where executed downloaded documents end up. That work is left up to you, the integrator.
Run the eClose sample
- Install the .NET 10 SDK and unzip the download.
- Run
dotnet run --project src/FakeLosand openhttp://localhost:5080. - Enter your demo credentials on the Settings tab, then follow the Instructions tab.
- Plan out your real integration and LOS updates!
For security purposes, credentials are saved to a local lenders.json file that should be git ignored, or otherwise excluded in checked in repositories.
eVault connector
The eVault sample is for secondary-market systems: loan aggregators, investors and servicers that receive eNotes and later move them on. It follows the architecture in Integrating to Snapdocs eVault: a Listener that checks each event's HMAC signature and answers 200, Handlers that read the eVault after each event, and a Sender for the work your system starts.
eNote work isn't one path from start to finish the way a closing is. A loan file reaches an aggregator through a lender-to-lender process the eVault never sees, and its data goes to the eVault for auto-validation. The answer comes back at once if the eNote is already in the vault, or when the eNote arrives, which can be the next day. eNotes arrive whenever sellers send them. Loans are sold in groups allocated to an investor, mixing sellers and arrival dates. The sample shows these as separate workflows you can run in any order, each on its own tab under Loans: Receive eNotes, Auto-validate, Transfer rights and Deactivate.
It is also not prescriptive about batching. Each tab lists only the loans its workflow can act on, and the connector accepts the ones you pick as one batch. It sends one request per loan, or one bulk request: a CSV upload for auto-validation data, or a single bulk transfer. Each loan keeps its own line either way, because each loan's answer arrives on its own.
It runs against a simulated eVault on your machine, so you can try every workflow without credentials or MERS. It opens mid-stream, with loans at every stage. On Receive eNotes you play the sellers, and each tab has a Make it go wrong box that can drop a webhook, deliver duplicates, reject a transfer, fail a deactivation or make eNotes disagree with their loan files. When Snapdocs gives you Demo credentials, switch the lender to Demo on the Settings tab.
Treat it as a starting shape rather than a drop-in. When loan data goes in, which loans may move, what a failed validation blocks, and what a completed sale means in your system are your decisions. The sample marks where they go.
Run the eVault sample
- Install the .NET 10 SDK and unzip the download.
- Run
dotnet run --project src/FakeLasand openhttp://localhost:5090. - Open the Loans tab and pick the job closest to yours. The Instructions tab walks through each workflow. No credentials are needed until you point it at Demo.
Lender settings, including Demo credentials and the webhook HMAC key, are saved to a local lenders.json file that should be git ignored, or otherwise excluded in checked in repositories.