You are here: HTTP Services > Get Employee List

ABC Financial Web Services

Get Employee List

Summary

This service will return details for selected employees for a particular club in ABC's club management system. this employee information includes items such as name, address, associated departments, certifications, and general availability.

[server]/ws/getEmployeeList/[club-number] [server]/getEmployeeList/[club-number]?[optionalparameters]

Service Name getEmployeeList
Service Type HTTP
Invoked by HTTPS Get Request
Returns HTTPS Response
URL Format

[server]/ws/getEmployeeList/[club-number]
[server]/getEmployeeList/[club-number]?[optionalparameters]

Required Parameters All parameters are optional

Parameters

This web service has no required parameters. You may use one or more optional parameters:

When you do not specify any parameters, the web service returns a list of all employees, regardless of status.

employeeId

The employeeId parameter allows you to specify a specific employee, using a unique value, or GUID.

URL Format
[server]/getEmployeeList/[club-number]?employeeId=[id]

employeeStatus

The employeeStatus parameter allows you to specify whether you want to retrieve active employees, inactive employees, or both, based on the setting of the DataTrak Employee Active Flag.

The employeeStatus parameter uses the Employee Active Flag, and not the termination date.
Using the Employee Active Flag was implemented on January 31, 2010.

URL Format [server]ws/getEmployeeList/[club-number]?employeeStatus=[active|inactive|all]
Allowed Values
  • Active
  • Inactive
  • All

employeeBarcode

The employeeBarcode parameter allows you to specify an employee by barcode. Clubs assign barcodes.

URL Format [server]/ws/getEmployeeList/[club-number]?employeeBarcode=[barcode]

departmentOnline

The departmentOnline parameter allow you to limit the results to employees based on whether they belong to an online department.

Online employees make their information available to the MYiCLUBonline.

URL Format [server]/ws/getEmployeeList/[club-number]?departmentOnline=[true|false]
Allowed Values
  • true
  • false

Response Data

The Response is a Standard HTTPS Get Response object containing a message in XML.

The XML message contains three sections:

The root tag is getEmployeeList.

Status Section

This section describes the overall status of the request. The Status section's tag name is <status>.

The <status> tag contains the following tags:

response string, up to 50 characters

Contains a value indicating the overall status of the request. The overall status will may be one of three values:

  • completed: The service completed successfully. Check ins may or may not have been returned.
  • usageError: Required Request parameters did not pass validation, and no check ins were returned.
  • internalError: System exceptions occured while executing the web service, and no check ins were returned.
message string, up to 125 characters

Provides a more specific description of the result value. Each message tag includes an attribute. The id attribute is assigned a unique id. Example tags and values include:

 

<message id="0">Service completed successfully</message>

 

employeesReturned integer

Contains a value corresponding to the number of members returned in the response.

If the service returns no members, then the value is 0.

Example tag with value:

 

<membersReturned>5574</membersReturned>

 

Request Section

This section lists what the original request contained. The Request section's tag name is <request>.

Tags included in the request tag may include:

Tag Number Format Description
clubNumber #### The club number specified in the request URL.
employeeId GUID

Omitted if parameter was not used in the URL.

Contains the value for the parameter, if used.

employeeStatus string

Omitted if parameter was not used in the URL.

Contains the value for the parameter, if used.

employeeBarcode barcode

Omitted if parameter was not used in the URL.

Contains the value for the parameter, if used.

departmentOnline boolean

Omitted if parameter was not used in the URL.

Contains the value for the parameter, if used.

Result Section

This section contains specific information about each employee returned, if any.

The result tag contains the following tags. The root tag is employees.

Tag Name Format Parent Tag Description
employee GUID employees

Contains the id attribute equal to a GUID. Contains employee-specific information in the following tags and their child tags.
The GUID can be used in ABC web services to retrieve specific details about this employee.

Child tags:

  • barcode
  • personal
  • contact
  • employment
  • certifications
  • generalAvailability

There may be zero, one, or many employee tags, depending on the number of results returned.

employeeBarcode barcode employee Optional. The barcode value for the employee.
personal employee

Groups together personal employee information such as name and birthdate.

Child tags:

  • ssn
  • firstName
  • middleInitial
  • lastName
  • birthDate
  • profile
ssn personal Contains the employee's social security number.

This tag is not currently supported and will return no data. In the past, the ssn tag would return a value including the last four digits of the employee's social security number.
The ssn tag may be supported at a later date.

