POST api/PayrollLoanRepay/Save

Request Information

URI Parameters

None.

Body Parameters

PayrollLoanRepaySaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

Employee

EmployeeLookup

Required

LoanEntry

PayrollLoanEntryLookupVM

Required

LoanRepayDate

string

Required

Refno

string

Required

String length: inclusive between 0 and 15

Loan

PayrollLoanMasterLookupVM

Required

RepayAmount

decimal number

None.

RepayManual

string

Required

Matching regular expression pattern: Y|N

RepayMonth

integer

Required

RepayYear

integer

Required

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

FinYear

integer

None.

AdjustType

string

Required

Matching regular expression pattern: N|L

Remarks

string

String length: inclusive between 0 and 500

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "Employee": {
    "EmployeeId": 1,
    "EmployeeName": "sample string 2",
    "Prefix": "sample string 3",
    "PresentHouseName": "sample string 4",
    "PresentAddress": "sample string 5",
    "EmployeeStatus": "sample string 6"
  },
  "LoanEntry": {
    "LoanEntryId": 1,
    "LoanEntryDate": "sample string 2",
    "Refno": "sample string 3",
    "Loan": {
      "LoanId": 1,
      "LoanName": "sample string 2"
    },
    "LoanAmount": 4.0,
    "LoanEmi": 5.0
  },
  "LoanRepayDate": "sample string 2",
  "Refno": "sample string 3",
  "Loan": {
    "LoanId": 1,
    "LoanName": "sample string 2"
  },
  "RepayAmount": 4.0,
  "RepayManual": "sample string 5",
  "RepayMonth": 6,
  "RepayYear": 7,
  "CreateUser": 8,
  "CreateIp": "sample string 9",
  "FinYear": 10,
  "AdjustType": "sample string 11",
  "Remarks": "sample string 12"
}

application/xml, text/xml

Sample:
<PayrollLoanRepaySaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <AdjustType>sample string 11</AdjustType>
  <BookId>1</BookId>
  <CreateIp>sample string 9</CreateIp>
  <CreateUser>8</CreateUser>
  <Employee>
    <EmployeeId>1</EmployeeId>
    <EmployeeName>sample string 2</EmployeeName>
    <EmployeeStatus>sample string 6</EmployeeStatus>
    <Prefix>sample string 3</Prefix>
    <PresentAddress>sample string 5</PresentAddress>
    <PresentHouseName>sample string 4</PresentHouseName>
  </Employee>
  <FinYear>10</FinYear>
  <Loan>
    <LoanId>1</LoanId>
    <LoanName>sample string 2</LoanName>
  </Loan>
  <LoanEntry>
    <Loan>
      <LoanId>1</LoanId>
      <LoanName>sample string 2</LoanName>
    </Loan>
    <LoanAmount>4</LoanAmount>
    <LoanEmi>5</LoanEmi>
    <LoanEntryDate>sample string 2</LoanEntryDate>
    <LoanEntryId>1</LoanEntryId>
    <Refno>sample string 3</Refno>
  </LoanEntry>
  <LoanRepayDate>sample string 2</LoanRepayDate>
  <Refno>sample string 3</Refno>
  <Remarks>sample string 12</Remarks>
  <RepayAmount>4</RepayAmount>
  <RepayManual>sample string 5</RepayManual>
  <RepayMonth>6</RepayMonth>
  <RepayYear>7</RepayYear>
</PayrollLoanRepaySaveVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.