# 薪資規則設定

查詢員工薪資計算的規則與結構設定等，包括：計薪規則查詢、薪資結構查詢、薪轉帳號查詢、成本中心查詢。

## 取得員工薪資基本資料資訊(計薪方式及投保)

> \`\`\`\
> emp\_basic = {\
> &#x20; "CO\_ID": number,              //公司\_ID\
> &#x20; "EMP\_ID": number,             //員工\_ID\
> &#x20; "SALARY\_TYPE":string,         //計薪方式\
> &#x20; "IS\_HOLIDAY\_PAY": number,     //(日薪)假日是否給薪\
> &#x20; "LABOR\_NO":string,            //勞保投保編號\
> &#x20; "LABOR\_NAME":string,          //勞保投保單位名稱\
> &#x20; "LABOR\_NAME\_JSON":object,     //勞保投保單位名稱\_JSON\
> &#x20; "HEALTH\_NO":string,            //健保投保編號\
> &#x20; "HEALTH\_NAME":string,          //健保投保單位名稱\
> &#x20; "HEALTH\_NAME\_JSON":object,     //健保投保單位名稱\_JSON\
> &#x20; "LABOR\_AMOUNT": number,       //勞保月投保薪資\
> &#x20; "RISK\_AMOUNT": number,        //職災月投保薪資\
> &#x20; "HEALTH\_AMOUNT": number,      //健保投保薪資\
> &#x20; "RETIRE\_AMOUNT": number,      //勞退提繳工資\
> &#x20; "EMP\_RATE": number,           //員工提繳率\
> &#x20; "CO\_RATE": number,            //雇主提繳率\
> &#x20; "LABOR\_NOW\_STATUS": number,   //勞保投保狀況\
> &#x20; "HEALTH\_NOW\_STATUS": number,  //健保投保狀況\
> &#x20; "RETIRE\_NOW\_STATUS": number,  //勞退投保狀況\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"薪資規則設定","description":"查詢員工薪資計算的規則與結構設定等，包括：計薪規則查詢、薪資結構查詢、薪轉帳號查詢、成本中心查詢。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/pb/emp_basic":{"post":{"tags":["薪資規則設定"],"summary":"取得員工薪資基本資料資訊(計薪方式及投保)","description":"```\nemp_basic = {\n  \"CO_ID\": number,              //公司_ID\n  \"EMP_ID\": number,             //員工_ID\n  \"SALARY_TYPE\":string,         //計薪方式\n  \"IS_HOLIDAY_PAY\": number,     //(日薪)假日是否給薪\n  \"LABOR_NO\":string,            //勞保投保編號\n  \"LABOR_NAME\":string,          //勞保投保單位名稱\n  \"LABOR_NAME_JSON\":object,     //勞保投保單位名稱_JSON\n  \"HEALTH_NO\":string,            //健保投保編號\n  \"HEALTH_NAME\":string,          //健保投保單位名稱\n  \"HEALTH_NAME_JSON\":object,     //健保投保單位名稱_JSON\n  \"LABOR_AMOUNT\": number,       //勞保月投保薪資\n  \"RISK_AMOUNT\": number,        //職災月投保薪資\n  \"HEALTH_AMOUNT\": number,      //健保投保薪資\n  \"RETIRE_AMOUNT\": number,      //勞退提繳工資\n  \"EMP_RATE\": number,           //員工提繳率\n  \"CO_RATE\": number,            //雇主提繳率\n  \"LABOR_NOW_STATUS\": number,   //勞保投保狀況\n  \"HEALTH_NOW_STATUS\": number,  //健保投保狀況\n  \"RETIRE_NOW_STATUS\": number,  //勞退投保狀況\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID","BASE_DATE","EMP_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"},"BASE_DATE":{"type":["string","date"],"description":"基準日"},"EMP_ID":{"type":"integer","description":"員工ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [emp_basic, emp_basic, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得員工薪資帳號

> \`\`\`\
> emp\_bank = {\
> &#x20; "EMP\_ID": number,       //員工\_ID\
> &#x20; "BANK\_SEQ": number,     //帳號\
> &#x20; "BANK\_CODE":string,     //銀行代碼\
> &#x20; "BANK\_NAME":string,     //銀行名稱\
> &#x20; "BRANCH\_CODE":string,   //分行代碼\
> &#x20; "BRANCH\_NAME":string,   //分行名稱\
> &#x20; "BANK\_ACCOUNT":string,  //銀行帳號\
> &#x20; "BANK\_NOTE":string,     //銀行備註\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"薪資規則設定","description":"查詢員工薪資計算的規則與結構設定等，包括：計薪規則查詢、薪資結構查詢、薪轉帳號查詢、成本中心查詢。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/pb/emp_bank":{"post":{"tags":["薪資規則設定"],"summary":"取得員工薪資帳號","description":"```\nemp_bank = {\n  \"EMP_ID\": number,       //員工_ID\n  \"BANK_SEQ\": number,     //帳號\n  \"BANK_CODE\":string,     //銀行代碼\n  \"BANK_NAME\":string,     //銀行名稱\n  \"BRANCH_CODE\":string,   //分行代碼\n  \"BRANCH_NAME\":string,   //分行名稱\n  \"BANK_ACCOUNT\":string,  //銀行帳號\n  \"BANK_NOTE\":string,     //銀行備註\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID","EMP_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"},"EMP_ID":{"type":"integer","description":"員工ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [emp_bank, emp_bank, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得員工薪資結構明細

> \`\`\`\
> emp\_structure = {\
> &#x20; "CO\_ID": number,            //公司\_ID\
> &#x20; "EMP\_ID": number,           //員工\_ID\
> &#x20; "SALARY\_ITEM\_ID": number,   //薪資科目\_ID\
> &#x20; "ITEM\_CLASS": number,       //薪資科目加扣項別\
> &#x20; "ITEM\_CODE":string,         //薪資科目代號\
> &#x20; "ITEM\_NAME":string,         //薪資科目名稱\
> &#x20; "ITEM\_NAME\_JSON":string,    //薪資科目名稱\_JSON\
> &#x20; "ITEM\_SALARY\_TYPE":string,  //薪資科目計薪方式\
> &#x20; "SALARY\_AMOUNT": number,    //薪資科目金額\
> &#x20; "CURRENCY":string,          //幣別代碼\
> &#x20; "IS\_PAY": number,           //是否計薪\
> &#x20; "NOTE":string,              //備註\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"薪資規則設定","description":"查詢員工薪資計算的規則與結構設定等，包括：計薪規則查詢、薪資結構查詢、薪轉帳號查詢、成本中心查詢。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/pb/emp_structure":{"post":{"tags":["薪資規則設定"],"summary":"取得員工薪資結構明細","description":"```\nemp_structure = {\n  \"CO_ID\": number,            //公司_ID\n  \"EMP_ID\": number,           //員工_ID\n  \"SALARY_ITEM_ID\": number,   //薪資科目_ID\n  \"ITEM_CLASS\": number,       //薪資科目加扣項別\n  \"ITEM_CODE\":string,         //薪資科目代號\n  \"ITEM_NAME\":string,         //薪資科目名稱\n  \"ITEM_NAME_JSON\":string,    //薪資科目名稱_JSON\n  \"ITEM_SALARY_TYPE\":string,  //薪資科目計薪方式\n  \"SALARY_AMOUNT\": number,    //薪資科目金額\n  \"CURRENCY\":string,          //幣別代碼\n  \"IS_PAY\": number,           //是否計薪\n  \"NOTE\":string,              //備註\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID","BASE_DATE","EMP_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"},"BASE_DATE":{"type":["string","date"],"description":"基準日"},"EMP_ID":{"type":"integer","description":"員工ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [emp_structure, emp_structure, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````

## 取得員工成本中心明細

> \`\`\`\
> emp\_rccc = {\
> &#x20; "CO\_ID": number,      //公司\_ID\
> &#x20; "EMP\_ID": number,     //員工\_ID\
> &#x20; "RCCC\_ID": number,    //成本中心\_ID\
> &#x20; "PERCENT": number,    //分攤比例\
> &#x20; "SORT\_ORDER": number, //排序\
> },\
> \`\`\`<br>

````json
{"openapi":"3.0.0","tags":[{"name":"薪資規則設定","description":"查詢員工薪資計算的規則與結構設定等，包括：計薪規則查詢、薪資結構查詢、薪轉帳號查詢、成本中心查詢。"}],"servers":[{"url":"https://104demotest-api-server.hrmax.104.com.tw"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"401":{"description":"認證失敗 (請更新 accessToken 再試一次)"},"403":{"description":"權限不足"},"440":{"description":"參數錯誤 (請檢查 parameters 或 request body 的欄位、格式是否完整及正確)"},"500":{"description":"系統異常 `{ code: 500, msg: string }`"}}},"paths":{"/api/pb/emp_rccc":{"post":{"tags":["薪資規則設定"],"summary":"取得員工成本中心明細","description":"```\nemp_rccc = {\n  \"CO_ID\": number,      //公司_ID\n  \"EMP_ID\": number,     //員工_ID\n  \"RCCC_ID\": number,    //成本中心_ID\n  \"PERCENT\": number,    //分攤比例\n  \"SORT_ORDER\": number, //排序\n},\n```\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["CO_ID","BASE_DATE","EMP_ID"],"properties":{"CO_ID":{"type":"integer","description":"公司ID"},"BASE_DATE":{"type":["string","date"],"description":"基準日"},"EMP_ID":{"type":"integer","description":"員工ID"}}}}}},"responses":{"200":{"description":"成功\n```\n{\n  code: 200,\n  data: [emp_rccc, emp_rccc, ...],\n}\n```\n"},"401":{"$ref":"#/components/responses/401"},"403":{"$ref":"#/components/responses/403"},"440":{"$ref":"#/components/responses/440"},"500":{"$ref":"#/components/responses/500"}}}}}}
````


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://104ha-docs.gitbook.io/104-ha-openapi/clients/104-hr-max/xin-zi-gui-ze-she-ding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
