POST api/SaveExpense
Request Information
URI Parameters
None.
Body Parameters
StaffExpenses| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| CompanyID | integer |
None. |
|
| StaffID | integer |
None. |
|
| StaffName | string |
None. |
|
| ExpenseDate | date |
None. |
|
| ExpenseTypeID | integer |
None. |
|
| ExpenseType | string |
None. |
|
| PaymentTypeID | integer |
None. |
|
| PaymentType | string |
None. |
|
| Amount | decimal number |
None. |
|
| TaxAmount | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| Remarks | string |
None. |
|
| CreatedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"CompanyID": 2,
"StaffID": 3,
"StaffName": "sample string 4",
"ExpenseDate": "2026-02-24T16:14:32.3774908+05:30",
"ExpenseTypeID": 6,
"ExpenseType": "sample string 7",
"PaymentTypeID": 8,
"PaymentType": "sample string 9",
"Amount": 10.0,
"TaxAmount": 11.0,
"TotalAmount": 12.0,
"Remarks": "sample string 13",
"CreatedBy": 16
}
application/xml, text/xml
Sample:
<StaffExpenses xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NEXABIT.TMS.BO"> <Amount>10</Amount> <CompanyID>2</CompanyID> <CreatedBy>16</CreatedBy> <ExpenseDate>2026-02-24T16:14:32.3774908+05:30</ExpenseDate> <ExpenseType>sample string 7</ExpenseType> <ExpenseTypeID>6</ExpenseTypeID> <ID>1</ID> <PaymentType>sample string 9</PaymentType> <PaymentTypeID>8</PaymentTypeID> <Remarks>sample string 13</Remarks> <StaffID>3</StaffID> <StaffName>sample string 4</StaffName> <TaxAmount>11</TaxAmount> <TotalAmount>12</TotalAmount> </StaffExpenses>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StatusCode | integer |
None. |
|
| ResponseValue | string |
None. |
|
| Message | string |
None. |
|
| Description | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"StatusCode": 1,
"ResponseValue": "sample string 2",
"Message": "sample string 3",
"Description": "sample string 4"
}
application/xml, text/xml
Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NEXABIT.TMS.BO"> <Description>sample string 4</Description> <Message>sample string 3</Message> <ResponseValue>sample string 2</ResponseValue> <StatusCode>1</StatusCode> </ResponseModel>