POST api/Expense

Request Information

URI Parameters

None.

Body Parameters

AddExpense
NameDescriptionTypeAdditional information
EMPLOYEE_ID

string

None.

EXPENSE_DATE

string

None.

VEHICLE_ID

string

None.

OPENING_READING

string

None.

CLOSING_READING

string

None.

TOTAL_KM

string

None.

DA_AMOUNT

string

None.

TOLL_BILL

string

None.

VEHICLE_MAINTENANCE

string

None.

AUTO_BUS_TRAIN

string

None.

LODGING_BILL

string

None.

FOOD_BILL

string

None.

OTHER_BILL

string

None.

STATIONARY_BILL

string

None.

TOTAL_EXPENSE

string

None.

TYPE

string

None.

EXP_ID

string

None.

PHOTO1

Collection of byte

None.

PHOTO2

string

None.

PHOTO3

string

None.

PHOTO4

string

None.

EXTRA1

string

None.

EXTRA2

string

None.

EXTRA3

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EMPLOYEE_ID": "sample string 1",
  "EXPENSE_DATE": "sample string 2",
  "VEHICLE_ID": "sample string 3",
  "OPENING_READING": "sample string 4",
  "CLOSING_READING": "sample string 5",
  "TOTAL_KM": "sample string 6",
  "DA_AMOUNT": "sample string 7",
  "TOLL_BILL": "sample string 8",
  "VEHICLE_MAINTENANCE": "sample string 9",
  "AUTO_BUS_TRAIN": "sample string 10",
  "LODGING_BILL": "sample string 11",
  "FOOD_BILL": "sample string 12",
  "OTHER_BILL": "sample string 13",
  "STATIONARY_BILL": "sample string 14",
  "TOTAL_EXPENSE": "sample string 15",
  "TYPE": "sample string 16",
  "EXP_ID": "sample string 17",
  "PHOTO1": "QEA=",
  "PHOTO2": "sample string 18",
  "PHOTO3": "sample string 19",
  "PHOTO4": "sample string 20",
  "EXTRA1": "sample string 21",
  "EXTRA2": "sample string 22",
  "EXTRA3": "sample string 23"
}

application/xml, text/xml

Sample:
<AddExpense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiEllora.Controllers">
  <AUTO_BUS_TRAIN>sample string 10</AUTO_BUS_TRAIN>
  <CLOSING_READING>sample string 5</CLOSING_READING>
  <DA_AMOUNT>sample string 7</DA_AMOUNT>
  <EMPLOYEE_ID>sample string 1</EMPLOYEE_ID>
  <EXPENSE_DATE>sample string 2</EXPENSE_DATE>
  <EXP_ID>sample string 17</EXP_ID>
  <EXTRA1>sample string 21</EXTRA1>
  <EXTRA2>sample string 22</EXTRA2>
  <EXTRA3>sample string 23</EXTRA3>
  <FOOD_BILL>sample string 12</FOOD_BILL>
  <LODGING_BILL>sample string 11</LODGING_BILL>
  <OPENING_READING>sample string 4</OPENING_READING>
  <OTHER_BILL>sample string 13</OTHER_BILL>
  <PHOTO1>QEA=</PHOTO1>
  <PHOTO2>sample string 18</PHOTO2>
  <PHOTO3>sample string 19</PHOTO3>
  <PHOTO4>sample string 20</PHOTO4>
  <STATIONARY_BILL>sample string 14</STATIONARY_BILL>
  <TOLL_BILL>sample string 8</TOLL_BILL>
  <TOTAL_EXPENSE>sample string 15</TOTAL_EXPENSE>
  <TOTAL_KM>sample string 6</TOTAL_KM>
  <TYPE>sample string 16</TYPE>
  <VEHICLE_ID>sample string 3</VEHICLE_ID>
  <VEHICLE_MAINTENANCE>sample string 9</VEHICLE_MAINTENANCE>
</AddExpense>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.