Make premature termination
Use case
In this example, we will review how to terminate an active contract prematurely (before the contract reaches its end date). We will use the deposit contract that was previously created.
The contract header is ID-1696407222.
See the find deposit contract page for more details.
...contracts/ID-1696407222/...
The active contract version is ID-1696407267.
See the find deposit contract page for more details.
.../versions/ID-1696407267/...
The deposit contract is terminated without any of the interest it has accrued during the term period.
"terminationType": "WITHOUT_INTEREST"
Sample API call
To terminate an active contract prematurely, make the following API call.
deposit-api.sandbox.tuumplatform.com/api/v2/contracts/{headerId}/versions/{versionId}/prepare-for-termination
Sample request
Below is an example request body of the API call for changing deposit contract payout details.
{
"terminationType": "WITHOUT_INTEREST",
"comment": "Closing contract"
}
Sample response
Below you will find an example response body to the API call above
Result
As a result, the deposit contract is set to the TERMINATING
status.
Last updated
Was this helpful?