ResourceAvailability

Returns the remaining capacity of each resource per day

Changed on
        Returns, for every day in the date range, how many more bookings each resource
        (room, equipment, etc.) can still take. Works for past and future dates
      
get/resource_availability

Request

  • Base URL
    https://partners-api.mytime.com/api
  • Auth
    API key in header X-Api-Key

Query parameters

location_partner_idstring

The location's id

location_mytime_idinteger

The location's mytime id. Either location_mytime_id or location_partner_id should be present

start_datestring required

The first day to report on e.g.: 2020-10-22

end_datestring required

The last day to report on e.g.: 2020-11-22. Maximum date range between start and end date is 2 months

Headers

X-Subdomainstring

Merchant subdomain - Optional

Response

Resource Availability response

datestring date
resource_mytime_idinteger
resource_namestring
remaining_capacityinteger

Resource capacity minus bookings for that date. Negative when the resource is overbooked.

services_nointeger

Total services booked at the location on that date, across all resources. Repeated on every resource row for the day — do not sum across rows.

Changes