put https://loanpro.simnang.com/api/public/api/1/odata.svc/Loans()
This request allows you to link a customer to a loan.
General
Loans and customers are "linked" when they become associated with each other. Here's what you need to know about linking loans and customers:
- This request is sent through the
Loans
endpoint. Thus, theCustomers
object is included in the payload. - Both loans and customers can be created without being associated to each other.
- Similar to the UI, you can link multiple customers to a loan in a single request.
- Like we've mentioned in other requests, many users tend to want to simultaneously link a customer when they create a new loan within one request. If this is the case for you, you will need to create a new customer first. Here's why:
When you create a new loan and link a customer all within the same request, you send it through theLoans
endpoint. Therefore, you will need a valid customer ID since you can't create a customer through theLoans
endpoint.
For information on how to simultaneously link a customer while creating a new loan, take a look at our Create New Loan request.
And for an example of how linking works within the UI, read our Link a Customer to a Loan article.
Database
For information on loans and customers database tables, see the following articles:
- Database – Loan Table (loan_entity)
- Database – Loan Setup (loan_setup_entity)
- Database – Loan Status Entity (loan_status_entity)
- Database – Customer Main Table (customer_entity)
{
"Customers": {
"results": [
{
"__id": 873,
"__setLoanRole": "loan.customerRole.primary"
}
]
}
}
Try It Instructions
Our requests often provide sample payload information so that you can receive a 200 response from simply hitting the Try It button. This request is ready for you—hit Try It to send the request.
However, if you would like to try this request with your own tenant account, make sure to change the headers to match your own authentication information.