Overview
- Category
- Finance
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/commission-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/commission-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
sales_amount· number · required- Enter the commissionable sales used by this tool.
commission_rate· number · required- Enter the commission rate used by this tool.
base_pay· number · required- Enter the base pay for period used by this tool.
bonus· number · required- Enter the additional bonus used by this tool.
draw_or_adjustment_rate· number · required- Enter the commission adjustment used by this tool.
{
"type": "object",
"properties": {
"sales_amount": {
"type": "number",
"description": "Enter the commissionable sales used by this tool.",
"minimum": 0
},
"commission_rate": {
"type": "number",
"description": "Enter the commission rate used by this tool."
},
"base_pay": {
"type": "number",
"description": "Enter the base pay for period used by this tool.",
"minimum": 0
},
"bonus": {
"type": "number",
"description": "Enter the additional bonus used by this tool.",
"minimum": 0
},
"draw_or_adjustment_rate": {
"type": "number",
"description": "Enter the commission adjustment used by this tool."
}
},
"required": [
"sales_amount",
"commission_rate",
"base_pay",
"bonus",
"draw_or_adjustment_rate"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
gross_commission· number- Gross commission produced by the tool.
commission_adjustment· number- Commission adjustment produced by the tool.
net_commission· number- Net commission produced by the tool.
total_compensation· number- Total compensation produced by the tool.
effective_compensation_rate· number- Compensation as percent of sales produced by the tool.
{
"type": "object",
"properties": {
"gross_commission": {
"type": "number",
"description": "Gross commission produced by the tool."
},
"commission_adjustment": {
"type": "number",
"description": "Commission adjustment produced by the tool."
},
"net_commission": {
"type": "number",
"description": "Net commission produced by the tool."
},
"total_compensation": {
"type": "number",
"description": "Total compensation produced by the tool."
},
"effective_compensation_rate": {
"type": "number",
"description": "Compensation as percent of sales produced by the tool."
}
},
"additionalProperties": false
}
Commission Calculator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/commission-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"sales_amount": 85000,
"commission_rate": 6,
"base_pay": 3000,
"bonus": 500,
"draw_or_adjustment_rate": 0
}'
{
"ok": true,
"data": {
"slug": "commission-calculator",
"result": {
"values": {
"gross_commission": 5100,
"commission_adjustment": 0,
"net_commission": 5100,
"total_compensation": 8600,
"effective_compensation_rate": 10.1176469999999998350403984659351408481597900390625
},
"display": {
"display": "5100"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.