Planday

App · 29 actions

Manage employees, departments and the shift schedule, and handle absence requests in Planday.

Actions

ActionWhat it does
Approve an absence requestApprove an employee's absence request.
Create a departmentCreate a department.
Create a shiftAdd a shift to the schedule.
Create an employeeCreate an employee.
Create an employee groupCreate an employee group.
Deactivate an employeeRemove an employee's access, now or from a date.
Delete a departmentDelete a department.
Delete a shiftDelete a shift from the schedule.
Delete an employee groupDelete an employee group.
Deny an absence requestDeny an absence request that is still waiting for a decision.
Get a departmentGet a department's details.
Get a shiftGet a shift's details.
Get an employeeGet an employee's profile.
List absence requestsList absence requests, filtered by employee, status and dates.
List deactivated employeesList employees whose access has been removed.
List departmentsList the portal's departments.
List employee groupsList the employee groups, the roles employees fill in the schedule.
List employee typesList the employee types set up in the portal.
List employeesList active employees, optionally filtered by when they were created or changed, or by a search.
List positionsList the schedule positions.
List punch clock recordsList the times employees punched in and out in a period.
List shift typesList the shift types.
List shiftsList shifts, filtered by date, department, employee, status and more.
List termination typesList the termination types an employee can be deactivated with.
Reactivate an employeeGive a deactivated employee their access back now.
Rename an employee groupRename an employee group.
Update a departmentRename a department or change its number.
Update a shiftChange a shift.
Update an employeeChange an employee's details.

Approve an absence request

Approve an employee's absence request.

Inputs

Absence request IDabsence_request_idnumberRequired
The ID of the absence request to approve.
Reasonreasontext
A note for the employee.
Notify the employeenotifytrue/false
Whether to tell the employee.
Their shifts in the periodexisting_shiftstext
What to do with the employee's shifts during the absence. Leave empty for the portal's default.One of: NoAction, Delete, ChangeShiftType.
Cover shiftscover_shiftstext
Whether to create open shifts to cover the absence. Leave empty for the portal's default.One of: DoNotCreate, CreateOpen.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Create a department

Create a department.

Inputs

NamenametextRequired
The department's name.
Numbernumbertext
The department's number or code.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": {
      "id": 1,
      "name": "example",
      "number": "example"
    }
  }
}

Create a shift

Add a shift to the schedule.

Inputs

Departmentdepartment_idnumberRequired
The department the shift belongs to.
DatedatedateRequired
The day in the schedule the shift belongs to.
Start timeshift_starttext
When the shift starts, as 24-hour HH:MM in the department's time zone, such as 09:00.
End timeshift_endtext
When the shift ends, as 24-hour HH:MM, at most 24 hours after the start.
Employeeemployee_idnumber
The employee to assign. Leave empty for an open shift.
Employee groupemployee_group_idnumber
The employee group (role in the schedule) the shift is for.
Positionposition_idnumber
The schedule position the shift is for.
Shift typeshift_type_idnumber
The shift type, such as normal or overtime.
Commentcommenttext
A comment on the shift that managers and employees can see.
Add default breaksuse_breakstrue/false
Whether to add the breaks set up in your break settings.Default: true.
Allow conflictsallow_conflictstrue/false
Whether to save the shift even if it conflicts with the employee's other shifts or rules.Default: false.
Draftis_drafttrue/false
Whether the shift is a draft that employees can't see until it's published.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": {
      "comment": "example",
      "date": "example",
      "defaultWage": {
        "amount": 1.0,
        "type": "example"
      },
      "departmentId": 1,
      "employeeGroupId": 1,
      "employeeId": 1,
      "endTime": "example",
      "id": 1,
      "isDraft": false,
      "manualBreaks": [],
      "positionId": 1,
      "shiftTypeId": 1,
      "skillIds": [],
      "startTime": "example",
      "timeZone": "example"
    }
  }
}

Create an employee

Create an employee. Your portal may require more fields.

Inputs

