v1

latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MB
Account accrual rates

Configure account accrual rates

Configure accrual rates for individual accounts. To do this, you must first configure the rates at the program level using the <a href="https://developers.pismo.io/pismo-docs/reference/postaccrualtypesrates" target="_blank">Configure program accrual rates</a> endpoint. Then, use this endpoint to override the configuration for an individual account. Use the accrual_type field to specify the type of accrual. The periodToCalculate must be set to UNTIL_DUE_DATE, which means the accrual stops accruing when the due date is reached.

NOTE: This endpoint requires an account-specific access token. Getting an account token requires you to call Get OpenID access token with an external account ID. Tokens can expire quickly, which can result in an Unauthorized message.

post/v1/accounts/{accountId}/accrual-type-rates

Path parameters

accountIdinteger required
Example:6912345

Account ID

Request body

transaction_category_idinteger required

Transaction category ID

accrual_typestring required

Accrual type at the account level. The most commonly used values are:

  • WITHDRAWAL_INTEREST—Interest on a withdrawal
  • BILLPAYMENT_INTEREST—Interest on a bill payment
  • OVERDRAFT_INTEREST—Interest on an overdraft
  • FINANCIAL_TAX—Financial tax
period_to_calculatestring required

Period to calculate the accrual

UNTIL_DUE_DATE—The period extends from the transaction date plus one day to the due date. AFTER_DUE_DATE—The period extends from the due date plus one day to the current date.

Note: If an accrual needs to start at the transaction date and continue past the due date, then two accrual rates need to be created—one with UNTIL_DUE_DATE and another with AFTER_DUE_DATE.

default_ratenumber double

Rate used to calculate the accrual when the account is not overdue.

Notes:

  • If you don't provide a value for this field, you must provide a value for rate_if_overdue.
  • If you provide a value for default_rate, but not rate_if_overdue, then the Pismo platform only calculates the interest if the account <i>is not</i> overdue. If you provide a value for rate_if_overdue, but not default_rate, then the platform only calculates the interest when the account <i>is</i> overdue. If you want the platform to calculate the interest in both cases, you must provide values for both fields.
rate_if_overduenumber double

Rate used to calculate the accrual when the account is overdue.

Notes:

  • If you don't provide a value for this field, you must provide a value for default_rate.
  • If you provide a value for default_rate, but not rate_if_overdue, then the Pismo platform only calculates the interest if the account <i>is not</i> overdue. If you provide a value for rate_if_overdue, but not default_rate, then the platform only calculates the interest when the account <i>is</i> overdue. If you want the platform to calculate the interest in both cases, you must provide values for both fields.
validity_to_calculate'IMMEDIATE' | 'DUEDATE' required

When the rate is used to calculate the accrual. The possible values are:

  • IMMEDIATE — The rate is used to calculate the next generated accruals.
  • DUEDATE — The rate is used to calculate accruals only after the next due date.

Example request

{
  "transaction_category_id": 1237456,
  "accrual_type": "WITHDRAWAL_INTEREST",
  "default_rate": 2,
  "rate_if_overdue": 3,
  "validity_to_calculate": "IMMEDIATE",
  "ranges": [
    {
      "amount_due_lower_limit": 4000,
      "default_rate": 2,
      "rate_if_overdue": 3
    }
  ]
}

Response

Ok

transaction_category_idinteger required

Transaction category ID

accrual_typestring required

Accrual type at the account level. The most commonly used values are:

  • WITHDRAWAL_INTEREST—Interest on a withdrawal
  • BILLPAYMENT_INTEREST—Interest on a bill payment
  • OVERDRAFT_INTEREST—Interest on an overdraft
  • FINANCIAL_TAX—Financial tax
period_to_calculatestring required

Period to calculate the accrual

UNTIL_DUE_DATE—The period extends from the transaction date plus one day to the due date. AFTER_DUE_DATE—The period extends from the due date plus one day to the current date.

Note: If an accrual needs to start at the transaction date and continue past the due date, then two accrual rates need to be created—one with UNTIL_DUE_DATE and another with AFTER_DUE_DATE.

default_ratenumber double

Rate used to calculate the accrual when the account is not overdue.

Notes:

  • If you don't provide a value for this field, you must provide a value for rate_if_overdue.
  • If you provide a value for default_rate, but not rate_if_overdue, then the Pismo platform only calculates the interest if the account <i>is not</i> overdue. If you provide a value for rate_if_overdue, but not default_rate, then the platform only calculates the interest when the account <i>is</i> overdue. If you want the platform to calculate the interest in both cases, you must provide values for both fields.
rate_if_overduenumber double

Rate used to calculate the accrual when the account is overdue.

Notes:

  • If you don't provide a value for this field, you must provide a value for default_rate.
  • If you provide a value for default_rate, but not rate_if_overdue, then the Pismo platform only calculates the interest if the account <i>is not</i> overdue. If you provide a value for rate_if_overdue, but not default_rate, then the platform only calculates the interest when the account <i>is</i> overdue. If you want the platform to calculate the interest in both cases, you must provide values for both fields.
validity_to_calculate'IMMEDIATE' | 'DUEDATE' required

When the rate is used to calculate the accrual. The possible values are:

  • IMMEDIATE — The rate is used to calculate the next generated accruals.
  • DUEDATE — The rate is used to calculate accruals only after the next due date.
account_accrual_type_rate_idinteger

Account accrual type rate ID

account_idinteger

Account ID

created_atstring date-time

Datetime program calendar strategy was created. Format = YYYY-MM-DDTHH:MM:SS:MM.

deleted_atstring

Date deleted, format = yyyy-mm-ddThh:mm:ssZ

Example response

{
  "transaction_category_id": 1237456,
  "accrual_type": "WITHDRAWAL_INTEREST",
  "default_rate": 2,
  "rate_if_overdue": 3,
  "ranges": [
    {
      "amount_due_lower_limit": 4000,
      "default_rate": 2,
      "rate_if_overdue": 3
    }
  ],
  "validity_to_calculate": "IMMEDIATE",
  "account_accrual_type_rate_id": 1237456,
  "account_id": 6912345,
  "created_at": "2024-09-12T16:46:16.43663522",
  "deleted_at": "2023-10-10T10:50:18.212Z"
}