Link to api to create worker:
Parameter Guide:
No | key name | Mandatory | Description | Example Value |
1 | u | Required | admin account username | tessss |
2 | p | Required | admin account password | 123456778 |
3 | fname | Required | Employee Firstname | emp |
4 | lname | Optional | employee Last Name | 1 |
5 | empno | Required | Employee ID | 213940934 |
6 | Optional | Employee’s Email | ||
7 | dept | Required | dept names with comma separated | dept1,dept2 |
8 | store | Optional | Store Names with comma separated | store1,store2 |
9 | phone | Optional | Employee phone | 12339404834 |
10 | agreement | Optional | Agreement name, it trying to get agreement by name | agreement1 |
11 | role | Optional | Employee role names with separated comma | role1,role2 |
12 | shift_agreement | Optional | Shift Agreement Name | shiftagree-1 |
13 | shift_role | Optional | shift role names with separated comma | srole1,srole2 |
14 | username | Optional | employee’s user account – username | testing to |
15 | password | Optional | employee’s user account – username | 123334dd |
16 | salary_number | Optional | salary number | 123 |
Respones Case:
Key name | value | Description |
status | TRUE | Success to create employee |
FALSE | Failed | |
msg | required_correct_dept | missed or not found Department |
invalid_param | Missed Required Fields | |
duplicated_id | Employee No is duplicated |