Using DocuSign integration with the API

Question: How can I use LoanPro’s DocuSign integration through the LoanPro API?

Answer:

As a quick overview, our integration with DocuSign works as follows.  You will send an HTTP post to an endpoint in LoanPro specifying the custom form ID and the loan ID, and you will receive a response back from the API with an embedded URL for DocuSign’s website.  When the link is opened in a browser you will be able to review the document and then send the document to the customer for signing.  When submitted, the customer will receive an email notification with a link to DocuSign’s website to sign the form.  Once the form has been signed by the customer then a callback will be made from DocuSign to LoanPro to save the signed form to the documents section of the loan.

Please note that LoanPro’s integration is built from the lender’s perspective and assumes that the Lender will first review the document and send it to the customer.  It then requires the customer to open the email and click the link to sign it, all independently of LoanPro. It does not provide a method for the customer to sign it directly via the embedded URL.

The API call to initiate this process from LoanPro is:

POST  https://loanpro.simnang.com/api/public/api/1/docusign/send

With the following JSON payload in the HTTP post: (replacing the loanId and customFormId as desired)

{
"loanId":1,
  "customFormId":3,
  "returnUrl":"https://loanpro.simnang.com/client/app/views/docusign_sent.html"
}

The response you will receive from the LoanPro API will look similar to the following and include the embedded URL for DocuSign:

{
  "d":{
  "url":"https://demo.docusign.net/Member/StartInSession.aspx?StartConsole=1&t=92364b3a-50c7-4d7d-95e3-7fbf1a4cad6b&DocuEnvelope=3470b1df-fb09-4e90-be7d-bd3e0e862754&send=1"
  }
}

That URL can be then be opened in a browser to continue the process with DocuSign.  LoanPro will not be involved in the process again until after the document has been signed by the customer.  At that time then DocuSign will send a callback request to LoanPro’s API which will send the signed document as a PDF and the signed document will be attached to the loan account.


How did we do?


Powered by HelpDocs (opens in a new tab)