FTOS_CB_AddUpdateEarlyRepayment

Adds or updates a record in the FTOS_CB_ContractEvent entity representing an event for an early repayment of a contract. The entire repayment schedule is recalculated considering this event. The set of parameters sent via the request body determines the operation performed at the database level.

Syntax

The FTOS_CB_AddUpdateEarlyRepayment custom endpoint is called from within the Endpoint API endpoint. Visit the Endpoint API page for more details.

Copy
POST <host_address>/ftosapi/automation-processors/actions/FTOS_CB_AddUpdateEarlyRepayment
Content-Type: application/json
            
{
      "contractName":"<contract_number>",
      "eventName":"<event_number>",
      "baseAmount":<base_amount>,
      "decreaseInstallment":<true_or_false>,
      "repaymentFeeValue":<repayment_value>,
      "repaymentFeePercent":<repayment_fee_percent>,
      "externalIdentifier":"<external_identifier_of_the_transaction>",
      "collectAccruedInterest": <true_or_false>
}

Here's a list of the available parameters:

Parameter Description
host_address URL of the FintechOS Platform server.
contractName Mandatory. The number of the contract, from the FTOS_CB_Contract entity (attribute: FTOS_CB_ContractId).
eventName Mandatory only for update operations. Do not send it for add operations. The number of the early payment event.
baseAmount Mandatory. The plain early repayment amount that needs to be inserted in the contract.
decreaseInstallment Mandatory. Possible values: true or false. Passing true keeps the contract period length, passing false decreases the contract period length.
repaymentFeeValue The value of the repayment fee, used to calculate the final early repayment value. If the value is not sent and the banking product has a Repayment Fee type commission, the system calculates it based on the repaymentFeePercent, which is mandatory in this case. If there is no Repayment Fee type commission at the banking product level, then an error is returned saying You do not have any repayment fee registered on the banking product.
repaymentFeePercent The percent of the repayment fee, used to calculate the final early repayment value. If the percentage is not sent and the banking product has a Repayment Fee type commission, the system calculates it based on the repaymentFeeValue, which is mandatory in this case. If there is no Repayment Fee type commission at the banking product level, then an error is returned saying You do not have any repayment fee registered on the banking product.
externalIdentifier Optional, string. The external identifier of the transaction.
collectAccruedInterest Optional, boolean. For True value, Loan Management collects the accrued interest. The default value when the value of the parameter is not sent is False.

Response

The response indicates the result of the code execution, specifically the result of creating or updating a record in the FTOS_CB_ContractEvent entity . The entire repayment schedule is recalculated considering this event.

Example

Error Responses