First namefirst_nametextRequired
The employee's first name.
Last namelast_nametextRequired
The employee's last name.
Departmentsdepartment_idslistRequired
The departments the employee works in.
Usernameuser_nametext
The email address the employee signs in with. Leave it and Email empty to create a draft employee you invite later.
Emailemailtext
The employee's main email address.
Cell phonecell_phonetext
The employee's mobile phone number.
Cell phone countrycell_phone_country_codetext
The two-letter country code of the mobile number, such as DK or GB.
Phonephonetext
Another phone number for the employee.
Street addressstreet1text
The first line of the employee's address.
Address line 2street2text
The second line of the employee's address.
Postcodeziptext
The postcode or ZIP code of the employee's address.
Citycitytext
The city of the employee's address.
Employee groupsemployee_group_idslist
The employee groups (roles in the schedule) the employee belongs to.
Employee typeemployee_type_idnumber
The employee type, such as full time or hourly.
Primary departmentprimary_department_idnumber
The employee's main department, on portals where this field is turned on.
Hired fromhired_fromdate
The date the employee was hired.
Birth datebirth_datedate
The employee's date of birth.
Gendergendertext
The employee's gender.One of: Male, Female.
Job titlejob_titletext
The employee's job title.
Salary identifiersalary_identifiertext
The employee's salary code, used by payroll.
Hours per monthwork_hoursnumber
The hours the employee is contracted to work each month.At least 0.
Visible to colleaguesis_publictrue/false
Whether other employees can see this employee's details.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": {
      "bankAccount": {
        "accountNumber": "example",
        "registrationNumber": "example"
      },
      "birthDate": "example",
      "cellPhone": "example",
      "cellPhoneCountryCode": "example",
      "city": "example",
      "contractRulesRuleId": 1,
      "countryId": 1,
      "dateTimeCreated": "example",
      "dateTimeModified": "example",
      "deactivationDate": "example",
      "departments": [],
      "email": "example",
      "employeeGroups": [],
      "employeeTypeId": 1,
      "firstName": "example",
      "gender": "example",
      "hiredFrom": "example",
      "id": 1,
      "isPublic": false,
      "isSupervisor": false,
      "jobTitle": "example",
      "lastName": "example",
      "phone": "example",
      "phoneCountryCode": "example",
      "primaryDepartmentId": 1,
      "salaryIdentifier": "example",
      "securityGroups": [],
      "skillIds": [],
      "ssn": "example",
      "street1": "example",
      "street2": "example",
      "supervisorEmployeeId": 1,
      "supervisorId": 1,
      "userName": "example",
      "workHours": 1.0,
      "zip": "example"
    }
  }
}

Create an employee group

Create an employee group.

Inputs

NamenametextRequired
The employee group's name.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": {
      "id": 1,
      "name": "example"
    }
  }
}

Deactivate an employee

Remove an employee's access, now or from a date. Their profile is kept and can be reactivated.

Inputs

Employeeemployee_idnumberRequired
The employee to deactivate.
Last active datedatedate
The last day the employee is active. Leave empty to deactivate them now.
Reasonreasontext
A note on why, shown in the employee's details.
Termination typetermination_type_idnumber
The termination type, if your portal requires one.
Keep shiftskeep_shiftstrue/false
Whether to keep the employee on shifts after their last day. Otherwise they're taken off those shifts.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Delete a department

Delete a department. This can't be undone.

Inputs

Departmentdepartment_idnumberRequired
The department to delete.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Delete a shift

Delete a shift from the schedule. This can't be undone.

Inputs

Shift IDshift_idnumberRequired
The ID of the shift to delete.At least 1.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Delete an employee group

Delete an employee group. This can't be undone.

Inputs

Employee groupemployee_group_idnumberRequired
The employee group to delete.At least 1.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Deny an absence request

Deny an absence request that is still waiting for a decision.

Inputs

Absence request IDabsence_request_idnumberRequired
The ID of the absence request to deny.
Reasonreasontext
A note for the employee.
Notify the employeenotifytrue/false
Whether to tell the employee.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Get a department

Get a department's details.

Inputs

Departmentdepartment_idnumberRequired
The department to get.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": {
      "id": 1,
      "name": "example",
      "number": "example"
    }
  }
}

Get a shift

Get a shift's details.

Inputs

Shift IDshift_idnumberRequired
The ID of the shift.At least 1.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": {
      "comment": "example",
      "date": "example",
      "dateTimeCreated": "example",
      "dateTimeModified": "example",
      "departmentId": 1,
      "employeeGroupId": 1,
      "employeeId": 1,
      "endDateTime": "example",
      "id": 1,
      "manualBreaks": [],
      "positionId": 1,
      "punchClockShiftId": 1,
      "shiftTypeId": 1,
      "skillIds": [],
      "startDateTime": "example",
      "status": "Open",
      "timeZone": "example"
    }
  }
}

Get an employee

Get an employee's profile.

Inputs

