Lendica Backend Integration Guide
This document provides an overview of integrating your platform with Lendica using a backend-only integration. It outlines the integration flow, API endpoints, data models, configuration options, and best practices to ensure a seamless and scalable implementation.
Table of Contents
Introduction
Lendica provides two core financing products:
- PayLater: Allows companies to finance their accounts payable, providing flexibility to pay vendors over time.
- FundNow: Enables companies to finance their accounts receivable, providing immediate access to cash from outstanding invoices.
This guide is intended for partners who wish to integrate with Lendica's products through a backend integration. The integration enables partners to offer financing options to their customers seamlessly within their platform.
Terminology
Term | Definition |
---|---|
Partner | Your platform integrating with Lendica. |
Company | Your customer who will be using Lendica's financing via your platform. |
Vendor | The supplier or entity to whom the Company owes money (for PayLater). |
Customer | The entity that owes money to the Company (for FundNow). |
PayLater | A Lendica product that allows companies to pay vendors later by financing their bills. |
FundNow | A Lendica product that allows companies to receive immediate funds on outstanding invoices. |
Partner Name | The name for your platform in Lendica's system. |
Partner Company UUID | The unique identifier for your customers within your platform. |
Integration Overview
The backend integration with Lendica involves the following key components:
- Application Submission: Collecting and submitting your customer's information to Lendica for underwriting.
- Approval Retrieval: Fetching approval statuses and credit details for your customers.
- Transaction Submission: Submitting bills (PayLater) or invoices (FundNow) for financing.
By integrating with Lendica's products, you can offer your customers:
- Extended payment terms and improved cash flow management (PayLater)
- Immediate access to funds from accounts receivable (FundNow)
Integration Flow
The integration process consists of three main steps:
- Company Application Submission
- Fetching Approval Details
- Transaction Submission for Financing
1. Company Application Submission
View the Submit Application API documentation here:
When a new customer (Company) is onboarded to your platform, you need to submit their application details to Lendica for underwriting.
- Purpose: To onboard the Company and apply for an Approval (credit line) in Lendica's system.
- API Endpoint:
/submit/application
- Data Required: Application details including company and contact information.
Flow:
- Data Collection: Collect the necessary information from your customer during onboarding or application.
- API Request: Send a POST request to Lendica's
/submit/application
endpoint with the application data. - Underwriting Process: Lendica processes the application and performs underwriting to assess creditworthiness.
- Response Handling: Lendica responds with the ID of the created Company.
Submitting Documents:
To submit documents along with the application, first submit the Application details. Upon success, you can submit files using the Submit Document API route
2. Fetching Approval Details
View the Approval Status API documentation here:
After the underwriting process, you need to retrieve the approval status and credit details for your customer.
- Purpose: To determine financing eligibility and available credit limits.
- API Endpoint:
/partner/status/approvals
(from Lendica's Status API) - Data Required:
partner_company_uuid
to identify the customer.
Flow:
- API Request: Send a GET request to Lendica's
/partner/status/approvals
endpoint with thepartner_company_uuid
. - Data Retrieval: Lendica responds with the approval details.
- Integration Logic: Use this information within your platform to enable or disable financing options, display credit limits, etc.
3. Transaction Submission for Financing
Based on your product integration, submit either bills for PayLater or invoices for FundNow:
PayLater Bill Submission
- API Endpoint:
/submit/paylater/bill
- Data Required: Bill details, Company information, and Vendor information
FundNow Invoice Submission
- API Endpoint:
/submit/fundnow/invoice
- Data Required: Invoice details, Company information, and Customer information
Flow:
- Data Preparation: Gather the transaction details from your platform.
- API Request: Send a POST request to the appropriate endpoint with the transaction data.
- Financing Process: Lendica processes the request and evaluates the financing terms.
- Response Handling: Lendica provides a response with deal confirmation.
- Customer Interaction: Display confirmation within your platform.
Configuration Options
When submitting transactions for financing, you can configure how funds are disbursed and collected using the following flags in your request:
-
pay_partner_platform
:- PayLater Purpose: Determines whether Lendica should disburse funds to your platform's bank account instead of the vendor's bank account.
- FundNow Purpose: Determines whether Lendica should disburse funds to your platform's bank account instead of the company's bank account.
- Usage:
- Set to
true
if you want funds to be disbursed to your platform. - Set to
false
for direct disbursement to the vendor (PayLater) or company (FundNow).
- Set to
-
collect_from_partner_platform
:- Purpose: Determines whether Lendica should collect repayments from your platform's bank account instead of from the customer's bank account.
- Usage:
- Set to
true
if you will handle collecting repayments from the customer. - Set to
false
if Lendica should collect repayments directly from the customer.
- Set to
PayLater-Specific Options:
partner_is_vendor
:- Purpose: Indicates whether your platform is also the vendor of the bill.
- Usage:
- Set to
true
if your platform is the vendor (vendor details not required). - Set to
false
if the vendor is a separate entity (include vendor details).
- Set to
Example Scenarios:
PayLater Scenarios:
-
Platform as vendor, with direct customer repayment:
partner_is_vendor
:true
pay_partner_platform
:true
collect_from_partner_platform
:false
-
Platform handling all transactions:
partner_is_vendor
:false
pay_partner_platform
:true
collect_from_partner_platform
:true
FundNow Scenarios:
-
Direct disbursement to company, platform handles collections:
pay_partner_platform
:false
collect_from_partner_platform
:true
-
Platform handles all transactions:
pay_partner_platform
:true
collect_from_partner_platform
:true