Skip to main content

New debt simulation

At QI Tech we provide our clients with the possibility to simulate the values of a credit operation before its actual issuance. The simulation follows the same pattern as the debt issuance request, but it is not necessary to provide the cadastral data and disbursement account of the debtor.

Request

In the example below, a debt simulation request is described.

ENDPOINT
/v2/credit_operation/simulation
METHOD
POST
Request Body
{
"credit_operation_type": "ccb",
"disbursed_issue_amount": 2800,
"disbursement_date": "2025-09-24",
"first_due_date": "2025-10-24",
"force_installments_on_workdays": true,
"interest_type": "pre_price_days",
"issuer_person_type": "natural",
"monthly_interest_rate": 0.04488,
"number_of_installments": 12,
"principal_amortization_month_period": 1
}

Response

STATUS
200
Response Body
{
"additional_iof": 0.14,
"annual_cet": 145.08,
"assignment_amount": 36.21,
"base_iof": 0.1,
"cet": 7.76,
"disbursed_amount": 35.9,
"disbursement_date": "2024-09-06",
"fees": [
{
"amount": 0.0,
"fee_amount": 0.0,
"amount_type": "absolute",
"fee_type": "tac",
"type": "external"
},
{
"amount": 0.0,
"fee_amount": 0.0,
"amount_type": "absolute",
"fee_type": "spread",
"type": "external"
},
{
"amount": 0.2,
"fee_amount": 0.07,
"amount_type": "percentage",
"fee_type": "spread",
"type": "internal"
}
],
"first_due_date": "2024-09-25",
"installments": [
{
"due_date": "2024-09-25",
"amount": 19.5,
"due_principal": 36.14,
"due_interest": 0.0,
"has_interest": true,
"period": 0.6129032258064516,
"period_workdays": 0.6190476190476191,
"calendar_days": 19,
"workdays": 13,
"installment_number": 1,
"period_to_disbursement": 0.6129032258064516,
"prefixed_amount": 1.58227236,
"period_workdays_to_disbursement": 1.0,
"calendar_days_to_disbursement": 19,
"workdays_to_disbursement": 13,
"tax_amount": 0.02791582,
"principal_amortization_amount": 17.91772764
},
{
"due_date": "2024-10-25",
"amount": 19.5,
"due_principal": 18.22227236,
"due_interest": 0.0,
"has_interest": true,
"period": 1.0,
"period_workdays": 1.0,
"calendar_days": 30,
"workdays": 22,
"installment_number": 2,
"period_to_disbursement": 1.6129032258064515,
"prefixed_amount": 1.27772764,
"period_workdays_to_disbursement": 2.0,
"calendar_days_to_disbursement": 49,
"workdays_to_disbursement": 35,
"tax_amount": 0.07321709,
"principal_amortization_amount": 18.22227236
}
],
"interest_type": "pre_price_days",
"issue_amount": 36.14,
"prefixed_interest_rate": {
"interest_base": "calendar_days",
"annual_rate": 1.25219159,
"daily_rate": 0.00225783,
"monthly_rate": 0.07
},
"tax_configuration": {
"additional_rate": 0.0038,
"base_rate": 0.000082
},
"total_iof": 0.24
}



Definitions

Request Body

Payload

FieldTypeDescriptionMax. Chars.
credit_operation_typeenumCredit Operation Type Enumerator - Credit contract type-
disbursed_issue_amountfloatIssue/nominal amount of the credit operation-
disbursement_datedateDisbursement date of the operation-
first_due_datedateDue date of the first installment-
force_installments_on_workdaysbooleantrue - Indicator for installments scheduled on workdays-
interest_typeenumInterest Type Enumerator - Amortization method and interest calculation form-
issuer_person_typeenumPerson Type Enumerator-
monthly_interest_ratefloatPre-fixed monthly interest rate of the contract-
number_of_installmentsintNumber of installments of the credit operation-
principal_amortization_month_periodintNumber of months for principal amortization-
installmentslistInstallments Object - Operation installments-

Response Body

Payload

FieldTypeDescriptionMax. Chars.
annual_cetfloatTotal effective cost expressed in decimal per year-
assignment_amountfloatAcquisition amount of the credit operation-
cetfloatTotal effective cost expressed in decimal per month-
feesobjectFees Object - List of QI Tech fees charged on the operation-
disbursed_amountfloatAmount disbursed in the credit operation-
disbursement_datedateDisbursement date of the operation-
installmentslistInstallments Response Object - Operation installments-
interest_typeenumInterest Type Enumerator - Amortization method and interest calculation form-
additional_ioffloatAdditional IOF amount-
base_ioffloatBase IOF amount-
total_ioffloatTotal IOF amount-
issue_amountfloatIssue/nominal amount of the credit operation-
tax_configurationobjectTax Configuration Object - Tax rate values-
first_due_datedateDue date of the first installment-
prefixed_interest_rateobjectInterest Rate Object - Pre-fixed nominal interest rate of the contract-