Employeeemployee_idnumberRequired
The employee to get.
Sensitive fieldsspeciallist
Sensitive fields to include in the answer, if your access allows it: bank account, birth date or social security number.One or more of: BankAccount, BirthDate, Ssn.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": {
      "bankAccount": {
        "accountNumber": "example",
        "registrationNumber": "example"
      },
      "birthDate": "example",
      "cellPhone": "example",
      "cellPhoneCountryCode": "example",
      "cellPhoneCountryPrefix": "example",
      "city": "example",
      "contractRulesRuleId": 1,
      "countryId": 1,
      "dateTimeCreated": "example",
      "dateTimeModified": "example",
      "deactivationDate": "example",
      "deactivationReason": "example",
      "departments": [],
      "email": "example",
      "employeeGroups": [],
      "employeeTypeId": 1,
      "firstName": "example",
      "gender": "example",
      "hiredFrom": "example",
      "id": 1,
      "isDeactivated": false,
      "isPublic": false,
      "jobTitle": "example",
      "lastName": "example",
      "phone": "example",
      "phoneCountryCode": "example",
      "phoneCountryPrefix": "example",
      "primaryDepartmentId": 1,
      "salaryIdentifier": "example",
      "securityGroups": [],
      "skillIds": [],
      "ssn": "example",
      "street1": "example",
      "street2": "example",
      "supervisorEmployeeId": 1,
      "supervisorId": 1,
      "terminationTypeId": 1,
      "terminationTypeName": "example",
      "userName": "example",
      "workHours": 1.0,
      "zip": "example"
    }
  }
}

List absence requests

List absence requests, filtered by employee, status and dates.

Inputs

Offsetoffsetnumber
How many requests to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many requests to return.At least 1.
Employeeemployee_idnumber
Only this employee's requests.
Statusesstatuslist
Only requests with these statuses.One or more of: Submitted, Declined, Approved, Cancelled.
Start datestart_datedate
Only time off ending on or after this date.
End dateend_datedate
Only time off starting on or before this date.
Changed on or aftermodified_fromdate
Only requests created or changed on or after this date.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List deactivated employees

List employees whose access has been removed.

Inputs

Offsetoffsetnumber
How many records to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many records to return, at most 50.From 1 to 50.
Searchsearch_querytext
Text to match against first name, last name, email, phone number or salary identifier.
Deactivated afterdeactivated_fromdate and time
Only employees deactivated after this time.
Deactivated beforedeactivated_todate and time
Only employees deactivated before this time.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List departments

List the portal's departments.

Inputs

Offsetoffsetnumber
How many records to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many records to return, at most 50.From 1 to 50.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List employee groups

List the employee groups, the roles employees fill in the schedule.

Inputs

Offsetoffsetnumber
How many records to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many records to return, at most 50.From 1 to 50.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List employee types

List the employee types set up in the portal.

Inputs

None.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List employees

List active employees, optionally filtered by when they were created or changed, or by a search.

Inputs

Offsetoffsetnumber
How many records to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many records to return, at most 50.From 1 to 50.
Searchsearch_querytext
Text to match against first name, last name, email, phone number or salary identifier.
Created aftercreated_fromdate and time
Only employees created after this time.
Created beforecreated_todate and time
Only employees created before this time.
Changed aftermodified_fromdate and time
Only employees created, changed or deactivated after this time.
Changed beforemodified_todate and time
Only employees created, changed or deactivated before this time.
Sensitive fieldsspeciallist
Sensitive fields to include in the answer, if your access allows it: bank account, birth date or social security number.One or more of: BankAccount, BirthDate, Ssn.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List positions

List the schedule positions.

Inputs

Offsetoffsetnumber
How many records to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many records to return, at most 50.From 1 to 50.
Activeis_activetrue/false
Only active positions, or only inactive ones.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List punch clock records

List the times employees punched in and out in a period.

Inputs

Fromperiod_startdate and timeRequired
The start of the period.
Toperiod_enddate and timeRequired
The end of the period.
Employeeemployee_idnumber
Only this employee's records.
Shift IDshift_idnumber
Only records for this shift.
Offsetoffsetnumber
How many records to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many records to return.At least 1.

Outputs

dataobject
Custom paged response wrapper for Open API
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List shift types

List the shift types.

Inputs

Offsetoffsetnumber
How many records to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many records to return, at most 50.From 1 to 50.
Activeis_activetrue/false
Only active shift types, or only inactive ones.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List shifts

List shifts, filtered by date, department, employee, status and more.

Inputs

