POST api/payroll/loan/save

Saves the Loan data.

Request Information

URI Parameters

None.

Body Parameters

The data.

Systemic.Model.Payroll.mlLoan+mlStaffLoanMaster
NamedescriptionTypeAdditional information
LoanSysID

integer

None.

LoanDate

string

None.

StaffName

string

None.

StaffID

integer

None.

StaffSysID

integer

None.

InterestRate

decimal number

None.

AccountSysID

integer

None.

IsApproved

boolean

None.

IsIssued

boolean

None.

IssuedDate

string

None.

IsCancelled

boolean

None.

CancelledReason

string

None.

Installment

integer

None.

Amount

decimal number

None.

BranchSysID

integer

None.

Salary

decimal number

None.

Trans

Collection of Systemic.Model.Payroll.mlLoan+mlStaffLoanTrans

None.

PaymodeMaster

Systemic.Model.Common.mlTransactionPaymodeMaster

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "LoanSysID": 1,
  "LoanDate": "sample string 2",
  "StaffName": "sample string 3",
  "StaffID": 4,
  "StaffSysID": 5,
  "InterestRate": 6.0,
  "AccountSysID": 7,
  "IsApproved": true,
  "IsIssued": true,
  "IssuedDate": "sample string 10",
  "IsCancelled": true,
  "CancelledReason": "sample string 12",
  "Installment": 13,
  "Amount": 14.0,
  "BranchSysID": 15,
  "Salary": 16.0,
  "Trans": [
    {
      "LoanTransSysID": 1,
      "LoanSysID": 2,
      "Installment": 3,
      "InstallmentDate": "sample string 4",
      "Amount": 5.0,
      "StatusSysID": 6
    },
    {
      "LoanTransSysID": 1,
      "LoanSysID": 2,
      "Installment": 3,
      "InstallmentDate": "sample string 4",
      "Amount": 5.0,
      "StatusSysID": 6
    }
  ],
  "PaymodeMaster": {
    "PayModeSysID": 1,
    "UnknownPayModeSysID": 2,
    "TransctionRefType": "sample string 3",
    "TransctionRefTypeSysID": 4,
    "PaymodeTypeSysID": 5,
    "TransactionNo": "sample string 6",
    "TransactionDate": "sample string 7",
    "TransactionBankSysID": 64,
    "StatusSysID": 9,
    "IsIssued": true,
    "IssuedTo": "sample string 11",
    "StatusName": "sample string 12",
    "LedgerSysID": 13,
    "ClearedDate": "sample string 14",
    "BouncedDate": "sample string 15",
    "Amount": 16.0,
    "IsDeleted": true,
    "CancelledReason": "sample string 18",
    "PresentedBy": 19,
    "PresentedDate": "sample string 20",
    "BouncedBy": 21,
    "ClearedBy": "sample string 22"
  }
}

text/xml

Sample:
<mlLoan.mlStaffLoanMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model.Payroll">
  <AccountSysID>7</AccountSysID>
  <Amount>14</Amount>
  <BranchSysID>15</BranchSysID>
  <CancelledReason>sample string 12</CancelledReason>
  <Installment>13</Installment>
  <InterestRate>6</InterestRate>
  <IsApproved>true</IsApproved>
  <IsCancelled>true</IsCancelled>
  <IsIssued>true</IsIssued>
  <IssuedDate>sample string 10</IssuedDate>
  <LoanDate>sample string 2</LoanDate>
  <LoanSysID>1</LoanSysID>
  <PaymodeMaster xmlns:d2p1="http://schemas.datacontract.org/2004/07/Systemic.Model.Common">
    <d2p1:Amount>16</d2p1:Amount>
    <d2p1:BouncedBy>21</d2p1:BouncedBy>
    <d2p1:BouncedDate>sample string 15</d2p1:BouncedDate>
    <d2p1:CancelledReason>sample string 18</d2p1:CancelledReason>
    <d2p1:ClearedBy>sample string 22</d2p1:ClearedBy>
    <d2p1:ClearedDate>sample string 14</d2p1:ClearedDate>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:IsIssued>true</d2p1:IsIssued>
    <d2p1:IssuedTo>sample string 11</d2p1:IssuedTo>
    <d2p1:LedgerSysID>13</d2p1:LedgerSysID>
    <d2p1:PayModeSysID>1</d2p1:PayModeSysID>
    <d2p1:PaymodeTypeSysID>5</d2p1:PaymodeTypeSysID>
    <d2p1:PresentedBy>19</d2p1:PresentedBy>
    <d2p1:PresentedDate>sample string 20</d2p1:PresentedDate>
    <d2p1:StatusName>sample string 12</d2p1:StatusName>
    <d2p1:StatusSysID>9</d2p1:StatusSysID>
    <d2p1:TransactionBankSysID>64</d2p1:TransactionBankSysID>
    <d2p1:TransactionDate>sample string 7</d2p1:TransactionDate>
    <d2p1:TransactionNo>sample string 6</d2p1:TransactionNo>
    <d2p1:TransctionRefType>sample string 3</d2p1:TransctionRefType>
    <d2p1:TransctionRefTypeSysID>4</d2p1:TransctionRefTypeSysID>
    <d2p1:UnknownPayModeSysID>2</d2p1:UnknownPayModeSysID>
  </PaymodeMaster>
  <Salary>16</Salary>
  <StaffID>4</StaffID>
  <StaffName>sample string 3</StaffName>
  <StaffSysID>5</StaffSysID>
  <Trans>
    <mlLoan.mlStaffLoanTrans>
      <Amount>5</Amount>
      <Installment>3</Installment>
      <InstallmentDate>sample string 4</InstallmentDate>
      <LoanSysID>2</LoanSysID>
      <LoanTransSysID>1</LoanTransSysID>
      <StatusSysID>6</StatusSysID>
    </mlLoan.mlStaffLoanTrans>
    <mlLoan.mlStaffLoanTrans>
      <Amount>5</Amount>
      <Installment>3</Installment>
      <InstallmentDate>sample string 4</InstallmentDate>
      <LoanSysID>2</LoanSysID>
      <LoanTransSysID>1</LoanTransSysID>
      <StatusSysID>6</StatusSysID>
    </mlLoan.mlStaffLoanTrans>
  </Trans>
</mlLoan.mlStaffLoanMaster>

response Information

Resource description

ServerResponse.

Api.Server.ServerResponse
NamedescriptionTypeAdditional information
response

string

None.

success

Api.Server.MlSuccess

None.

failure

Api.Server.MlError

None.

response Formats

application/json, text/json, text/html

Sample:
{
  "response": "sample string 1",
  "success": null,
  "failure": null
}

text/xml

Sample:
<ServerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Server">
  <failure i:nil="true" />
  <response>sample string 1</response>
  <success i:nil="true" />
</ServerResponse>