FTOS_CB_ImportContractRepaymentPlan
Imports a file converted in base64, representing a custom schedule, on a contract which is not approved or closed yet. It creates records in the FTOS_CB_ContractRepaymentSchedule and entities.FTOS_CB_ContractRepaymentScheduleDetail
Syntax
The FTOS_CB_ImportContractRepaymentPlan 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_ImportContractRepaymentPlan
Content-Type: application/json
{
"ContractName":"<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. |
| ContractName | Mandatory. The name of the contract. |
| 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.
Example
To import a file converted in base64, representing a custom schedule, on a contract which is not approved or closed yet, send the following request, changing the parameter values with your desired values.
Request
POST https://FintechOSStudio/ftosapi/automation-processors/actions/FTOS_CB_ImportContractRepaymentPlan
Content-Type: application/json
{
"ContractName":"4573.2",
"File":"UEsDBBQABgAIAAAAIQB7ksghegEAAIEFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIoo......IbIWQotgUNnCZmYP/s9Zlg3XeG4SresVp6fpwqvyBiTIDSTQitMPb7utdW3en39SqB4g92xskeDCA7t7+RCuAdLV6u+1c3aTAVzcNMq7MXDejO/DLvYEYv+iyBnVnXYBnxwM7rn8"}"
}
Response
{
"isSuccess": true,
"message": "File successfully uploaded!"
}