Payroll

GET /report/payroll

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

Query parameters

  • region number

    Id of the region to filter report based on region

  • client number

    Id of the client to filter report based on client

  • start_date string Required

    The planned day to get report from

  • end_date string Required

    The planned day to get report till

  • Id of the business unit to filter report

  • per_page number

    Minimum value is 1 and maximum value is 100

  • Filter payroll report using date approved or by using from and to date, default will be from and to date

    Values are approved_at or on_date. Default value is on_date.

  • Id of the candidate to filter report

  • job number

    Id of job to filter report

  • Payroll frequency

    Values are Weekly, Monthly, or 4 Weekly.

  • Id of Employment type to filter report

Responses

GET /report/payroll
curl \
 -X GET https://api-console.logezy.co/v1/report/payroll?start_date=string&end_date=string \
 -H "Authorization: Bearer your-access-token" \
 -H "Accept: application/json"
Response examples (200)
{
  "status": "success",
  "data": {
    "current_page": 1,
    "data": [
      {
        "candidate_code": "DEM1CA143",
        "candidate_name": "Abigail Igbinedion Osarumwense",
        "candidate_first_name": "Abigail",
        "candidate_last_name": "Igbinedion Osarumwense",
        "payment_reference": null,
        "job_title": "HCA",
        "business_unit": "24 Care Unit 2",
        "client_name": "24 Care",
        "on_date": "23-10-2018",
        "approved_at": "28-04-2022 07:50 PM",
        "shift": "Day",
        "payroll_id": null,
        "start_time": "12:30 PM",
        "end_time": "01:30 AM",
        "total_hours": "12.00",
        "staff_rate": "0.00",
        "staff_pay_amount": "0.00",
        "client_rate": "0.00",
        "client_pay_amount": "0.00",
        "assign_vacancy_detail_id": 2019,
        "status": "invoiced",
        "assign_vacancy_id": 1441,
        "employment_types_id": 1,
        "candidate_id": 143,
        "job_id": 2
      }
    ],
    "first_page_url": "https://api.logezydev.co.uk/v1/report/payroll?page=1",
    "from": 1,
    "last_page": 149,
    "last_page_url": "https://api.logezydev.co.uk/v1/report/payroll?page=149",
    "next_page_url": "https://api.logezydev.co.uk/v1/report/payroll?page=2",
    "path": "https://api.logezydev.co.uk/v1/report/payroll",
    "per_page": 10,
    "prev_page_url": null,
    "to": 10,
    "total": 1490
  },
  "message": "Payroll report retrieved successfully."
}