POST api/Request/ExpenseClaim

Apply request for Expanse Claim.

Request Information

URI Parameters

None.

Body Parameters

ExpenseClaimRequestLayer
NameDescriptionTypeAdditional information
ClaimType

ClaimType

Required

CityType

string

Required

FromPlace

string

None.

ToPlace

string

None.

PurposeOfVisit

string

None.

TravelModeID

string

None.

FromDate

string

None.

ToDate

string

None.

Remarks

string

None.

OtherExpenceMonth

string

Matching regular expression pattern: ^[0-9]{2}$

OtherExpenceYear

string

Matching regular expression pattern: ^[0-9]{4}$

expenses

Collection of ExpenseClaimRequestLayerLine

Required

Request Formats

application/json, text/json

Sample:
{
  "ClaimType": 0,
  "CityType": "sample string 1",
  "FromPlace": "sample string 2",
  "ToPlace": "sample string 3",
  "PurposeOfVisit": "sample string 4",
  "TravelModeID": "sample string 5",
  "FromDate": "sample string 6",
  "ToDate": "sample string 7",
  "Remarks": "sample string 8",
  "OtherExpenceMonth": "sample string 9",
  "OtherExpenceYear": "sample string 10",
  "expenses": [
    {
      "ExpenceName": "sample string 1",
      "Amount": "sample string 2",
      "ReceiptNumber": "sample string 3",
      "Description": "sample string 4",
      "AttachmentPath": "sample string 5"
    },
    {
      "ExpenceName": "sample string 1",
      "Amount": "sample string 2",
      "ReceiptNumber": "sample string 3",
      "Description": "sample string 4",
      "AttachmentPath": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<ExpenseClaimRequestLayer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRiSAPI.Models">
  <CityType>sample string 1</CityType>
  <ClaimType>Error</ClaimType>
  <FromDate>sample string 6</FromDate>
  <FromPlace>sample string 2</FromPlace>
  <OtherExpenceMonth>sample string 9</OtherExpenceMonth>
  <OtherExpenceYear>sample string 10</OtherExpenceYear>
  <PurposeOfVisit>sample string 4</PurposeOfVisit>
  <Remarks>sample string 8</Remarks>
  <ToDate>sample string 7</ToDate>
  <ToPlace>sample string 3</ToPlace>
  <TravelModeID>sample string 5</TravelModeID>
  <expenses>
    <ExpenseClaimRequestLayerLine>
      <Amount>sample string 2</Amount>
      <AttachmentPath>sample string 5</AttachmentPath>
      <Description>sample string 4</Description>
      <ExpenceName>sample string 1</ExpenceName>
      <ReceiptNumber>sample string 3</ReceiptNumber>
    </ExpenseClaimRequestLayerLine>
    <ExpenseClaimRequestLayerLine>
      <Amount>sample string 2</Amount>
      <AttachmentPath>sample string 5</AttachmentPath>
      <Description>sample string 4</Description>
      <ExpenceName>sample string 1</ExpenceName>
      <ReceiptNumber>sample string 3</ReceiptNumber>
    </ExpenseClaimRequestLayerLine>
  </expenses>
</ExpenseClaimRequestLayer>

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.