POST api/AttendancePunchAPI/PunchInOutForWechatAsync

HRight2.0 陆宁 [微信] 打卡接口

Request Information

URI Parameters

None.

Body Parameters

TimeRecordInputWx
NameDescriptionTypeAdditional information
employeeGID

globally unique identifier

None.

punchTime

date

None.

punchLongitude

decimal number

None.

punchLatitude

decimal number

None.

punchAddress

string

None.

punchInOutType

string

None.

isUpdate

boolean

None.

Sha1Code

string

None.

remark

string

None.

attachments

string

None.

placeNumber

integer

None.

CustomClass_GID

globally unique identifier

None.

IsOutSidePunch

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "employeeGID": "3663bbcd-bc7a-4075-958b-f91b67cc56a1",
  "punchTime": "2025-05-04T16:01:16.8396984+08:00",
  "punchLongitude": 3.0,
  "punchLatitude": 4.0,
  "punchAddress": "sample string 5",
  "punchInOutType": "sample string 6",
  "isUpdate": true,
  "Sha1Code": "sample string 7",
  "remark": "sample string 8",
  "attachments": "sample string 9",
  "placeNumber": 1,
  "CustomClass_GID": "4e12fa3b-e7fa-4957-930e-241a75bcf644",
  "IsOutSidePunch": true
}

application/xml, text/xml

Sample:
<TimeRecordInputWx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JetHR.AttendancePunch.Model">
  <CustomClass_GID>4e12fa3b-e7fa-4957-930e-241a75bcf644</CustomClass_GID>
  <IsOutSidePunch>true</IsOutSidePunch>
  <Sha1Code>sample string 7</Sha1Code>
  <attachments>sample string 9</attachments>
  <employeeGID>3663bbcd-bc7a-4075-958b-f91b67cc56a1</employeeGID>
  <isUpdate>true</isUpdate>
  <placeNumber>1</placeNumber>
  <punchAddress>sample string 5</punchAddress>
  <punchInOutType>sample string 6</punchInOutType>
  <punchLatitude>4</punchLatitude>
  <punchLongitude>3</punchLongitude>
  <punchTime>2025-05-04T16:01:16.8396984+08:00</punchTime>
  <remark>sample string 8</remark>
</TimeRecordInputWx>

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

Response Information

Resource Description

HRight2.0 陆宁 [微信] 打卡接口

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>