---
title: "Configure minimum value by accrual type"
method: POST
path: "/v1/accrual-type-minimum-value"
tags: ["Accrual types minimum value"]
---

# Configure minimum value by accrual type

`POST /v1/accrual-type-minimum-value`

## Request

- Base URL: `https://sandbox.pismolabs.io/credit-cycle-interest-accruals`
- URL: `https://sandbox.pismolabs.io/credit-cycle-interest-accruals/v1/accrual-type-minimum-value`
- Auth: HTTP bearer

Configure a minimum value for an accrual type. At cycle closing, if the calculated value for an accrual of that type is lower that the configured minimum value, the minimum value is used instead.

This is an immutable configuration. So, to override a previous configuration, you have to create a new configuration for the same level in the hierarchy. The old configuration is maintained to track the changes, but it's not used.

## Request body

- AccrualTypeMinimumValueRequest
  - `accrual_type` string, required: Accrual type. Should be one of the following values: `REFINANCING` `OVERDUE` `WITHDRAWAL_INTEREST` `BILLPAYMENT_INTEREST` `OVERDRAFT_INTEREST` `FINANCIAL_TAX`
  - `hierarchy_name` 'ORG_ID' | 'PROGRAM_ID' | 'ACCOUNT_ID', required
  - `hierarchy_value` string, required: If `hierarchy_name` is `PROGRAM_ID` or `ACCOUNT_ID`, the hierarchy value must be an integer. If `hierarchy_name` is `ORG_ID`, the value must be a string.
  - `minimum_amount_to_post` number, double, required

## Response `201`

Created

- AccrualTypeMinimumValueResponse
  - `accrual_type` string, required: Accrual type. Should be one of the following values: `REFINANCING` `OVERDUE` `WITHDRAWAL_INTEREST` `BILLPAYMENT_INTEREST` `OVERDRAFT_INTEREST` `FINANCIAL_TAX`
  - `hierarchy_name` 'ORG_ID' | 'PROGRAM_ID' | 'ACCOUNT_ID', required
  - `hierarchy_value` string, required: If `hierarchy_name` is `PROGRAM_ID` or `ACCOUNT_ID`, the hierarchy value must be an integer. If `hierarchy_name` is `ORG_ID`, the value must be a string.
  - `minimum_amount_to_post` number, double, required

## Other responses

- `400`: Bad request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/pismo/apis/revolving-credit-interest-accruals.md) - [All operations](https://skmtc.dev/pismo/apis/revolving-credit-interest-accruals/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/revolving-credit-interest-accruals/revisions/b2738f79f455?raw)
