schm-external-hr-eapi

(0 reviews)

home

schm-external-hr-eapi

Application description: HR information, including employee, regional, Department information inquiry, for external use
DEV Environment URL (Development): https://schm-api-dev.shiseido.cn/schm-external-hr-eapi
UAT Environment URL (Testing): https://schm-api-test.shiseido.cn/schm-external-hr-eapi
PROD Environment URL (Production): https://schm-api.shiseido.cn/schm-external-hr-eapi

Directory


1.Authentication Information

All request headers must contain the following key-value parameters as authentication information. You need to request this information from your administrator.

client_id: fa98****3452
client_secret: 108b****41f2

2.Interface list:

Request addressdescription
GET /employeeQuery employee information
GET /divisionQuerying division Information
GET /departmentQuerying department Information
GET /employee_hkQuerying HK employee Information
GET /division_hkQuerying HK division Information
GET /department_hkQuerying HK department Information

3.Interface description

3.1 Access to employee information

Interface request address: /employee
Interface description: Query employee information。
Request method: GET

Request parameter description:

Field NameDescriptionRequired
pageSizeNumber of data entries per page, default is 100N
pageNoCurrent page number, starting from 0, default is 0N
hiredateHire Date, format: yyyy-MM-dd, e.g., 2024-07-31N
person_idInput employee ID to query individual informationN
company_codeCompany CodeN
empcodeEmployee CodeN
empdistrictRegionN
quitdateResignation Date, format: yyyy-MM-dd, e.g., 2024-07-25N
mlevel_codeOrganization Position (Code)N
servicestatusStatusN
update_timeInformation Change Time, format: yyyy-MM-dd, e.g., 2024-07-25N

Request body structure example

https://schm-api.shiseido.cn/schm-external-hr-eapi/employee?pageSize=10&pageNo=0

Return structure specification

DescriptionField Name
Company Codecompany_code
Company Short Namecompany_short_name
Employee Codeempcode
Namec_name
Name (EN)e_name
Last Name (EN)last_name_en
First Name (EN)first_name_en
Company Namecompany_name
Company Name (EN)company_name_en
Division Codedivisioncode3
Division NameDivision_name
Division Name (EN)Division_name_en
Department Codedepartmentcode4
Department NameDepartment_name
Department Name (EN)Department_name_en
Sub-department Codesub_departmentcode5
Sub-department NameSub_Department_name
Sub-department Name (EN)Sub_Department_name_en
Group Codegroupcode6
Group NameGroup_name
Group Name (EN)Group_name_en
BC/BA Codeteamcode7
BC/BA Nameteam_name
BC/BA Name (EN)team_name_en
Company Phonebusinessphone
Company Emailemail
Nationalitycountry
Regionempdistrict
Hire Datehiredate
Resignation Datequitdate
Organizational Position (Name)hrlevel
Organizational Position (Code)mlevel_code
Mobile Phonemobile
Statusservicestatus
Deletion Flagdel_flag
Deletion Timedel_time
Gendergender
Information Update Timeupdate_time
Valid Hire Datehirevalid
SF Employee Codesf_empcode
Cost Centercostcenter
Lock Flaglockflag
Brandbrand
Positionddposition
Position Qualificationposqual
HR Level (EN)hrlevel_en
Position Description (EN)e_title
Date of Birthbirthday
Department Code (SF)sf_departmentId
Department Name (SF) (EN)sf_departmentName
Direct Supervisor Employee Codesup_empcode
Direct Supervisor SF Employee Codesup_sf_empcode
Direct Supervisor Namesup_empname
Cost Center Companycompany_costcent
store codedescription

Return structure example

