> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get time entry summary

> Returns aggregated summary statistics for time entries, including totals and breakdowns by customer and service.



## OpenAPI

````yaml get /v1/businesses/{businessId}/time-tracking/time-entries/summary
openapi: 3.0.1
info:
  title: API
  version: latest
servers: []
security:
  - BearerAuth: []
tags: []
externalDocs:
  url: /
paths:
  /v1/businesses/{businessId}/time-tracking/time-entries/summary:
    get:
      tags: []
      summary: Get time entry summary
      description: >-
        Returns aggregated summary statistics for time entries, including totals
        and breakdowns by customer and service.
      operationId: business.timeTracking.timeEntries.summary.get
      parameters:
        - name: businessId
          in: path
          description: The UUID of the business.
          required: true
          schema:
            type: string
            format: uuid
        - name: include_deleted
          in: query
          description: Whether to include deleted time entries in the summary.
          required: false
          schema:
            type: boolean
            default: false
        - name: customer_id
          in: query
          description: Filter by customer UUID.
          required: false
          schema:
            type: string
            format: uuid
        - name: has_customer
          in: query
          description: >-
            Filter entries that have (true) or do not have (false) a customer
            assigned.
          required: false
          schema:
            type: boolean
        - name: service_id
          in: query
          description: Filter by service UUID.
          required: false
          schema:
            type: string
            format: uuid
        - name: start_date
          in: query
          description: Filter entries on or after this date (YYYY-MM-DD).
          required: false
          schema:
            type: string
            format: date
        - name: end_date
          in: query
          description: Filter entries on or before this date (YYYY-MM-DD).
          required: false
          schema:
            type: string
            format: date
        - name: billable
          in: query
          description: Filter by billable status.
          required: false
          schema:
            type: boolean
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiTimeEntrySummary'
components:
  schemas:
    ApiTimeEntrySummary:
      type: object
      properties:
        total_minutes:
          type: integer
          format: int64
          description: Total minutes across all matching time entries.
        total_billable_minutes:
          type: integer
          format: int64
          description: Total minutes for billable time entries only.
        total_billable_amount:
          type: integer
          format: int64
          description: >-
            Total billable amount in cents, calculated from billable entries and
            their service rates.
        by_customer:
          type: array
          items:
            $ref: '#/components/schemas/ApiTimeEntrySummaryGroup'
          description: Summary grouped by customer.
        by_service:
          type: array
          items:
            $ref: '#/components/schemas/ApiTimeEntrySummaryGroup'
          description: Summary grouped by service.
      required:
        - total_minutes
        - total_billable_minutes
        - total_billable_amount
        - by_customer
        - by_service
    ApiTimeEntrySummaryGroup:
      type: object
      properties:
        id:
          type: string
          format: uuid
          nullable: true
          description: >-
            The UUID of the customer or service (null for entries without a
            customer).
        name:
          type: string
          nullable: true
          description: The name of the customer or service.
        total_minutes:
          type: integer
          format: int64
          description: Total minutes for this group.
        total_billable_minutes:
          type: integer
          format: int64
          description: Total billable minutes for this group.
        total_billable_amount:
          type: integer
          format: int64
          description: Total billable amount in cents for this group.
        entry_count:
          type: integer
          format: int64
          description: Number of time entries in this group.
      required:
        - total_minutes
        - total_billable_minutes
        - total_billable_amount
        - entry_count
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````