---
title: "Get minimum payout calculation memory"
method: GET
path: "/statements-v2/v1/accounts/{accountId}/statements/{statementId}/min-payment-memory"
tags: ["Statement"]
---

# Get minimum payout calculation memory

`GET /statements-v2/v1/accounts/{accountId}/statements/{statementId}/min-payment-memory`

## Request

- Base URL: `https://sandbox.pismolabs.io`
- URL: `https://sandbox.pismolabs.io/statements-v2/v1/accounts/{accountId}/statements/{statementId}/min-payment-memory`
- Auth: HTTP bearer

Get a minimum payment calculation memory for a specific account statement. The minimum payout calculation memory is the information used in the [calculation of the minimum amount due (MAD)](doc:minimum-amount-due-calculation) and the results of that calculation.

This this information in a JSON file. For example, in the following sample result, the default calculation strategy was used, the resulting MAD was 150, and two transactions were used in the calculation.
{
  "id": 1,
  "created_at": "2021-08-10T00:00:00",
  "org_id": "TN-e7091464-aa1e-4c20-8c68-1e4c57741234",
  "account_id": 1010,
  "statement_id": 1,
  "calc_strategy": "DEFAULT",
  "minimum_amount": 150,
  "calculation_memory": [
    {
      "type": "PREVIOUS_STATEMENT_TRANSACTION",
      "cycle": 4,
      "amount": 43.74,
      "balance": 43.74,
      "percentage": 1.0,           
      "transaction_id": 77489
    },
    {
      "type": "CURRENT_STATEMENT_TRANSACTION",
      "cycle": 5,
      "amount": 3.65,
      "balance": 3.65,
      "percentage": 1.0,
      "transaction_id": 77542
    }
  ]
}

The `calc_strategy` field has three possible values: `DEFAULT`, `PERCENTAGE_ONLY`, and `FIXED_PERCENTAGE_WITH_OVERLIMIT_AND_OVERDUE_AMOUNT`. These values correspond to the three possible settings for the `Minimum payment calculation method` program parameter: 0, 1, and 2. That is, `DEFAULT` = 0, `PERCENTAGE_ONLY` = 1, and `FIXED_PERCENTAGE_WITH_OVERLIMIT_AND_OVERDUE_AMOUNT` = 2. For more information, refer to [Minimum amount due calculation](doc:minimum-amount-due-calculation#full-amount-transactions).

**Note:** This endpoint requires an account token - an access token encoded with a Pismo account ID. Tokens can expire quickly, which can result in a **401 Unauthorized** message.

## Path parameters

- `accountId` integer, required
- `statementId` integer, required

## Response `200`

Ok

- MinimumPaymentCalculationMemoryResponse
  - `id` integer: Minimum payment calculation memory ID
  - `created_at` string: Creation date/time. Format = yyyy-mm-ddThh:mm:ss.
  - `org_id` string: Organization ID
  - `account_id` integer: Account ID
  - `statement_id` integer: Statement that closed with this minimum payment.
  - `calc_strategy` 'DEFAULT' | 'PERCENTAGE_ONLY' | 'FIXED_PERCENTAGE_WITH_OVERLIMIT_AND_OVERDUE_AMOUNT': Strategy for caculating minimum payment. For more information, refer to <a href="https://developers.pismo.io/pismo-docs/docs/minimum-amount-due-calculation">Minimum amount due calculation</a>.
  - `minimum_amount` number, float: Minimum payment calculated amount
  - `calculation_memory` CalculationMemoryResponse[]
    - `type` 'PREVIOUS_STATEMENT_TRANSACTION' | 'CURRENT_STATEMENT_TRANSACTION': Calculation memory type
    - `transaction_id` integer: Transaction ID
    - `balance` number, float: Transaction balance when calculating the minimum payment
    - `percentage` number, float: Minimum payment's percentage of transaction balance
    - `amount` number, float: Minimum payment calculated amount
    - `cycle` integer: Cycle number. When an account is created, its first cycle is cycle number 1. This number is incremented for each successive cycle.

## Other responses

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

---

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