# Breathe HR

> Read Breathe employee, leave, absence and organization records.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/breathe-hr

## Actions

### Get account

Get account from Breathe HR.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "accounts": [
      {
        "domain": {},
        "health_and_safety_enabled": {},
        "id": {},
        "name": {},
        "using_rta": {},
        "uuid": {}
      }
    ]
  }
}
```

### Get employee

Get employee from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, text, required): Employee id.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "employees": [
      {
        "age": {},
        "created_at": {},
        "email": {},
        "full_or_part_time": {},
        "holiday_allowance": {},
        "id": {},
        "length_of_service_in_months": {},
        "line_manager": {},
        "notice_period": {},
        "photo_url": {},
        "status": {},
        "total_working_hours": {},
        "updated_at": {},
        "working_pattern": {}
      }
    ]
  }
}
```

### Get leave request

Get leave request from Breathe HR.

**Inputs**

- Leave request ID (`leave_request_id`, text, required): Leave request id.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "leave_requests": [
      {
        "action": {},
        "created_at": {},
        "end_date": {},
        "half_end": {},
        "half_end_am_pm": {},
        "half_start": {},
        "half_start_am_pm": {},
        "id": {},
        "notes": {},
        "start_date": {},
        "status": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List absences

List absences from Breathe HR.

**Inputs**

- Type (`type`, text): Type of absences to return, 'Holiday' or 'OtherLeave'
- Other leave reason ID (`other_leave_reason_id`, number): ID of other leave reason to filter by
- Exclude cancelled absences (`exclude_cancelled_absences`, true/false): Don't return cancelled absences
- Employee ID (`employee_id`, number): Return absences for this employee only (also available at /employees/:id/absences)
- Department ID (`department_id`, number): Return absences for this department only (also available at /departments/:id/absences)
- Start date (`start_date`, text): Return absences on or after this date
- End date (`end_date`, text): Return absences on or after this date
- Rotacloud (`rotacloud`, true/false): Return absences where rotacloud is not excluded from integration
- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "absences": [
      {
        "approved_by": {},
        "created_at": "example",
        "deducted": {},
        "employee": {},
        "end_date": "example",
        "half_end": true,
        "half_end_am_pm": "example",
        "half_start": true,
        "half_start_am_pm": "example",
        "id": 1,
        "leave_reason": {},
        "start_date": "example",
        "updated_at": "example",
        "work_units": {}
      }
    ]
  }
}
```

### List departments

List departments from Breathe HR.

**Inputs**

- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "company_departments": [
      {
        "created_at": {},
        "id": {},
        "name": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List divisions

List divisions from Breathe HR.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "company_divisions": [
      {
        "created_at": {},
        "id": {},
        "name": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List employee absences

List employee absences from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, number, required): ID of employee to return absences for
- Exclude cancelled absences (`exclude_cancelled_absences`, true/false): Don't return cancelled leave requests
- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "absences": [
      {
        "approved_by": {},
        "created_at": "example",
        "deducted": {},
        "employee": {},
        "end_date": "example",
        "half_end": true,
        "half_end_am_pm": "example",
        "half_start": true,
        "half_start_am_pm": "example",
        "id": 1,
        "leave_reason": {},
        "start_date": "example",
        "updated_at": "example",
        "work_units": {}
      }
    ]
  }
}
```

### List employee benefits

