put https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans()
This request links multiple loan accounts together via a parent-child relationship.
Click here to learn more about this request
Parent-child loan linking is a function of the Account Link tool and allows you to designate multiple loans as the child of a single parent loan. When transactions are posted to the parent loan, a transaction is also posted to each child loan in a specified percentage. Here's what you need to know about this request:
- This request is sent through an endpoint including the parent loan's ID. Then, the
LoanChilds
object is included in the payload to link child loans. - A minimum of one parent loan and one child loan is needed; however, its possible to set multiple child loans.
- Loans must not have any current links to other loans. These links are one-dimensional—if a loan is a child to a parent loan, it cannot act as a parent to any other loan.
- The percentage fields in the
LoanChilds
array(s) need to add up to exactly100
. This field determines the how transaction amounts from the parent loan are dispersed to the child loans. For example, if there is only one child loan, thepercentage
field should be set to100
, as the full transaction amount will be dispersed to a single child loan.
For an example of how loan linking works within the UI, check out our Parent-Child Loan Linking article.
Database
For information regarding loans and database tables, see the following articles:
- Database – Loan Table (loan_entity)
- Database – Loan Status Entity (loan_status_entity)
- Database – Linked Loan Info (linked_loan__entity)
{
"LoanChilds":{
"results":[
{
"childId":"9337",
"enrolled":1,
"percentage":50
},
{
"childId":"9411",
"enrolled":1,
"percentage":50
}
]
}
}