Change contract prolongation status
Use case
In this example, we will change the contract prolongation status for an active contract. 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.
...v2/contracts/ID-1696407222/...
The active contract version is ID-1696407267
. See the find deposit contract page for more details.
...versions/ID-1696407267/payment-instructions
We will change prolongation status to principal with interest. With this setting when the deposit contract is automatically prolonged, the interest is moved to principal.
"prolongationCode": "PRINCIPAL"
Prolongation types
The prolongationCode
parameter can have one of the following values:
PRINCIPAL - The deposit contract is extended to a new period with only the initial deposit principal amount. All interest accrued during the term will be paid out to the payout account defined for the deposit.
PRINCIPAL_WITH_INTEREST - The deposit contract is extended to a new period with both the initial deposit principal amount and the interest accrued during the previous term. The interest is capitalised, meaning it is added to the initial principal amount, resulting in a new principal amount for the next term period.
Sample API call
To change the deposit contract prolongation details, make the following API call.
deposit-api.sandbox.tuumplatform.com/api/v2/contracts/{headerId}/versions/{versionId}/prolongation-status
Sample request
Below is an example request body of the API call for changing deposit contract payout details.
{
"prolongationCode": "PRINCIPAL"
}
Sample response
Below you find an example response body to the API call above.
Result
As a result, the deposit contract prolongation status was updated.
Last updated
Was this helpful?