Waiving Fees
Description
This web service is used to waive charges on one or more fees of a Loan Account. It inputs a list of fees for a particular Loan Account. If no waive amount is mentioned, all the charges under the given fees are waived. Else, the number of charges that fulfill the given waive amount are waived. This web service returns a status as success or an exception.
Definition
https://<domain>/services/apexrest/peer/v2/loanAccounts/waiveFees
Parameters
The following table provides details of the request parameters used by this web service:
Fields |
Type |
Description |
---|---|---|
loanAccountId |
String | This is used to identify the Loan Account for which fee is to be waived. This should be specified in url. e.g. /v2/loanAccounts/reschedule/The field used to identify the loan account is the Loan_Id_Field__c field in API Configuration custom setting. If a field is not mentioned the Salesforce ID is used. |
feeToBeWaivedNames | This is a List of names of the fees that have to be waived. | |
waivedAmount | This is the amount of the total charge (of all the charges for the given fees) that has to be waived. |
Error Messages
When you use this web service you can receive the possible error messages as shown in the table below:
Error code |
Error Message |
System.Label |
Reason |
HTTP Status Code |
---|---|---|---|---|
Sample Request
The sample request to be sent is as shown below:
https://na35.salesforce.com/services/apexrest/peer/v2/loanAccounts/waiveFees