---
title: "Fetch a summary grouped and sorted by rate"
method: POST
path: "/timesheet-export/v2/summary-by-rate:get"
tags: ["Timesheets"]
---

# Fetch a summary grouped and sorted by rate

`POST /timesheet-export/v2/summary-by-rate:get`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/timesheet-export/v2/summary-by-rate:get`
- Auth: API key in header `OAuth`

Fetch a summary grouped and sorted by rate.

## Request body

- TimesheetExportSummaryRequest
  - `filters` ModelSummaryFilters
    - `companyPeriods` ModelCompanyPeriods
      - `companyPeriodIds` integer[]
    - `payCalendar` ModelPayCalendarOption
      - `id` integer
      - `startDate` string
      - `endDate` string
    - `dateRange` ModelDateRange
      - `startDate` string
      - `endDate` string
    - `locations` ModelLocations
      - `locationIds` integer[]
    - `payCenters` ModelPayCenters
      - `payCenterIds` integer[]
    - `employeeIds` integer[]
    - `employeeSelectionMode` 'EMPLOYEE_SELECTION_MODE_UNKNOWN' | 'INCLUDE' | 'EXCLUDE'
  - `bulkSelection` ModelSummaryBulkSelection
    - `timesheetIds` integer[]
    - `payCycleIds` integer[]

## Response `200`

A successful response.

- TimesheetExportRateSummaryResponse
  - `rateSummaries` ModelRateSummary[]
    - `name` string
    - `type` 'RATE_TYPE_UNKNOWN' | 'BASE' | 'DAILY_LOADING' | 'PERIOD_LOADING' | 'LEAVE'
    - `payRule` ModelRateSummaryPayRule
      - `id` integer
    - `leaveRule` ModelRateSummaryLeaveRule
      - `id` integer
    - `isSetToExport` boolean
    - `exportCode` string
    - `totalValue` string
    - `valueUnit` 'VALUE_UNIT_UNKNOWN' | 'HOURS' | 'UNITS'
    - `totalCost` string

---

[API](https://skmtc.dev/deputy/apis/deputy-v2-api.md) - [All operations](https://skmtc.dev/deputy/apis/deputy-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deputy/apis/deputy-v2-api/revisions/78f0278f4608?raw)