Offsetoffsetnumber
How many shifts to skip, for paging. Starts at 0.At least 0.
Limitlimitnumber
How many shifts to return, at most 5,000.From 1 to 5000.
Fromfrom_datedate
Only shifts on or after this date.
Toto_datedate
Only shifts on or before this date.
Departmentsdepartment_idslist
Only shifts in these departments.
Employeesemployee_idslist
Only shifts assigned to these employees.
Employee groupsemployee_group_idslist
Only shifts for these employee groups.
Positionsposition_idslist
Only shifts for these positions.
Shift typesshift_type_idslist
Only shifts of these types.
Statusshift_statustext
Only shifts with this status.One of: Open, Assigned, Approved, ForSale, Draft, OnDuty, PendingSwapAcceptance, PendingApproval, PunchclockStarted, PunchclockFinished, PunchclockApproved.
Created aftercreated_fromdate and time
Only shifts created after this time.
Changed aftermodified_fromdate and time
Only shifts changed after this time.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

List termination types

List the termination types an employee can be deactivated with.

Inputs

None.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": [],
    "paging": {
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}

Reactivate an employee

Give a deactivated employee their access back now.

Inputs

Employeeemployee_idnumberRequired
The deactivated employee to reactivate.
Commentcommenttext
A note about the reactivation.
Departmentsdepartment_idslist
The departments to put the employee back in.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Rename an employee group

Rename an employee group.

Inputs

Employee groupemployee_group_idnumberRequired
The employee group to rename.At least 1.
NamenametextRequired
The new name.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Update a department

Rename a department or change its number.

Inputs

Departmentdepartment_idnumberRequired
The department to update.
NamenametextRequired
The department's name.
Numbernumbertext
The department's number or code. Leave empty to clear it.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

Update a shift

Change a shift. Fields you leave empty keep their current values.

Inputs

Shift IDshift_idnumberRequired
The ID of the shift to update.At least 1.
Datedatedate
The day in the schedule the shift belongs to. Leave empty to keep the shift's date.
Start timeshift_starttext
When the shift starts, as 24-hour HH:MM in the department's time zone, such as 09:00. Leave empty to keep it.
End timeshift_endtext
When the shift ends, as 24-hour HH:MM, at most 24 hours after the start. Leave empty to keep it.
Employeeemployee_idnumber
The employee to assign. Leave empty to keep the current one.
Employee groupemployee_group_idnumber
The employee group (role in the schedule) the shift is for.
Positionposition_idnumber
The schedule position the shift is for.
Shift typeshift_type_idnumber
The shift type, such as normal or overtime.
Commentcommenttext
A comment on the shift that managers and employees can see.
Add default breaksuse_breakstrue/false
Whether to add the breaks set up in your break settings.Default: true.
Allow conflictsallow_conflictstrue/false
Whether to save the shift even if it conflicts with the employee's other shifts or rules.Default: false.
Draftis_drafttrue/false
Whether the shift is a draft that employees can't see until it's published.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {
    "data": {
      "comment": "example",
      "date": "example",
      "defaultWage": {
        "amount": 1.0,
        "type": "example"
      },
      "departmentId": 1,
      "employeeGroupId": 1,
      "employeeId": 1,
      "endTime": "example",
      "id": 1,
      "isDraft": false,
      "manualBreaks": [],
      "positionId": 1,
      "shiftTypeId": 1,
      "skillIds": [],
      "startTime": "example",
      "timeZone": "example"
    }
  }
}

Update an employee

Change an employee's details. Only the fields you fill in are changed.

Inputs

Employeeemployee_idnumberRequired
The employee to update.
First namefirst_nametext
The employee's first name.
Last namelast_nametext
The employee's last name.
Departmentsdepartment_idslist
The departments the employee works in.
Usernameuser_nametext
The email address the employee signs in with.
Emailemailtext
The employee's main email address.
Cell phonecell_phonetext
The employee's mobile phone number.
Cell phone countrycell_phone_country_codetext
The two-letter country code of the mobile number, such as DK or GB.
Phonephonetext
Another phone number for the employee.
Street addressstreet1text
The first line of the employee's address.
Address line 2street2text
The second line of the employee's address.
Postcodeziptext
The postcode or ZIP code of the employee's address.
Citycitytext
The city of the employee's address.
Employee groupsemployee_group_idslist
The employee groups (roles in the schedule) the employee belongs to.
Employee typeemployee_type_idnumber
The employee type, such as full time or hourly.
Primary departmentprimary_department_idnumber
The employee's main department, on portals where this field is turned on.
Hired fromhired_fromdate
The date the employee was hired.
Birth datebirth_datedate
The employee's date of birth.
Gendergendertext
The employee's gender.One of: Male, Female.
Job titlejob_titletext
The employee's job title.
Salary identifiersalary_identifiertext
The employee's salary code, used by payroll.
Hours per monthwork_hoursnumber
The hours the employee is contracted to work each month.At least 0.
Visible to colleaguesis_publictrue/false
Whether other employees can see this employee's details.

Outputs

dataobject
The response from Planday.
Example output
{
  "data": {}
}

On this page