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:
- Create the application in Lendflow, or look up an application that already exists, so Lendflow has the deal.
- Attach a widget to that deal by using the application ID and, for some widget types, the owner ID.
- Place the widget on your page so the applicant can finish consent, a bank connection, or other remaining screens without starting the application over.
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.- Log in to Lendflow. In the left-side menu, open the Integrations tab, then open Widget Integration.
- 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.
- 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.
- Place the container
divwhere the widget should appear on your page. Paste thescriptbefore 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.
Consent widget
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
- 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 asconsent,consent_bank_statements, ortax_details_consent_bank_statements, totrue.
Example request body:
- A successful request returns 200 OK with the generated links under
data. The current OpenAPI response shape is an object such as:
consent_script_link response.
- If the generated value is an embeddable script, paste it into your HTML before the closing
</head>or</body>tag and use a container whoseidmatcheslink_params.target_id. If the operation returns a URL, send or redirect the applicant to that URL.
FAQ
How do I generate Plaid, DocuSign, Codat, or resume links for an application?
How do I generate Plaid, DocuSign, Codat, or resume links for an application?
These are temporary links for an application that already exists. They collect additional data, for example Plaid or DocuSign, and attach that data to that deal. You can generate them whether the applicant started in the widget or through the API.Use Create Temporary Application Links (Read the requested links from the response’s
POST /api/applications/{application_id}/temporary_links).- Send your API bearer token. Get a login token from Get Bearer Token. For a long-lived token, open your profile in Lendflow, select Integration Tokens, and create a token. See Integration Tokens.
- Send the Lendflow application UUID so the links belong to the correct deal. If you submitted the application through the API, use
data.idfrom the create response. You can also find it with List Applications (GET /api/applications). If the application started in the widget, you can find the UUID on the Deals tab in the left-side menu. - In the body, set the links you want to
true. The following example returns DocuSign and Plaid:
data object. Copy the applicable link and send it to the applicant, or open it in the browser.When should I use Get Application Links?
When should I use Get Application Links?
Use Get Application Links (
GET /api/applications/{application_id}/links) for application service links and tokens such as Plaid, DocuSign, Codat, Rutter, resume, and bank statements. Use Create Temporary Application Links when the applicant needs a short-lived action or widget link.When do I use the consent widget instead of the lending widget?
When do I use the consent widget instead of the lending widget?
Use the lending widget when applicants should complete the full application in Lendflow. 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 page.
Where should applicants go after they finish the widget?
Where should applicants go after they finish the widget?
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.