POST api/SWPON_Employee/PunchInApproved

Request Information

URI Parameters

None.

Body Parameters

EmployeePunch
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

CompanyId

integer

None.

EmployeeCode

integer

None.

Status

string

None.

Latitude

string

None.

Longitude

string

None.

Date

date

None.

TimeIn

string

None.

TimeOut

string

None.

Address

string

None.

OutAddress

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "CompanyId": 2,
  "EmployeeCode": 3,
  "Status": "sample string 4",
  "Latitude": "sample string 5",
  "Longitude": "sample string 6",
  "Date": "2025-12-24T15:04:11.3585844+05:30",
  "TimeIn": "sample string 8",
  "TimeOut": "sample string 9",
  "Address": "sample string 10",
  "OutAddress": "sample string 11"
}

application/xml, text/xml

Sample:
<EmployeePunch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CoreLibrary">
  <Address>sample string 10</Address>
  <CompanyId>2</CompanyId>
  <Date>2025-12-24T15:04:11.3585844+05:30</Date>
  <EmployeeCode>3</EmployeeCode>
  <EmployeeId>1</EmployeeId>
  <Latitude>sample string 5</Latitude>
  <Longitude>sample string 6</Longitude>
  <OutAddress>sample string 11</OutAddress>
  <Status>sample string 4</Status>
  <TimeIn>sample string 8</TimeIn>
  <TimeOut>sample string 9</TimeOut>
</EmployeePunch>

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 'EmployeePunch'.

Response Information

Resource Description

PunchResult
NameDescriptionTypeAdditional information
ServerDate

string

None.

Flag

boolean

None.

data

string

None.

status_cd

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ServerDate": "sample string 1",
  "Flag": true,
  "data": "sample string 3",
  "status_cd": "sample string 4"
}

application/xml, text/xml

Sample:
<PunchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI">
  <Flag>true</Flag>
  <ServerDate>sample string 1</ServerDate>
  <data>sample string 3</data>
  <status_cd>sample string 4</status_cd>
</PunchResult>