POST api/PR_PreviewLoanSchedule
Request Information
URI Parameters
None.
Body Parameters
EmployeeLoanData| Name | Description | Type | Additional information |
|---|---|---|---|
| DB | string |
None. |
|
| CompanyID | integer |
None. |
|
| UserEmail | string |
None. |
|
| EmployeeLoanID | integer |
None. |
|
| EmployeeintID | integer |
None. |
|
| LoanID | integer |
None. |
|
| Principal | decimal number |
None. |
|
| InterestMethod | string |
None. |
|
| InterestRate | decimal number |
None. |
|
| Instalment | decimal number |
None. |
|
| Months | integer |
None. |
|
| StartPeriod | integer |
None. |
|
| StartYear | integer |
None. |
|
| DisbursementDate | date |
None. |
|
| Notes | string |
None. |
|
| ExternalReference | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DB": "sample string 1",
"CompanyID": 2,
"UserEmail": "sample string 3",
"EmployeeLoanID": 4,
"EmployeeintID": 5,
"LoanID": 6,
"Principal": 7.0,
"InterestMethod": "sample string 8",
"InterestRate": 9.0,
"Instalment": 10.0,
"Months": 11,
"StartPeriod": 12,
"StartYear": 13,
"DisbursementDate": "2026-12-01T08:13:55.9745421+00:00",
"Notes": "sample string 14",
"ExternalReference": "sample string 15"
}
application/xml, text/xml
Sample:
<EmployeeLoanData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AdroitERPWebApis"> <CompanyID>2</CompanyID> <DB>sample string 1</DB> <DisbursementDate>2026-12-01T08:13:55.9745421+00:00</DisbursementDate> <EmployeeLoanID>4</EmployeeLoanID> <EmployeeintID>5</EmployeeintID> <ExternalReference>sample string 15</ExternalReference> <Instalment>10</Instalment> <InterestMethod>sample string 8</InterestMethod> <InterestRate>9</InterestRate> <LoanID>6</LoanID> <Months>11</Months> <Notes>sample string 14</Notes> <Principal>7</Principal> <StartPeriod>12</StartPeriod> <StartYear>13</StartYear> <UserEmail>sample string 3</UserEmail> </EmployeeLoanData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PR_LoanSchedule| Name | Description | Type | Additional information |
|---|---|---|---|
| Instalment | decimal number |
None. |
|
| FlatInterest | decimal number |
None. |
|
| TotalInterest | decimal number |
None. |
|
| TotalRepayable | decimal number |
None. |
|
| Lines | Collection of LoanScheduleLine |
None. |
|
| ErrorMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Instalment": 1.0,
"FlatInterest": 2.0,
"TotalInterest": 3.0,
"TotalRepayable": 4.0,
"Lines": [
{
"No": 1,
"Period": 2,
"Year": 3,
"Opening": 4.0,
"Interest": 5.0,
"Payment": 6.0,
"Closing": 7.0,
"Paused": true
},
{
"No": 1,
"Period": 2,
"Year": 3,
"Opening": 4.0,
"Interest": 5.0,
"Payment": 6.0,
"Closing": 7.0,
"Paused": true
}
],
"ErrorMessage": "sample string 5"
}
application/xml, text/xml
Sample:
<PR_LoanSchedule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AdroitERPWebApis">
<ErrorMessage>sample string 5</ErrorMessage>
<FlatInterest>2</FlatInterest>
<Instalment>1</Instalment>
<Lines>
<PayrollLoans.LoanScheduleLine>
<Closing>7</Closing>
<Interest>5</Interest>
<No>1</No>
<Opening>4</Opening>
<Paused>true</Paused>
<Payment>6</Payment>
<Period>2</Period>
<Year>3</Year>
</PayrollLoans.LoanScheduleLine>
<PayrollLoans.LoanScheduleLine>
<Closing>7</Closing>
<Interest>5</Interest>
<No>1</No>
<Opening>4</Opening>
<Paused>true</Paused>
<Payment>6</Payment>
<Period>2</Period>
<Year>3</Year>
</PayrollLoans.LoanScheduleLine>
</Lines>
<TotalInterest>3</TotalInterest>
<TotalRepayable>4</TotalRepayable>
</PR_LoanSchedule>