Staff Report

GET /report/staff

This API is to get staff report. This is an authendicated API so we need to pass bearer token in request header to access the data.

Headers

  • Authorization string Required
  • Accept string

Query parameters

  • region string

    Id of the region to filter report

  • start_date string

    The planned day to get report from

  • end_date string

    The planned day to get report till

  • business_unit number

    Id of the business unit to filter report

  • business_unit_name string

    Name of business unit to filter

  • candidate number

    Id of candidate to filter report

  • candidatename string

    Name of the candidate to filter

  • per_page number

    Minimum value is 1 and maximum value is 100

  • job string

    Id of job to filter

  • employment_type string

    Id of employment type

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • status string
    • data object

      Additional properties are allowed.

      Hide data attributes Show data attributes object
      • current_page integer
      • data array[object]
        Hide data attributes Show data attributes object
        • candidate_code string
        • candidate_name string
        • job_title string
        • business_unit string
        • business_unit_id number
        • on_date string
        • on_day string
        • shift string
        • payroll_id string
        • start_time string
        • end_time string
        • total_hours string
        • staff_rate string
        • staff_pay_amount string
        • client_rate string
        • client_pay_amount string
        • status string
        • assign_vacancy_id number
        • assign_vacancy_detail_id number
        • employment_types_id number
        • candidate_id number
        • client string
      • first_page_url string
      • from integer
      • last_page integer
      • last_page_url string
      • next_page_url string
      • path string
      • per_page integer
      • prev_page_url string
      • to integer
      • total integer
    • message string
GET /report/staff
curl \
 --request GET 'https://api-console.logezy.co/v1/report/staff' \
 --header "Authorization: Bearer your-access-token" \
 --header "Accept: application/json"
Response examples (200)
{
  "data": {
    "to": 4,
    "data": [
      {
        "shift": "Day",
        "client": "24 Care",
        "on_day": "Friday",
        "status": "pending",
        "on_date": "23-12-2022",
        "end_time": "08:00 PM",
        "job_title": "Nurse",
        "payroll_id": null,
        "staff_rate": "0.00",
        "start_time": "08:00 AM",
        "client_rate": "0.00",
        "total_hours": "11.00",
        "candidate_id": 120,
        "business_unit": "24 Care Unit 1",
        "candidate_code": "DEM1CA120",
        "candidate_name": "Abey K",
        "business_unit_id": 57,
        "staff_pay_amount": "0.00",
        "assign_vacancy_id": 2215,
        "client_pay_amount": "0.00",
        "employment_types_id": 4,
        "assign_vacancy_detail_id": 2962
      }
    ],
    "from": 1,
    "path": "https://api.logezydev.co.uk/v1/report/staff",
    "total": 4,
    "per_page": 10,
    "last_page": 1,
    "current_page": 1,
    "last_page_url": "https://api.logezydev.co.uk/v1/report/staff?page=1",
    "next_page_url": null,
    "prev_page_url": null,
    "first_page_url": "https://api.logezydev.co.uk/v1/report/staff?page=1"
  },
  "status": "success",
  "message": "Staff reports retrieved successfully."
}