Update deposit product

Use case

In this use case, we will review how to update a deposit product. We will change the deposit product that was created in a previous step.

In the table below, you will find a list of the settings that have been modified for the deposit product:

Use case data
API parameters with values

The product description is updated.

"description": "Premium deposit Germany"

The deposit country is set to Germany.

 "countryCode": "DE"

The contract number prefix is modified.

"contractNumberPrefix": "PR-DE-"

The premature deposit contract termination is with interest.

"terminationType": "WITH_TOTAL_INTEREST"

The deposit contract period is 12 months.

 "period": 12

The deposit is offered for legal entities.

"personTypeCode": "L"

The deposit product end is updated. Note: the date format is YYYY-MM-DD.

"endDate": "2031-02-08"

Sample API call

To update a deposit product, make the following API call.

deposit-api.sandbox.tuumplatform.com/ api/v2/deposits/product/{depositTypeCode}

See more information about the update deposit product endpoint in the Tuum developer portal.

Sample request

Below is an example request body for the API call to update a deposit product.

{
  "description": "Premium deposit Germany"
  "depositGroupCode": "TIME_DEPOSIT"
  "countryCode": "DE"
  "currencyCode": "EUR"
  "contractNumberPrefix": "PR-DE-"
  "offerValidDays": 1
  "daysToWaitCredit": 2
  "calculateTaxesEnabled": false,
  "terminationType": "WITH_TOTAL_INTEREST"
  "interestCalculationMethod": {
    "daysInMonth": "30", 
    "daysInYear": 360
  },
  "interestPeriodSelector": "FIXED",
  "interests": [
    {
      "amountRange": { 
        "startValue": 6000,
        "endValue": 100001
      },
      "interestRate": 0.25,
      "periodRange": { 
        "startValue": 0,
        "endValue": 0
      },
      "period": 12, 
      "periodTypeCode": "MONTH",
      "paymentFrequencyTypeCode": "END",
      "validityRange": {
        "startDate": "2027-02-08", 
        "endDate": "2031-02-08"
      }
    }
  ],
  "personTypeCode": "L"
}

Sample response

Below, you find an example response body to the API call above.

Response
{
    "errors": null,
    "validationErrors": null,
    "data": null
}

Result

As a result, the following deposit product settings were updated:

  • description,

  • countryCode,

  • contractNumberPrefix,

  • terminationType,

  • period,

  • perconTypeCode,

  • validityRange - endDate.

The updated deposit product is in the DRAFT status.

Last updated

Was this helpful?