smarthr_list_employees
List employees
List employees (従業員) of the SmartHR tenant, with filters: free-text name/department/position search, status (employed, absent, retired), employee number, employment type, department, position, hire and resignation date ranges. Returns a compact record per employee; use `fields` for more. Sensitive data (bank accounts, insurance numbers, residence cards, salary, ID images) is never returned.
輸入參數qidpagesortfieldsuser_idemp_codeper_pageemp_statusposition_iddepartment_identered_at_to另有 4 個
smarthr_get_employee
Get an employee
Get one employee (従業員) by id. Returns a compact record; use `fields` for more (address, phone, birth date, custom fields, contract dates). Sensitive data is never returned.
輸入參數id必填fields
smarthr_list_dependents
List an employee's dependents
List the dependents (家族情報) registered for one employee: name, relation, birth date, living arrangement and support status. Pension numbers, income and documents are not returned.
輸入參數pageper_pageemployee_id必填
smarthr_list_maternity_childcare_leaves
List an employee's maternity and childcare leaves
List the maternity and childcare leave records (産休育休) of one employee: expected birth, leave start/end and scheduled return dates. Bank, insurance and memo data are not returned.
輸入參數pageper_pageemployee_id必填
smarthr_list_departments
List departments
List departments (部署) with their hierarchy (parent, children), code and company.
輸入參數codepagesortper_page
smarthr_get_department
Get a department
Get one department (部署) by id, with its parent and children.
輸入參數id必填
smarthr_list_positions
List positions
List positions / job titles (役職) with their rank and code.
輸入參數pagesortper_page
smarthr_list_employment_types
List employment types
List employment types (雇用形態), e.g. full-timer, part-timer, contract worker, with their ids for filtering and writes.
輸入參數pageper_page
smarthr_list_grades
List grades
List grades (等級) with their rank.
輸入參數pageper_page
smarthr_list_job_categories
List job categories
List job categories (職種).
輸入參數pageper_page
smarthr_list_companies
List companies
List the companies (会社) of the tenant: name, code, corporate number, address, phone.
輸入參數pageper_page
smarthr_list_business_establishments
List business establishments
List business establishments (事業所): name, social insurance and labor insurance registration data, company.
輸入參數pageembedper_page
smarthr_list_employee_custom_fields
List employee custom field definitions
List the definitions of the tenant's custom employee fields (カスタム従業員項目): name, type and, for dropdowns, the choices. Use them to read the values in custom_fields.
輸入參數pageembedper_page
smarthr_list_dependent_relations
List dependent relations
List the relation types for dependents (続柄: spouse, child, parent...) with their ids, needed by smarthr_create_dependent.
輸入參數pageper_page
smarthr_list_users
List users
List SmartHR users (login accounts): email, administrator flag, role, linked employee, and the invitation status (created, opened, accepted, answered). Use it to find the administrator id for smarthr_invite_employee.
輸入參數pagesortembedper_page
smarthr_list_employee_input_forms
List employee input forms
List the employee information collection forms (従業員情報収集フォーム) that an invitation can use.
輸入參數pageper_page
smarthr_list_webhooks
List webhooks
List the configured webhooks (target URL, which employee and dependent events notify). Read-only; secret tokens and the query string of the target URL are never shown.
輸入參數pageper_page
smarthr_create_employee
Create an employee
WRITE: Register a new employee (従業員) in SmartHR. Nothing is sent to the employee; to invite them to fill in their own data use smarthr_invite_employee afterwards. Only the fields you give are set. The tenant plan may cap the number of employees (error plan_limit_exceeded). Returns the created employee as a compact record.
輸入參數emailgradegenderaddressbirth_atemp_codelast_name必填positionsemp_statusentered_atfirst_name必填occupation另有 11 個
smarthr_update_employee
Update an employee
WRITE: Change fields of one existing employee (partial update: only the fields you give change; others stay). Typical uses: set the status to absent or retired with the resignation date, correct a name, email or phone, move the employee to other departments (department_ids replaces the current list), change positions. SmartHR does not allow clearing a name that is already filled in. Returns the updated employee as a compact record.
輸入參數id必填emailgradegenderaddressbirth_atemp_codelast_namepositionsemp_statusentered_atfirst_name另有 12 個
smarthr_create_department
Create a department
WRITE: Create a department (部署). Give the parent department id to nest it. Returns the created department.
輸入參數codename必填positionparent_idcompany_id
smarthr_update_department
Update a department
WRITE: Rename or move one department (partial update: only the fields you give change). Returns the updated department.
輸入參數id必填codenamepositionparent_id
smarthr_create_dependent
Create a dependent
WRITE: Register a dependent (家族情報) for an employee. Needs the relation id from smarthr_list_dependent_relations. Returns the created dependent without pension number, income or documents.
輸入參數jobgender必填addressbirth_at必填is_spouselast_name必填first_name必填tel_numberemployee_id必填relation_id必填last_name_yomifirst_name_yomi另有 3 個
smarthr_invite_employee
Invite an employee by email
WRITE, SENDS AN EMAIL: Invite an employee to SmartHR. SmartHR emails the address stored on the employee (the employee must have one) an invitation to create their login and, with an input form, to fill in their own data. Asking again re-sends it (and updates the invited address if it changed). An employee who already accepted cannot be invited again. Confirm with the user before calling.
輸入參數id必填inviter_user_id必填crew_input_form_id