[
  {
    "company_code": "2",
    "company_short_name": "SZC",
    "empcode": "00000009",
    "c_name": "沈 若慰",
    "e_name": "ruowei shen",
    "last_name_en": "shen",
    "first_name_en": "ruowei",
    "company_name": "资生堂化妆品制造有限公司",
    "company_name_en": "Shiseido Cosmetics Manufacturing Co.,Ltd.",
    "divisioncode3": "",
    "division_name": "",
    "division_name_en": "",
    "departmentcode4": "",
    "department_name": "",
    "department_name_en": "",
    "sub_departmentcode5": "",
    "sub_department_name": "",
    "sub_department_name_en": "",
    "groupcode6": "",
    "group_name": "",
    "group_name_en": "",
    "teamcode": "",
    "team_name7": "",
    "team_name_en": "",
    "businessphone": "021-xxxxxx-xxxx",
    "email": "",
    "country": "中国",
    "empdistrict": "",
    "hiredate": "xxxx-xx-xxT00:00:00",
    "quitdate": "xxxx-xx-xxT00:00:00",
    "hrlevel": "职员",
    "mlevel_code": "A12",
    "mobile": "xxxxxxx",
    "servicestatus": "0",
    "del_flag": 0,
    "del_time": null,
    "gender": "M",
    "update_time": "2023-10-26T02:43:43.473",
    "hirevalid": "xxxx-xx-xxT00:00:00",
    "sf_empcode": "",
    "costcenter": "B1Z22ZZZZZ",
    "lockflag": 0,
    "brand": null,
    "ddposition": null,
    "posqual": null,
    "hrlevel_en": "Director",
    "e_title": null,
    "birthday": null,
    "sf_departmentid": null,
    "sf_departmentname": null,
    "sup_empcode": "",
    "sup_sf_empcode": "",
    "sup_empname": "",
    "company_costcent": "SCS",
    "description": "10200250"
  },
  {
    "company_code": "1",
    "company_short_name": "SCH",
    "empcode": "00000011",
    "c_name": "桂海平",
    "e_name": "Emily GUI",
    "last_name_en": "GUI",
    "first_name_en": "Emily",
    "company_name": "资生堂(中国)投资有限公司",
    "company_name_en": "Shiseido China Co., Ltd.",
    "divisioncode3": null,
    "division_name": "",
    "division_name_en": "",
    "departmentcode4": null,
    "department_name": "",
    "department_name_en": "",
    "sub_departmentcode5": "",
    "sub_department_name": "",
    "sub_department_name_en": "",
    "groupcode6": "",
    "group_name": "",
    "group_name_en": "",
    "teamcode": "",
    "team_name7": "",
    "team_name_en": "",
    "businessphone": "021-xxxxxx/xxxx",
    "email": "guihaiping@shiseido.cn",
    "country": "",
    "empdistrict": "上海",
    "hiredate": "2005-05-01T00:00:00",
    "quitdate": "2022-06-30T00:00:00",
    "hrlevel": "部长",
    "mlevel_code": "A01",
    "mobile": "xxxxxxx",
    "servicestatus": "0离职",
    "del_flag": 0,
    "del_time": null,
    "gender": "F",
    "update_time": "2024-07-13T03:45:26.92",
    "hirevalid": "xxxx-xx-xxT00:00:00",
    "sf_empcode": "10030201",
    "costcenter": "A1143ZZZZZ",
    "lockflag": 0,
    "brand": "Common",
    "ddposition": "NONE",
    "posqual": null,
    "hrlevel_en": "Director",
    "e_title": "Head of Employee Communication Department",
    "birthday": "xxx-xx-xxT00:00:00",
    "sf_departmentid": null,
    "sf_departmentname": null,
    "sup_empcode": "00035924",
    "sup_sf_empcode": "10031424",
    "sup_empname": "崔锐",
    "company_costcent": "SCH",
    "description": null
  }
]

3.2 Regional information query

Interface request address: /division
Interface description: Regional information query
Request method: GET

Request parameter description:

Field NameDescriptionRequired
pageSizeNumber of data entries per page, default is 100N
pageNoCurrent page number, starting from 0, default is 0N
division_iddivision codeN
statusdivision statusN

Request body structure example

