Update interest plan [beta]

Update an interest plan identified by an external interest plan ID. The update creates a version of the interest plan that takes effect on start_date, which must be today (UTC) or later. The fields sent replace the ones of the version in effect today, and the fields not sent keep their values. The response is the new version.

You can update only description, fixed_interest_rate, margin_rate, margin, interest_by_tiers and interest_thresholds, and must send at least one of them with start_date. Passing any other field, including interest_plan_id, external_interest_plan_id or currency_code, returns 400.

Notes:

  • fixed_interest_rate can change only on an interest plan without a benchmark, and margin_rate and margin only on one with a benchmark.
  • interest_by_tiers keeps its type and tier_calculation, and changes only the tiers sent, matched by days or amount.
  • If a version with this start_date already exists, the request fails with 409. This includes retrying a request that already succeeded: use Get interest plan with version_date to read the version created.
  • An interest plan whose first version starts in the future can't be updated before that date, and the request fails with 404.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
length between 1 and 60
^[a-zA-Z0-9-]+$

External interest plan ID

Body Params

Requires start_date and at least one of description, fixed_interest_rate, margin_rate, margin, interest_by_tiers and interest_thresholds. Any other field fails with 400.

date
required

Date to start applying the new interest plan version. Format = YYYY-MM-DD. Must be greater than or equal to current date.

string
length between 1 and 128

Interest plan name

double | null

Nominal annual interest rate, expressed as a decimal fraction. 0.10 = 10% per year. 1.00 = 100% per year. Do not send 10 for 10%. Maximum precision: 8 decimal places. The platform converts this annual rate to the accrual period using accrual_basis and interest_type.

If you pass a value for benchmark, this field must be null. Otherwise, it's required.

double

Additive spread, in the same unit and period as the benchmark rate: nominal annual, decimal fraction. If benchmark is 0.025 and margin is 0.0225, the resulting annual rate is 0.0475.

If you pass a value for benchmark, this field is optional. If benchmark is null, this field must be null also.

double | null

Multiplier applied to the benchmark rate, expressed as a decimal fraction of 100%. 1.00 = 100% of the benchmark. 1.10 = 110% of the benchmark. 0.95 = 95% of the benchmark. This is not added to the benchmark—use margin for an additive spread.

If you don't pass a value for benchmark, this field must be null. Otherwise, it's required.

interest_by_tiers
object

Interest by tiers configuration

interest_thresholds
object

Cap and floor thresholds for the interest plan

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json