Femas HR
API Document
API SPEC
API Document
API SPEC
  1. 人事
  • 根目錄
    • 身分權限認證
      • 用戶登入
    • 資料讀取
      • 人事
        • 取得人員資料
        • 取得人員異動資料
        • 取得公司資料
        • 取得部門資料
        • 取得部門異動資料
        • 取得職稱資料
        • 取得職等資料
        • 取得職級資料
        • 取得員工類別資料
        • 取得學歷類別資料
        • 取得國別資料
        • 取得系統員工大頭照片
      • 差勤
        • 取得差假資料
        • 取得加班資料
        • 取得差勤資訊
        • 取得假日行事曆資料
      • 排班
        • 取得排班資訊
      • 薪資
        • 取得成本中心資料
        • 取得員工薪資發放方式
        • 取得員工薪資基本資料
        • 取得員工薪資明細表
        • 取得傳票資料
    • 資料寫入
      • 人事
        • 人員新進作業
          POST
        • 調派人員作業
          POST
        • 離退人員作業
          POST
        • 留停人員作業
          POST
        • 人員復職回任作業
          POST
        • 人員資料批次更新作業
          POST
        • 員工眷屬批量維護作業
          POST
        • 部門批量維護作業
          POST
      • 薪資
        • 成本中心批量維護作業
API Document
API SPEC
API Document
API SPEC
  1. 人事

離退人員作業

POST
https://mock.apidog.com/m1/1073975-0-default/fsapi/V3/su_leaving_users.json
資料寫入人事
可刪除非必填欄位,必填欄位中,user_sn用於辨識人員資料。

請求

標頭參數

主體參數application/json必填

範例
{
    "datas": [
        {
            "document_number": "離退0001",
            "start_date": "2024-08-08",
            "completed_date": "2024-08-08",
            "user_sn": "A0001",
            "type": "2",
            "reason": "屆齡退休",
            "remarks": "測試備註",
            "update_salary_insur": true,
            "forward_res_lvday": true,
            "salary_yrmon": "2024-07",
            "salary_last_yrmon": "2023-07",
            "forward_year_month": "2024-07",
            "forward_num_times": "1"
        },
        {
            "document_number": "離退0001",
            "start_date": "2023-08-08",
            "user_sn": "A0002",
            "type": "1",
            "reason": "契約終止",
            "forward_res_lvday": true,
            "salary_yrmon": "2023-02",
            "salary_last_yrmon": "2022-02",
            "forward_year_month": "2023-07",
            "forward_num_times": "1"
        }
    ]
}

請求程式碼範例

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
請求請求範例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mock.apidog.com/m1/1073975-0-default/fsapi/V3/su_leaving_users.json' \
--header 'Authorization: ***********************************' \
--header 'Content-Type: application/json' \
--data-raw '{
    "datas": [
        {
            "document_number": "離退0001",
            "start_date": "2024-08-08",
            "completed_date": "2024-08-08",
            "user_sn": "A0001",
            "type": "2",
            "reason": "屆齡退休",
            "remarks": "測試備註",
            "update_salary_insur": true,
            "forward_res_lvday": true,
            "salary_yrmon": "2024-07",
            "salary_last_yrmon": "2023-07",
            "forward_year_month": "2024-07",
            "forward_num_times": "1"
        },
        {
            "document_number": "離退0001",
            "start_date": "2023-08-08",
            "user_sn": "A0002",
            "type": "1",
            "reason": "契約終止",
            "forward_res_lvday": true,
            "salary_yrmon": "2023-02",
            "salary_last_yrmon": "2022-02",
            "forward_year_month": "2023-07",
            "forward_num_times": "1"
        }
    ]
}'

回應

🟢200成功
application/json
主體

範例
{
    "response": {
        "status": "Partial fail",
        "data_count": {
            "total": 2,
            "success": 1,
            "err": 1
        },
        "err_datas": [
            {
                "err_msg": "無此離退起因",
                "document_number": "離退0001"
            }
        ]
    }
}
修改時間 2025-10-12 05:00:28
上一頁
調派人員作業
下一頁
留停人員作業
Built with