walterl.investec-api.accounts
accounts
(accounts token)Obtain a list of accounts in associated profile.
token as returned by walterl.investec-api.auth/access-token.
https://developer.investec.com/programmable-banking/#get-accounts
=> (accounts token)
[{:account-id "172878438321553632224",
:account-name "Mr John Doe",
:account-number "10010206147",
:reference-name "My Investec Private Bank Account",
:product-name "Private Bank Account"}]
balance
(balance token account-id)Obtain a specified account’s balance.
token as returned by walterl.investec-api.auth/access-token.
https://developer.investec.com/programmable-banking/#get-account-balance
=> (balance token "172878438321553632224")
{:account-id "172878438321553632224",
:current-balance 28857.76,
:available-balance 98857.76,
:currency "ZAR"}
transactions
(transactions token account-id opts)Retrieves all transactions for specified account, optionally filtered by :transaction-type, :from-date and/or :to-date.
token as returned by walterl.investec-api.auth/access-token.
https://developer.investec.com/programmable-banking/#get-account-transactions
=> (transactions token
"172878438321553632224"
{:transaction-type :fees-and-interest
:from-date (t/minus (t/local-date-time) (t/months 2))
:to-date (t/minus (t/local-date-time) (t/months 1))})
[{:description "MONTHLY SERVICE CHARGE",
:amount 535.0,
:running-balance 28857.76,
:card-number nil,
:posting-date "2020-06-11",
:type :debit,
:account-id "172878438321553632224",
:status :posted,
:action-date "2020-11-10",
:transaction-date "2020-06-10",
:transaction-type :fees-and-interest,
:value-date "2020-06-10",
:posted-order 13379}
{:description "CREDIT INTEREST",
:amount 31.09,
:running-balance 29392.76,
:card-number nil,
:posting-date "2020-06-11",
:type :credit,
:account-id "172878438321553632224",
:status :posted,
:action-date "2020-11-10",
:transaction-date "2020-06-10",
:transaction-type :fees-and-interest,
:value-date "2020-06-10",
:posted-order 13378}]