FTOS_CB_ApproveContractDocument
Changes the business status of a contract document record to Signed.
Syntax
The FTOS_CB_ApproveContractDocument 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/
Content-Type: application/json
{
"contractName":"<contract_number>",
"documentName":"<document_name>"
}
Here's a list of the available parameters:
| Parameter | Description |
|---|---|
| host_address | URL of the FintechOS Platform server. |
| contractName | Mandatory. The number of the contract. |
| documentName | Mandatory. The name of the contract document. |
Response
The response indicates the result of the code execution, specifically the result of changing a contract document's status to Signed, as well as the contract document name.
Example
To approve a contract document by changing its status to Signed, send the following request, changing the parameter values with your desired values. Make sure that the record contains values for DocumentSigned and FileNameSigned, otherwise, the record's status cannot be changed to Signed.
Request
POST https://FintechOSStudio/ftosapi/automation-processors/actions/FTOS_CB_ApproveContractDocument
Content-Type: application/json
{
"contractName": "6586",
"documentName": "6586 - BI/CI - 130"
}
Response
{
"DocumentName": "6586 - BI/CI - 130"
}