Developer Center

Loan Fractionalisation - P2P Lending

Last Updated: Oct 03, 2018 02:52PM CEST




Starting with Mambu 3.13 a P2P lending functionality was added to allow loan accounts to be funded by investor deposit accounts.

Get accounts

The funders information for a loan account can be found in the loan account JSON. Using GET API for Loan Accounts the funders for a loan account can be seen.

    // Sample response isolated with funds from loan account
    // GET: ~api/loans/ZNTS744

Creating accounts

New accounts could be created using the Loan Accounts API.
      ...//Other account info
} /api/loans
Parameter Value
guarantorKey The encoded key of the client that will invest in the loan
savingsAccountKey The client savings account encoded key. It needs to be an active loan of type Funding Account
amount The amount to be funded by the savings account. The account should have enough balance to cover this amount

Updating loan funds

Funding loans can be done through a POST to /api/loans/{loan_id}/funds API. Any existing investment funds that are not specified in this update call will be deleted and activities will be logged for this change.
      {// edit an existing investment fund
      {// add a new investment fund
Permissions required:

* Create funds. Adding new funding source.
* Edit funds. Editing an existing funding source.
* Delete funds. Deleting funding source.

Retrieving the schedule

Get the list of repayments or the list of loans which are founded by a particular account.
//retrieve  a list of repayments with the principal due/paid, state, last payment, and other details
GET /api/savings/{SAVINGS_ACCOUNT_ID}/funding/{LOAN_ACCOUNT_ID}/repayments

//get the list of loans which are funded by a particular account
GET /api/savings/{SAVINGS_ACCOUNT_ID}/funding
Permissions required:
 * View Fund Details.
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found