curl --request POST \
--url https://api.jusfy.com.br/api/calculadoras/pensao-alimenticia \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Pensão alimentícia em atraso - exemplo",
"calculation_date": "2025-08-31",
"fine": 10,
"fine_interests": false,
"legal_fees": 20,
"legal_fees_type": {
"id": "percentage"
},
"legal_fees_payments": false,
"fines": [
{
"description": "Multa do art. 523 §1º",
"type": "percentage",
"value": 10
}
],
"fees": [
{
"description": "Honorários contratuais",
"type": "percentage",
"value": 20
}
],
"expenses": [
{
"date": "2025-03-10",
"description": "Material escolar",
"amount": 450,
"apply_correction": true,
"apply_interests": false,
"apply_fine": false,
"apply_legal_fees": true,
"index_id": 7
}
],
"installments": [
{
"id": "2025-01-monthly",
"amount": 1200,
"date": "2025-01-15",
"description": "Pensão 01/2025",
"paid": "unpaid",
"rebates": []
},
{
"id": "2025-02-monthly",
"amount": 1200,
"date": "2025-02-15",
"description": "Pensão 02/2025",
"paid": "unpaid",
"rebates": []
},
{
"id": "2025-03-monthly",
"amount": 1200,
"date": "2025-03-15",
"description": "Pensão 03/2025",
"paid": "partial",
"rebates": [
{
"amount": 400,
"date": "2025-03-20",
"description": "Pagamento parcial de março"
}
]
}
],
"rebates": [
{
"amount": 300,
"date": "2025-05-10",
"description": "Depósito avulso"
}
],
"indexes": [
{
"index": {
"id": 7,
"name": "IPCA-E",
"bacen_code": "17",
"type": "average_price_index"
},
"startDate": "2025-01-01",
"endDate": "2025-08-31"
}
],
"interests": [
{
"kind": "simple",
"name": "Juros de mora",
"type": {
"id": 0,
"name": "a.m."
},
"interest": 1,
"apply_index": false,
"startDate": "2025-01-01",
"endDate": "2025-08-31"
}
],
"fixed_periods": [
{
"value": 1200,
"from": "2025-01",
"to": "2025-03"
}
],
"sm_periods": [],
"rem_periods": [],
"has_floor": false,
"floor_minimum_wage_percentage": 0,
"has_legal_fees": true,
"monthly_amount": 1200
}
'import requests
url = "https://api.jusfy.com.br/api/calculadoras/pensao-alimenticia"
payload = {
"name": "Pensão alimentícia em atraso - exemplo",
"calculation_date": "2025-08-31",
"fine": 10,
"fine_interests": False,
"legal_fees": 20,
"legal_fees_type": { "id": "percentage" },
"legal_fees_payments": False,
"fines": [
{
"description": "Multa do art. 523 §1º",
"type": "percentage",
"value": 10
}
],
"fees": [
{
"description": "Honorários contratuais",
"type": "percentage",
"value": 20
}
],
"expenses": [
{
"date": "2025-03-10",
"description": "Material escolar",
"amount": 450,
"apply_correction": True,
"apply_interests": False,
"apply_fine": False,
"apply_legal_fees": True,
"index_id": 7
}
],
"installments": [
{
"id": "2025-01-monthly",
"amount": 1200,
"date": "2025-01-15",
"description": "Pensão 01/2025",
"paid": "unpaid",
"rebates": []
},
{
"id": "2025-02-monthly",
"amount": 1200,
"date": "2025-02-15",
"description": "Pensão 02/2025",
"paid": "unpaid",
"rebates": []
},
{
"id": "2025-03-monthly",
"amount": 1200,
"date": "2025-03-15",
"description": "Pensão 03/2025",
"paid": "partial",
"rebates": [
{
"amount": 400,
"date": "2025-03-20",
"description": "Pagamento parcial de março"
}
]
}
],
"rebates": [
{
"amount": 300,
"date": "2025-05-10",
"description": "Depósito avulso"
}
],
"indexes": [
{
"index": {
"id": 7,
"name": "IPCA-E",
"bacen_code": "17",
"type": "average_price_index"
},
"startDate": "2025-01-01",
"endDate": "2025-08-31"
}
],
"interests": [
{
"kind": "simple",
"name": "Juros de mora",
"type": {
"id": 0,
"name": "a.m."
},
"interest": 1,
"apply_index": False,
"startDate": "2025-01-01",
"endDate": "2025-08-31"
}
],
"fixed_periods": [
{
"value": 1200,
"from": "2025-01",
"to": "2025-03"
}
],
"sm_periods": [],
"rem_periods": [],
"has_floor": False,
"floor_minimum_wage_percentage": 0,
"has_legal_fees": True,
"monthly_amount": 1200
}
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: 'Pensão alimentícia em atraso - exemplo',
calculation_date: '2025-08-31',
fine: 10,
fine_interests: false,
legal_fees: 20,
legal_fees_type: {id: 'percentage'},
legal_fees_payments: false,
fines: [{description: 'Multa do art. 523 §1º', type: 'percentage', value: 10}],
fees: [{description: 'Honorários contratuais', type: 'percentage', value: 20}],
expenses: [
{
date: '2025-03-10',
description: 'Material escolar',
amount: 450,
apply_correction: true,
apply_interests: false,
apply_fine: false,
apply_legal_fees: true,
index_id: 7
}
],
installments: [
{
id: '2025-01-monthly',
amount: 1200,
date: '2025-01-15',
description: 'Pensão 01/2025',
paid: 'unpaid',
rebates: []
},
{
id: '2025-02-monthly',
amount: 1200,
date: '2025-02-15',
description: 'Pensão 02/2025',
paid: 'unpaid',
rebates: []
},
{
id: '2025-03-monthly',
amount: 1200,
date: '2025-03-15',
description: 'Pensão 03/2025',
paid: 'partial',
rebates: [{amount: 400, date: '2025-03-20', description: 'Pagamento parcial de março'}]
}
],
rebates: [{amount: 300, date: '2025-05-10', description: 'Depósito avulso'}],
indexes: [
{
index: {id: 7, name: 'IPCA-E', bacen_code: '17', type: 'average_price_index'},
startDate: '2025-01-01',
endDate: '2025-08-31'
}
],
interests: [
{
kind: 'simple',
name: 'Juros de mora',
type: {id: 0, name: 'a.m.'},
interest: 1,
apply_index: false,
startDate: '2025-01-01',
endDate: '2025-08-31'
}
],
fixed_periods: [{value: 1200, from: '2025-01', to: '2025-03'}],
sm_periods: [],
rem_periods: [],
has_floor: false,
floor_minimum_wage_percentage: 0,
has_legal_fees: true,
monthly_amount: 1200
})
};
fetch('https://api.jusfy.com.br/api/calculadoras/pensao-alimenticia', 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/pensao-alimenticia",
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' => 'Pensão alimentícia em atraso - exemplo',
'calculation_date' => '2025-08-31',
'fine' => 10,
'fine_interests' => false,
'legal_fees' => 20,
'legal_fees_type' => [
'id' => 'percentage'
],
'legal_fees_payments' => false,
'fines' => [
[
'description' => 'Multa do art. 523 §1º',
'type' => 'percentage',
'value' => 10
]
],
'fees' => [
[
'description' => 'Honorários contratuais',
'type' => 'percentage',
'value' => 20
]
],
'expenses' => [
[
'date' => '2025-03-10',
'description' => 'Material escolar',
'amount' => 450,
'apply_correction' => true,
'apply_interests' => false,
'apply_fine' => false,
'apply_legal_fees' => true,
'index_id' => 7
]
],
'installments' => [
[
'id' => '2025-01-monthly',
'amount' => 1200,
'date' => '2025-01-15',
'description' => 'Pensão 01/2025',
'paid' => 'unpaid',
'rebates' => [
]
],
[
'id' => '2025-02-monthly',
'amount' => 1200,
'date' => '2025-02-15',
'description' => 'Pensão 02/2025',
'paid' => 'unpaid',
'rebates' => [
]
],
[
'id' => '2025-03-monthly',
'amount' => 1200,
'date' => '2025-03-15',
'description' => 'Pensão 03/2025',
'paid' => 'partial',
'rebates' => [
[
'amount' => 400,
'date' => '2025-03-20',
'description' => 'Pagamento parcial de março'
]
]
]
],
'rebates' => [
[
'amount' => 300,
'date' => '2025-05-10',
'description' => 'Depósito avulso'
]
],
'indexes' => [
[
'index' => [
'id' => 7,
'name' => 'IPCA-E',
'bacen_code' => '17',
'type' => 'average_price_index'
],
'startDate' => '2025-01-01',
'endDate' => '2025-08-31'
]
],
'interests' => [
[
'kind' => 'simple',
'name' => 'Juros de mora',
'type' => [
'id' => 0,
'name' => 'a.m.'
],
'interest' => 1,
'apply_index' => false,
'startDate' => '2025-01-01',
'endDate' => '2025-08-31'
]
],
'fixed_periods' => [
[
'value' => 1200,
'from' => '2025-01',
'to' => '2025-03'
]
],
'sm_periods' => [
],
'rem_periods' => [
],
'has_floor' => false,
'floor_minimum_wage_percentage' => 0,
'has_legal_fees' => true,
'monthly_amount' => 1200
]),
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/pensao-alimenticia",
"result": {
"summary": {
"total_amount": 3350,
"total_amount_adjusted": 3437.49,
"total_interests": 210.03000000000003,
"total_outstanding_balance": 3647.5199999999995,
"total_fines": 297.983,
"legal_fees": 937.4366,
"total": 4882.9396,
"has_fine": true,
"has_legal_fees": true
},
"calculation_date": "31/08/2025",
"coverage": {
"interests": [],
"indexes": [
{
"index_id": 7,
"name": "IPCA-E",
"requested_until": "2025-08-31",
"corrected_until": "2025-08-01"
}
]
},
"fines": [
{
"description": "Multa do art. 523 §1º",
"type": "percentage",
"value": 10,
"amount": 297.983,
"base": 2979.83
}
],
"fees": [
{
"description": "Honorários contratuais",
"type": "percentage",
"value": 20,
"amount": 937.4366,
"base": 4687.183
}
],
"installments": [
{
"id": "2025-01-monthly",
"date": "2025-01-15",
"description": "Pensão 01/2025",
"amount": 1200,
"amount_adjusted": 1238.5,
"interests": 94.13,
"fine": 123.85000000000001,
"outstanding_balance": 1332.63,
"credit_applied": 313.51,
"schedule": [
{
"date": "2025-01-15",
"amount": 1200,
"correction": 0,
"amount_adjusted": 0,
"interest": 0,
"outstanding_balance": 1200
},
{
"date": "2025-01-31",
"amount": 1200,
"correction": 0.060322580645161286,
"amount_adjusted": 1200.72,
"interest": 0,
"outstanding_balance": 1200.72
},
{
"date": "2025-02-28",
"amount": 1200.72,
"correction": 1.23,
"amount_adjusted": 1215.49,
"interest": 0,
"outstanding_balance": 1215.49
},
{
"date": "2025-03-31",
"amount": 1215.49,
"correction": 0.64,
"amount_adjusted": 1223.27,
"interest": 0,
"outstanding_balance": 1223.27
},
{
"date": "2025-04-30",
"amount": 1223.27,
"correction": 0.43,
"amount_adjusted": 1228.53,
"interest": 0,
"outstanding_balance": 1228.53
},
{
"date": "2025-05-31",
"amount": 1228.53,
"correction": 0.36,
"amount_adjusted": 1232.95,
"interest": 0,
"outstanding_balance": 1232.95
},
{
"date": "2025-06-30",
"amount": 1232.95,
"correction": 0.26,
"amount_adjusted": 1236.16,
"interest": 0,
"outstanding_balance": 1236.16
},
{
"date": "2025-07-31",
"amount": 1236.16,
"correction": 0.33,
"amount_adjusted": 1240.24,
"interest": 0,
"outstanding_balance": 1240.24
},
{
"date": "2025-08-31",
"amount": 1240.24,
"correction": -0.14,
"amount_adjusted": 1238.5,
"interest": 94.13,
"outstanding_balance": 1332.63
}
]
},
{
"id": "2025-02-monthly",
"date": "2025-02-15",
"description": "Pensão 02/2025",
"amount": 1200,
"amount_adjusted": 1230.23,
"interests": 80.79,
"fine": 123.02300000000001,
"outstanding_balance": 1311.02,
"credit_applied": 0,
"schedule": []
},
{
"id": "2025-03-monthly",
"date": "2025-03-15",
"description": "Pensão 03/2025",
"amount": 1200,
"amount_adjusted": 1219.21,
"interests": 68.68,
"fine": 121.921,
"outstanding_balance": 1287.89,
"credit_applied": 428.17,
"schedule": []
}
],
"rebates": [
{
"date": "2025-03-20",
"description": "Pagamento parcial de março",
"amount": 400,
"amount_adjusted": 405.98,
"interests": 22.19,
"outstanding_balance": 428.17,
"allocations": [
{
"installment_id": "2025-03-monthly",
"installment_date": "2025-03-15",
"installment_description": "Pensão 03/2025",
"amount": 428.17
}
]
},
{
"date": "2025-05-10",
"description": "Depósito avulso",
"amount": 300,
"amount_adjusted": 302.13,
"interests": 11.38,
"outstanding_balance": 313.51,
"allocations": [
{
"installment_id": "2025-01-monthly",
"installment_date": "2025-01-15",
"installment_description": "Pensão 01/2025",
"amount": 313.51
}
]
}
],
"expenses": [
{
"date": "2025-03-10",
"description": "Material escolar",
"amount": 450,
"amount_adjusted": 457.66,
"interests": 0,
"outstanding_balance": 457.66,
"apply_correction": true,
"apply_interests": false,
"apply_fine": false,
"apply_legal_fees": true
}
],
"items": [
{
"_key": 1,
"id": "2025-01-monthly",
"_date": "15/01/2025",
"_amount": "1.200,00",
"_amount_adjusted": "1.238,50",
"_outstanding_balance": "1.332,63",
"_subtotal_interests": "94,13",
"amount_adjusted": 1238.5,
"outstanding_balance": 1332.63,
"subtotal_interests": 94.13,
"credit_applied": 313.51,
"indexes": [
{
"name": "IPCA-E",
"startDate": "15/01/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "15/01/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 2,
"id": "2025-02-monthly",
"_date": "15/02/2025",
"_amount": "1.200,00",
"_amount_adjusted": "1.230,23",
"_outstanding_balance": "1.311,02",
"_subtotal_interests": "80,79",
"amount_adjusted": 1230.23,
"outstanding_balance": 1311.02,
"subtotal_interests": 80.79,
"credit_applied": 0,
"indexes": [
{
"name": "IPCA-E",
"startDate": "15/02/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "15/02/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 3,
"id": "2025-03-monthly",
"_date": "15/03/2025",
"_amount": "1.200,00",
"_amount_adjusted": "1.219,21",
"_outstanding_balance": "1.287,89",
"_subtotal_interests": "68,68",
"amount_adjusted": 1219.21,
"outstanding_balance": 1287.89,
"subtotal_interests": 68.68,
"credit_applied": 428.17,
"indexes": [
{
"name": "IPCA-E",
"startDate": "15/03/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "15/03/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 4,
"_date": "20/03/2025",
"_amount": "-400,00",
"_amount_adjusted": "-405,98",
"_outstanding_balance": "-428,17",
"_subtotal_interests": "-22,19",
"amount_adjusted": -405.98,
"outstanding_balance": -428.17,
"subtotal_interests": -22.19,
"allocations": [
{
"installment_id": "2025-03-monthly",
"installment_date": "2025-03-15",
"installment_description": "Pensão 03/2025",
"amount": 428.17
}
],
"indexes": [
{
"name": "IPCA-E",
"startDate": "20/03/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "20/03/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 5,
"_date": "10/05/2025",
"_amount": "-300,00",
"_amount_adjusted": "-302,13",
"_outstanding_balance": "-313,51",
"_subtotal_interests": "-11,38",
"amount_adjusted": -302.13,
"outstanding_balance": -313.51,
"subtotal_interests": -11.38,
"allocations": [
{
"installment_id": "2025-01-monthly",
"installment_date": "2025-01-15",
"installment_description": "Pensão 01/2025",
"amount": 313.51
}
],
"indexes": [
{
"name": "IPCA-E",
"startDate": "10/05/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "10/05/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 6,
"_date": "10/03/2025",
"_amount": "450,00",
"_amount_adjusted": "457,66",
"_outstanding_balance": "457,66",
"_subtotal_interests": "0,00",
"amount_adjusted": 457.66,
"outstanding_balance": 457.66,
"subtotal_interests": 0,
"indexes": [
{
"name": "IPCA-E",
"startDate": "10/03/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [],
"schedule": []
}
]
}
}Calcula a correção de pensão alimentícia em atraso
Corrige as parcelas em atraso de pensão alimentícia: aplica índices de correção monetária e juros por período — declare o tipo em interests[].kind (simple usa a taxa do payload, legal_rate aplica a Taxa Legal da Lei 14.905/2024 e savings a poupança) —, soma as despesas extraordinárias (expenses), apura multa e honorários verba a verba (fines/fees) e devolve o cronograma detalhado por parcela, por abatimento e por despesa.
installments precisa de pelo menos um item. O status paid define o comportamento: unpaid (parcela em aberto), paid (parcela quitada — ignorada no cálculo) ou partial (parcela com pagamentos parciais em rebates internos). Abatimentos avulsos vão em rebates no topo do payload e são imputados às parcelas em ordem cronológica (allocations na resposta).
As listas fines/fees vencem os campos legados fine/legal_fees, que seguem obrigatórios no corpo. Nenhuma data pode ser posterior a calculation_date.
curl --request POST \
--url https://api.jusfy.com.br/api/calculadoras/pensao-alimenticia \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Pensão alimentícia em atraso - exemplo",
"calculation_date": "2025-08-31",
"fine": 10,
"fine_interests": false,
"legal_fees": 20,
"legal_fees_type": {
"id": "percentage"
},
"legal_fees_payments": false,
"fines": [
{
"description": "Multa do art. 523 §1º",
"type": "percentage",
"value": 10
}
],
"fees": [
{
"description": "Honorários contratuais",
"type": "percentage",
"value": 20
}
],
"expenses": [
{
"date": "2025-03-10",
"description": "Material escolar",
"amount": 450,
"apply_correction": true,
"apply_interests": false,
"apply_fine": false,
"apply_legal_fees": true,
"index_id": 7
}
],
"installments": [
{
"id": "2025-01-monthly",
"amount": 1200,
"date": "2025-01-15",
"description": "Pensão 01/2025",
"paid": "unpaid",
"rebates": []
},
{
"id": "2025-02-monthly",
"amount": 1200,
"date": "2025-02-15",
"description": "Pensão 02/2025",
"paid": "unpaid",
"rebates": []
},
{
"id": "2025-03-monthly",
"amount": 1200,
"date": "2025-03-15",
"description": "Pensão 03/2025",
"paid": "partial",
"rebates": [
{
"amount": 400,
"date": "2025-03-20",
"description": "Pagamento parcial de março"
}
]
}
],
"rebates": [
{
"amount": 300,
"date": "2025-05-10",
"description": "Depósito avulso"
}
],
"indexes": [
{
"index": {
"id": 7,
"name": "IPCA-E",
"bacen_code": "17",
"type": "average_price_index"
},
"startDate": "2025-01-01",
"endDate": "2025-08-31"
}
],
"interests": [
{
"kind": "simple",
"name": "Juros de mora",
"type": {
"id": 0,
"name": "a.m."
},
"interest": 1,
"apply_index": false,
"startDate": "2025-01-01",
"endDate": "2025-08-31"
}
],
"fixed_periods": [
{
"value": 1200,
"from": "2025-01",
"to": "2025-03"
}
],
"sm_periods": [],
"rem_periods": [],
"has_floor": false,
"floor_minimum_wage_percentage": 0,
"has_legal_fees": true,
"monthly_amount": 1200
}
'import requests
url = "https://api.jusfy.com.br/api/calculadoras/pensao-alimenticia"
payload = {
"name": "Pensão alimentícia em atraso - exemplo",
"calculation_date": "2025-08-31",
"fine": 10,
"fine_interests": False,
"legal_fees": 20,
"legal_fees_type": { "id": "percentage" },
"legal_fees_payments": False,
"fines": [
{
"description": "Multa do art. 523 §1º",
"type": "percentage",
"value": 10
}
],
"fees": [
{
"description": "Honorários contratuais",
"type": "percentage",
"value": 20
}
],
"expenses": [
{
"date": "2025-03-10",
"description": "Material escolar",
"amount": 450,
"apply_correction": True,
"apply_interests": False,
"apply_fine": False,
"apply_legal_fees": True,
"index_id": 7
}
],
"installments": [
{
"id": "2025-01-monthly",
"amount": 1200,
"date": "2025-01-15",
"description": "Pensão 01/2025",
"paid": "unpaid",
"rebates": []
},
{
"id": "2025-02-monthly",
"amount": 1200,
"date": "2025-02-15",
"description": "Pensão 02/2025",
"paid": "unpaid",
"rebates": []
},
{
"id": "2025-03-monthly",
"amount": 1200,
"date": "2025-03-15",
"description": "Pensão 03/2025",
"paid": "partial",
"rebates": [
{
"amount": 400,
"date": "2025-03-20",
"description": "Pagamento parcial de março"
}
]
}
],
"rebates": [
{
"amount": 300,
"date": "2025-05-10",
"description": "Depósito avulso"
}
],
"indexes": [
{
"index": {
"id": 7,
"name": "IPCA-E",
"bacen_code": "17",
"type": "average_price_index"
},
"startDate": "2025-01-01",
"endDate": "2025-08-31"
}
],
"interests": [
{
"kind": "simple",
"name": "Juros de mora",
"type": {
"id": 0,
"name": "a.m."
},
"interest": 1,
"apply_index": False,
"startDate": "2025-01-01",
"endDate": "2025-08-31"
}
],
"fixed_periods": [
{
"value": 1200,
"from": "2025-01",
"to": "2025-03"
}
],
"sm_periods": [],
"rem_periods": [],
"has_floor": False,
"floor_minimum_wage_percentage": 0,
"has_legal_fees": True,
"monthly_amount": 1200
}
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: 'Pensão alimentícia em atraso - exemplo',
calculation_date: '2025-08-31',
fine: 10,
fine_interests: false,
legal_fees: 20,
legal_fees_type: {id: 'percentage'},
legal_fees_payments: false,
fines: [{description: 'Multa do art. 523 §1º', type: 'percentage', value: 10}],
fees: [{description: 'Honorários contratuais', type: 'percentage', value: 20}],
expenses: [
{
date: '2025-03-10',
description: 'Material escolar',
amount: 450,
apply_correction: true,
apply_interests: false,
apply_fine: false,
apply_legal_fees: true,
index_id: 7
}
],
installments: [
{
id: '2025-01-monthly',
amount: 1200,
date: '2025-01-15',
description: 'Pensão 01/2025',
paid: 'unpaid',
rebates: []
},
{
id: '2025-02-monthly',
amount: 1200,
date: '2025-02-15',
description: 'Pensão 02/2025',
paid: 'unpaid',
rebates: []
},
{
id: '2025-03-monthly',
amount: 1200,
date: '2025-03-15',
description: 'Pensão 03/2025',
paid: 'partial',
rebates: [{amount: 400, date: '2025-03-20', description: 'Pagamento parcial de março'}]
}
],
rebates: [{amount: 300, date: '2025-05-10', description: 'Depósito avulso'}],
indexes: [
{
index: {id: 7, name: 'IPCA-E', bacen_code: '17', type: 'average_price_index'},
startDate: '2025-01-01',
endDate: '2025-08-31'
}
],
interests: [
{
kind: 'simple',
name: 'Juros de mora',
type: {id: 0, name: 'a.m.'},
interest: 1,
apply_index: false,
startDate: '2025-01-01',
endDate: '2025-08-31'
}
],
fixed_periods: [{value: 1200, from: '2025-01', to: '2025-03'}],
sm_periods: [],
rem_periods: [],
has_floor: false,
floor_minimum_wage_percentage: 0,
has_legal_fees: true,
monthly_amount: 1200
})
};
fetch('https://api.jusfy.com.br/api/calculadoras/pensao-alimenticia', 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/pensao-alimenticia",
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' => 'Pensão alimentícia em atraso - exemplo',
'calculation_date' => '2025-08-31',
'fine' => 10,
'fine_interests' => false,
'legal_fees' => 20,
'legal_fees_type' => [
'id' => 'percentage'
],
'legal_fees_payments' => false,
'fines' => [
[
'description' => 'Multa do art. 523 §1º',
'type' => 'percentage',
'value' => 10
]
],
'fees' => [
[
'description' => 'Honorários contratuais',
'type' => 'percentage',
'value' => 20
]
],
'expenses' => [
[
'date' => '2025-03-10',
'description' => 'Material escolar',
'amount' => 450,
'apply_correction' => true,
'apply_interests' => false,
'apply_fine' => false,
'apply_legal_fees' => true,
'index_id' => 7
]
],
'installments' => [
[
'id' => '2025-01-monthly',
'amount' => 1200,
'date' => '2025-01-15',
'description' => 'Pensão 01/2025',
'paid' => 'unpaid',
'rebates' => [
]
],
[
'id' => '2025-02-monthly',
'amount' => 1200,
'date' => '2025-02-15',
'description' => 'Pensão 02/2025',
'paid' => 'unpaid',
'rebates' => [
]
],
[
'id' => '2025-03-monthly',
'amount' => 1200,
'date' => '2025-03-15',
'description' => 'Pensão 03/2025',
'paid' => 'partial',
'rebates' => [
[
'amount' => 400,
'date' => '2025-03-20',
'description' => 'Pagamento parcial de março'
]
]
]
],
'rebates' => [
[
'amount' => 300,
'date' => '2025-05-10',
'description' => 'Depósito avulso'
]
],
'indexes' => [
[
'index' => [
'id' => 7,
'name' => 'IPCA-E',
'bacen_code' => '17',
'type' => 'average_price_index'
],
'startDate' => '2025-01-01',
'endDate' => '2025-08-31'
]
],
'interests' => [
[
'kind' => 'simple',
'name' => 'Juros de mora',
'type' => [
'id' => 0,
'name' => 'a.m.'
],
'interest' => 1,
'apply_index' => false,
'startDate' => '2025-01-01',
'endDate' => '2025-08-31'
]
],
'fixed_periods' => [
[
'value' => 1200,
'from' => '2025-01',
'to' => '2025-03'
]
],
'sm_periods' => [
],
'rem_periods' => [
],
'has_floor' => false,
'floor_minimum_wage_percentage' => 0,
'has_legal_fees' => true,
'monthly_amount' => 1200
]),
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/pensao-alimenticia",
"result": {
"summary": {
"total_amount": 3350,
"total_amount_adjusted": 3437.49,
"total_interests": 210.03000000000003,
"total_outstanding_balance": 3647.5199999999995,
"total_fines": 297.983,
"legal_fees": 937.4366,
"total": 4882.9396,
"has_fine": true,
"has_legal_fees": true
},
"calculation_date": "31/08/2025",
"coverage": {
"interests": [],
"indexes": [
{
"index_id": 7,
"name": "IPCA-E",
"requested_until": "2025-08-31",
"corrected_until": "2025-08-01"
}
]
},
"fines": [
{
"description": "Multa do art. 523 §1º",
"type": "percentage",
"value": 10,
"amount": 297.983,
"base": 2979.83
}
],
"fees": [
{
"description": "Honorários contratuais",
"type": "percentage",
"value": 20,
"amount": 937.4366,
"base": 4687.183
}
],
"installments": [
{
"id": "2025-01-monthly",
"date": "2025-01-15",
"description": "Pensão 01/2025",
"amount": 1200,
"amount_adjusted": 1238.5,
"interests": 94.13,
"fine": 123.85000000000001,
"outstanding_balance": 1332.63,
"credit_applied": 313.51,
"schedule": [
{
"date": "2025-01-15",
"amount": 1200,
"correction": 0,
"amount_adjusted": 0,
"interest": 0,
"outstanding_balance": 1200
},
{
"date": "2025-01-31",
"amount": 1200,
"correction": 0.060322580645161286,
"amount_adjusted": 1200.72,
"interest": 0,
"outstanding_balance": 1200.72
},
{
"date": "2025-02-28",
"amount": 1200.72,
"correction": 1.23,
"amount_adjusted": 1215.49,
"interest": 0,
"outstanding_balance": 1215.49
},
{
"date": "2025-03-31",
"amount": 1215.49,
"correction": 0.64,
"amount_adjusted": 1223.27,
"interest": 0,
"outstanding_balance": 1223.27
},
{
"date": "2025-04-30",
"amount": 1223.27,
"correction": 0.43,
"amount_adjusted": 1228.53,
"interest": 0,
"outstanding_balance": 1228.53
},
{
"date": "2025-05-31",
"amount": 1228.53,
"correction": 0.36,
"amount_adjusted": 1232.95,
"interest": 0,
"outstanding_balance": 1232.95
},
{
"date": "2025-06-30",
"amount": 1232.95,
"correction": 0.26,
"amount_adjusted": 1236.16,
"interest": 0,
"outstanding_balance": 1236.16
},
{
"date": "2025-07-31",
"amount": 1236.16,
"correction": 0.33,
"amount_adjusted": 1240.24,
"interest": 0,
"outstanding_balance": 1240.24
},
{
"date": "2025-08-31",
"amount": 1240.24,
"correction": -0.14,
"amount_adjusted": 1238.5,
"interest": 94.13,
"outstanding_balance": 1332.63
}
]
},
{
"id": "2025-02-monthly",
"date": "2025-02-15",
"description": "Pensão 02/2025",
"amount": 1200,
"amount_adjusted": 1230.23,
"interests": 80.79,
"fine": 123.02300000000001,
"outstanding_balance": 1311.02,
"credit_applied": 0,
"schedule": []
},
{
"id": "2025-03-monthly",
"date": "2025-03-15",
"description": "Pensão 03/2025",
"amount": 1200,
"amount_adjusted": 1219.21,
"interests": 68.68,
"fine": 121.921,
"outstanding_balance": 1287.89,
"credit_applied": 428.17,
"schedule": []
}
],
"rebates": [
{
"date": "2025-03-20",
"description": "Pagamento parcial de março",
"amount": 400,
"amount_adjusted": 405.98,
"interests": 22.19,
"outstanding_balance": 428.17,
"allocations": [
{
"installment_id": "2025-03-monthly",
"installment_date": "2025-03-15",
"installment_description": "Pensão 03/2025",
"amount": 428.17
}
]
},
{
"date": "2025-05-10",
"description": "Depósito avulso",
"amount": 300,
"amount_adjusted": 302.13,
"interests": 11.38,
"outstanding_balance": 313.51,
"allocations": [
{
"installment_id": "2025-01-monthly",
"installment_date": "2025-01-15",
"installment_description": "Pensão 01/2025",
"amount": 313.51
}
]
}
],
"expenses": [
{
"date": "2025-03-10",
"description": "Material escolar",
"amount": 450,
"amount_adjusted": 457.66,
"interests": 0,
"outstanding_balance": 457.66,
"apply_correction": true,
"apply_interests": false,
"apply_fine": false,
"apply_legal_fees": true
}
],
"items": [
{
"_key": 1,
"id": "2025-01-monthly",
"_date": "15/01/2025",
"_amount": "1.200,00",
"_amount_adjusted": "1.238,50",
"_outstanding_balance": "1.332,63",
"_subtotal_interests": "94,13",
"amount_adjusted": 1238.5,
"outstanding_balance": 1332.63,
"subtotal_interests": 94.13,
"credit_applied": 313.51,
"indexes": [
{
"name": "IPCA-E",
"startDate": "15/01/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "15/01/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 2,
"id": "2025-02-monthly",
"_date": "15/02/2025",
"_amount": "1.200,00",
"_amount_adjusted": "1.230,23",
"_outstanding_balance": "1.311,02",
"_subtotal_interests": "80,79",
"amount_adjusted": 1230.23,
"outstanding_balance": 1311.02,
"subtotal_interests": 80.79,
"credit_applied": 0,
"indexes": [
{
"name": "IPCA-E",
"startDate": "15/02/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "15/02/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 3,
"id": "2025-03-monthly",
"_date": "15/03/2025",
"_amount": "1.200,00",
"_amount_adjusted": "1.219,21",
"_outstanding_balance": "1.287,89",
"_subtotal_interests": "68,68",
"amount_adjusted": 1219.21,
"outstanding_balance": 1287.89,
"subtotal_interests": 68.68,
"credit_applied": 428.17,
"indexes": [
{
"name": "IPCA-E",
"startDate": "15/03/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "15/03/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 4,
"_date": "20/03/2025",
"_amount": "-400,00",
"_amount_adjusted": "-405,98",
"_outstanding_balance": "-428,17",
"_subtotal_interests": "-22,19",
"amount_adjusted": -405.98,
"outstanding_balance": -428.17,
"subtotal_interests": -22.19,
"allocations": [
{
"installment_id": "2025-03-monthly",
"installment_date": "2025-03-15",
"installment_description": "Pensão 03/2025",
"amount": 428.17
}
],
"indexes": [
{
"name": "IPCA-E",
"startDate": "20/03/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "20/03/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 5,
"_date": "10/05/2025",
"_amount": "-300,00",
"_amount_adjusted": "-302,13",
"_outstanding_balance": "-313,51",
"_subtotal_interests": "-11,38",
"amount_adjusted": -302.13,
"outstanding_balance": -313.51,
"subtotal_interests": -11.38,
"allocations": [
{
"installment_id": "2025-01-monthly",
"installment_date": "2025-01-15",
"installment_description": "Pensão 01/2025",
"amount": 313.51
}
],
"indexes": [
{
"name": "IPCA-E",
"startDate": "10/05/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [
{
"rate": 1,
"startDate": "10/05/2025",
"endDate": "31/08/2025",
"type": "a.m.",
"apply_index": false,
"name": "Juros de mora"
}
],
"schedule": []
},
{
"_key": 6,
"_date": "10/03/2025",
"_amount": "450,00",
"_amount_adjusted": "457,66",
"_outstanding_balance": "457,66",
"_subtotal_interests": "0,00",
"amount_adjusted": 457.66,
"outstanding_balance": 457.66,
"subtotal_interests": 0,
"indexes": [
{
"name": "IPCA-E",
"startDate": "10/03/2025",
"endDate": "31/08/2025",
"adjustmentUntil": " (correção até 08/2025)"
}
],
"interests": [],
"schedule": []
}
]
}
}Corpo
Payload da calculadora de pensão alimentícia.
Payload do cálculo de correção de pensão alimentícia em atraso. Informe as parcelas em débito (installments) — com paid=unpaid para dívidas em aberto ou paid=partial com rebates para pagamentos parciais —, as despesas extraordinárias (expenses), os índices, as regras de juros e as verbas de multa (fines) e honorários (fees); a resposta traz o resumo com valores atualizados, multa e honorários verba a verba, o detalhamento por parcela, por abatimento e por despesa, e a cobertura das séries.
Resposta
Resultado da correção: resumo (multa, honorários e total), multa e honorários verba a verba, detalhamento por parcela, por abatimento e por despesa em número puro, a cobertura das séries (coverage) e o cronograma legado em items.
The response is of type object.