Calculate the income splits of an expectation Run in API Explorer
Ask AI
Body
-
Chargeable model type to run calculation on. Valid types are: client, plan
Values are
clientorplan. -
Chargeable model UUID to run calculation on.
-
Expected net amount to calculate on in pennies.
-
Whether to run the calculation based on ongoing charges. Leave as false for initial charges. Defaults to false.
-
Denotes whether the net amount given is tax exempt or not. Defaults to true.
-
Custom tax rate to apply to the net amount. Defaults to firm setting or defaults to Plannr setting of 20%.
Minimum value is
0.0, maximum value is100.0. -
Select a different adviser to run the calculation again. If not provided a default based on the chargeable model will be selected.
POST
/api/v1/expectation/calculate
curl \
--request POST 'https://api.plannrcrm.com/api/v1/expectation/calculate' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"chargeable_type":"client","chargeable_uuid":"e5ba926c-50c2-4da1-93be-55563a76bdfc","amount":12500,"ongoing":false,"tax_exempt":false,"tax":17.5,"seller_uuid":"746f8f94-cfbb-4978-aaa8-32f85be86470"}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"chargeable_type": "client",
"chargeable_uuid": "e5ba926c-50c2-4da1-93be-55563a76bdfc",
"amount": 12500,
"ongoing": false,
"tax_exempt": false,
"tax": 17.5,
"seller_uuid": "746f8f94-cfbb-4978-aaa8-32f85be86470"
}
Response examples (401)
{
"message": "Unauthenticated."
}