Cubu Docs
S2S API Guide
S2S API Guide
  • About Cubu Server-to-Server API
  • Accessing the API
  • Agent Impersonation API
    • Call Again
    • Clock-in
    • Clock-out
    • Get Agent Status
    • List Active Cases
    • List Inboxes
    • List Workspaces
    • List Workstations
    • Occupy a Workstation
    • Resolve a Case
    • Select Current Unit
    • Start Processing the Next Case
    • Change Status to Available
    • Change Status to Unavailable
    • Vacate a Workstation
  • Appointments Management API
    • Book Appointment
    • Cancel Appointment
    • List Appointments in Calendar
    • List Calendars of a Service
    • List Vacancies in a Calendar
  • Case Management API
    • Queue Up
  • Customer Management API
    • Create a Customer Record
    • Get Customer Record
    • Update a Customer Record
    • Find a Customer Record
  • Organization API
    • List Back-office tasks
    • List Users
Powered by GitBook
On this page
  • URL
  • Headers
  • Route Params
  • Query Params
  • Response
  • User Data object (1)
  1. Appointments Management API

List Appointments in Calendar

This endpoint requires the Appointments Manager role.

URL

GET: .../{applicationId}/calendars/{serviceId}/{date}/{cuIndex}/appointments[?customerRecordId=<GUID>]

Headers

Authorization: Bearer <accessToken>

Route Params

  • serviceId: GUID, required.

  • date: date in YYYY-MM-dd format; required.

  • cuIndex: the calendar's unique identifier.

Query Params

  • customerRecordId: GUID, optional. When the parameter is specified, the endpoint returns only appointments booked for the specified customer.

Response

Returns a list of appointments found in the specified calendar.

[
    {
        "caseId": "4e510ed0-ef6f-4441-a1d3-c29d2f752e57",
        "appointment": {
            "serviceId": "3031af97-328d-4df1-a528-cf198e4e7897",
            "date": "2023-07-09T00:00:00",
            "cuIndex": 0,
            "start": 700, // no. of minutes since midnight
            "timeLocal": "2023-07-09T11:51:00",
            "timeUtc": "2023-07-09T08:51:00Z",
            "timeZoneId": "Israel Standard Time",
            "duration": 7,
            "noShowProbability": 0,
            "reservationToken": null,
            "reservationExpiryDate": null
        },
        "ticket": {
            "prefix": "A",
            "suffix": null,
            "number": 331
        },
        "serviceCategoryId": "ef023335-f091-4e97-9fa3-3076bac3309b",
        "serviceCategoryName": "Consulting",
        "serviceTypeId": "108165ca-8277-4284-a073-432b6d20219c",
        "serviceTypeName": "Forms approval",
        "serviceTypeColorCode": "orange",
        "status": "Planned",
        "statusDate": "2023-07-07T10:54:00.3363419Z",
        "referenceDate": "2023-07-09T08:51:00Z",
        "dateOpened": "2023-07-07T10:54:00.3363419Z",
        "dateClosed": null,
        "assignedTo": null, // User Data (1)
        "lockedBy": null, // User Data (1)
        "customer": null,
        "onlineMeeting": null,
        "channel": "FaceToFace",
        "language": "en-US",
        "position": null,
        "inboxId": "e2a49c4f-8a02-496a-aa86-37a30212c5f5",
        "inboxName": "Consulting",
        "caseTimestamp": "2023-07-07T10:54:05.0842864Z"
    }
]

User Data object (1)

{
  "userId": "<GUID>",
  "displayName": "Irene Jones",
  "initials": "IJ",
  "picture": "<link to image>""
}// Some code
PreviousCancel AppointmentNextList Calendars of a Service

Last updated 8 months ago