FTOS_CB_ImportContractEventRepaymentPlan
Imports a file converted in base64, representing a custom schedule, on a contract event which is not approved yet. It creates records in the FTOS_CB_ContractRepaymentScheduleDisb and FTOS_CB_ContractRepaymentScheduleDisbDet entities.
Syntax
The FTOS_CB_ImportContractEventRepaymentPlan custom endpoint is called from within the Endpoint API endpoint. Visit the Endpoint API page for more details.
POST <host_address>/ftosapi/automation-processors/actions/FTOS_CB_ImportContractEventRepaymentPlan
Content-Type: application/json
{
"ContractEventName":"<contract_name>",
"File":"<schedule_file_converted_to_base64>"
}
Here's a list of the available parameters:
| Parameter | Description |
|---|---|
| host_address | URL of the FintechOS Platform server. |
| ContractEventName | Mandatory. The name of the contract event. |
| File | Mandatory. The file that contains the custom schedule, converted into base64 format. |
Response
The response indicates the result of the code execution, specifically the result of uploading the file that contains the custom schedule for a contract event.
Example
To import a file converted in base64, representing a custom schedule, on a contract event which is not approved yet, send the following request, changing the parameter values with your desired values.
Request
POST https://FintechOSStudio/ftosapi/automation-processors/actions/
Content-Type: application/json
{
"ContractEventName":"ECB3301",
"File":"UEsDBBQABgAIAAAAIQB7ksghegEAAIEFAAATAAg...vbnRpscEr0JjsTiLEG2yFk3ZqAAAAAA3J0ctqEd+hzce1cOxqZpkmbS"
}
Response
{
"isSuccess": true,
"message": "File successfully uploaded!"
}