v1/employments

List all Employments.

Query Params
string
required

This is a testing sandbox. We advise against using credentials for production accounts here.

E-mail address of the API user.

string
required

This is a testing sandbox. We advise against using credentials for production accounts here.

Authentication token - can be fetched by login action.

int32
required
≥ 1

ID of a shyftplan account.

company_ids[]
array of int32s

Filter for an array of company IDs.

company_ids[]
string
enum
Defaults to all

Access level filter used for employments

Allowed:
date-time

Return all records which are created after

date-time

Return all records which are created before

int32
≥ 1

Filter for a single employment ID

ids[]
array of int32s

Filter for a list of employment IDs.

ids[]
boolean
Defaults to true

Include live info (might be slow)

string
enum

Invitation state of the employment, one of:

  • new: The user's email address is known in the shyftplan database already (because of an older employment), and he has not accepted (nor refused) the employment at this shyftplan company.
  • accepted: Either the user's email was newly added to the shyftplan database and thus his employment in this shyftplan company was automatically accepted, or (for an older database entry of the user's email address) the user has accepted the invitation to this shyftplan company.
  • refused: (With an older database entry of the user's email address) The user has refused the employment invitation to this shyftplan company.</
Allowed:
invitation_states[]
array of strings

List of invitation states

invitation_states[]
Allowed:
boolean

Filter for Employees

boolean

Filter for super-admins.

boolean

Filter for managers.

int32

Filter for single LocationsPosition ID

locations_position_ids[]
array of int32s

Filter an array of LocationsPosition ID

locations_position_ids[]
int32

Filter for Location ID

location_ids[]
array of objects

Filter for a list of location IDs.

location_ids[]
not_in_shift_rotation_group_ids[]
array of int32s

Filter for employments who are not in these shift-system groups

not_in_shift_rotation_group_ids[]
string
enum
Defaults to asc

Sort direction

Allowed:
string
enum
Defaults to last_name

Sort keys

Allowed:
int32
≥ 1
Defaults to 1

Number of the page of responses to retrieve. First page: 1.

int32
1 to 1000
Defaults to 500

Number of responses on each page.

string

Search string to filter employees by name or staff number

int32

Filter for single Shiftplan ID

shiftplan_ids[]
array of int32s

Filter an array of Shiftplan ID

shiftplan_ids[]
shift_rotation_group_ids[]
array of int32s

Filter for a list of shift-system group IDs.

shift_rotation_group_ids[]
staff_numbers[]
array of strings

Filter an array of Staff numbers ID

staff_numbers[]
tag_ids[]
array of int32s

Filter by an array of Employee Attribute IDs

tag_ids[]
int32

Filter for single Qualification ID

qualification_ids[]
array of int32s

Filter an array of Qualification ID

qualification_ids[]
date-time

Return all records which are updated after

date-time

Return all records which are updated before

boolean
Defaults to false

Only return employments that have no LocationsPosition assigned

boolean
Defaults to true

Include soft-deleted employments

Responses

400

Error

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json