Get the slots available for rental on a resource for a given date and duration.

Request

GET https://api.digital-nautic.com/v3/resources/{resourceId}/slots

Path parameters

Parameter name Value Description Additional
resourceId string

pass a mandatory resource id to get access to the slots

Required

Query parameters

Parameter name Value Description Additional
date date

pass a mandatory date to get the resource slots

Required
duration string

pass a mandatory duration to get the resource slots. 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
withMandatoryOptions boolean

set to true to include mandatory options price in the final price

test boolean

set to true to return test resources

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

found items

Resource Slot[]
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.


Explore this API

resourceId

pass a mandatory resource id to get access to the slots

date

pass a mandatory date to get the resource slots

duration

pass a mandatory duration to get the resource slots. 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])))$

withMandatoryOptions

set to true to include mandatory options price in the final price

test

set to true to return test resources

Response Content-Type
Try it out!