API - Planyo Web Services - get_rental_price

Planyo » Pomoc » API » get_rental_price

get_rental_price (version 0.2)

Description:

Returns the price of a rental for given resource and start/end times. Price is returned even if resource is not available for given period.

Input:

resource_id int required
ID of the resource
start_time DateTime required
Beginning of rental
end_time DateTime required
End of rental
quantity int required
Number of units
version float optional
you can optionally specify the version of the API that you're using. Use the value of latest or simply skip this parameter to use the latest API version. The latest version is: 0.2
language string optional
by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned
api_key string required
your API key - Click here to get your key

Output:

currency string
Currency in which the price is expressed
total float
Total price