Get Employees V2
Return employee information. All request parameters must appear in the request in order (apiKey, sectionId, employeeId, badgeNo, lastModified, includeNeoRoles); empty values are allowed but the elements themselves must be present.
NOTE : This call is of a NON complex type so all request parameters needs to be in the request (they can be empty, but they need to be present in the correct order as below apiKey, sectionId, employeeId, badgeNo, lastModified, includeNeoRoles
Request
API key of the unit.
Filter to a single section. Set to 0 (or send empty) to skip this filter.
Filter to a single employee by Quinyx id. Set to 0 (or send empty) to skip this filter.
Filter to a single employee by badge number. Empty string to skip this filter.
Pass an empty string ("") to ignore this filter, or a date to return only employees modified after that date.
Set to true only when the customer is using Neo. When true the
response includes Neo roles in each employee's groupRoles.
Requires includeNeoRoles = true. Filter to employees who have at least one of these Neo role ids.
Requires includeNeoRoles = true. Filter to employees who have at least one of these external Neo role ids.
curl -X POST 'https://api.quinyx.com/FlexForceWebServices.php' \
-H 'Content-Type: text/xml; charset=utf-8' \
-H 'SOAPAction: "uri:FlexForce/wsdlGetEmployeesV2"' \
--data @- <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://api.quinyx.com/soap/FlexForce">
<soap:Body>
<tns:wsdlGetEmployeesV2>
<apiKey xsi:type="xsd:string">string</apiKey>
<sectionId xsi:type="xsd:int">0</sectionId>
<employeeId xsi:type="xsd:int">0</employeeId>
<badgeNo xsi:type="xsd:string">string</badgeNo>
<lastModified xsi:type="xsd:string">string</lastModified>
<includeNeoRoles xsi:type="xsd:boolean">true</includeNeoRoles>
<neoRolesIds xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:int[1]">
<item xsi:type="xsd:int">0</item>
</neoRolesIds>
<neoExtRolesIds xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[1]">
<item xsi:type="xsd:string">string</item>
</neoExtRolesIds>
</tns:wsdlGetEmployeesV2>
</soap:Body>
</soap:Envelope>
EOFResponse
Array of Employee records (the Employee type covers both V1 and V2 responses).
An employee record returned by wsdlGetEmployees (and the basis for the response of wsdlGetEmployeesV2).
Primary key.
Badge number of the employee.
First name.
Last name.
Address line 1.
Address line 2.
Zip / postal code.
City.
Mobile phone number.
Phone number.
Email address.
Only meaningful when active = 0.
Last working day. Only set when active = 0.
Social Security Number.
Country.
Unit primary key.
Staff category primary key.
External staff category id.
Display name of the staff category.
Section / department primary key.
Display name of the section.
Additional information about the employee.
Time & Attendance card number.
MD5-hashed password used for third-party T&A applications.
Name of next of kin.
Phone number of next of kin.
Legacy role id — no longer used. Role is now derived from the staff category.
Rank of the employee.
Auto-manager flag. Returned by wsdlGetEmployeesV2 (added in version 380).
Internal id of the cost centre.
External id of the cost centre. Empty string when not set.
Punch type controlling how the employee registers time punches.
District id for district managers.
Badge number of the employee's manager.
1 when the employee has BankID, 0 otherwise.
Full name of the employee's legal guardian (if any).
Email address of the employee's legal guardian (if any).
Always empty in the V1 response; populated by wsdlGetEmployeesV2 when includeNeoRoles = true.
Timestamp of the last update, ISO 8601.
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://api.quinyx.com/soap/FlexForce">
<soap:Body>
<tns:wsdlGetEmployeesV2Response>
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:Employee[1]">
<item xsi:type="tns:Employee">
<id xsi:type="xsd:int">56781</id>
<badgeNo xsi:type="xsd:string">string</badgeNo>
<givenName xsi:type="xsd:string">string</givenName>
<familyName xsi:type="xsd:string">string</familyName>
<address1 xsi:type="xsd:string">string</address1>
<address2 xsi:type="xsd:string">string</address2>
<zip xsi:type="xsd:string">string</zip>
<city xsi:type="xsd:string">string</city>
<cellPhone xsi:type="xsd:string">string</cellPhone>
<phoneNo xsi:type="xsd:string">string</phoneNo>
<email xsi:type="xsd:string">string</email>
<active xsi:type="xsd:int">0</active>
<leaveDate xsi:type="xsd:date">2024-01-01</leaveDate>
<lastDayOfEmployment xsi:type="xsd:date">2024-01-01</lastDayOfEmployment>
<socsecNo xsi:type="xsd:string">string</socsecNo>
<country xsi:type="xsd:string">string</country>
<restId xsi:type="xsd:int">0</restId>
<staffCat xsi:type="xsd:int">0</staffCat>
<extStaffCategory xsi:type="xsd:string">string</extStaffCategory>
<staffCatName xsi:type="xsd:string">string</staffCatName>
<section xsi:type="xsd:int">0</section>
<sectionName xsi:type="xsd:string">string</sectionName>
<passive xsi:type="xsd:int">0</passive>
<lockStatus xsi:type="xsd:int">0</lockStatus>
<isLockedMsg xsi:type="xsd:string">string</isLockedMsg>
<info xsi:type="xsd:string">string</info>
<dateOfBirth xsi:type="xsd:date">2024-01-01</dateOfBirth>
<employedDate xsi:type="xsd:date">2024-01-01</employedDate>
<industryDate xsi:type="xsd:date">2024-01-01</industryDate>
<cardNo xsi:type="xsd:string">string</cardNo>
<passwordTandA xsi:type="xsd:string">string</passwordTandA>
<nextOfKind xsi:type="xsd:string">string</nextOfKind>
<nextPhone xsi:type="xsd:string">string</nextPhone>
<role xsi:type="xsd:int">0</role>
<rank xsi:type="xsd:int">0</rank>
<autoMan xsi:type="xsd:int">0</autoMan>
<costCentre xsi:type="xsd:int">0</costCentre>
<costCentreExtCode xsi:type="xsd:string">string</costCentreExtCode>
<punchType xsi:type="xsd:int">0</punchType>
<sex xsi:type="xsd:int">0</sex>
<myDistrict xsi:type="xsd:int">0</myDistrict>
<reportingTo xsi:type="xsd:string">string</reportingTo>
<hasBankId xsi:type="xsd:int">0</hasBankId>
<legalGuardianName xsi:type="xsd:string">string</legalGuardianName>
<legalGuardianEmail xsi:type="xsd:string">string</legalGuardianEmail>
<additionalFields xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:AdditionalFieldData[1]">
<item xsi:type="tns:AdditionalFieldData">
<key xsi:type="xsd:string">string</key>
<value xsi:type="xsd:string">string</value>
</item>
</additionalFields>
<groupRoles xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:GroupsRoles[1]">
<item xsi:type="tns:GroupsRoles">
<groupId xsi:type="xsd:int">0</groupId>
<groupName xsi:type="xsd:string">string</groupName>
<extGroupId xsi:type="xsd:string">string</extGroupId>
<roleId xsi:type="xsd:string">string</roleId>
<extNeoRoleId xsi:type="xsd:string">string</extNeoRoleId>
<roleName xsi:type="xsd:string">string</roleName>
<startDate xsi:type="xsd:date">2024-01-01</startDate>
<endDate xsi:type="xsd:date">2024-01-01</endDate>
</item>
</groupRoles>
<ts xsi:type="xsd:dateTime">2024-01-01T00:00:00Z</ts>
</item>
</return>
</tns:wsdlGetEmployeesV2Response>
</soap:Body>
</soap:Envelope>Change log
| Date | Description |
|---|---|
| 2017-01-23 | Created new documentation based on old PDF API documentation and Template. |
| 2017-01-23 | Added additionalFields and hasBankId fields. |
| 2018-10-31 | Added isLocked field. |
| 2018-11-08 | Renamed isLocked to lockStatus |
| 2019-03-05 | added rank |
| 2019-03-26 | added extStaffCategory |
| 2019-05-29 | added lastDayOfEmployment |
| 2019-11-06 | Added industryDate |
| 2020-02-05 | Added GroupRoles |
| 2020-02-14 | Added includeNeoRoles request parameter |
| 2020-07-10 | Added autoMan |
| 2020-07-29 | Added neoRolesIds |