FTOS_CB_ApproveContractDisbursement
Changes the business status of a record from the FTOS_CB_ContractEvent entity representing a contract disbursement event to Approved.
Syntax
The FTOS_CB_ApproveContractDisbursement 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_ApproveContractDisbursement
Content-Type: application/json
{
"contractNo":"<contract_number>",
"contractID":null,
"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 disbursement event. |
Response
The response indicates the result of the code execution, specifically the result of approving a contract disbursement event. If the record is updated successfully, its ContractDisbursementIdentifier is returned.
Example
To approve a disbursement, send the following request, changing the parameter values with your desired values.
Request
Copy
POST https://FintechOSStudio/ftosapi/automation-processors/actions/FTOS_CB_ApproveContractDisbursement
Content-Type: application/json
{
"contractNo": "8640",
"contractID": "",
"eventNo": "ECB6990"
}
Response
Copy
{
"IsSuccess": true,
"ContractDisbursementIdentifier": "ECB6990"
}