POST api/doclockinout/{companycode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companycode

string

Required

Body Parameters

ClockInOut
NameDescriptionTypeAdditional information
ClockInTime

date

None.

ClockOutTime

date

None.

BranchId

integer

None.

DeviceId

string

None.

Status

string

None.

Branch

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ClockInTime": "2024-05-12T06:27:29.4409074+08:00",
  "ClockOutTime": "2024-05-12T06:27:29.4409074+08:00",
  "BranchId": 3,
  "DeviceId": "sample string 4",
  "Status": "sample string 5",
  "Branch": "sample string 6"
}

text/xml

Sample:
<ClockInOut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CloudSysPOSWeb.Models">
  <Branch>sample string 6</Branch>
  <BranchId>3</BranchId>
  <ClockInTime>2024-05-12T06:27:29.4409074+08:00</ClockInTime>
  <ClockOutTime>2024-05-12T06:27:29.4409074+08:00</ClockOutTime>
  <DeviceId>sample string 4</DeviceId>
  <Status>sample string 5</Status>
</ClockInOut>

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

Response Information

Resource Description

ClockInOut
NameDescriptionTypeAdditional information
ClockInTime

date

None.

ClockOutTime

date

None.

BranchId

integer

None.

DeviceId

string

None.

Status

string

None.

Branch

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ClockInTime": "2024-05-12T06:27:29.4409074+08:00",
  "ClockOutTime": "2024-05-12T06:27:29.4409074+08:00",
  "BranchId": 3,
  "DeviceId": "sample string 4",
  "Status": "sample string 5",
  "Branch": "sample string 6"
}

text/xml

Sample:
<ClockInOut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CloudSysPOSWeb.Models">
  <Branch>sample string 6</Branch>
  <BranchId>3</BranchId>
  <ClockInTime>2024-05-12T06:27:29.4409074+08:00</ClockInTime>
  <ClockOutTime>2024-05-12T06:27:29.4409074+08:00</ClockOutTime>
  <DeviceId>sample string 4</DeviceId>
  <Status>sample string 5</Status>
</ClockInOut>