Skip to main content
GET
/
me
/
appointments
List my appointments
curl --request GET \
  --url https://api.guile.app/me/appointments \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "givenName": "<string>",
      "barber": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "givenName": "<string>",
        "surname": "<string>",
        "preferredName": "<string>"
      },
      "location": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "shopName": "<string>"
      },
      "services": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "<string>",
          "cost": "456.78",
          "duration": "<string>"
        }
      ],
      "occursOn": "2023-11-07T05:31:56Z",
      "duration": "<string>",
      "cost": "456.78",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "state": "pending",
      "paymentState": "pending",
      "totalAuthorized": "456.78",
      "totalCaptured": "456.78",
      "totalRefunded": "456.78",
      "surname": "<string>",
      "recurringAppointmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "cancelationFeeType": "lateCancelation"
    }
  ],
  "count": 1,
  "offset": 1,
  "limit": 1
}

Query Parameters

state
enum<string>[]

Valid states of the appointment.

Available options:
pending,
scheduled,
canceled,
completed
date
string

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
limit
integer<int16>
default:10
required
offset
integer<int16>
default:0
required

Response

Ok. The operation succeeded.

A list response for paginated resources.

items
object[]
required
count
integer<int16>
required
Required range: x >= 0
offset
integer<int16>
required

The offset of list results for the current page.

Required range: x >= 0
limit
integer<int16>
required

The maximum number of results included in items.

Required range: x >= 0