---
title: "Special Route to retrieves unique list of work history per employer for a specific candidate"
method: GET
path: "/candidate/{candidate_id}/work-history-per-employer"
tags: ["Candidate Employment"]
---

# Special Route to retrieves unique list of work history per employer for a specific candidate

`GET /candidate/{candidate_id}/work-history-per-employer`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/candidate/{candidate_id}/work-history-per-employer`
- Auth: HTTP basic

## Query parameters

- `start_date_from` string, date-time
- `start_date_to` string, date-time
- `end_date_from` string, date-time
- `end_date_to` string, date-time
- `status` 'unverified' | 'verified'

## Headers

- `Authorization` string, string, required
- `Context` string, string, required
- `Accept` 'application/json', required
- `X-Accept-Timezone` string

## Response `200`

Work history list per employer for a specific candidate will be returned

- object[]
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `work_type` 'agency' | 'contract' | 'permanent' | 'student_placement' | 'part_time', required
  - `employer_name` string
  - `employer_contact_number` string
  - `employer_location` object
    - `address_line1` string
    - `address_line2` string
    - `city` string
    - `province` string
    - `country_code` string, required
    - `post_code` string
  - `position` string
  - `position_type` 'za_allied_professional' | 'gbr_care_course' | 'za_care_giver' | 'gbr_care_worker' | 'gbr_catering' | 'gbr_industrial' | 'gbr_locum' | 'za_locum' | 'gbr_locum_allied' | 'gbr_nurse' | 'gbr_teacher' | 'gbr_teaching_support_staff' | 'gbr_support_administration' | 'gbr_caretaking_site_services' | 'za_nurse' | 'gbr_social_worker' | 'za_social_worker' | 'gbr_social_worker_rsw' | 'gbr_gp' | 'gbr_odp' | 'other'
  - `job_family_id` string
  - `job_title_id` string
  - `start_date` string, date-time, required
  - `end_date` string, date-time
  - `responsibilities` string
  - `leaving_reason` string
  - `candidate_id` string, required
  - `current` boolean, required
  - `status` string, required
  - `job_family_name` string
  - `job_title_name` string
  - `system_generated` boolean, required

## Other responses

- `204`: No Content. There were no records to return based on your query.
- `400`: Validation error on get unique list of work history for a specific candidate
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `default`: Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
