Get the availability for multiple ressources. The result displays the min rental duration and the min rental delay of multiple resources. It also tells if a slot is available for the given date and duration with a min price for each of them.
GET https://api.digital-nautic.com/v3/resources/availabilities
Parameter name | Value | Description | Additional |
---|---|---|---|
resourceIds | string | pass a mandatory list of resource ids (separated by commas) to get access to the resources availabilities |
Required |
date | date | pass a mandatory date to get the resource availability |
Required |
duration | string | pass a mandatory duration to get the resource availability. The regex is the following => /^(MINUTES,[1-9]{3}|PERIODS,[MORNING|AFTERNOON]|DAYS,[1-6]|WEEKS,[1-4]|DATE,([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])))$ |
Required |
test | boolean | set to true to return test resources |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK the filtered ressources list |
Resource Availability[] |
400 | Bad Request invalid input, object invalid |
|
401 | Unauthorized authorization information is missing or invalid. |
|
404 | Not Found a resource with the specified ID was not found. |