The year as a CSV for the fund's accountant
GET
/v1/accounts/{id}/retirement/pack.csv
curl "https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/retirement/pack.csv" \ -H "Authorization: Bearer $IDEALX_API_KEY"const res = await fetch("https://api.staging.idealx.com/v1/accounts/acc_01937c4e8a2b7d1f9e0c3b5a6d7e8f90/retirement/pack.csv", { 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/retirement/pack.csv", 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”year
The year the financial year ends in
integer | null
The year the financial year ends in
Responses
Section titled “Responses”CSV
Media typetext/csv
string
Not a retirement fund
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" }}