GET /bookings/company/{companySlug}/employees/dates

Get all available date slots for service and location.

Headers

  • Authorization string Required

    Bearer {EASYWEEK_PARTNER_TOKEN}

Query parameters

  • service number Required

    Service ID

  • location number Required

    Location ID

Responses

  • 200

    OK

    Hide response attribute Show response attribute object
    • data array[object] Required

      At least 1 element.

      Hide data attributes Show data attributes array[object]
      • branch_id number Required
      • dates array[object]

        At least 1 element.

        Hide dates attributes Show dates attributes array[object]
        • date string Required

          Minimum length is 1.

        • time object
          Hide time attributes Show time attributes object
          • start string Required

            Minimum length is 1.

          • end string Required

            Minimum length is 1.

        • users array[object]

          At least 1 element.

          Hide users attribute Show users attribute array[object]
          • id number Required
GET /bookings/company/{companySlug}/employees/dates
curl \
 -X GET https://widget.easyweek.io/api/v1/bookings/company/{companySlug}/employees/dates?service=42.0&location=42.0 \
 -H "Authorization: string"
Response examples (200)
{
  "data": [
    {
      "branch_id": 42.0,
      "dates": [
        {
          "date": "string",
          "time": {
            "start": "string",
            "end": "string"
          },
          "users": [
            {
              "id": 42.0
            }
          ]
        }
      ]
    }
  ]
}
Response examples (200)
{
  "data": [
    {
      "branch_id": 42.0,
      "dates": [
        {
          "date": "string",
          "time": {
            "start": "string",
            "end": "string"
          },
          "users": [
            {
              "id": 42.0
            }
          ]
        }
      ]
    }
  ]
}