This endpoint is currently not implemented in the API. To retrieve rates, use the List Rates endpoint which returns all rates.
Alternative: List Rates
To get information about a specific rate, you can:
- Use the List Rates endpoint to retrieve all rates
- Filter the results on the client side by
id_rate
Example
// Fetch all rates
const response = await fetch('https://api.demet.com/rate/get');
const data = await response.json();
// Filter for specific rate ID
const rateId = 3;
const rate = data.result.find(r => r.id_rate === rateId);
console.log(rate);
import requests
# Fetch all rates
response = requests.get('https://api.demet.com/rate/get')
data = response.json()
# Filter for specific rate ID
rate_id = 3
rate = next((r for r in data['result'] if r['id_rate'] == rate_id), None)
print(rate)
Rate Object
When you retrieve a rate, it will contain:
Unique identifier for the rate
Maximum capacity (number of people)
Price for 4-hour rental period
Price for 8-hour rental period
Price per additional hour
Whether this rate is for partner accounts
ID of the space this rate belongs to