FTOS_BP_Simulate

Returns a simulation from PaymentSchedule with different parameters.

Syntax

The FTOS_BP_Simulate 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_bp_simulate
Content-Type: application/json
            
{
  "productCode": "<product_code>",
  "amount": <contract_amount>,
  "downPayment": <downpayment_amount>,
  "loanPeriod": <loan_periods_number>,
  "interestTypeName": "<name_of_interest_type>",
  "interestType": "<id_of_interest_type>",
  "scheduleType": "<name_of_schedule_type>",
  "optional": [
          {
           "Name": "<discount_name>",
         "ProductDiscountId": "<product_discount_id>"
         }
    ],
  "discount": [],
  "jsonFilterCommission": [{
    "name": "<filter_name>",
    "value": <filter_value>
  }],
  "jsonInsuranceFilter": [],
  "jsonDiscountFilter": [],
  "installmentValue": <manual_value_for_installment>,
  "principalValue": <manual_value_for_principal>
}

Here's a list of the available parameters:

Parameter Description
host_address URL of the FintechOS Platform server.
productCode Mandatory, string. The code of the banking product.
amount Mandatory, numeric. The amount of the contract.
loanPeriod Mandatory, whole number. The number of periods for the loan contract.
scheduleType Mandatory, string. The name of the schedule type.
downPayment Optional, numeric. The amount of the contract's downpayment.
interestType Mandatory if jsonInputFormula or jsonMultipleInterestRates are sent with the request, string. The id of the interest type from the option set FTOS_BP_InterestType corresponding to one of the values: Fixed, Variable, Collection, BankingFormula.
interestTypeName Optional, string. The name of the interest type: Fixed, Variable, Collection, BankingFormula.
optional Optional, json object. A list of selected optional product features, for example:
Copy
[{"Name":"Income Receiving",
"ProductDiscountId":"35b36b84-24e0-409c-9799-7426d4273c9e"}]
discount Optional, json object. A list of selected optional product discounts, for example:
Copy
[{"Name": "Advanced Loan Discount - 1",
"ProductCode": "TL_ADV"}]
jsonFilterCommission Optional, json object. A list of interest/ commission filter, for example:
Copy
[{"name": "Age",
"value": 21}]
jsonInsuranceFilter Optional, json object. A list of insurance filter, for example:
Copy
[{"name": "FinancedAmount",
"value": 356000}]
jsonDiscountFilter Optional, json object. A list of discount filter, for example:
Copy
[{"name": "FinancedAmount",
"value": 356000}]
jsonInputFormula Optional, json object. It is usually provided when interest type is BankingFormula or Collection and represents the formula input json (just like test formula). It can contain inputs for interest/commission/insurance/discount.
For example, when the interestType = BankingFormula, the interestInput parameter is an object holding the input attributes used for calculating the formula that determines the interest:
Copy
{
        "interestInput":{
            "Amount": 6000.00
          }
    }
jsonMultipleInterestRates Optional, json object. Used when interest type is Collection, for example:
Copy
[{"InterestRate":8.000000, "FromInstNo":1, "ToInstNo":5},
{"InterestRate":10.00000, "FromInstNo":6, "ToInstNo":300}]

where: "InterestRate": 8.000000 is the interest percent defined as interest type = Collection on the banking product/ Dimensions /InterestList /Interest, and "FromInstNo" and "ToInstNo" are the from and to installment numbers defined as interest type = Collection on the banking product/ Dimensions/ InterestList/ Interest.
installmentValue Optional, numeric. The desired value of the installment.
This parameter is available starting with Banking Product Factory v3.2.
principalValue Optional, numeric. The desired value of the principal.
This parameter is available starting with Banking Product Factory v3.2.

Response

The response is an object with details about a the simulation of a payment schedule.

Example