Fees Object

FieldTypeDescriptionMax. Chars.
amountfloatFee amount (in percentage or absolute value, depending on the value provided in the amount_type field)-
amount_typeenumamount_type Enumerator - Fee amount unit-
fee_amountfloatAbsolute fee amount charged on the operation-
fee_typeenumFee Type Enumerator - Type of fee charged on the operation-
typeenumOrigin Type Enumerator - Origin of the fee charged on the operation-

Installments Request Object

FieldTypeDescriptionMax. Chars.
due_datedateDue date in calendar days of the installment-
total_amountfloatTotal installment amount-

Installments Response Object

FieldTypeDescriptionMax. Chars.
calendar_daysintHow many calendar days between one installment and another-
due_datedateDue date in calendar days of the installment-
due_principalfloatRemaining principal on the installment due date before its payment-
has_interestbooleantrue - Indicator of interest incidence on the installment-
installment_numberintInstallment number-
prefixed_amountfloatPre-fixed interest amount paid in the installment-
principal_amortization_amountfloatAmortization amount paid in the installment-
tax_amountfloatBase IOF of the installment-
amountfloatTotal installment amount-
due_interestfloatRemaining interest after the installment due date before its payment-
periodfloatInstallment period-
period_workdaysfloatInstallment period in workdays-
period_to_disbursementfloatPeriod until disbursement-
period_workdays_to_disbursementfloatPeriod in workdays until disbursement-
calendar_days_to_disbursementintHow many calendar days until disbursement-
workdaysintHow many workdays between one installment and another-
workdays_to_disbursementintHow many workdays until disbursement-

Interest Rate Object

FieldDescriptionMax. Chars.
annual_ratePre/post-fixed interest rate expressed in decimal per year-
daily_ratePre/post-fixed interest rate expressed in decimal per day-
interest_baseInterest Base Enumerator - Interest calculation base-
monthly_ratePre/post-fixed interest rate expressed in decimal per month-

Tax Configuration Object

FieldDescriptionMax. Chars.
base_rateBase rate value-
additional_rateAdditional rate value-

Enumerators

Person Type Enumerator

EnumeratorDescription
legalLegal entity
naturalNatural person

Account Type Enumerator

EnumeratorDescription
checking_accountChecking account
deposit_accountDeposit account
guaranteed_accountGuarantee account
investment_accountInvestment account
payment_accountPayment account
saving_accountSavings account
salary_accountSalary account

Amount Type Enumerator

EnumeratorDescription
absoluteAbsolute value
percentagePercentage value

Interest Type Enumerator

EnumeratorDescription
pre_price_daysPrice amortization method (equal installments) with pre-fixed interest calculation per day
pre_pricePrice amortization method (equal installments) with pre-fixed interest calculation in fixed periods (30 days)
pre_sacSAC amortization method (constant amortization) with pre-fixed interest calculation per day
post_sacSAC amortization method (constant amortization) with interest calculation based on a pre-fixed rate + post-fixed indexer (cdi, ipca or igpm) per day
post_pricePrice amortization method (equal installments) with interest calculation based on a pre-fixed rate + post-fixed indexer (cdi, ipca or igpm) in fixed periods (30 days)
post_price_daysPrice amortization method (equal installments) with interest calculation based on a pre-fixed rate + post-fixed indexer (cdi, ipca or igpm) per day

Credit Operation Type Enumerator

EnumeratorDescription
ccbBanking Credit Note
cceExport Credit Note
cciReal Estate Credit Note
nceExport Credit Note

Interest Base Enumerator

EnumeratorDescription
workdaysInterest calculation base on workdays considering a year of 252 days
calendar_daysInterest calculation base on calendar days considering a year of 360 days
calendar_days_365Interest calculation base on calendar days considering a year of 365 days

Fee Type Enumerator

Each fee type must be previously enabled and configured by QI Tech

EnumeratorDescription
tacAccount opening fee
spreadPremium charged on the acquisition amount of the credit operation
warranty_analysisWarranty analysis fee
ted_feeTED fee
spread_ted_feeTED fee premium charged on the acquisition amount of the credit operation

Origin Type Enumerator

Each fee type must be previously enabled and configured by QI Tech

EnumeratorDescription
internalInternal origin fee
externalExternal origin fee