List employee benefits from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, text, required): Employee id.
- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "benefits": [
      {
        "amount": {},
        "created_at": {},
        "employee_contribution": {},
        "employer_contribution": {},
        "end_date": {},
        "id": {},
        "pension_opt_out": {},
        "provider": {},
        "review_date": {},
        "start_date": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List employee bonuses

List employee bonuses from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, text, required): Employee id.
- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "bonuses": [
      {
        "amount": {},
        "award_date": {},
        "created_at": {},
        "description": {},
        "id": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List employee holiday years

List employee holiday years from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, number, required): ID of employee to return holiday years for
- For date (`for_date`, text): Return employee_holiday_years that include this date

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "employee_holiday_years": [
      {
        "adjustment": {},
        "allowance": {},
        "allowance_from_last_year": {},
        "carry_over_valid_for": {},
        "end_date": {},
        "finished": {},
        "holiday_allowance": {},
        "id": {},
        "start_date": {},
        "used_from_last_year": {},
        "used_from_next_year": {},
        "used_from_this_year": {},
        "used_in_last_year": {},
        "working_pattern": {}
      }
    ]
  }
}
```

### List employee jobs

List employee jobs from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, number): Return jobs for this employee only
- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "employee_jobs": [
      {
        "contract_end_date": {},
        "created_at": {},
        "end_date": {},
        "fulltime_parttime": {},
        "start_date": {},
        "title": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List employee leave requests

List employee leave requests from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, number, required): ID of employee to return leave requests for
- Exclude cancelled requests (`exclude_cancelled_requests`, true/false): Don't return cancelled leave requests

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "leave_requests": [
      {
        "action": {},
        "created_at": {},
        "end_date": {},
        "half_end": {},
        "half_end_am_pm": {},
        "half_start": {},
        "half_start_am_pm": {},
        "id": {},
        "notes": {},
        "start_date": {},
        "status": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List employee salaries

List employee salaries from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, text, required): Employee id.
- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "salaries": [
      {
        "amount": {},
        "basis": {},
        "created_at": {},
        "end_date": {},
        "id": {},
        "start_date": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List employee sicknesses

List employee sicknesses from Breathe HR.

**Inputs**

- Employee ID (`employee_id`, number, required): ID of employee to return sicknessed for

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "sicknesses": [
      {
        "company_sicknesstype": {},
        "deducted": {},
        "employee": {},
        "end_date": {},
        "fit_note_required": {},
        "half_end": {},
        "half_end_am_pm": {},
        "half_start": {},
        "half_start_am_pm": {},
        "id": {},
        "reason": {},
        "review_notes": {},
        "start_date": {},
        "status": {}
      }
    ]
  }
}
```

### List employees

List employees from Breathe HR.

**Inputs**

- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.
- Filter (`filter`, text): Type of employees to return. One of: `hr`, `line_manager` (Line manager), `either`, `neither`.
- Rotacloud (`rotacloud`, true/false): Return leave requests where rotacloud is not excluded from integration

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "employees": [
      {
        "age": {},
        "created_at": {},
        "email": {},
        "full_or_part_time": {},
        "holiday_allowance": {},
        "id": {},
        "length_of_service_in_months": {},
        "line_manager": {},
        "notice_period": {},
        "photo_url": {},
        "status": {},
        "total_working_hours": {},
        "updated_at": {},
        "working_pattern": {}
      }
    ]
  }
}
```

### List holiday allowances

List holiday allowances from Breathe HR.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "holiday_allowances": [
      {
        "created_at": {},
        "default": {},
        "id": {},
        "updated_at": {},
        "year_1": {},
        "year_10": {},
        "year_2": {},
        "year_3": {},
        "year_4": {},
        "year_5": {},
        "year_6": {},
        "year_7": {},
        "year_8": {},
        "year_9": {}
      }
    ]
  }
}
```

### List leave requests

List leave requests from Breathe HR.

**Inputs**

- Start date (`start_date`, text): Return leave requests starting on or after this date
- End date (`end_date`, text): Return leave requests starting on or before this date
- Exclude cancelled requests (`exclude_cancelled_requests`, true/false): Don't return cancelled leave requests
- Employee ID (`employee_id`, number): Return leave requests for this employee only (also available at /employees/:id/leave_requests)
- Department ID (`department_id`, number): Return leave requests for this department only (also available at /departments/:id/leave_requests)
- Rotacloud (`rotacloud`, true/false): Return leave requests where rotacloud is not excluded from integration
- Page (`page`, number): Page of results to fetch. At least 1.
- Per page (`per_page`, number): Number of results to return per page. At least 1.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "leave_requests": [
      {
        "action": {},
        "created_at": {},
        "end_date": {},
        "half_end": {},
        "half_end_am_pm": {},
        "half_start": {},
        "half_start_am_pm": {},
        "id": {},
        "notes": {},
        "start_date": {},
        "status": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List locations

List locations from Breathe HR.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "company_locations": [
      {
        "created_at": {},
        "id": {},
        "name": {},
        "updated_at": {}
      }
    ]
  }
}
```

### List other leave reasons

List other leave reasons from Breathe HR.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Breathe HR.

**Example output**

```json
{
  "data": {
    "other_leave_reasons": [
      {
        "id": {},
        "name": {}
      }
    ]
  }
}
```
