GET api/loanreason
Get loan reasons.
Requires Authorisation
The api request must supply authenticated token in a custom variable in the request header. The custom variable name is configured in web.config. The default name of the custom variable is “X-Fern-Token”.
Requires Api License and User Access
The api requires license and user permission for API ID, GETapi/loanreason. The user permission can be defined on User Settings screen in Abacus. For license, please contact Fern manager.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Response Codes
Success Status:
- OK (200), please see resource description below.
Failed Status(es):
Resource Description
Returns list of loan reasons.
Collection of LoanReasonDto| Name | Description | Type | Additional information |
|---|---|---|---|
| LoanResaonID |
Unique Identifier of Loan Reason. |
integer | Read-Only. |
| Code |
Code of Loan Reason. |
string | |
| Description |
Description of Loan Reason. |
string | |
| AllProducts |
Boolean value to decide the loan products. |
boolean | |
| LoanProductIDs |
Unique Identifiers of Loan Product. |
string | Required. |
| DefaultItem |
Default item of Loan Reason. |
boolean |
Response Formats
application/json, text/json
Sample:
[
{
"loanResaonID": 1,
"code": "sample string 1",
"description": "sample string 2",
"allProducts": true,
"loanProductIDs": "sample string 3",
"defaultItem": true
},
{
"loanResaonID": 1,
"code": "sample string 1",
"description": "sample string 2",
"allProducts": true,
"loanProductIDs": "sample string 3",
"defaultItem": true
}
]
application/xml, text/xml
Sample:
<ArrayOfLoanReasonDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fern.Abacus.ObjectModel.Dto.CU">
<LoanReasonDto>
<AllProducts>true</AllProducts>
<Code>sample string 1</Code>
<DefaultItem>true</DefaultItem>
<Description>sample string 2</Description>
<LoanProductIDs>sample string 3</LoanProductIDs>
<LoanResaonID>1</LoanResaonID>
</LoanReasonDto>
<LoanReasonDto>
<AllProducts>true</AllProducts>
<Code>sample string 1</Code>
<DefaultItem>true</DefaultItem>
<Description>sample string 2</Description>
<LoanProductIDs>sample string 3</LoanProductIDs>
<LoanResaonID>1</LoanResaonID>
</LoanReasonDto>
</ArrayOfLoanReasonDto>