---
updatedAt: 2026-11-04T14:52:11.000Z
agentTools:
  siteIndex: https://developers.pismo.io/llms.txt
  projectIndex: https://developers.pismo.io/pismo-docs/llms.txt
---

# Create interest forecast [Beta]

Request a forecast of the gross interest and the gross balance that an interest-bearing account is expected to have on `forecast_date`.

The forecast is asynchronous. The `200` response only confirms receipt of the request and does not contain forecast values. A failure event reports any problem with the interest plan or account.

The following events deliver endpoint results:
- [Interest forecast succeeded](https://developers.pismo.io/events/docs/interest-engine-interest-forecast-success-1) when the forecast is calculated
- [Interest forecast failed](https://developers.pismo.io/events/docs/interest-engine-interest-forecast-failure-1) when the forecast cannot be calculated

If a request repeats a `forecast_id`, the endpoint still returns `200`, and an Interest forecast failed event reports the message `The provided forecast_id has already been used.`

In rare cases, such as a retry after a temporary failure, you can receive the same event more than once. All events for a request carry its `forecast_id`, so you can use it to recognize and ignore a repeated event.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Banking - Interest operations",
    "version": "1.0.0",
    "description": "API to handle interest bearing account operations",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismolabs.io/pismo-docs/docs/support"
    },
    "license": {
      "name": "Copyright Pismo"
    }
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/interest-engine",
      "description": "Sandbox API server for integration"
    }
  ],
  "tags": [
    {
      "name": "Interest engine",
      "description": "Endpoints for handling interest bearing account operations"
    }
  ],
  "components": {
    "parameters": {
      "Authorization": {
        "name": "authorization",
        "in": "header",
        "description": "Authorization",
        "required": true,
        "example": "Bearer <access-token>",
        "schema": {
          "type": "string"
        }
      },
      "ContentType": {
        "name": "content-type",
        "in": "header",
        "description": "Content type",
        "required": true,
        "example": "application/json",
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "AccountId": {
        "type": "string",
        "format": "number",
        "description": "Account ID. Must be between 1 and 64.",
        "example": "15001"
      },
      "DivisionId": {
        "type": "string",
        "maxLength": 64,
        "description": "Division ID. When not provided, defaults to `DEFAULT_DIVISION` internally.",
        "example": "123"
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Standard error payload generated by the global exception handler.\n`message` is a single string for most errors and an array of strings when multiple bean-validation or request-binding errors occur in the same request.\n",
        "additionalProperties": false,
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        },
        "example": {
          "message": "interest account not found"
        }
      },
      "ExternalAccountId": {
        "type": "string",
        "maxLength": 60,
        "description": "External account ID managed by the requester",
        "example": "4141"
      },
      "ForecastDate": {
        "type": "string",
        "format": "date",
        "description": "Date to calculate the forecast for. Must be equal to or later than the current date (UTC). Format = YYYY-MM-DD.",
        "example": "2026-11-17"
      },
      "ForecastId": {
        "type": "string",
        "format": "UUID",
        "maxLength": 36,
        "description": "Client-generated forecast UUID in the hyphenated 36-character format (8-4-4-4-12). A UUID without hyphens returns a `400` error. Do not reuse the `forecast_id` of a previous request. Letters are accepted in either case and returned in lowercase.\n",
        "example": "8d0c4a3e-2f71-4b9a-9e5d-6c1f0b7a2e94"
      },
      "InterestForecastRequest": {
        "title": "InterestForecastRequest",
        "type": "object",
        "required": [
          "forecast_id",
          "account_id",
          "interest_plan_id",
          "forecast_date"
        ],
        "properties": {
          "forecast_id": {
            "$ref": "#/components/schemas/ForecastId"
          },
          "division_id": {
            "$ref": "#/components/schemas/DivisionId"
          },
          "account_id": {
            "$ref": "#/components/schemas/AccountId"
          },
          "external_account_id": {
            "$ref": "#/components/schemas/ExternalAccountId"
          },
          "interest_plan_id": {
            "$ref": "#/components/schemas/InterestPlanId"
          },
          "forecast_date": {
            "$ref": "#/components/schemas/ForecastDate"
          }
        },
        "example": {
          "forecast_id": "8d0c4a3e-2f71-4b9a-9e5d-6c1f0b7a2e94",
          "division_id": "123",
          "account_id": "4040",
          "external_account_id": "4141",
          "interest_plan_id": "df3f3e3e-62d3-4323-902e-6ae6cc210f49",
          "forecast_date": "2026-11-17"
        }
      },
      "InterestForecastResponse": {
        "title": "InterestForecastResponse",
        "type": "object",
        "description": "Echo of the forecast request, plus `org_id` and `program_id`, which are not passed in the request body. It does not contain forecast values. Optional fields are returned only when passed in the request.",
        "required": [
          "forecast_id",
          "org_id",
          "program_id",
          "account_id",
          "interest_plan_id",
          "forecast_date"
        ],
        "properties": {
          "forecast_id": {
            "$ref": "#/components/schemas/ForecastId"
          },
          "org_id": {
            "$ref": "#/components/schemas/OrgId"
          },
          "program_id": {
            "$ref": "#/components/schemas/ProgramId"
          },
          "division_id": {
            "$ref": "#/components/schemas/DivisionId"
          },
          "account_id": {
            "$ref": "#/components/schemas/AccountId"
          },
          "external_account_id": {
            "$ref": "#/components/schemas/ExternalAccountId"
          },
          "interest_plan_id": {
            "$ref": "#/components/schemas/InterestPlanId"
          },
          "forecast_date": {
            "$ref": "#/components/schemas/ForecastDate"
          }
        },
        "example": {
          "forecast_id": "8d0c4a3e-2f71-4b9a-9e5d-6c1f0b7a2e94",
          "org_id": "1",
          "program_id": "0105",
          "division_id": "123",
          "account_id": "4040",
          "external_account_id": "4141",
          "interest_plan_id": "df3f3e3e-62d3-4323-902e-6ae6cc210f49",
          "forecast_date": "2026-11-17"
        }
      },
      "InterestPlanId": {
        "type": "string",
        "format": "UUID",
        "minLength": 36,
        "maxLength": 36,
        "description": "Interest plan ID generated during the plan's creation. Must be an alphanumeric UUID with the alphabetical characters in lowercase.\n",
        "example": "07d84f79-3027-47bd-b628-65528ccc8fb2"
      },
      "OrgId": {
        "type": "string",
        "description": "Organization ID, parsed from your access token. You don't pass it in the request body, but it is returned in the response.",
        "example": "1"
      },
      "ProgramId": {
        "type": "string",
        "description": "Program ID",
        "example": "0105"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "400BadRequest": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "validation": {
                "summary": "Bean validation or binding errors",
                "value": {
                  "message": [
                    "fixed_interest_rate must be informed",
                    "margin_rate must be positive"
                  ]
                }
              },
              "requestBody": {
                "summary": "invalid or missing request value",
                "value": {
                  "message": "Failed to process your request. Validate the fields in your request."
                }
              },
              "tenantHeader": {
                "summary": "Tenant header missing or malformed",
                "value": {
                  "message": "x-tenant header is missing or malformed"
                }
              },
              "invalidBalanceId": {
                "summary": "balance_id is not a valid UUID",
                "value": {
                  "message": "balance_id must be a valid UUID"
                }
              },
              "invalidTriggerReason": {
                "summary": "trigger_reason has an unsupported value",
                "value": {
                  "message": "trigger_reason value accepted: [CYCLE_CLOSING, RETROACTIVE_CYCLE_CLOSING]"
                }
              },
              "retroactiveRequiresPastValueDate": {
                "summary": "RETROACTIVE_CYCLE_CLOSING requested with a value_date that is not in the past",
                "value": {
                  "message": "value_date must be in the past for RETROACTIVE_CYCLE_CLOSING trigger_reason."
                }
              },
              "tenantHeaderNotPresent": {
                "summary": "x-tenant header is not present",
                "value": {
                  "message": "400 BAD_REQUEST \"Required header 'x-tenant' is not present.\""
                }
              },
              "programIdHeaderMissing": {
                "summary": "Neither the x-program-id nor the program-id header is present",
                "value": {
                  "message": "x-program-id or program-id must be provided"
                }
              },
              "programIdHeadersMismatch": {
                "summary": "x-program-id and program-id headers have different values",
                "value": {
                  "message": "x-program-id and program-id must have the same value"
                }
              },
              "forecastRequiredFieldsNotInformed": {
                "summary": "Forecast request body without the required fields",
                "value": {
                  "message": [
                    "forecast_id must be informed.",
                    "account_id must be informed.",
                    "interest_plan_id must be informed.",
                    "forecast_date must be informed."
                  ]
                }
              },
              "forecastDateBeforeToday": {
                "summary": "forecast_date is before the current date (UTC)",
                "value": {
                  "message": [
                    "forecast_date must be equal or greater than today."
                  ]
                }
              },
              "invalidForecastDate": {
                "summary": "forecast_date is not a valid YYYY-MM-DD date",
                "value": {
                  "message": "forecast_date is not valid"
                }
              },
              "invalidForecastId": {
                "summary": "forecast_id is not a valid UUID",
                "value": {
                  "message": "forecast_id must be a valid UUID"
                }
              },
              "accountIdNotInformed": {
                "summary": "account_id is missing or blank",
                "value": {
                  "message": [
                    "account_id must be informed."
                  ]
                }
              },
              "externalAccountIdTooLong": {
                "summary": "external_account_id is longer than 60 characters",
                "value": {
                  "message": [
                    " external_account_id maximum size accepted [60]"
                  ]
                }
              },
              "invalidInterestPlanId": {
                "summary": "interest_plan_id is not a valid UUID",
                "value": {
                  "message": [
                    "interest_plan_id must be a valid UUID"
                  ]
                }
              }
            }
          }
        }
      },
      "401Unauthorized": {
        "description": "Unauthorized access",
        "content": {
          "application/json": {
            "schema": {
              "properties": {
                "message": {
                  "type": "string",
                  "example": "You cannot access this resource"
                }
              }
            }
          }
        }
      },
      "500InternalServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "message": "Failed to process your request"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/v1/interest/forecast": {
      "post": {
        "summary": "Create interest forecast [Beta]",
        "description": "Request a forecast of the gross interest and the gross balance that an interest-bearing account is expected to have on `forecast_date`.\n\nThe forecast is asynchronous. The `200` response only confirms receipt of the request and does not contain forecast values. A failure event reports any problem with the interest plan or account.\n\nThe following events deliver endpoint results:\n- [Interest forecast succeeded](https://developers.pismo.io/events/docs/interest-engine-interest-forecast-success-1) when the forecast is calculated\n- [Interest forecast failed](https://developers.pismo.io/events/docs/interest-engine-interest-forecast-failure-1) when the forecast cannot be calculated\n\nIf a request repeats a `forecast_id`, the endpoint still returns `200`, and an Interest forecast failed event reports the message `The provided forecast_id has already been used.`\n\nIn rare cases, such as a retry after a temporary failure, you can receive the same event more than once. All events for a request carry its `forecast_id`, so you can use it to recognize and ignore a repeated event.\n",
        "tags": [
          "Interest engine"
        ],
        "operationId": "post-v1-interest-forecast",
        "parameters": [
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Authorization"
          }
        ],
        "requestBody": {
          "description": "Interest forecast request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterestForecastRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterestForecastResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/401Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          }
        }
      }
    }
  }
}
```