For the complete documentation index, see llms.txt. This page is also available as Markdown.

๐ŸฆHow to get your account, balance, and transaction data

The Account information API allows you access to your account and transaction data. It can be used to retrieve things like account details and balances.

Using Postman

If youโ€™re new to APIs and want to get familiar with using the endpoints, we recommend you create a Postman account (it's free) and use the Postman collections provided to test things out.

Investec Programmable Banking Postman Collection

It includes collections for the ๐Ÿฆ Private Banking, ๐Ÿงฐ Corporate Investment Banking (CIB) and ๐Ÿ’ณProgrammable card APIs.

1. Get your accounts and account ID with Postman

Follow these steps for ๐Ÿฆ Private Banking and ๐Ÿงฐ CIB, using the appropriate Postman collection and API endpoints as above.

  1. Ensure have authenticated and pasted in your bearer token into the "Variables" tables.

  2. Navigate to the Accounts folder and the GET Accounts query

  3. Hit Send to make a call to the account information API endpoint (no additional parameters need to be set).

The Accounts query will returns accountID as well as account balance for ๐Ÿงฐ CIB.

The JSON response will include all of your accounts and each account has a unique ID (accountID) that you will use when transacting against it.

Example response for ๐Ÿฆ Private Banking
Example response for ๐Ÿงฐ CIB

2. Get your account balance with Postman

Follow these steps for ๐Ÿฆ Private Banking using the appropriate Postman collection and API endpoints as above. The account balance for ๐Ÿงฐ CIB is included in the Get Accounts request.

  1. Retrieve the accountID from your previous call to get accounts.

  2. Head over to the "Variables" table to insert your accountID. You can also set it under the Params tab on the query page.

  3. Navigate to the Accounts folder and the GET Account Balance query .

  4. Hit Send to make a call to the API endpoint.

Example response for ๐Ÿฆ Private Banking

3. Get your transaction data with Postman

Follow these steps for ๐Ÿฆ Private Banking and ๐Ÿงฐ CIB, using the appropriate Postman collection and API endpoints as above.

  1. Ensure you have added your accountID to the "Variables" table

  2. Navigate to the GET Account transactions query and set the dates for which you would like to view the transactions by selecting fromDate and toDate in the Query params table and adding the dates.

  3. fromDate and toDate can be any formatted ISO 8601 date [Example of formatted date: 1999-09-09]].

  4. Hit Send to make a call to the API endpoint.

Example response for ๐Ÿฆ Private Bank
Example response for ๐Ÿงฐ CIB

Pro Tips:

  • You may have noticed, the endpoint accepts a pagination parameter for when you need to iterate through a longer transaction history.

  • Filtering can be done using the postingdate

    • postingdate is the date at which the transaction affects your balance

    • transactiondate is the date on which the transaction took place (day the card was physically swiped)

cuRL code snippets

๐Ÿฆ Private Banking

Get accounts and accountID

Get account balance

Get transaction data

๐Ÿงฐ CIB

Get accounts, accountID and account balance

Get transaction data

Last updated