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

成本中心批量維護作業

POST
https://mock.apidog.com/m1/1073975-0-default/fsapi/V3/su_cost_center_update.json
資料寫入薪資
可刪除不須匯入之欄位。惟sn為必要欄位,sn若不存在,視同新增部門

請求

標頭參數

主體參數application/json必填

範例
{
    "datas": [
        {
            "sn": "J65879",
            "name": "Beauty",
            "type": "1",
            "accounting_sn": "R29565",
            "rank": "1",
            "deleted": true
        },
        {
            "sn": "S50076",
            "name": "Books",
            "type": "0",
            "accounting_sn": "M12081",
            "rank": "11",
            "deleted": true
        },
        {
            "sn": "Z63715",
            "name": "Books",
            "type": "0",
            "accounting_sn": "M41643",
            "rank": "12",
            "deleted": true
        }
    ]
}

請求程式碼範例

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_cost_center_update.json' \
--header 'Authorization: ***********************************' \
--header 'Content-Type: application/json' \
--data-raw '{
    "datas": [
        {
            "sn": "J65879",
            "name": "Beauty",
            "type": "1",
            "accounting_sn": "R29565",
            "rank": "1",
            "deleted": true
        },
        {
            "sn": "S50076",
            "name": "Books",
            "type": "0",
            "accounting_sn": "M12081",
            "rank": "11",
            "deleted": true
        },
        {
            "sn": "Z63715",
            "name": "Books",
            "type": "0",
            "accounting_sn": "M41643",
            "rank": "12",
            "deleted": true
        }
    ]
}'

回應

🟢200成功
application/json
主體

範例
{
    "response": {
        "status": "success",
        "data_count": {
            "total": 43,
            "success": 52,
            "err": 8
        },
        "err_datas": [
            {
                "msg": "Excepteur Duis",
                "sn": "I8896164"
            },
            {
                "msg": "laboris nulla qui",
                "sn": "B4835319"
            }
        ],
        "success_datas": [
            {
                "msg": "enim consequat",
                "sn": "E7507226"
            },
            {
                "msg": "nostrud",
                "sn": "V6028823"
            }
        ]
    }
}
修改時間 2025-10-12 05:00:38
上一頁
部門批量維護作業
Built with