Preview event pricing
curl --request POST \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/pricing/preview \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"event_id": "<string>",
"pricing_plan_id": 123
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({event_id: '<string>', pricing_plan_id: 123})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/pricing/preview', 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/pricing/preview"
payload = {
"event_id": "<string>",
"pricing_plan_id": 123
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}Planning Pricing
Preview event pricing
Calculate a pricing breakdown for an event without persisting it. Pass pricing_plan_id to force a plan; otherwise the event or account default is used.
POST
/
api
/
v1
/
accounts
/
{account_id}
/
planning
/
pricing
/
preview
Preview event pricing
curl --request POST \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/pricing/preview \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"event_id": "<string>",
"pricing_plan_id": 123
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({event_id: '<string>', pricing_plan_id: 123})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/pricing/preview', 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/pricing/preview"
payload = {
"event_id": "<string>",
"pricing_plan_id": 123
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}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.
Path Parameters
The numeric ID of the account
Response
Pricing breakdown
The response is of type object.