Get a list of imported work time and vacation balances for the specified user.

Examples

{
  "collection": [
    {
      "id": 2,
      "user_id": 819,
      "balance_type": "vacation",
      "date": "2025-03-31",
      "value": 5.0,
      "units": "days",
      "creator_id": 42,
      "creator_name": "John Smith"
    },
    {
      "id": 1,
      "user_id": 819,
      "balance_type": "work_time",
      "date": "2025-03-15",
      "value": 75,
      "units": "minutes",
      "creator_id": 42,
      "creator_name": "John Smith"
    }
  ],
  "pagination": {
    "current_page": 1,
    "total_pages": 1,
    "total_count": 2
  }
}

Params

Param name Description
user_id
required

User ID.

Validations:

  • Must be a Integer

balance_type
optional

Filter time entries by the specified balance type.

Validations:

  • Must be one of: work_time, vacation.

page
optional

Page number.

Validations:

  • Must be a Integer

per_page
optional

Number of records per page. Default: 50.

Validations:

  • Must be a Integer

sort_by
optional

Sort by field. Default: date.

Validations:

  • Must be a String

order
optional

Sorting order (descending or ascending). Default: desc.

Validations:

  • Must be one of: desc, asc.