Create interest plan [beta]

Create an interest plan with a client-defined external_interest_plan_id. The external_interest_plan_id must be unique within the organization and cannot be changed after the interest plan is created. The Pismo platform generates the interest_plan_id, and responses return both IDs.

This endpoint generates an Interest plan creation succeeded event.

Notes:

  • Creating with an external_interest_plan_id that's already in use creates nothing: the endpoint returns the response of the first creation with 200, whatever the body. Use Get interest plan to read the interest plan's current state.
  • If the Pismo platform doesn't confirm the creation in time, the request fails with 504 and the code EAPX0030. Retry with the same body after the Retry-After delay: the retry returns the interest plan if Apex saved it, or creates it. If the Pismo platform created the interest plan but didn't answer in time, the retry can create a second interest plan, and the first one is left without an external ID.

An interest plan defines how the platform accrues and pays interest. Its first version takes effect on start_date. To change it, update the interest plan, which adds a version.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required

Method used to calculate interest accrual.

  • BD_252: Calculates daily interest using a 252-day year and the actual number of business days in each time period.
  • ACTUAL_360: Calculates daily interest using a 360-day year and the actual number of days in each time period.
  • ACTUAL_365: Calculates daily interest using a 365-day year and the actual number of days in each time period.
  • ACTUAL_ACTUAL: Calculates daily interest using the actual number of days in the year (which in the leap year is 366) and the actual number of days in each time period.
Allowed:
string
enum
required

Interest accrual frequency

Allowed:
string
enum
required

Interest payout frequency

Allowed:
string
required
^[0-9]{3}$

ISO 4217 numeric currency code

string
required
length between 1 and 128

Interest plan name

string
required
length between 1 and 60
^[a-zA-Z0-9-]+$

Interest plan ID provided by the client, unique per organization. It cannot be changed after the interest plan is created.

string
enum
required

Interest calculation type

  • SIMPLE: Calculated on the original deposit or investment value.
  • COMPOUND: Calculated on the original value plus the last accumulated interest.
Allowed:
date
required

Date to start applying the interest plan. Format = YYYY-MM-DD.

string
enum

Market index used to measure interest value over time. For fixed interest, this field must be null.

  • BOE: Bank of England, UK
  • DI: Interbank Deposit Contract, Brazil
  • FED: Federal Reserve System, USA
  • RBA: Reserve Bank of Australia
  • RBI: Reserve Bank of India
  • TO: Overnight Interbank Target Rate (Tasa Objetivo), Mexico
Allowed:
string
length between 1 and 36
^[a-zA-Z0-9-]+$

Code of the division the interest plan accrues by. When omitted, the interest plan uses the default division.

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.

string
enum
Defaults to CLOSING_BALANCE

Interest calculation model. CLOSING_BALANCE calculates interest on a single end-of-day balance snapshot. BALANCE_CHANGE calculates interest on each intraday balance movement (for example, credits and debits) as it occurs, so interest accrues on the balance held during each interval between consecutive movements rather than on one end-of-day figure. Defaults to CLOSING_BALANCE.

Allowed:
interest_by_tiers
object

Interest by tiers configuration

interest_thresholds
object

Cap and floor thresholds for the interest plan

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.

string
enum

Operation type.

  • DEBIT: Interest plan for debit type operations
  • CREDIT: Interest plan for credit type operations
Allowed:
tax_withholding
object

Tax withholding configuration. Replaces the standalone fee_processing_code field.
Conditional rules enforced at creation/update time:

  • ACCRUAL: fee_processing_code is required; tax_rules must be omitted.
  • CAPITALIZATION: tax_rules is required; fee_processing_code must be omitted.
  • Omitted withholding_moment: both fee_processing_code and tax_rules must be omitted.
    In responses, legacy plans that predate this field may return fee_processing_code without withholding_moment.
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