Get a full list of prices per durations for a rental between a set of dates.
GET https://api.digital-nautic.com/v3/resources/{resourceId}/pricetable
Parameter name | Value | Description | Additional |
---|---|---|---|
resourceId | string | pass a mandatory resource id to get the pricetable of this resource. |
Required |
Parameter name | Value | Description | Additional |
---|---|---|---|
from | date | start of the requested date range |
|
to | date | end of the requested date range |
|
duration_min | string | pass a duration to filter the pricings below this duration. 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])))$ |
|
duration_max | string | pass a duration to filter the pricings above this duration. 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])))$ |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK found items |
Pricetable |
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. |