API

List time slots

Gets all available tima slots for company based on filter.

Either event_type_ids or event_id must be provided.

Capacity is the number of customers in booking.

GET/v1/marketplace/companies/{id}/time_slots

Path Parameters

id*string

Company ID

Example"aw7da9wd8ua28a821"

Query Parameters

employee_id?string
Example"8a1da9wd8ua28aa9d"
space_id?string
Example"ea7da9wd8ua28a134"
event_type_ids?array<string>
Example[ "te7da9wd8ua28a1ab", "xa7da9wd8ua01a134" ]
event_id?string
Example"xa7da9wd8ua01a134"
start_date*string
Example"2021-01-01"
end_date*string
Example"2021-01-31"
capacity?integer
Default1
Formatint32
Example5
type?string

Filter by type of time slots to return.

available will only return slots with resources available.

unavailable will only return slots with resources unavailable.

all will return all slots.

Default"available"
Value in"available" | "unavailable" | "all"
select?array<string>
expand?array<string>

Response Body

application/json

curl -X GET "https://api.noona.is/v1/marketplace/companies/aw7da9wd8ua28a821/time_slots?start_date=2021-01-01&end_date=2021-01-31"
[
  {
    "status": "closed",
    "date": "2021-01-03",
    "slots": [
      {
        "time": "08:00",
        "employeeIds": [
          "string"
        ],
        "spaceIds": [
          "string"
        ],
        "timestamp": "2019-08-24T14:15:22Z",
        "unavailable_resources": [
          {
            "resource": "string",
            "reason": "booked"
          }
        ],
        "unavailable_employees": [
          {
            "resource": "string",
            "reason": "booked"
          }
        ]
      }
    ],
    "unavailable_slots": [
      {
        "time": "08:00",
        "employeeIds": [
          "string"
        ],
        "spaceIds": [
          "string"
        ],
        "timestamp": "2019-08-24T14:15:22Z",
        "unavailable_resources": [
          {
            "resource": "string",
            "reason": "booked"
          }
        ],
        "unavailable_employees": [
          {
            "resource": "string",
            "reason": "booked"
          }
        ]
      }
    ]
  }
]