Skip to main content

Create Loan Mandate

base_url: https://demo.etranzact.com/bankit-api/antPeer/v1

Description : This endpoint is to create loan mandate

Request Parameters

ParameterTypeDescriptionRequired
loanMandate object An Object holding the loan mandate detailsYes
bvnstring BVN of the customer the loan is given to.Yes
merchantIdstringMerchant ID. This is to be verified before performing operationYes
loanReferencestring Unique loan reference Yes
linkedAccountNumberstringCustomers account number the loan will be creditedNo
loanAmountintegerLoan amount provided to customerYes
customerIDstring Customer identifierYes
bankCodestringBank code linked account belongs toYes
customerNamestringCustomer’s nameYes
customerEmailstringCustomer’s emailYes
phoneNumberstringCustomer’s phone numberYes
totalRepaymentExpectedinteger Total amount expected to be repaid by the customerYes
loanTenureintegerDuration of the loan. This should match the number of objects in collectionPaymentScheduleYes
repaymentTypestring Repayment typeYes
preferredRepaymentBankCBNCodestringBank code for the preferred account repayment will be made fromYes
preferredRepaymentAccountstringPreferred account number repayment will be made fromYes
collectionPaymentSchedulearrayAn array holding the repayment schedule. Number of object present should match number specified in loan tenureYes
repaymentDatestring Date repayment is to take placeYes
repaymentAmountInNairainteger Amount to be repayed during the set dateYes
paymentReferencestringReference for the repayment schedule. This should be in the format loanReference_scheduleIdYes
POST / user/addMandate
curl `{base_url}/user/addMandate`
-H "Content-type: application/json"
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X POST
-d '{
"loanMandate":{
"bvn": "1110739000",
"merchantId": "ANT-PEER",
"loanReference": "UUWiYZzRp-970",
"linkedAccountNumber": "03405744",
"loanAmount": 2200,
"customerID": "8",
"bankCode": "057",
"customerName": "Charles",
"customerEmail": "guru@test.com",
"phoneNumber": "2347035583333",
"totalRepaymentExpected": 200,
"loanTenure": 2,
"repaymentType": "Collection",
"preferredRepaymentBankCBNCode": "224",
"preferredRepaymentAccount": "094564844",
"collectionPaymentSchedule": [
{
"repaymentDate": "2022-11-11T23:57:15.286Z",
"repaymentAmountInNaira": 150,
"paymentReference": "UUWiYZzRp-970_01"
},
{
"repaymentDate": "2022-12-11T23:57:15.286Z",
"repaymentAmountInNaira": 50,
"paymentReference": "UUWiYZzRp-970_02"
},
{
"repaymentDate": "2023-01-11T23:57:15.286Z",
"repaymentAmountInNaira": 50,
"paymentReference": "UUWiYZzRp-970_03"
}
]
}
}
'