post https://demo.onefin.in/api/v1/client/line/
After you have all the loan details call this API to book the loan into the Lender system.
The payload for the Onboarding API.
{
"mobile_number": "<customer mobile number>",
"partner_loan_id": "<partner loan id>",
"full_name": "<full name of the customer>",
"email": "<email id of the customer>",
"gender": "<gender of the customer>",
"date_of_birth": "<date of birth of the customer>",
"fathers_name": "<customer's father name>",
"mothers_name": "<customer's mother name>",
"address": "<address of the customer>",
"pincode": "<pincode of the customer>",
"monthly_income": "<monthly income of the customer>",
"monthly_emi": "<monthly emi of the customer>",
"credit_score": "<credit score of the customer>",
"ckyc_no": "<ckyc number of the customer>",
"employment_type": "<employment type of the customer>",
"company_name": "<company name of the customer>",
"loan_application_date": "<loan application date of the customer>",
"agreement_date": "<date on the loan agreement>",
"line_amount": "<line amount to be given to the customer>",
"line_expiry_date": "<expiry date when the line amount to be given to the customer will expire>",
"interest_rate": "<interest rate which is charged>",
"payment_frequency": "<frequency at which payment is to be done>",
"loan_type": "<personal_loan/education_loan/supply_chain>",
"agreement_signature_type": "<physical/e-signature/click-wrap>",
"bank_account": {
"ac_number": "<bank account number>",
"ifsc_code": "<IFSC code of customer>",
"nach_umrn": "<NACH UMRN of the given bank account>",
"nach_type": "<physical/api-mandate>",
"ac_name": "<name of the customer in bank account>"
},
"kyc": [{
"kyc_type": "aadhaar",
"identifier": "<last 4 digits of customer aadhaar number>",
"verified_using": "<image/offline-eKYC/>",
"verification_id": "<identifier used for KYC>",
"kyc_name": "<name on the kyc document>",
"is_verified": true,
"address": "<only for aadhaar cases>"
},
{
"kyc_type": "pan",
"identifier": "<PAN number of the customer>",
"verified_using": "<image/nsdl-api>",
"verification_id": "<identifier used for KYC>",
"kyc_name": "<name on the kyc document>",
"is_verified": true
}
],
"additional_variables": {}
}
The API would return a unique lead id and a loan account number. This loan account number should be used in the loan agreement.
POST /api/v1/client/line/
To get any details about the lead, call the same API with a GET request.
GET /api/v1/client/line/<lead_id>/
Find a detailed description of the API parameters in Loan Booking API Parameters table. Note that the table is the final authority on what should be passed in the API.
Sample Response:
{
"is_success": true,
"data": {
"loan_account_number": "<loan account no, which should go into the agreement>",
"lead_id": "<unique lead id>"
}
}
Response for Duplicate Partner Loan ID
Since Partner Loan ID is a unique field, re-creating a loan with the same ID will result in the following error.
The Loan Account Number and the lead ID of the existing Partner Loan ID are shared back.
{
"is_success": false,
"error": {
"message": "Partner Loan ID already exists.",
"code": "duplicate_partner_loan_id",
"details": {
"loan_account_number": "abc333495492",
"lead_id": "d82e0371-b5d5-4cfa-b359-570f33d5d57f"
}
}
}