---
title: "Sandbox: Create an Account Statement"
method: POST
path: "/simulations/account_statements"
---

# Sandbox: Create an Account Statement

`POST /simulations/account_statements`

Simulates an [Account Statement](#account-statements) being created for an account. In production, Account Statements are generated once per month. As in production, the simulated statement covers the previous calendar month.

## Request body

- SandboxCreateAnAccountStatementParameters
  - `account_id` string, required — The identifier of the Account the statement is for.

## Response `200`

Account Statement

- AccountStatement — Account Statements are generated monthly for every active Account. You can access the statement's data via the API or retrieve a PDF with its details via its associated File.
  - `account_id` string, required — The identifier for the Account this Account Statement belongs to.
  - `created_at` string, date-time, required — The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Account Statement was created.
  - `ending_balance` integer, required — The Account's balance at the end of its statement period.
  - `file_id` string, required — The identifier of the File containing a PDF of the statement.
  - `id` string, required — The Account Statement identifier.
  - `loan` object, nullable, required — The loan balances.
    - `due_at` string, date-time, nullable, required — The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the loan payment is due.
    - `due_balance` integer, required — The total amount due on the loan.
    - `past_due_balance` integer, required — The amount past due on the loan.
  - `starting_balance` integer, required — The Account's balance at the start of its statement period.
  - `statement_period_end` string, date-time, required — The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time representing the end of the period the Account Statement covers. The statement covers all transactions up to, but not including this timestamp. Usually, this is the beginning of the following month.
  - `statement_period_start` string, date-time, required — The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time representing the start of the period the Account Statement covers. This is the first moment of the statement period and is inclusive. Usually, this is the beginning of the month this statement covers.
  - `type` 'account_statement', required — A constant representing the object's type. For this resource it will always be `account_statement`.

## Other responses

- `4XX` — Error
- `5XX` — Error

---

[API](https://skmtc.dev/increase/apis/increase-api-2.md) · [All operations](https://skmtc.dev/increase/apis/increase-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/increase/apis/increase-api-2/revisions/484949ba369c?raw)
