Get the rental durations available on a resource. The durations differ by resource so you must call this endpoint to make sure you're creating a rental with valid departure and arrival dates.

Request

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

Path parameters

Parameter name Value Description Additional
resourceId string

pass a mandatory resource id to get the resource durations.

Required

Query parameters

Parameter name Value Description Additional
date date

pass a date to fetch durations from, if left unspecified the current date will be used.

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 Duration[]
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 the resource durations.

date

pass a date to fetch durations from, if left unspecified the current date will be used.

test

set to true to return test resources

Response Content-Type
Try it out!