---
title: "Ask the client for an account's statement or export over a date range, held 10 seconds (#2587 p9)"
method: POST
path: "/accountant/companies/{customerId}/bank-accounts/{bankAccountId}/statement-requests"
tags: ["Accountant Portal"]
---

# Ask the client for an account's statement or export over a date range, held 10 seconds (#2587 p9)

`POST /accountant/companies/{customerId}/bank-accounts/{bankAccountId}/statement-requests`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/bank-accounts/{bankAccountId}/statement-requests`
- Auth: HTTP bearer

A person asks the client for the statement, or an export of the transactions, of one bank account from `from` to `to` (YYYY-MM-DD, `from` on or before `to`, at most 13 months, ending no later than today). The ask is a new thread with the client whose message is held 10 seconds (`undoUntil`); its author can undo it on the thread's undo route, and an undone ask may be sent again. The server writes the text (account, range, the login holder recorded for the account; read it first from `…/statement-requests/draft`); no model is called. `subject` (1–200) and `body` (1–5000), trimmed, send the person's edited text instead (#2587 p9 "Edit in Messages"); the ask is still recorded once per account and range. 404 when the account is not this client's, 422 for a bad range, and 409 `STATEMENT_REQUEST_SENT` with `extensions.sentAt` on a repeat of the same account and range. `inboxItemId` is always null: the ask is a message, not an Inbox item. Penny never sends: every API key is refused. The configured Penny pilot receives 409 `STATEMENT_REQUEST_ALREADY_FILED` when it already holds the exact reviewed statement. No message is created in that case. When the default-off Mercury retrieval feature is enabled for the Median Labs pilot and its Documents capability is approved for Live, a complete calendar-month statement for the exact eligible Mercury depository account is retained for human review before an ask can be sent. 409 `STATEMENT_REQUEST_SOURCE_RETRIEVED` means the exact statement is pending review. A retrieval result for the current actor includes `extensions.documentId`. No message is created and nothing is reconciled or posted. 409 `AGENT_CAPABILITY_NOT_LIVE` means Documents lacks current Live approval and Mercury was not contacted. 503 `STATEMENT_SOURCE_UNAVAILABLE` means provider availability or retained evidence could not be verified; retry before contacting the client.

## Path parameters

- `customerId` string, uuid, required
- `bankAccountId` string, uuid, required

## Request body

- object
  - `from` string, date, required
  - `to` string, date, required
  - `subject` string
  - `body` string

## Response `200`

The sent message and its hold

- object
  - `success` true, required
  - `data` object, required
    - `inboxItemId` unknown, required
    - `threadId` string, uuid, required
    - `messageId` string, uuid, required
    - `sentAt` string, date-time, required
    - `undoUntil` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Request failed validation
- `503`: The connected statement could not be verified. No message was sent.

## Changes

- **2026-11-27** `1bba2b19af95`: 1 info
  - added the non-success response with the status `503`
- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/bank-accounts/:bankAccountId/statement-requests/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
