Ask the client for an account's statement or export over a date range, held 10 seconds (#2587 p9)
Changed onA 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.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Request body
Response
The sent message and its hold
Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info