Get all employees
Retrieve a list of all employees in the system.Query parameters
Include inactive employees in the results
Response
Returns an array of employee objects.Unique employee identifier
Employee ID (max 10 characters)
Employee full name (max 100 characters)
Employee role:
Manager, Cashier, or InventoryLegacy manager status flag
Whether the employee account is active
ISO 8601 timestamp of account creation
Example request
Example response
Get employee by ID
Retrieve details of a specific employee.Path parameters
Employee ID
Example request
Response
Returns a single employee object (same structure as above).Create employee
Create a new employee account with PIN authentication.Request body
Unique employee identifier (max 10 characters)
Employee full name (max 100 characters)
6-digit numeric PIN for authentication (will be hashed)
Employee role:
Manager, Cashier, or InventoryWhether the account should be active
Example request
Validation rules
- Employee ID cannot be empty and must be unique
- Name cannot be empty
- PIN must be exactly 6 digits
- PIN must contain only numbers
- Role must be one of:
Manager,Cashier,Inventory
Response
Returns the created employee object with hashed PIN.Update employee
Update an existing employee’s details.Path parameters
Employee ID to update
Request body
Same as create employee, but all fields are optional exceptid (which must match the path parameter).
Example request
Deactivate employee
Deactivate an employee account (soft delete).Path parameters
Employee ID to deactivate
Example request
Activate employee
Reactivate a previously deactivated employee account.Path parameters
Employee ID to activate
Example request
Reset employee PIN
Reset an employee’s PIN for security purposes.Path parameters
Employee ID
Request body
New 6-digit numeric PIN
Example request
Response
Authentication headers
All employee management endpoints log activity and require authentication headers:X-User-Id: The ID of the user performing the actionX-User-Name: The name of the user performing the action