Skip to content

Download statements and tax pack

Goal: after the tax year ends, collect everything an accountant needs. Scope: read. Every report is generated from the ledger when you ask, so it always matches the account’s activity.

Year-end pack for an accountantYour jobIDEALX APIYour storage1GET /v1/accounts/{id}/reports/tax?year=20262sales lot by lot, income, interest, fees3GET /v1/accounts/{id}/documents/annual.pdf?year=20264GET /v1/accounts/{id}/reports/statement?format=csv5GET /v1/accounts/{id}/activity/report?format=xlsx6Save files with the account and year
Year-end pack for an accountant
  1. Your job to IDEALX API: GET /v1/accounts/{id}/reports/tax?year=2026
  2. IDEALX API to Your job: sales lot by lot, income, interest, fees
  3. Your job to IDEALX API: GET /v1/accounts/{id}/documents/annual.pdf?year=2026
  4. Your job to IDEALX API: GET /v1/accounts/{id}/reports/statement?format=csv
  5. Your job to IDEALX API: GET /v1/accounts/{id}/activity/report?format=xlsx
  6. Your job to Your storage: Save files with the account and year
You need JSON Files
Everything in a period, per portfolio and line reports/statement ?format=csv
A bank-style statement for one currency reports/cash-statement reports/cash-statement.csv, documents/statement.pdf
The tax year: sales lot by lot, income, interest, fees reports/tax ?format=csv, documents/tax.pdf
The annual pack: performance, statement and tax year reports/annual documents/annual.pdf
Positions now with value positions documents/holdings.pdf, documents/holdings.csv
Fees charged in a year fees documents/fees.pdf
Any filtered activity activity activity.csv, activity/report (PDF, CSV or Excel)

All paths are under /v1/accounts/{id}/.

GET /v1/accounts/{id}/reports/taxThe tax year in the account's country: sales lot by lot, and income; ?format=csv

year is the year the tax year ends in, in the account’s country (Australia 2026: 1 July 2025 to 30 June 2026). Without it you get the last full tax year.

Terminal window
curl "$IDEALX_API/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/reports/tax?year=2026" -H "Authorization: Bearer $IDEALX_API_KEY"
{
"jurisdiction": "AU",
"estimated": true,
"notice": "Estimated from your IDEALX records. Not tax advice.",
"year": 2026,
"label": "FY2025–26",
"from": "2025-07-01",
"to": "2026-07-01",
"capitalGains": { "method": "fifo", "holdingPeriodMonths": 12, "longTermLabel": "Held 12 months or more" },
"sales": [
{
"instrumentId": "XASX:EXW",
"quantity": "20",
"acquiredAt": "2024-09-03",
"soldAt": "2026-02-17",
"heldDays": 532,
"heldOver12Months": true,
"longTerm": true,
"matching": "lot",
"cost": { "amount": "2410.00", "currency": "AUD" },
"proceeds": { "amount": "2788.40", "currency": "AUD" },
"gain": { "amount": "378.40", "currency": "AUD" },
"inAccountCurrency": {
"cost": { "amount": "2410.00", "currency": "AUD" },
"proceeds": { "amount": "2788.40", "currency": "AUD" },
"gain": { "amount": "378.40", "currency": "AUD" }
}
}
],
"income": [
{ "instrumentId": "XASX:EXS", "kind": "dividend", "payDate": "2026-01-15", "amount": { "amount": "212.60", "currency": "AUD" } }
],
"interest": [],
"fees": [
{ "date": "2026-06-30", "description": "Platform fee, June", "amount": { "amount": "8.40", "currency": "AUD" } }
]
}
  • to is the day after the tax year ends.
  • capitalGains.method is the country’s matching method: fifo (lots, oldest first), share_pooling (the United Kingdom’s rules; matching then says same_day, bed_and_breakfast or pool) or none.
  • longTerm follows the country’s holding period, shown only: no discount is applied. Figures are estimates, not tax advice, and the PDF says so.
Terminal window
ACC=acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90
H="Authorization: Bearer $IDEALX_API_KEY"
curl -fsS -o tax-2026.pdf "$IDEALX_API/v1/accounts/$ACC/documents/tax.pdf?year=2026" -H "$H"
curl -fsS -o tax-2026.csv "$IDEALX_API/v1/accounts/$ACC/reports/tax?year=2026&format=csv" -H "$H"
curl -fsS -o annual-2026.pdf "$IDEALX_API/v1/accounts/$ACC/documents/annual.pdf?year=2026" -H "$H"
curl -fsS -o statement.csv "$IDEALX_API/v1/accounts/$ACC/reports/statement?from=2025-07-01&to=2026-06-30&format=csv" -H "$H"
curl -fsS -o holdings.pdf "$IDEALX_API/v1/accounts/$ACC/documents/holdings.pdf" -H "$H"

PDFs answer application/pdf, CSVs text/csv. Errors still answer JSON with the usual shape.

GET /v1/accounts/{id}/reports/statementA statement for a period: opening, every movement, closing; ?format=csv for a spreadsheet
Terminal window
curl "$IDEALX_API/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/reports/statement?from=2026-10-01&to=2026-10-31" \
-H "Authorization: Bearer $IDEALX_API_KEY"
{
"accountName": "Sam Taylor",
"from": "2026-10-01",
"to": "2026-10-31",
"portfolios": [
{
"id": "ptf_01937c4e8a2b7d1f9e0c3b5a6d7e8fa1",
"name": "Primary",
"lines": [
{
"instrumentId": "AUD",
"symbol": "AUD",
"name": "Australian dollar",
"isCash": true,
"opening": "17050.40",
"closing": "18250.40",
"reconciled": true,
"movements": [
{ "at": "2026-10-02T23:01:44.000Z", "kind": "deposit", "description": "Deposit from S TAYLOR", "units": "1500.00", "balance": "18550.40" },
{ "at": "2026-10-15T00:10:05.000Z", "kind": "transfer", "description": "To Long term", "units": "-300.00", "balance": "18250.40" }
]
}
]
}
]
}

Each line opens, moves and closes; reconciled: true means opening plus movements equals closing in the ledger.

GET /v1/accounts/{id}/activity/reportThe filtered activity feed as a named file: a branded PDF (at most 10000 rows), CSV or Excel workbook (D152) takes every filter of the activity feed plus format (pdf, csv or xlsx), a name, columns and summary. The file name comes from the report’s name and today’s date (Content-Disposition). At most 20 reports a minute per person, 10,000 rows per file.

Terminal window
curl -fsS -OJ "$IDEALX_API/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/activity/report?period=fy&format=xlsx&name=Year%20activity" \
-H "Authorization: Bearer $IDEALX_API_KEY"
  1. Run year-end jobs after the account’s tax year has ended in its own time zone.
  2. Store files with the account id, the tax year and the date you fetched them.
  3. Show the notice with tax figures: they are estimates, not tax advice.
  4. For bookkeeping software, use the accounting exports instead: see Export to accounting software (the same endpoints work with a personal key).