Account type lacks typed org; conn_id/connections model never populated by live bridge #1
Labels
No labels
P0
P1
P2
P3
next
project/simplefin-api
ready-for-agent
ready-for-human
review
waiting
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/simplefin-api#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Findings
Live /accounts response structure
Each account hash contains: id, name, currency, balance, available-balance, balance-date, transactions, holdings, org. The
orgsub-hash has domain, name, sfin-url, url, id. There is NO top-levelconnectionsarray and NOconn_idon accounts.Gem model mismatch
Gem models
Accountwithconn_id(always nil on the wire) andAccountSetwith aconnectionsarray ofConnection(lib/simplefin_api/types.rb lines 35-38). No typedorgaccessor exists. Org name is only reachable viaaccount.raw[:org][:name].Evidence
docs/spec-analysis.md lines 113-114 already note example fields reachable only through
#raw.Impact
Consumers cannot attribute accounts to a bank through the typed API. Every account came back with no org in a 13-account join.
Proposed fix
Add an
orgattribute (Org type: domain, name, sfin_url, url, id) toAccount; drop or de-scopeConnection/conn_id; reconcile docs/spec-analysis.md and docs/design.md.Verification
Re-run smoke against all 13 accounts; org names resolve.
Discoverer: /home/jared/projects/finance, session id unavailable, 2026-09-17. Smoke-testing simplefin_api v0.1.0 against live SimpleFIN Bridge revealed account type lacks typed org accessor.