/servicing-api-client-csharp

A C# Client for the Loan Street Servicing API

Primary LanguageC#

LoanStreet Loan Servicing API Client

LoanStreet on Nuget .NET Core

Examples

Fixed Payment Facility

Institutions

Glossary

  • Facility: A Facility can have one or more Tranches. Lender and Co-Lender Ownership is recorded at the Tranche level. Invoices are created at the Tranche level by summing the Borrowing payments due for each Borrowing.

  • Tranche: A Tranche can have one or more Borrowings. Interest elections are managed at this level. Interest is calculated at this level.

  • Invoice: A list of the principal, interest, fees and expenses charged against the tranche to the Borrower for a date period.

  • Payment: An amount that is credited to the tranche balance owed by the Borrower.

Models and Endpoints

Models And Endpoints List

Getting Started

using System.Collections.Generic;
using System.Diagnostics;
using LoanStreet.LoanServicing.Api;
using LoanStreet.LoanServicing.Client;
using LoanStreet.LoanServicing.Model;

namespace Example
{
    public class Example
    {
        public static void Main()
        {

            ClientFactory.SetCredentials("YourUsername", "YourPassword");

            var client = ClientFactory.GetInstitutionsController()

            try
            {
                var result = client.CreateInstitution(new Institution());
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling Institution.Create: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }

        }
    }
}