firstName string, up to 15 characters personal Contains the first 15 characters of the employee's first name in uppercase.
middleInitiial string, 1 character personal Optional. Contains the value for the employee's middle initial. One character in uppercase.
lastName string, up to 19 characters personal Contains the first 19 characters of the employee's last name in uppercase.
birthDate YYYY-MM-DD personal Optional. Contains the value for the employee's birthdate.
profile string, up to 4000 charcters personal Optional. Contains the employee's profile. This information is free-form text maintained by the club.
contact employee

Contains contact information for the employee, using child tags.

Child tags:

  • address
  • city
  • state
  • zip
  • email
  • homePhone
  • cellPhone
  • workPhone
  • workPhoneExtension
  • emergencyPhone
  • emergencyPhoneExtension
address string, up to 40 characters contact Optional. Contains the employee's street address in uppercase.
city string, up to 17 characters contact Optional. Contains the employee's city in uppercase.
state State Code contact Optional. Contains the value for the employee's state of residence in uppercase.
zip string, up to 10 characters contact Optional. Contains the value for the employee's zip code.
email string, up to 60 characters contact Optional. Contains the value for the employee's email address.
homePhone Phone Number contact Optional. Contains the value for the employee's home phone number as digits only.
Example: 5015555555
cellPhone Phone Number contact Optional. Contains the value for the employee's cell phone number.
workPhone Phone Number contact Optional. Contains the value for the employee's work phone number.
workPhoneExtension string, up to four characters contact Optional. Contains the extension for the emergency phone number.
emergencyPhone Phone Number contact Optional. Contains the phone number for the employee's emergency contact.
emergencyPhoneExtension string, up to four characters contact Optional. Contains the extension for the emergency phone number.
employment employee

Contains employment information such as wage and start date in its child tags.

Child tags:

  • wage
  • commissionLevel
  • startDate
  • terminationDate
  • authorizedClubs
  • departments
  • trainingLevel
wage

string, up to nine characters -

formatting restrictions

employment

Contains the employee's wage, using up to eight digits. If the wage value is a whole number, the value will display without decimals. The default value is zero (0).

Examples:

  • 0
  • 10
  • 12.50
  • 15.01
commissionLevel employment

Contains the commission level. Defaults to zero.

Allowed values:

  • 1
  • 2
  • 3
startDate YYY-MM-DD employment Contains the date on which the employee starts or started employment.
terminationDate YYYY-MM-DD employment Contains the date on which the employment was terminated.
authorizedClubs employment

Contains one or more clubNumber tags for any club or clubs where the employee is authorized to work.

Child tag:

  • clubNumber
clubNumber #### authorizedClubs Contains the club number for an authorized club. There may be zero, one, or many clubs for a single employee. The tag repeats for each club.
departments employment Contains zero, one, or more department tags describing departments that the employee is assigned to.
department string departments Contains the name of the department the employee is assigned to. Repeats for each department.
trainingLevel employment

Contains the value for the employee's training level.

Allowed values:

  • 1
  • 2
  • 3
certifications string employee

Contains a certification tag for each certification held by the employee. There may be zero, one, or many certification tags for a single employee.

Child tags:

  • certification
certification certifications

Contains the details for a single certification in its tags. This tag repeats for each certification.

Child tags:

  • name
  • description
  • number
  • issuingAgency
  • acquiredDate
name string certification Contains the name of the certification
description string certification Contains a description of the certification.
number certification
issuingAgency string certification Contains the name of the issuing agency for the certification
acquiredDate YYYY-MM-DD certification Contains the date the certification was acquired.
expiredDate YYYY-MM-DD certification Contains the date the certification expired.
generalAvailability employee

Contains the employee's daily availability for the days of the week. There may be zero, one, or many available tags.

Child tag:

  • available
available generalAvailability

Contains a description of an employee's availability based on the date of the week. For each available tag, all child tags are required.

Child tags:

  • dayOfWeek
  • startTime
  • endTime
dayOfWeek integer available

Describes a day of the week for an availability period, using a number code from 0-6 for each day of the week.

Allowed values:

  • 0: Sunday
  • 1: Monday
  • 2: Tuesday
  • 3: Wednesday
  • 4: Thursday
  • 5: Friday
  • 6: Saturday
startTime HH:MM available Describes the beginning time for an availability period.
endTime HH:MM available Describes the ending time for an availability period.