Skip to main content
GET
/
v1
/
businesses
/
{businessId}
/
time-tracking
/
time-entries
/
summary
Get time entry summary
curl --request GET \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/time-tracking/time-entries/summary \
  --header 'Authorization: Bearer <token>'
{
  "total_minutes": 123,
  "total_billable_minutes": 123,
  "total_billable_amount": 123,
  "by_customer": [
    {
      "total_minutes": 123,
      "total_billable_minutes": 123,
      "total_billable_amount": 123,
      "entry_count": 123,
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "by_service": [
    {
      "total_minutes": 123,
      "total_billable_minutes": 123,
      "total_billable_amount": 123,
      "entry_count": 123,
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

businessId
string<uuid>
required

The UUID of the business

Query Parameters

include_deleted
boolean
default:false

Whether to include deleted time entries in the summary

customer_id
string<uuid>

Filter by customer UUID

has_customer
boolean

Filter entries that have (true) or do not have (false) a customer assigned

service_id
string<uuid>

Filter by service UUID

start_date
string<date>

Filter entries on or after this date (YYYY-MM-DD)

end_date
string<date>

Filter entries on or before this date (YYYY-MM-DD)

billable
boolean

Filter by billable status

Response

200 - application/json

Success

total_minutes
integer<int64>
required

Total minutes across all matching time entries

total_billable_minutes
integer<int64>
required

Total minutes for billable time entries only

total_billable_amount
integer<int64>
required

Total billable amount in cents, calculated from billable entries and their service rates

by_customer
object[]
required

Summary grouped by customer

by_service
object[]
required

Summary grouped by service