Get Employees
This endpoint provides a comprehensive set of parameters to tailor your query. You can filter employees based on first name, last name, job description, phone number, active status and shop id. Additionally, you can include related data such as time clock and schedule information. The pagination options allow you to manage the number of items returned per page, facilitating smooth navigation through the employee data.
query Parameters
with_detailsbooleanInclude extra details in the response. This will add time clock and appointment details to every employee.
Include extra details in the response. This will add time clock and appointment details to every employee.
Example: nullsortstringSort by column, can be DESC or ASC. For DESC append a - next to the sort column. Eg: -first_name. Sortable field: first_name, last_name, number, date_hired.
Sort by column, can be DESC or ASC. For DESC append a - next to the sort column. Eg: -first_name. Sortable field: first_name, last_name, job_description and phone.
Example: nullemployee_idintegerFilter by employee id.
Filter by employee id.
Example: nullfilter[first_name]stringFilter by employees first name.
Filter by employees first name.
Example: nullfilter[last_name]stringFilter by employees last name.
Filter by employees last name.
Example: nullfilter[job_description]stringFilter by employees job description.
Filter by employees job description.
Example: nullfilter[phone]stringFilter by employees phone number.
Filter by employees phone number.
Example: nullfilter[shop_id]stringPrimary key of the shop. If not provided, all locations within the company will be included.
activebooleanFilter by active status.
Filter by active status.
Example: nullpagestringPage number to return.
Page number to return.
Example: 1pageSizestringNumber of items to return in a page. Defaults to 10.
Number of items to return in a page. Defaults to 10.
Example: null
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.Acceptstring
Responses
dataobject[] · requiredlinksobject · requiredmetaobject · required
Create Employee
You can create a new Employee from here.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
shop_idnumber · requiredemployee_numberstring · requiredThis must be unique across the company
Example: JD123
first_namestringExample: Johnlast_namestringExample: DoeaddressstringExample: 123 w 123 ncitystringExample: LoganstatestringExample: UtahzipstringphonestringExample: 1234567899emailstring | nullExample: [email protected]job_descriptionstringdate_hiredstringExample: 2024-07-09T08:35:25.394Zdefault_writerbooleanIs this the default salesperson?
Default: falseactivebooleanDefault: truehourly_ratenumberExample: 22.5pinstringExample: 1234company_accessbooleanDoes this employee have access to all locations within the company?
notesstringExample: Great hire!
Responses
employee_idnumber · requiredshop_idnumber · requiredemployee_numberstring · requiredThis must be unique across the company
Example: JD123payment_typestring · requiredcommissionstring · requiredtimestampstring · requiredExample: 2024-07-09T08:35:25.394Z
first_namestringExample: Johnlast_namestringExample: DoeaddressstringExample: 123 w 123 ncitystringExample: LoganstatestringExample: UtahzipstringphonestringExample: 1234567899emailstring | nullExample: [email protected]job_descriptionstringdate_hiredstringExample: 2024-07-09T08:35:25.394Zdefault_writerbooleanIs this the default salesperson?
Default: falseactivebooleanDefault: truehourly_ratenumberExample: 22.5pinstringExample: 1234company_accessbooleanDoes this employee have access to all locations within the company?
notesstringExample: Great hire!
Update Employee
Update an existing Employee from here.
path Parameters
idstring · required
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
shop_idnumber · requiredemployee_numberstring · requiredThis must be unique across the company
Example: JD123
first_namestringExample: Johnlast_namestringExample: DoeaddressstringExample: 123 w 123 ncitystringExample: LoganstatestringExample: UtahzipstringphonestringExample: 1234567899emailstring | nullExample: [email protected]job_descriptionstringdate_hiredstringExample: 2024-07-09T08:35:25.394Zdefault_writerbooleanIs this the default salesperson?
Default: falseactivebooleanDefault: truehourly_ratenumberExample: 22.5pinstringExample: 1234company_accessbooleanDoes this employee have access to all locations within the company?
notesstringExample: Great hire!
Responses
employee_idnumber · requiredshop_idnumber · requiredemployee_numberstring · requiredThis must be unique across the company
Example: JD123payment_typestring · requiredcommissionstring · requiredtimestampstring · requiredExample: 2024-07-09T08:35:25.394Z
first_namestringExample: Johnlast_namestringExample: DoeaddressstringExample: 123 w 123 ncitystringExample: LoganstatestringExample: UtahzipstringphonestringExample: 1234567899emailstring | nullExample: [email protected]job_descriptionstringdate_hiredstringExample: 2024-07-09T08:35:25.394Zdefault_writerbooleanIs this the default salesperson?
Default: falseactivebooleanDefault: truehourly_ratenumberExample: 22.5pinstringExample: 1234company_accessbooleanDoes this employee have access to all locations within the company?
notesstringExample: Great hire!
