刷卡資料介接
用於接收由門禁、打卡鐘等外部系統傳來的打卡資料
Required scopes
This endpoint requires the following scopes:
- : 提供操作 104 企業大師-人資管理 API 權限
Authorizations
OAuth2applicationRequired
Token URL:
Header parameters
authorizationanyRequired
access token
Bodyobject[]
empNostringOptionalExample:
員編
A0001cardTimeinteger · int64OptionalExample:
打卡時間timestamp
1566349095938Responses
200
success
application/json
400
商務邏輯相關錯誤(code對應訊息,同sample順序)
application/json
401
權限不足相關錯誤(code對應訊息,同sample順序)
application/json
post
/hrmapi/external/transferCardPOST //apis.104api.com.tw/prohrm/1.0/hrmapi/external/transferCard HTTP/1.1
Host: https:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 44
[
{
"empNo": "A0001",
"cardTime": 1566349095938
}
]{
"success": 30,
"ignore": 5,
"ignoreDetail": [
{
"idx": 1,
"errorMsg": "員工編號空白"
}
],
"fail": 2,
"failDetail": [
{
"idx": 2,
"errorMsg": "員工編號不存在"
}
]
}用於接收由門禁、打卡鐘等外部系統傳來的打卡資料
Required scopes
This endpoint requires the following scopes:
- : 提供操作 104 企業大師-人資管理 API 權限
Authorizations
OAuth2applicationRequired
Token URL:
Header parameters
authorizationanyRequired
access token
Bodyobject[]
unostringOptionalExample:
統編
123456789Responses
200
success
application/json
400
商務邏輯相關錯誤(code對應訊息,同sample順序)
application/json
401
權限不足相關錯誤(code對應訊息,同sample順序)
application/json
post
/hrmapi/external/transferTpCardPOST //apis.104api.com.tw/prohrm/1.0/hrmapi/external/transferTpCard HTTP/1.1
Host: https:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 75
[
{
"uno": 123456789,
"cardData": [
{
"empNo": "A0001",
"cardTime": 1566349095938
}
]
}
][
{
"uno": 123456789,
"code": "200,490,491,492,493",
"msg": "正常,公司已關閉或超過時間未繳費,該公司未同意使用,無資料,未預期錯誤",
"success": 30,
"ignore": 5,
"ignoreDetail": [
{
"idx": 1,
"errorMsg": "員工編號空白"
}
],
"fail": 2,
"failDetail": [
{
"idx": 2,
"errorMsg": "員工編號不存在"
}
]
}
]Last updated