FTOS_CB_ApproveDepositLiquidation
Changes the business status of a contract event record representing a returned amount or goods event to Approved.
Syntax
The FTOS_CB_ApproveDepositLiquidation 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_ApproveDepositLiquidation
Content-Type: application/json
{
"eventName":"<deposit_liquidation_event_number>"
}
Here's a list of the available parameters:
| Parameter | Description |
|---|---|
| host_address | URL of the FintechOS Platform server. |
| eventName | Mandatory. The number of the deposit liquidation event. |
Response
The response indicates the result of the code execution, specifically the result of approving a deposit liquidation contract event.
Example
To approve a deposit liquidation contract event, send the following request, changing the parameter values with your desired values.
Request
POST https://FintechOSStudio/ftosapi/automation-processors/actions/FTOS_CB_ApproveDepositLiquidation
Content-Type: application/json
{
"eventName":"ECB6879"
}
Response
{
"isSuccess":true,
"eventNo":"ECB6879"
}
Error Responses
-
Bad Request - Event name is null- the request does not contain a repayment amount; -
Bad Request - event must be in status draft- you cannot update already approved contract event records, the sent event must be inDraftstatus;