POST api/TravelAdvanceAndExpense/saveAdvanceDetails

Request Information

URI Parameters

None.

Body Parameters

BOTravelAdvanceAndExpense
NameDescriptionTypeAdditional information
StaffId

integer

None.

UserId

string

None.

stafftravelrequestid

integer

None.

RequestedDate

string

None.

ModeOfTravel

string

None.

TravelCity1

string

None.

TravelCity2

string

None.

TravelCity3

string

None.

StartDateofTravel

string

None.

EndDateofTravel

string

None.

PurposeofTravel

string

None.

IsTicketRequired

boolean

None.

AdvanceAmount

string

None.

Remarks

string

None.

TravelCityName1

string

None.

TravelCityName2

string

None.

TravelCityName3

string

None.

oTravelAdvanceList

Collection of TravelAdvance

None.

oTravelModeList

Collection of TravelMode

None.

Request Formats

application/json, text/json

Sample:
{
  "StaffId": 1,
  "UserId": "sample string 2",
  "stafftravelrequestid": 3,
  "RequestedDate": "sample string 4",
  "ModeOfTravel": "sample string 5",
  "TravelCity1": "sample string 6",
  "TravelCity2": "sample string 7",
  "TravelCity3": "sample string 8",
  "StartDateofTravel": "sample string 9",
  "EndDateofTravel": "sample string 10",
  "PurposeofTravel": "sample string 11",
  "IsTicketRequired": true,
  "AdvanceAmount": "sample string 13",
  "Remarks": "sample string 14",
  "TravelCityName1": "sample string 15",
  "TravelCityName2": "sample string 16",
  "TravelCityName3": "sample string 17",
  "oTravelAdvanceList": [
    {
      "CityId": 1,
      "CityName": "sample string 2"
    },
    {
      "CityId": 1,
      "CityName": "sample string 2"
    }
  ],
  "oTravelModeList": [
    {
      "TravelModeId": 1,
      "ModeOfTravel": "sample string 2"
    },
    {
      "TravelModeId": 1,
      "ModeOfTravel": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<BOTravelAdvanceAndExpense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PSASAttendanceMobileAPI.Models.BOL">
  <AdvanceAmount>sample string 13</AdvanceAmount>
  <EndDateofTravel>sample string 10</EndDateofTravel>
  <IsTicketRequired>true</IsTicketRequired>
  <ModeOfTravel>sample string 5</ModeOfTravel>
  <PurposeofTravel>sample string 11</PurposeofTravel>
  <Remarks>sample string 14</Remarks>
  <RequestedDate>sample string 4</RequestedDate>
  <StaffId>1</StaffId>
  <StartDateofTravel>sample string 9</StartDateofTravel>
  <TravelCity1>sample string 6</TravelCity1>
  <TravelCity2>sample string 7</TravelCity2>
  <TravelCity3>sample string 8</TravelCity3>
  <TravelCityName1>sample string 15</TravelCityName1>
  <TravelCityName2>sample string 16</TravelCityName2>
  <TravelCityName3>sample string 17</TravelCityName3>
  <UserId>sample string 2</UserId>
  <oTravelAdvanceList>
    <TravelAdvance>
      <CityId>1</CityId>
      <CityName>sample string 2</CityName>
    </TravelAdvance>
    <TravelAdvance>
      <CityId>1</CityId>
      <CityName>sample string 2</CityName>
    </TravelAdvance>
  </oTravelAdvanceList>
  <oTravelModeList>
    <TravelMode>
      <ModeOfTravel>sample string 2</ModeOfTravel>
      <TravelModeId>1</TravelModeId>
    </TravelMode>
    <TravelMode>
      <ModeOfTravel>sample string 2</ModeOfTravel>
      <TravelModeId>1</TravelModeId>
    </TravelMode>
  </oTravelModeList>
  <stafftravelrequestid>3</stafftravelrequestid>
</BOTravelAdvanceAndExpense>

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.