Create Investment Order
Description
This web service creates an investment order given a loan Id, and returns the Loan Payment Transaction created.
Definition
https://<domain>/services/apexrest/peer/v1/investmentOrders
Parameters
The table given below provides details of the request parameters used by this web service:
Fields |
Type |
Description |
---|---|---|
loanId * |
String | This is used to identify the loan account. This should be specified in the url, e.g. /v1/investmentOrders/The field used to identify the loan account is the Loan_Account_Id_Field__c field in API Configuration custom setting. If a field is not mentioned the Salesforce ID is used. |
status |
String |
|
loanStatus |
String |
|
Sample request
The sample request to be sent is as shown below:
https://na11.salesforce.com/services/apexrest/peer/v1/investmentOrders?investorId=001G000001Phdoe&status=Active&loanStatus=Active - Good Standing