https://schm-api.shiseido.cn/schm-external-hr-eapi/division?pageSize=10&pageNo=0

Return structure specification

SF fieldInterface return fieldDescriptionremark
externalCodedivision_idDivision ID
startDateeffective_as_ofeffective date
namedivision_namename of a departmentAll use English names
statusstatusstatusA - Active / I - Inactive
cust_LegalEntityPropcompanycodecompany codeIf you belong to multiple companies, only C0100-SCH is used

Return structure example

[
  {
    "division_id": "60020001",
    "effective_as_of": "2001-12-18T00:00:00",
    "division_name": "Shiseido China Innovation Center",
    "status": "A",
    "companycode": "H0700"
  },
  {
    "division_id": "60020101",
    "effective_as_of": "2024-04-01T00:00:00",
    "division_name": "Luxury Brands Unit",
    "status": "A",
    "companycode": "C0100"
  }
]

3.3 Department information inquiry

Interface request address: /department
Interface description: Department information inquiry
Request method: GET

Request parameter description:

Field NameDescriptionRequired
pageSizeNumber of data entries per page, default is 100N
pageNoCurrent page number, starting from 0, default is 0N
departmen_iddepartment codeN
statusdepartment statusN

Request body structure example

https://schm-api.shiseido.cn/schm-external-hr-eapi/department?pageSize=10&pageNo=0

Return structure specification

SF fieldInterface return fieldDescriptionremark
externalCodedepartmen_idDepartment ID
startDateeffective_as_ofeffective date
cust_DivisionPropDivisionthis departmentIf parent is empty, it is the parent Division of the department
namedepartment_namename of a departmentAll use English names
parentparent_departmentSuperior department code
statusstatusstatusA - Active , I - Inactive
cust_LegalEntityPropcompanycodecompany codeIf you belong to multiple companies, only C0100-SCH is used

Return structure example

[
  {
    "department_id": "60020001",
    "effective_as_of": "2001-12-18T00:00:00",
    "division": "60020001",
    "department_name": "President & C.O.O.",
    "parent_department": "60020001",
    "status": "A",
    "companycode": "H0700"
  },
  {
    "department_id": "60020002",
    "effective_as_of": "2001-12-18T00:00:00",
    "division": "60020001",
    "department_name": "Vice President",
    "parent_department": "60020001",
    "status": "A",
    "companycode": "H0700"
  }
]

3.4 HongKong employee information

Interface request address: /employee_hk
Interface description: Query HongKong employee information。
Request method: GET

Request parameter description:

The return structure is exactly the same as the original.

Field NameDescriptionRequired
pageSizeNumber of data entries per page, default is 100N
pageNoCurrent page number, starting from 0, default is 0N
hiredateHire Date, format: yyyy-MM-dd, e.g., 2024-07-31N
company_codeCompany CodeN
empcodeEmployee CodeN
empdistrictRegionN
quitdateResignation Date, format: yyyy-MM-dd, e.g., 2024-07-25N
mlevel_codeOrganization Position (Code)N
servicestatusStatusN
update_timeInformation Change Time, format: yyyy-MM-dd, e.g., 2024-07-25N
company_costcentcompany costcentN

Request body structure example

https://schm-api.shiseido.cn/schm-external-hr-eapi/employee_hk?pageSize=10&pageNo=0

Return structure specification

