FTOS_CB_ApproveContractWithdraw
Changes the business status of a record from the FTOS_CB_ContractEvent entity representing a contract withdraw event to Approved.
Syntax
The FTOS_CB_ApproveContractWithdraw 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_CB_ApproveContractWithdraw
Content-Type: application/json
{
"contractNo":"<contract_number>",
"contractID":"<contract_id>",
"eventNo":"<event_number>"
}
Here's a list of the available parameters:
| Parameter | Description |
|---|---|
| host_address | URL of the FintechOS Platform server. |
| contractNo | Mandatory if contractId is not filled. The number of the contract. |
| contractId | Mandatory if contractNo is not filled. The identifier of the contract. |
| eventNo | Mandatory. The number of the withdraw event. |
Response
The response indicates the result of the code execution, specifically the result of approving a contract withdrawal event. If the record is updated successfully, its ContractWithdrawIdentifier is returned.
Example
To approve a withdrawal, send the following request, changing the parameter values with your desired values.
Request
Copy
POST https://FintechOSStudio/ftosapi/automation-processors/actions/FTOS_CB_ApproveContractWithdraw
Content-Type: application/json
{
"contractNo": "8581",
"contractID": "",
"eventNo": "ECB6992"
}
Response
Copy
{
"IsSuccess": true,
"ContractWithdrawIdentifier": "ECB6992"
}