API – Loan Funding


This article explains how to fund a loan through the API. For more information regarding loan funding in general or the process in the UI, see Fund a Loan.

How to Fund a Loan

To create a loan funding request, you will need to send a PUT request to the URL of the desired loan. For example, to create a loan funding request for the loan with the id 702, the URL would be as follows.

PUT  https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(702)

Request Body


Please note that loan funding requests update the loan, and need to have the “__id” and “__update” fields (see API – Updating Elements).

  • amount – The amount funded
  • date – The date it was funded
  • cashDrawerId – ID of the cash drawer to pull money out of
  • whoEntityType – Usually “Entity.Customer”
  • method – Funding method
  • authorizationType – See Loan Funding Collection
  • Country – See Loan Funding Collection
  • whoEntityId_customer – ID of the customer
  • whoEntityId – ID of the entity
  • selectedProcessor - ID of the processor through which the payment will be processed
  • paymentAccountId - The ID of the customer's bank account from which the payment will be processed.

StackBlitz Example

Many of our articles use StackBlitz examples like this. These examples are like a window into a REST client right here in your browser. The window is divided into two sides. Developers can use info in the editor on the left side when configuring your API integration, and the right side shows a preview of a REST client. Click 'Preview' on the bottom, and you'll only see the REST client.

The entire request is set up and connected to a demo API tenant in LMS. Just scroll down and click 'send' and you should get a 200 response. If you want to get some practice with error codes, try editing the endpoint, headers, method and payload to see what responses you get.

How did we do?

Powered by HelpDocs (opens in a new tab)