DescriptionField Name
Company Codecompany_code
Company Short Namecompany_short_name
Employee Codeempcode
Namec_name
Name (EN)e_name
Last Name (EN)last_name_en
First Name (EN)first_name_en
Company Namecompany_name
Company Name (EN)company_name_en
Division Codedivisioncode3
Division NameDivision_name
Division Name (EN)Division_name_en
Department Codedepartmentcode4
Department NameDepartment_name
Department Name (EN)Department_name_en
Sub-department Codesub_departmentcode5
Sub-department NameSub_Department_name
Sub-department Name (EN)Sub_Department_name_en
Group Codegroupcode6
Group NameGroup_name
Group Name (EN)Group_name_en
BC/BA Codeteamcode7
BC/BA Nameteam_name
BC/BA Name (EN)team_name_en
Company Phonebusinessphone
Company Emailemail
Nationalitycountry
Regionempdistrict
Hire Datehiredate
Resignation Datequitdate
Organizational Position (Name)hrlevel
Organizational Position (Code)mlevel_code
Mobile Phonemobile
Statusservicestatus
Deletion Flagdel_flag
Deletion Timedel_time
Gendergender
Information Update Timeupdate_time
Valid Hire Datehirevalid
SF Employee Codesf_empcode
Cost Centercostcenter
Lock Flaglockflag
Brandbrand
Positionddposition
Position Qualificationposqual
HR Level (EN)hrlevel_en
Position Description (EN)e_title
Date of Birthbirthday
Department Code (SF)sf_departmentId
Department Name (SF) (EN)sf_departmentName
Direct Supervisor Employee Codesup_empcode
Direct Supervisor SF Employee Codesup_sf_empcode
Direct Supervisor Namesup_empname
Cost Center Companycompany_costcent
admin or tradeadmin_or_trade

3.5 HongKong Regional information query

Interface request address: /division_hk
Interface description: HK Regional information query
Request method: GET

Request parameter description:

Field NameDescriptionRequired
pageSizeNumber of data entries per page, default is 100N
pageNoCurrent page number, starting from 0, default is 0N
externalCodedivision codeN
statusdivision statusN

Request body structure example

https://schm-api.shiseido.cn/schm-external-hr-eapi/division_hk?pageSize=10&pageNo=0

Return structure specification

SF fieldInterface return fieldDescriptionremark
externalCodedivision_idDivision ID
startDateeffective_as_ofeffective date
namedivision_namename of a departmentAll use English names
statusstatusstatusA - Active / I - Inactive
cust_LegalEntityPropcompanycodecompany codeIf you belong to multiple companies, only C0100-SCH is used

Return structure example

[
  {
    "division_id": "60020001",
    "effective_as_of": "2001-12-18T00:00:00",
    "division_name": "Shiseido China Innovation Center",
    "status": "A",
    "companycode": "H0700"
  },
  {
    "division_id": "60020101",
    "effective_as_of": "2024-04-01T00:00:00",
    "division_name": "Luxury Brands Unit",
    "status": "A",
    "companycode": "C0100"
  }
]

3.6 HongKong Department information inquiry

Interface request address: /department_hk
Interface description: HK Department information inquiry
Request method: GET

Request parameter description:

Field NameDescriptionRequired
pageSizeNumber of data entries per page, default is 100N
pageNoCurrent page number, starting from 0, default is 0N
externalCodedepartment codeN
statusdepartment statusN

Request body structure example

https://schm-api.shiseido.cn/schm-external-hr-eapi/department_hk?pageSize=10&pageNo=0

Return structure specification

SF fieldInterface return fieldDescriptionremark
externalCodedepartmen_idDepartment ID
startDateeffective_as_ofeffective date
cust_DivisionPropDivisionthis departmentIf parent is empty, it is the parent Division of the department
namedepartment_namename of a departmentAll use English names
parentparent_departmentSuperior department code
statusstatusstatusA - Active , I - Inactive
cust_LegalEntityPropcompanycodecompany codeIf you belong to multiple companies, only C0100-SCH is used

Return structure example

[
  {
    "department_id": "60020001",
    "effective_as_of": "2001-12-18T00:00:00",
    "division": "60020001",
    "department_name": "President & C.O.O.",
    "parent_department": "60020001",
    "status": "A",
    "companycode": "H0700"
  },
  {
    "department_id": "60020002",
    "effective_as_of": "2001-12-18T00:00:00",
    "division": "60020001",
    "department_name": "Vice President",
    "parent_department": "60020001",
    "status": "A",
    "companycode": "H0700"
  }
]

Reviews