Generate account statement
Handler: GenerateAccountStatement. Validates the request and accepts statement generation as a durable background job, returning 202 Accepted. Identical requests in flight are deduplicated. Completion is delivered via account_statement_ready / account_statement_failed events. The body is an acknowledgement only.
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Body for POST /v1/accounts/{id}/statements (accounts.GetAccountStatementInput). Validate() requires format, start_date, end_date.
Response Body
application/json
curl -X POST "https://example.com/v1/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/statements" \ -H "Content-Type: application/json" \ -d '{ "format": "pdf", "start_date": "2024-01-01", "end_date": "2024-01-31" }'{
"status": "processing",
"message": "Statement generation has started. You will be notified when it is ready."
}Handler: GetAccountsBalanceByCurrency. Calculates total balance for the requested currency using active accounts only.
Paginated list of fiat accounts. Handler: GetAllAccounts. Returns a get_all envelope (data/total/total_unfiltered/has_more), NOT a bare array. Each item is an AccountListItem where balance is an integer in minor units.