Simulations | Simulação
Simulate a loan | Simular um empréstimo
Calculates loan installments and costs based on input parameters | Calcula as parcelas e custos do empréstimo baseado nos parâmetros de entrada
post/simulations
Query parameters
product_idstring required
Product ID | ID do produto
Request body
Example request
{
"customer_type": "PF",
"first_due_date": "2025-08-04",
"include_iof": true,
"interest_rate": 0.015,
"iof_handling_type": "FINANCED",
"loan_amount": 20.54,
"number_of_installments": 3,
"periodicity_interval": 1,
"periodicity_unit": "MONTH",
"registration_fee_handling_type": "FINANCED",
"release_date": "2025-07-04",
"simulation_type": "PRICE"
}Response
Loan simulation successful | Simulação de empréstimo realizada com sucesso
Example response
{
"code": "success",
"data": {
"cet_annual": 53.689564,
"cet_monthly": 0.395807,
"customer_type": "PF",
"first_due_date": "2025-08-04T00:00:00Z",
"include_iof": true,
"installments": [
{
"balance": 24.91,
"due_date": "2025-08-04T00:00:00Z",
"installment_number": 1,
"interest_amount": 0.56,
"payment_amount": 12.74,
"principal_amount": 12.18
}
],
"interest_rate": 0.015,
"iof_amount": 0.23,
"iof_handling_type": "FINANCED",
"loan_amount": 20,
"net_amount_released": 20,
"number_of_installments": 3,
"periodicity_interval": 1,
"periodicity_unit": "MONTH",
"registration_fee_handling_type": "FINANCED",
"release_date": "2025-07-04T00:00:00Z",
"simulation_type": "PRICE",
"total_amount_paid": 38.21,
"total_financed_amount": 37.09242
},
"message": "Loan simulation successful",
"request_id": "0b04ebd7-fa91-4087-965f-e05021775b38"
}