POST api/HR/AddEmployeeLoan
Request Information
URI Parameters
None.
Body Parameters
AddEmployeeLoanViewModelName | Description | Type | Additional information |
---|---|---|---|
Employee_Loan_ID | integer |
None. |
|
Employee_ID | integer |
None. |
|
Loan_Amount | decimal number |
None. |
|
Debt_Amount | decimal number |
None. |
|
Loan_Date | string |
None. |
|
Loan_Status_ID | integer |
None. |
|
Start_Date | string |
None. |
|
Loan_Notes | string |
None. |
|
Voucher_ID | integer |
None. |
|
LoadDebts | Collection of AddEmployeeLoanDebitViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "Employee_Loan_ID": 1, "Employee_ID": 2, "Loan_Amount": 3.1, "Debt_Amount": 4.1, "Loan_Date": "sample string 5", "Loan_Status_ID": 6, "Start_Date": "sample string 7", "Loan_Notes": "sample string 8", "Voucher_ID": 9, "LoadDebts": [ { "Employee_Loan_ID": 1, "Debt_Date": "sample string 2", "Debt_Amount": 3.1, "Debt_Notes": "sample string 4" }, { "Employee_Loan_ID": 1, "Debt_Date": "sample string 2", "Debt_Amount": 3.1, "Debt_Notes": "sample string 4" } ] }
application/xml, text/xml
Sample:
<AddEmployeeLoanViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels"> <Debt_Amount>4.1</Debt_Amount> <Employee_ID>2</Employee_ID> <Employee_Loan_ID>1</Employee_Loan_ID> <LoadDebts> <AddEmployeeLoanDebitViewModel> <Debt_Amount>3.1</Debt_Amount> <Debt_Date>sample string 2</Debt_Date> <Debt_Notes>sample string 4</Debt_Notes> <Employee_Loan_ID>1</Employee_Loan_ID> </AddEmployeeLoanDebitViewModel> <AddEmployeeLoanDebitViewModel> <Debt_Amount>3.1</Debt_Amount> <Debt_Date>sample string 2</Debt_Date> <Debt_Notes>sample string 4</Debt_Notes> <Employee_Loan_ID>1</Employee_Loan_ID> </AddEmployeeLoanDebitViewModel> </LoadDebts> <Loan_Amount>3.1</Loan_Amount> <Loan_Date>sample string 5</Loan_Date> <Loan_Notes>sample string 8</Loan_Notes> <Loan_Status_ID>6</Loan_Status_ID> <Start_Date>sample string 7</Start_Date> <Voucher_ID>9</Voucher_ID> </AddEmployeeLoanViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultModelName | Description | Type | Additional information |
---|---|---|---|
Success | string |
None. |
|
ErrorText | string |
None. |
|
Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": "sample string 1", "ErrorText": "sample string 2", "Data": {} }
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models"> <Data /> <ErrorText>sample string 2</ErrorText> <Success>sample string 1</Success> </ResultModel>