API – Loan Funding

General

This article talks about how to do loan funding.

To do loan funding, 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 https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans(702).

Request Body

{  
"id":"702",
"LoanFunding":{
"results":[
{
"amount":11500,
"date":"2019-02-08",
"cashDrawerId":"",
"whoEntityType":"Entity.Customer",
"method":"loan.funding.method.deposit",
"authorizationType":"loan.funding.auth.web",
"country":"company.country.usa",
"whoEntityId_customer":534,
"whoEntityId":534,
"selectedProcessor":"1",
"paymentAccountId":276
}
]
},
"__id":"702",
"__update":true
}

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.


How did we do?


Powered by HelpDocs (opens in a new tab)