Skip to main content
GET
/
barbers
/
{id}
/
summaries
/
daily
Get daily summaries for a barber
curl --request GET \
  --url https://api.guile.app/barbers/{id}/summaries/daily \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "date": "2023-12-25",
      "totalAppointments": 1,
      "earnings": "456.78",
      "tips": "456.78",
      "cancellations": 1,
      "noShows": 1,
      "totalDuration": 1
    }
  ],
  "count": 1,
  "totalAppointments": 1,
  "earnings": "456.78",
  "tips": "456.78",
  "cancellations": 1,
  "noShows": 1,
  "totalDuration": 1
}

Path Parameters

id
string<uuid>
required

The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.

Query Parameters

dates
string
required

Filter summaries by date range. The date range must not exceed 30 days. A date range, supporting inclusive or exclusive endpoints. Dates ranges use dates expressed in YYYY-MM-DD RFC 3339 date format. The value may have the following forms:

  • YYYY-MM-DD match the date exactly; equivalent to matching dates in the range [YYYY-MM-DD,YYYY-MM-DD]
  • [YYYY-MM-DD,YYYY-MM-DD] between two dates, inclusive of the endpoints
  • (YYYY-MM-DD,YYYY-MM-DD) between two dates, exclusive of the endpoints
  • [YYYY-MM-DD,] on or after the date
  • (YYYY-MM-DD,) after the date
  • [,YYYY-MM-DD] before or on the date
  • (,YYYY-MM-DD) before the date

Examples:

  • '2022-05-19'
  • '[2022-05-01,2022-05-31]'
  • '[2022-05-01,2022-06-01)'
  • '[2022-05-19,]'
  • '(2022-05-19,)'
  • '[,2022-05-19]'
  • '(,2022-05-19)'
Maximum string length: 24

Response

Ok. The operation succeeded.

Collection of daily summaries for a barber

items
object[]
required

List of daily summaries.

count
integer<int32>
required

The total number of days in the summary.

Required range: x >= 0
totalAppointments
integer<int32>
required

The Total number of appointments.

Required range: x >= 0
earnings
string<decimal>
required

Total earnings from completed appointments, excluding tips.

Example:

"456.78"

tips
string<decimal>
required

Total tips received from completed appointments.

Example:

"456.78"

cancellations
integer<int32>
required

Number of cancelled appointments.

Required range: x >= 0
noShows
integer<int32>
required

Number of no-show appointments.

Required range: x >= 0
totalDuration
integer<int32>
required

Total duration across all completed appointments in minutes.

Required range: x >= 0