List the ledger transactions of an account or a transfer
You can now read the ledger entries behind your transfers. A transfer is one object; the ledger records it as one or more transactions, such as the principal and its fee.
GET /accounts/{account_id}/transactionslists an account's transactions, newest first. Filter withfrom/to,type,transfer_idanddirection.GET /accounts/{account_id}/transactions/{transaction_id}reads one transaction by itstxn_id.GET /transfers/{transfer_id}/transactionslists what one transfer made, on every account it touched, oldest first, so a withdrawal reads hold, principal, fee. An internal transfer returns one entry per account with the sameid, so identify a transaction byaccount_idandidtogether.
Each transaction has id, transfer_id, account_id, type, flow, amount_minor (signed, a string), currency, reason, occurred_at and posted_at. type is principal, fee, hold or release; the default list shows principal and fee. Passing type replaces that default, so type=hold&type=release shows only holds and releases, and type=principal&type=fee&type=hold&type=release shows all four. A hold sets funds aside inside the account and is not money taken, so do not add it to the principal. transfer_id is null for an entry no transfer made.
Fees posted before this release can show a null transfer_id when they were charged for a deposit or an internal transfer. The account statement is unchanged and still lists transfers. See Transactions.