Overview
- Category
- Finance
- API mode
execute- 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/auto-loan-calculator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/auto-loan-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.
principal· number · required- Enter the amount borrowed or invested before interest, fees, taxes, and future payments.
annual_rate· number · required- Enter 6.5 for 6.5%.
term_months· number · required- Enter the total number of monthly payments in the repayment term.
sales_tax_rate· number · required- Enter the sales-tax rate as a decimal: 0.06 means 6%.
trade_in· number · required- Enter the agreed value credited for a trade-in, not the remaining loan balance.
{
"type": "object",
"properties": {
"principal": {
"type": "number",
"description": "Enter the amount borrowed or invested before interest, fees, taxes, and future payments."
},
"annual_rate": {
"type": "number",
"description": "Enter 6.5 for 6.5%."
},
"term_months": {
"type": "number",
"description": "Enter the total number of monthly payments in the repayment term."
},
"sales_tax_rate": {
"type": "number",
"description": "Enter the sales-tax rate as a decimal: 0.06 means 6%."
},
"trade_in": {
"type": "number",
"description": "Enter the agreed value credited for a trade-in, not the remaining loan balance."
}
},
"required": [
"principal",
"annual_rate",
"term_months",
"sales_tax_rate",
"trade_in"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
monthly_payment· number- Browser-calculated monthly payment.
monthly_escrow· number- Browser-calculated monthly escrow.
total_monthly· number- Browser-calculated total monthly.
total_paid· number- Browser-calculated total paid.
total_interest· number- Interest over the term.
schedule· array- Browser-calculated schedule.
{
"type": "object",
"properties": {
"monthly_payment": {
"type": "number",
"description": "Browser-calculated monthly payment."
},
"monthly_escrow": {
"type": "number",
"description": "Browser-calculated monthly escrow."
},
"total_monthly": {
"type": "number",
"description": "Browser-calculated total monthly."
},
"total_paid": {
"type": "number",
"description": "Browser-calculated total paid."
},
"total_interest": {
"type": "number",
"description": "Interest over the term."
},
"schedule": {
"type": "array",
"items": [],
"description": "Browser-calculated schedule."
}
},
"additionalProperties": false
}
Auto Loan Calculator: Standard amortization
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/auto-loan-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"principal": 30000,
"annual_rate": 6.5,
"term_months": 60,
"sales_tax_rate": 6,
"trade_in": 5000
}'
{
"ok": true,
"data": {
"slug": "auto-loan-calculator",
"result": {
"values": {
"monthly_payment": 524.3700000000000045474735088646411895751953125,
"total_paid": 31462.36999999999898136593401432037353515625,
"total_interest": 4662.3699999999998908606357872486114501953125
},
"display": {
"display": "524.37"
},
"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.