Skip to main content

Financial Conditions Simulation

This endpoint allows simulating the financial conditions and payment flow of an operation.


Request

ENDPOINT
/commercial_paper/simulation
METHOD
POST

Request Body

{
"interest_type": "pre_price_days",
"financial_base_date": "2025-01-20",
"released_amount": 1000000,
"number_of_installments": 5,
"prefixed_interest_rate": {
"interest_base": "calendar_days_365",
"monthly_rate": 0.05
},
"fine_delay_rate": {
"interest_base": "calendar_days_365",
"monthly_rate": 0.01
},
"contract_fine_rate": 0.02,
"fees": [
{
"amount": 5,
"amount_type": "percentage",
"fee_type": "implementation_fee",
"type": "internal"
}
]
}

Request Body Params

FieldTypeDescriptionMax Characters
interest_type *stringApplied interest type.interest_type Enumerators
financial_base_date *stringOperation base date (format "YYYY-MM-DD").-
released_amount *numberTotal amount released in the operation.-
number_of_installments *integerTotal number of installments.-
prefixed_interest_rate *objectObject containing prefixed interest rate details.prefixed_interest_rate Object
fine_delay_rate *objectObject containing delay fine details.fine_delay_rate Object
contract_fine_rate *numberContractual fine applied in percentage.-
feesarrayList of fees associated with the operation.fees Object

prefixed_interest_rate Object

FieldTypeDescriptionMax Characters
interest_base *stringCalculation base for interest.interest_base Enumerators
monthly_rate *numberApplied monthly interest rate.-

fine_delay_rate Object

FieldTypeDescriptionMax Characters
interest_base *stringBase for fine calculation.interest_base Enumerators
monthly_rate *numberMonthly fine rate.-

fees Object

FieldTypeDescriptionMax Characters
amount *numberApplied fee value.-
amount_type *stringFee value type.amount_type Enumerators
fee_type *stringFee type.fee_type Enumerators
type *stringFee recipient.fee_recipient Enumerators

interest_type Enumerators

EnumDescription
pre_pricePrefixed interest in Price model.
pre_price_daysPrefixed interest in Price model by calendar days.
pre_sacPrefixed interest in SAC model.
post_sacPost-fixed interest in SAC model.

interest_base Enumerators

EnumDescription
calendar_daysCalendar days base.
calendar_days_365365 calendar days base.
workdaysBusiness days base.

amount_type Enumerators

EnumDescription
percentagePercentage value.
absoluteAbsolute value in currency.

fee_type Enumerators

EnumDescription
implementation_feeImplementation fee.
implementation_fee_financedFinanced implementation fee.

fee_recipient Enumerators

EnumDescription
internalFee paid to the bookkeeper.
externalRebate paid to the originator.

Response

STATUS
200
Response Body
{
"financial_base_date": "2025-01-20",
"issue_amount": 1075268.82,
"released_amount": 1000000.0,
"issue_quantity": 1075268,
"unit_price": 1.00000076,
"cet": 7.7,
"annual_cet": 143.55,
"number_of_installments": 5,
"prefixed_interest_rate": {
"interest_base": "calendar_days_365",
"monthly_rate": 0.05,
"daily_rate": 0.0016053474,
"annual_rate": 0.795856326
},
"fees": [
{
"amount": 2.0,
"fee_amount": 21505.38,
"amount_type": "percentage",
"fee_type": "implementation_fee_financed",
"type": "internal"
},
{
"amount": 5.0,
"fee_amount": 53763.44,
"amount_type": "percentage",
"fee_type": "implementation_fee_financed",
"type": "external"
}
],
"installments": [
{
"installment_number": 1,
"workdays": 23,
"calendar_days": 31,
"principal_amortization_amount": 193292.79655634,
"principal_amortization_unit_price": 0.17976244,
"interest_amount": 54820.37344366,
"amount": 248113.17,
"due_principal": 1075268.82,
"due_interest": 0.0,
"due_date": "2025-02-20",
"has_interest": true
},
{
"installment_number": 2,
"workdays": 18,
"calendar_days": 28,
"principal_amortization_amount": 207597.32873049,
"principal_amortization_unit_price": 0.19306566,
"interest_amount": 40515.84126951,
"amount": 248113.17,
"due_principal": 881976.02344366,
"due_interest": 0.0,
"due_date": "2025-03-20",
"has_interest": true
},
{
"installment_number": 3,
"workdays": 21,
"calendar_days": 33,
"principal_amortization_amount": 211453.91638185,
"principal_amortization_unit_price": 0.19665229,
"interest_amount": 36659.25361815,
"amount": 248113.17,
"due_principal": 674378.69471317,
"due_interest": 0.0,
"due_date": "2025-04-22",
"has_interest": true
},
{
"installment_number": 4,
"workdays": 19,
"calendar_days": 28,
"principal_amortization_amount": 226847.52746545,
"principal_amortization_unit_price": 0.21096836,
"interest_amount": 21265.64253455,
"amount": 248113.17,
"due_principal": 462924.77833132,
"due_interest": 0.0,
"due_date": "2025-05-20",
"has_interest": true
},
{
"installment_number": 5,
"workdays": 22,
"calendar_days": 31,
"principal_amortization_amount": 236077.25086587,
"principal_amortization_unit_price": 0.21955201,
"interest_amount": 12035.91913413,
"amount": 248113.17,
"due_principal": 236077.25086587,
"due_interest": 0.0,
"due_date": "2025-06-20",
"has_interest": true
}
],
"fine_delay_rate": {
"interest_base": "calendar_days_365",
"monthly_rate": 0.01
},
"contract_fine_rate": 0.02
}

Response Body Params

FieldTypeDescriptionMax Characters
financial_base_date *stringOperation financial base date (format "YYYY-MM-DD").-
issue_amount *numberTotal issued amount of the operation.-
released_amount *numberNet amount released in the operation.-
issue_quantity *integerTotal quantity of units issued.-
unit_price *numberUnit price of the issuance.-
cet *numberTotal Effective Cost (CET) in percentage.-
annual_cet *numberAnnual CET in percentage.-
number_of_installments *integerTotal number of installments.-
prefixed_interest_rate *objectObject containing prefixed interest rate details.prefixed_interest_rate Object
feesarrayList of fees associated with the operation.fees Object
installmentsarrayList of installment details generated in the operation.installments Object
fine_delay_rate *objectObject containing delay fine details.fine_delay_rate Object
contract_fine_rate *numberContractual fine applied in percentage.-

prefixed_interest_rate Object

FieldTypeDescriptionMax Characters
interest_base *stringCalculation base for interest.interest_base Enumerators
monthly_rate *numberApplied monthly interest rate.-
daily_rate *numberApplied daily interest rate.-
annual_rate *numberApplied annual interest rate.-

fees Object

FieldTypeDescriptionMax Characters
amount *numberPercentage value of the fee.-
fee_amount *numberMonetary value corresponding to the fee.-
amount_type *stringFee value type.amount_type Enumerators
fee_type *stringFee type.fee_type Enumerators
type *stringFee recipient.fee_recipient Enumerators

installments Object

FieldTypeDescription
installment_number *integerInstallment number.
workdays *integerBusiness days until installment due date.
calendar_days *integerCalendar days until installment due date.
principal_amortization_amount *numberPrincipal amortized amount.
principal_amortization_unit_price *numberAmortized amount per unit.
interest_amount *numberInterest amount applied in the installment.
amount *numberTotal installment amount.
due_date *stringInstallment due date (format "YYYY-MM-DD").