Get events (shifts)
Changed onReturn a list of events (shifts) based on the query parameters
Request
- Base URLhttps://api.evolia.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
a date in ISO-8601 format (2021-01-31T20:00:00.000-05:00). Depending on the group "ShiftOverTwoDaysOption" setting, you will see the shift the day before, the day after or on both days. All resulting events will have an end date after this date.
a date in ISO-8601 format (2021-01-31T20:00:00.000-05:00). Depending on the group "ShiftOverTwoDaysOption" setting, you will see the shift the day before, the day after or on both days. All resulting events will have a start date before this date.
if specified, use this array of team UIDs to only get events linked to those teams
if specified, use this array of team codes to only get events linked to those teams. (forTeamIds will take precedence over forTeamCodes if set)
if specified, use this array of member UIDs or employee ids to only get events linked to those members
if specified, use this array of member codes to only get events linked to those members. (forMemberIds will take precedence over forMemberCodes if set)
if specified, use this array of location UIDs to only get events linked to those locations
if specified, use this array of location codes to only get events linked to those locations. (forLocationIds will take precedence over forLocationCodes if set)
if specified, use this array of skill UIDs to only get events linked to those skills (positions).
if specified, use this array of skill codes to only get events linked to those skills (positions). (forSkillIds will take precedence over forSkillCodes if set)
if specified, this is array of condition code to get specific type of events
possible values are "en" or "fr". This locale is use to return multilingual data like teamName, locationName and positionName
if true, open shifts will also be returned
if true, beside returning the events, the resulting data will also includedata related to the events like, members, skills, locations and teams
Response
Example response
{
"events": [
{
"premiums": [
{
"names": {
"en": "night bonus",
"fr": "prime de nuit"
},
"calculationType": "AMOUNT: flat amount (+ 15$), HOURS: flat amount of hours (+ 1h), HOURLY_MULTIPLIER: multiply hourly rate (x 1.5/h), HOURLY_BONUS: flat hourly bonus (+ 1$/h)",
"code": "241"
}
]
}
],
"members": [
{
"code": "12",
"hourlyWageBySkillCodes": {
"assistant": 18.25,
"lead": 20.53
},
"hourlyWageBySkillIds": {
"64f1a2b3c4d5e6f7890abcde": 18.25,
"64f1a2b3c4d5e6f7890abcdf": 20.53
},
"pin": "98765",
"email": "johndoe@email.com",
"phone": "418-262-1123",
"custom": {
"key1": "value1",
"key2": "value2"
},
"gender": "M",
"birthdate": "2001-01-31",
"homeAddress": {
"line2": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"country": "string"
}
}
],
"locations": [
{
"custom": {
"key1": "value1",
"key2": "value2"
}
}
],
"skills": [
{
"names": {
"en": "cook",
"fr": "cuisinier"
},
"custom": {
"key1": "value1",
"key2": "value2"
}
}
],
"teams": [
{
"names": {
"en": "customer service",
"fr": "service client"
},
"custom": {
"key1": "value1",
"key2": "value2"
}
}
]
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info