Borrower Onboarding and Loan Application
Aggregated API endpoint for borrower onboarding and loan application
Introduction
This api endpoint aggregates all the steps involved in borrower onboarding and loan application into a single api call. This api handles creating the borrower, verifying the borrower bank account details, and processing a default loan for the created borrower. To have a better understanding of the steps involved in onboarding a borrower, please check Borrower Onboarding
When the endpoint is called,
The system checks to see if the borrower with the provided identity number exists for the aggregator. If the borrower exists, the onboarding flow proceeds to the next step which is the bank account verification. If the borrower does not exist for that aggregator, the borrower is created under that aggregator.
Upon bank account verification; if the borrower has a bank account already registered, the onboarding flow proceeds to loan request and approval. However, if a bank account does not exist, the bank account is verified and added for that borrower.
Once bank account is done, loan request and approval is done. see Loan Request and Approval
See Borrower Onboarding and Loan Application endpoint below.
Get Country's States
GET
{{BaseUrl}}api/v1/account/all_state?country_code=NG
Endpoint to get list of states for a specific aggregator's country. Call this endpoint to get the respective states based on an aggregator's country before processing borrower onboarding and loan application
Query Parameters
aggregator_id
string
The specific aggregator whose nationality you want to get states for
state_id
number
The id of the single state you want to retrieve for a nationality
country_code
string
The country code of the aggregator's nationality
Get Country's Bank List
GET
{{BaseUrl}}api/v1/account/signed_banks_country?country_code=NG
Endpoint to get all bank list for a specific aggregator's country. Call this endpoint to get respective banks before processing borrower onboarding and loan application.
Query Parameters
country_code
string
The aggregator's country code eg: NG, KE
Get Sectors
GET
{{BaseUrl}}/api/v1/misc/sectors
Endpoint to get all sectors.
Get Aggregator Products
GET
{{BaseUrl}}/api/v1/misc/query_product_by_aggregator
Headers
Authorization
string
The bearer token of the authenticated aggregator
Borrower Onboarding and Loan Application
POST
{{BaseUrl}}/api/v1/account/loan_application
Endpoint to process borrower onboarding and loan application.
Headers
Authorization
string
Authorised token received after successful aggregator authentication
Request Body
last_name
string
The last name of the borrower
first_name
string
The first name of the borrower
bank_account_name
string
The name of the borrower's bank account. This is required only for non Nigerian aggregators.
identity_number
string
This is the unique valid identification number of the borrower used to perform KYC.
string
The borrower's email.
phone_number
string
The borrower's phone number.
gender
string
The gender of the borrower which should either be male or female
photo_url
string
The base 64 image of the borrower or the url of the uploaded image.
residence_address
string
Address of the borrower.
city
string
City of the borrower.
state
string
State of the borrower. To view list of states under an aggregator see Get Country's States endpoint above.
date_of_birth
string
Borrower's date of birth in the format yyyy-MM-dd
borrower_type
integer
The type of borrower to be onboarded. 1 for individual and 2 for corporate.
company_name
string
The name of the company being registered for corporate borrower.
registration_number
string
Company's business registration number for corporate borrower.
company_address
string
Company address for corporate borrower.
company_city
string
City where company is located for corporate borrower.
company_state
string
State where company is located for corporate borrower. To view all states for an aggregator nationality, see Get Country's State endpoint above.
bank_account_num
string
The bank account number of the borrower.
bank_code
string
The bank code of the borrower's bank. To view all banks and their bank codes see Get Country's Bank List endpoint above.
aggregator_loan_ref
string
The unique loan reference for the aggregator. This will be generated by the client.
product_id
integer
The Id of the product from which the loan is being requested. To view all the products for a particular aggregator see Get Aggregator Product endpoint above
sector_code
string
The sector code of the borrower applying for the loan. To view all sectors and their sector codes, see the Get Sectors endpoint above.
loan_tenure
integer
The duration of the loan in months
loan_amount
number
The amount to be loaned-out.
annual_interest_rate
number
The loan interest rate. If the interest rate is zero, the loan product's interest rate will be used.
loan_purpose
string
The reason for which the the loan is created.
customer_category
string
The customer's job category
create_wallet
boolean
This indicates if wallet is to be created for a user or not (true or false)
country_code
string
Certified country code is entered here such as "NG" (Nigeria), "GH" (Ghana), "SA" (South Africa)
Get Loan by Reference
GET
{{BaseUrl}}/api/v1/eco/agg_search_loans
Endpoint to fetch a loan by using either aggregator generated loan reference or Advancly generated loan reference. The loan status can be found in the status field of the response
Query Parameters
aggregator_loan_ref
string
Aggregator generated reference
loan_ref
string
Advancly generated reference
Last updated