FTOS_CB_ApproveContract
Changes the business status of a record from the FTOS_CB_Contract entity representing a contract to Approved.
Syntax
The FTOS_CB_ApproveContract 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_ApproveContract
Content-Type: application/json
{
"contractID": "<contract_id>",
"contractNo": "<contract_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. |
Response
The response indicates the result of the code execution, specifically the result of approving a contract, as well as the contract number, contract id, its main bank account, and its approval status.
Example
To approve a contract, send the following request, changing the parameter values with your desired values.
Request
Copy
POST https://FintechOSStudio/ftosapi/automation-processors/actions/FTOS_CB_ApproveContract
Content-Type: application/json
{
"contractID": "",
"contractNo": "9093"
}
Response
Copy
{
"IsSuccess": true,
"ContractNo": "9093",
"ContractId": "c60c5e9e-4e75-4526-9b48-5e95692e8cb5",
"MainBankAccountNo": "FIN000005284",
"IsApproved": true
}