POST api/advance/insert

Request Information

URI Parameters

None.

Body Parameters

InsertAdvancePaymentEntryRequestModel
NameDescriptionTypeAdditional information
SalaryPaymentID

integer

None.

TransactionNumberID

integer

None.

CounterSessionID

integer

None.

FinancialYearID

integer

None.

EmployeeID

integer

None.

ProjectManagementID

integer

None.

TransactionDate

date

None.

Amount

decimal number

None.

PaidBy

integer

None.

UserID

integer

None.

CashAccountID

integer

None.

Remarks

string

None.

EmployeeLedgerID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SalaryPaymentID": 1,
  "TransactionNumberID": 2,
  "CounterSessionID": 3,
  "FinancialYearID": 4,
  "EmployeeID": 5,
  "ProjectManagementID": 6,
  "TransactionDate": "2026-10-15T11:11:40.7140258-07:00",
  "Amount": 8.0,
  "PaidBy": 9,
  "UserID": 10,
  "CashAccountID": 11,
  "Remarks": "sample string 12",
  "EmployeeLedgerID": 13
}

application/xml, text/xml

Sample:
<InsertAdvancePaymentEntryRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <Amount>8</Amount>
  <CashAccountID>11</CashAccountID>
  <CounterSessionID>3</CounterSessionID>
  <EmployeeID>5</EmployeeID>
  <EmployeeLedgerID>13</EmployeeLedgerID>
  <FinancialYearID>4</FinancialYearID>
  <PaidBy>9</PaidBy>
  <ProjectManagementID>6</ProjectManagementID>
  <Remarks>sample string 12</Remarks>
  <SalaryPaymentID>1</SalaryPaymentID>
  <TransactionDate>2026-10-15T11:11:40.7140258-07:00</TransactionDate>
  <TransactionNumberID>2</TransactionNumberID>
  <UserID>10</UserID>
</InsertAdvancePaymentEntryRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InsertAdvancePaymentEntryRequestModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.