curl --request POST \
--url https://api.jusfy.com.br/api/calculadoras/aluguel \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Aluguel em atraso - exemplo",
"calculation_date": "2024-12-31",
"monthly_amount": 2000,
"contract_start_date": "2023-01-01",
"fine": 10,
"fine_interests": false,
"legal_fees": 20,
"legal_fees_type": {
"id": "percentage"
},
"indexes": [
{
"index": {
"id": 1,
"name": "IGP-M",
"bacen_code": "189"
},
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}
],
"interests": [
{
"name": "Taxa legal",
"type": {
"id": 0,
"name": "a.m."
},
"interest": 1,
"apply_index": false,
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}
],
"installments": [
{
"amount": 2000,
"date": "2024-01-05",
"description": "Aluguel de janeiro/2024",
"description_original": "Aluguel de janeiro/2024",
"paid": false,
"partial_payments": []
}
],
"rent_contract_indexes": []
}
'import requests
url = "https://api.jusfy.com.br/api/calculadoras/aluguel"
payload = {
"name": "Aluguel em atraso - exemplo",
"calculation_date": "2024-12-31",
"monthly_amount": 2000,
"contract_start_date": "2023-01-01",
"fine": 10,
"fine_interests": False,
"legal_fees": 20,
"legal_fees_type": { "id": "percentage" },
"indexes": [
{
"index": {
"id": 1,
"name": "IGP-M",
"bacen_code": "189"
},
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}
],
"interests": [
{
"name": "Taxa legal",
"type": {
"id": 0,
"name": "a.m."
},
"interest": 1,
"apply_index": False,
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}
],
"installments": [
{
"amount": 2000,
"date": "2024-01-05",
"description": "Aluguel de janeiro/2024",
"description_original": "Aluguel de janeiro/2024",
"paid": False,
"partial_payments": []
}
],
"rent_contract_indexes": []
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Aluguel em atraso - exemplo',
calculation_date: '2024-12-31',
monthly_amount: 2000,
contract_start_date: '2023-01-01',
fine: 10,
fine_interests: false,
legal_fees: 20,
legal_fees_type: {id: 'percentage'},
indexes: [
{
index: {id: 1, name: 'IGP-M', bacen_code: '189'},
startDate: '2024-01-01',
endDate: '2024-12-31'
}
],
interests: [
{
name: 'Taxa legal',
type: {id: 0, name: 'a.m.'},
interest: 1,
apply_index: false,
startDate: '2024-01-01',
endDate: '2024-12-31'
}
],
installments: [
{
amount: 2000,
date: '2024-01-05',
description: 'Aluguel de janeiro/2024',
description_original: 'Aluguel de janeiro/2024',
paid: false,
partial_payments: []
}
],
rent_contract_indexes: []
})
};
fetch('https://api.jusfy.com.br/api/calculadoras/aluguel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.jusfy.com.br/api/calculadoras/aluguel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Aluguel em atraso - exemplo',
'calculation_date' => '2024-12-31',
'monthly_amount' => 2000,
'contract_start_date' => '2023-01-01',
'fine' => 10,
'fine_interests' => false,
'legal_fees' => 20,
'legal_fees_type' => [
'id' => 'percentage'
],
'indexes' => [
[
'index' => [
'id' => 1,
'name' => 'IGP-M',
'bacen_code' => '189'
],
'startDate' => '2024-01-01',
'endDate' => '2024-12-31'
]
],
'interests' => [
[
'name' => 'Taxa legal',
'type' => [
'id' => 0,
'name' => 'a.m.'
],
'interest' => 1,
'apply_index' => false,
'startDate' => '2024-01-01',
'endDate' => '2024-12-31'
]
],
'installments' => [
[
'amount' => 2000,
'date' => '2024-01-05',
'description' => 'Aluguel de janeiro/2024',
'description_original' => 'Aluguel de janeiro/2024',
'paid' => false,
'partial_payments' => [
]
]
],
'rent_contract_indexes' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"statusCode": 200,
"message": "Cálculo concluído com sucesso",
"timestamp": "2026-06-22T18:00:00.000Z",
"path": "/api/calculadoras/aluguel",
"result": {
"summary": {
"total_amount": 2000,
"total_amount_adjusted": 2000,
"total_interests": 50.87,
"total_outstanding_balance": 2050.87,
"total_fines": 200,
"legal_fees": 450.17,
"total": 2701.04,
"has_fine": true,
"has_legal_fees": true
},
"calculation_date": "31/12/2024",
"contract_indexes": [
{
"_key": 1,
"_date": "01/01/2023",
"_amount": "R$ 2.000,00"
}
],
"items": [
{
"_key": 1,
"_date": "05/01/2024",
"_amount": "2.000,00",
"_amount_adjusted": "2.000,00",
"_outstanding_balance": "2.050,87",
"_subtotal_interests": "50,87",
"amount_adjusted": 2000,
"outstanding_balance": 2050.87,
"subtotal_interests": 50.87,
"indexes": [
{
"name": "IGP-M",
"startDate": "01/01/2024",
"endDate": "31/12/2024",
"adjustmentUntil": " (correção até 10/2022)"
}
],
"interests": [
{
"rate": 1,
"startDate": "05/01/2024",
"endDate": "31/12/2024",
"type": "a.m.",
"apply_index": false,
"name": "Taxa legal"
}
],
"schedule": [
{
"date": "2024-01-01",
"amount": 2000,
"correction": 0,
"amount_adjusted": 0,
"interest": 0,
"outstanding_balance": 2000,
"_description": "Aluguel de janeiro/2024",
"_date": "01/01/2024",
"_amount": "2.000,00",
"_amount_adjusted": "",
"_correction": "",
"_interest": "",
"_outstanding_balance": ""
},
{
"date": "2024-01-31",
"amount": 2000,
"correction": 0,
"amount_adjusted": 2000,
"interest": 0,
"outstanding_balance": 2000,
"_description": "",
"_date": "31/01/2024",
"_amount": "2.000,00",
"_amount_adjusted": "R$ 2.000,00",
"_correction": "0,00",
"_interest": "",
"_outstanding_balance": "R$ 2.000,00"
},
{
"date": "2024-12-31",
"amount": 2000,
"correction": 0,
"amount_adjusted": 2000,
"interest": 50.87,
"outstanding_balance": 2050.87,
"_description": "",
"_date": "31/12/2024",
"_amount": "2.000,00",
"_amount_adjusted": "R$ 2.000,00",
"_correction": "0,00",
"_interest": "R$ 50,87",
"_outstanding_balance": "R$ 2.050,87"
}
]
}
]
}
}Calcula a correção de aluguel em atraso
Corrige as parcelas em atraso de um contrato de locação: aplica índices de correção monetária e juros por período (incluindo a Taxa Legal da Lei 14.905/2024 via name: "Taxa legal" e juros de poupança via apply_index: true), soma multa e honorários e devolve o cronograma detalhado por parcela.
installments precisa de pelo menos um item. Pagamentos são marcados via paid: true (parcela quitada) ou paid: "P" com valores em partial_payments (pagamentos parciais).
curl --request POST \
--url https://api.jusfy.com.br/api/calculadoras/aluguel \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Aluguel em atraso - exemplo",
"calculation_date": "2024-12-31",
"monthly_amount": 2000,
"contract_start_date": "2023-01-01",
"fine": 10,
"fine_interests": false,
"legal_fees": 20,
"legal_fees_type": {
"id": "percentage"
},
"indexes": [
{
"index": {
"id": 1,
"name": "IGP-M",
"bacen_code": "189"
},
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}
],
"interests": [
{
"name": "Taxa legal",
"type": {
"id": 0,
"name": "a.m."
},
"interest": 1,
"apply_index": false,
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}
],
"installments": [
{
"amount": 2000,
"date": "2024-01-05",
"description": "Aluguel de janeiro/2024",
"description_original": "Aluguel de janeiro/2024",
"paid": false,
"partial_payments": []
}
],
"rent_contract_indexes": []
}
'import requests
url = "https://api.jusfy.com.br/api/calculadoras/aluguel"
payload = {
"name": "Aluguel em atraso - exemplo",
"calculation_date": "2024-12-31",
"monthly_amount": 2000,
"contract_start_date": "2023-01-01",
"fine": 10,
"fine_interests": False,
"legal_fees": 20,
"legal_fees_type": { "id": "percentage" },
"indexes": [
{
"index": {
"id": 1,
"name": "IGP-M",
"bacen_code": "189"
},
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}
],
"interests": [
{
"name": "Taxa legal",
"type": {
"id": 0,
"name": "a.m."
},
"interest": 1,
"apply_index": False,
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}
],
"installments": [
{
"amount": 2000,
"date": "2024-01-05",
"description": "Aluguel de janeiro/2024",
"description_original": "Aluguel de janeiro/2024",
"paid": False,
"partial_payments": []
}
],
"rent_contract_indexes": []
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Aluguel em atraso - exemplo',
calculation_date: '2024-12-31',
monthly_amount: 2000,
contract_start_date: '2023-01-01',
fine: 10,
fine_interests: false,
legal_fees: 20,
legal_fees_type: {id: 'percentage'},
indexes: [
{
index: {id: 1, name: 'IGP-M', bacen_code: '189'},
startDate: '2024-01-01',
endDate: '2024-12-31'
}
],
interests: [
{
name: 'Taxa legal',
type: {id: 0, name: 'a.m.'},
interest: 1,
apply_index: false,
startDate: '2024-01-01',
endDate: '2024-12-31'
}
],
installments: [
{
amount: 2000,
date: '2024-01-05',
description: 'Aluguel de janeiro/2024',
description_original: 'Aluguel de janeiro/2024',
paid: false,
partial_payments: []
}
],
rent_contract_indexes: []
})
};
fetch('https://api.jusfy.com.br/api/calculadoras/aluguel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.jusfy.com.br/api/calculadoras/aluguel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Aluguel em atraso - exemplo',
'calculation_date' => '2024-12-31',
'monthly_amount' => 2000,
'contract_start_date' => '2023-01-01',
'fine' => 10,
'fine_interests' => false,
'legal_fees' => 20,
'legal_fees_type' => [
'id' => 'percentage'
],
'indexes' => [
[
'index' => [
'id' => 1,
'name' => 'IGP-M',
'bacen_code' => '189'
],
'startDate' => '2024-01-01',
'endDate' => '2024-12-31'
]
],
'interests' => [
[
'name' => 'Taxa legal',
'type' => [
'id' => 0,
'name' => 'a.m.'
],
'interest' => 1,
'apply_index' => false,
'startDate' => '2024-01-01',
'endDate' => '2024-12-31'
]
],
'installments' => [
[
'amount' => 2000,
'date' => '2024-01-05',
'description' => 'Aluguel de janeiro/2024',
'description_original' => 'Aluguel de janeiro/2024',
'paid' => false,
'partial_payments' => [
]
]
],
'rent_contract_indexes' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"statusCode": 200,
"message": "Cálculo concluído com sucesso",
"timestamp": "2026-06-22T18:00:00.000Z",
"path": "/api/calculadoras/aluguel",
"result": {
"summary": {
"total_amount": 2000,
"total_amount_adjusted": 2000,
"total_interests": 50.87,
"total_outstanding_balance": 2050.87,
"total_fines": 200,
"legal_fees": 450.17,
"total": 2701.04,
"has_fine": true,
"has_legal_fees": true
},
"calculation_date": "31/12/2024",
"contract_indexes": [
{
"_key": 1,
"_date": "01/01/2023",
"_amount": "R$ 2.000,00"
}
],
"items": [
{
"_key": 1,
"_date": "05/01/2024",
"_amount": "2.000,00",
"_amount_adjusted": "2.000,00",
"_outstanding_balance": "2.050,87",
"_subtotal_interests": "50,87",
"amount_adjusted": 2000,
"outstanding_balance": 2050.87,
"subtotal_interests": 50.87,
"indexes": [
{
"name": "IGP-M",
"startDate": "01/01/2024",
"endDate": "31/12/2024",
"adjustmentUntil": " (correção até 10/2022)"
}
],
"interests": [
{
"rate": 1,
"startDate": "05/01/2024",
"endDate": "31/12/2024",
"type": "a.m.",
"apply_index": false,
"name": "Taxa legal"
}
],
"schedule": [
{
"date": "2024-01-01",
"amount": 2000,
"correction": 0,
"amount_adjusted": 0,
"interest": 0,
"outstanding_balance": 2000,
"_description": "Aluguel de janeiro/2024",
"_date": "01/01/2024",
"_amount": "2.000,00",
"_amount_adjusted": "",
"_correction": "",
"_interest": "",
"_outstanding_balance": ""
},
{
"date": "2024-01-31",
"amount": 2000,
"correction": 0,
"amount_adjusted": 2000,
"interest": 0,
"outstanding_balance": 2000,
"_description": "",
"_date": "31/01/2024",
"_amount": "2.000,00",
"_amount_adjusted": "R$ 2.000,00",
"_correction": "0,00",
"_interest": "",
"_outstanding_balance": "R$ 2.000,00"
},
{
"date": "2024-12-31",
"amount": 2000,
"correction": 0,
"amount_adjusted": 2000,
"interest": 50.87,
"outstanding_balance": 2050.87,
"_description": "",
"_date": "31/12/2024",
"_amount": "2.000,00",
"_amount_adjusted": "R$ 2.000,00",
"_correction": "0,00",
"_interest": "R$ 50,87",
"_outstanding_balance": "R$ 2.050,87"
}
]
}
]
}
}Corpo
Payload da calculadora de aluguel.
Payload da correção de aluguel em atraso. Informe o contrato (valor inicial, data de início), as parcelas em débito, os índices de correção e as regras de juros; a resposta traz o resumo com valores atualizados, multa, honorários e o cronograma detalhado por parcela.
Resposta
Resultado da correção, com resumo (multa, honorários e total) e cronograma detalhado por parcela.
The response is of type object.