API – Employer Information
General
Like in the LMS UI, you can use the LoanPro API to create and edit customers' employer information.
To edit employer information for a customer, send a PUT request to the URL of the customer. You will need to know the customer ID of the customer whose information you'd like to edit. With a customer ID in mind, send a PUT request to the following endpoint:
PUT https://loanpro.simnang.com/api/public/api/1/odata.svc/Customers(1137)
In the example above, a customer ID of 1137 is used. Remember to change this to the ID of your selected customer.
Below is a sample body of the request.
{
"Employer": {
"phone": "5555555555",
"payDate": "2015-11-30",
"Address": {
"address1": "123 Oak Lane",
"city": "San Diego",
"state": "geo.state.CA",
"zipcode": "145245498",
"country": "company.country.usa"
},
"hireDate": "2015-11-11",
"incomeFrequency": "customerEmployer.incomeFrequency.annually",
"payDateFrequency": "customerEmployer.payDateFrequency.weekly",
"income": "15000.00",
"companyName": "Merrill Lynch",
"title": "Shift Manager"
}
}
- phone – The phone number of the employer
- payDate – The next pay date of the customer (YYYY-MM-DD)
- Address – The address of the employer (see API – Addresses)
- hireDate – The date the customer was hired (YYYY-MM-DD)
- incomeFrequency – The income frequency of the customer (See API Employer Collections)
- payDateFrequency – The pay date frequency of the customer (See API Employer Collections)
- income – The amount of income the customer receives
- companyName – The name of the company where the customer works
- title – The job title of the customer