Skip to main content

Widgets for Existing Deals

Use this guide when the applicant already started in your product. For example, you captured their information on your form, including declined or turndown deals, and you want them to continue in a Lendflow widget on your page. That includes the consent widget, bank statements, DocuSign, and other widgets you attach after the deal already exists in Lendflow. A deal is the application record in the Lendflow Dashboard. An application ID (application_id or uuid) identifies that deal. An owner ID identifies the person who should sign consent or complete DocuSign. This flow is different from a first-time widget on your website, where the applicant begins the full application in Lendflow. For that flow, log in to Lendflow, open the Integrations tab in the left-side menu, then open Widget Integration, and follow Embedding The Application Widget. In this guide you will:
  1. Create the application in Lendflow, or look up an application that already exists, so Lendflow has the deal.
  2. Attach a widget to that deal by using the application ID and, for some widget types, the owner ID.
  3. Place the widget on your page so the applicant can finish consent, a bank connection, or other remaining screens without starting the application over.
You can generate the snippet in the Lendflow Dashboard: open the Integrations tab in the left-side menu, then open Widget Integration, copy the snippet, and append the IDs. You can also generate a consent widget through the API.

Create the application and find IDs

Submit the application with Create Application Using Workflow Builder (POST /api/applications/workflow). Use the workflow template that matches how you process this deal. A full walkthrough is Submit A New Application Via The API. A successful request returns 200 OK with the created application under data. Use data.id as the application ID when you generate links or attach a widget to the application. The response does not use a top-level application_id field. Some widgets also need the owner ID: After you have those IDs, either append them to a snippet that you generated on the Integrations tab in the left-side menu, then Widget Integration, or generate a consent widget through the API.

Attach a UI-generated widget

Use this path when you configure the widget in the Lendflow Dashboard and then attach it to a deal that already exists. This is the same page you open from the Integrations tab in the left-side menu, then Widget Integration, to embed a new widget. You configure the widget type, workflow, branding, and redirect, copy the snippet, and then add this application’s IDs so the widget updates the existing deal instead of creating a new one.
  1. Log in to Lendflow. In the left-side menu, open the Integrations tab, then open Widget Integration.
  2. Configure the widget and copy the snippet by following Steps 1–8 in Embedding The Application Widget. Choose Embedded or Pop-out in Step 8.
  3. Not every setting is available in the dashboard for every widget type. After you copy the snippet, append the parameters your widget requires.
destination[mode]=bp is recommended so applicants can track the application in the Borrower Platform after they finish. See Borrower Platform.
  1. Place the container div where the widget should appear on your page. Paste the script before the closing </head> or </body> tag. The recommended container size is 550px wide by 500px high. A live sample page is LF - Embedded Widget. If the widget is already embedded on your website, generate the snippet again and update the widget links or scripts where they are embedded.
Use the consent widget when you already captured applicant information in your product, including declined deals, created the application through the API, and need the applicant to sign consent on your landing page. Do not use the consent widget when the applicant should complete a full lending widget. Generate the consent widget after the application exists. Through the API, only these widgets can be generated:
  • Consent
  • Consent, Bank Statements
  • Tax Details, Consent, and Bank Statements
  1. Call Create Temporary Application Links (POST /api/applications/{application_id}/temporary_links) after the application exists. In the JSON request body, identify the applicable owner and set the temporary link type you need, such as consent, consent_bank_statements, or tax_details_consent_bank_statements, to true.
Example request body:
  1. A successful request returns 200 OK with the generated links under data. The current OpenAPI response shape is an object such as:
Only requested and available links are returned. Use the API Reference for the current request fields and response schema instead of depending on the former consent_script_link response.
  1. If the generated value is an embeddable script, paste it into your HTML before the closing </head> or </body> tag and use a container whose id matches link_params.target_id. If the operation returns a URL, send or redirect the applicant to that URL.

FAQ

Redirecting to the Borrower Platform is recommended. Applicants can track the application and find information relevant to it there. You can also redirect to a URL that you specify. If you set the redirect to none (destination[mode]=none), the applicant sees a success screen and is not redirected.

Next steps

Embedding The Application Widget

In the left-side menu, open the Integrations tab, then open Widget Integration, and add Embedded or Pop-out to your website.

Deal Progress

Open a deal from the Deals tab in the left-side menu to see workflow stages in Deal Progress.