The cash statement for a period and one currency as a PDF, like a bank statement (one per currency the account has held)
GET
/v1/accounts/{id}/documents/statement.pdf
curl "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/documents/statement.pdf?from=2026-07-01&to=2026-09-30" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/documents/statement.pdf?from=2026-07-01&to=2026-09-30", { headers: { Authorization: `Bearer ${process.env.IDEALX_API_KEY}` },});if (!res.ok) throw new Error((await res.json()).error.code);const data = await res.json();import osimport requests
res = requests.get( "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/documents/statement.pdf?from=2026-07-01&to=2026-09-30", headers={"Authorization": f"Bearer {os.environ['IDEALX_API_KEY']}"}, timeout=30,)res.raise_for_status()data = res.json()Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”from
required
string
to
required
string
portfolioId
string
currency
Defaults to the account’s main currency
string
Defaults to the account’s main currency
Responses
Section titled “Responses”The document as a PDF
Media typeapplication/pdf
string format: binary
Not allowed
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
details
object
key
additional properties
Example
{ "error": { "code": "validation_failed" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
requestId
required
string
details
object
key
additional properties
Example
{ "error": { "code": "validation_failed" }}