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 callAction endpoint. Visit the callAction page for more details.

Copy
POST <host_address>/api/openApi/CallAction
Content-Type: application/json
            
{
    "Request": {
    "ActionName":"FTOS_CB_AddUpdateEarlyRepayment",
    "Data": {
      "contractName":"<contract_number>",
      "eventName":"<event_number>",
      "baseAmount":<base_amount>,
      "decreaseInstallment":<true_or_false>,
      "repaymentFeeValue":<repayment_value>,
      "repaymentFeePercent":<repayment_fee_percent>,
      "externalIdentifier":"<the_external_identifier_of_the_transaction>",
      "collectAccruedInterest": <true_or_false>
    }
  }
    "ApiInfo":{
        "UserName":"<user_name>",
        "Token":"<access_token>"
    }
}

Here's a list of the available parameters:

Parameter Description
host_address URL of the High Productivity Fintech Infrastructure server.
access_token Access token used to connect to the API endpoint. For details, see GetToken.
user_name The username of an existing user account on the High Productivity Fintech Infrastructure, previously used to get the access token.
Data Key-value pairs of any input parameters to be passed to the internal endpoint in JSON format. Double quotes that enclose string parameter values must be escaped with backslash characters, eg.: \"string value\".
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. This parameter is available starting with version 3.2.
collectAccruedInterest Optional, boolean. For True value, Core Banking collects the accrued interest. The default value when the value of the parameter is not sent is False. This parameter is available starting with version 3.2.

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