Get a rate
curl --request GET \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/rates/{id} \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/rates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/rates/{id}"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": 123,
"name": "<string>",
"category": "<string>",
"space_id": "<string>",
"attribute_key": "<string>",
"position": 123,
"metadata": {},
"prices": [
{
"id": 123,
"name": "<string>",
"unit": "<string>",
"currency": "<string>",
"price": 123,
"tax_rate": 123,
"is_default": true,
"position": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Planning Rates
Get a rate
GET
/
api
/
v1
/
accounts
/
{account_id}
/
planning
/
rates
/
{id}
Get a rate
curl --request GET \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/rates/{id} \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/rates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/rates/{id}"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": 123,
"name": "<string>",
"category": "<string>",
"space_id": "<string>",
"attribute_key": "<string>",
"position": 123,
"metadata": {},
"prices": [
{
"id": 123,
"name": "<string>",
"unit": "<string>",
"currency": "<string>",
"price": 123,
"tax_rate": 123,
"is_default": true,
"position": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.