/accounts endpoint to:
- Get all the accounts of an account holder
- Get account details
- Get account balances
- Get account transactions
Requirements
Get all accounts of an account holder
To get a list of all Adyen business accounts associated with an account holder:-
Make a GET
/accountsrequest. In the request header, make sure to add theconsent_idrelated to the account. Get all accounts by consent ID -
Check the response for the list of accounts associated with an account holder and the details about each account. The response is an array of accounts, where each array item contains the following fields:
Get account details
To get detailed information for a specific account identified by itsresourceId:
-
Make a GET
/accounts/{resourceId}request, whereresourceIdis the identification of the account that you received in the GET/accountsresponse. In the request header, make sure to add theconsent_idrelated to the account. Get account details -
The response of the request may look like this:
Get account balances
To get balance information for a specific account identified by itsresourceId:
-
Make a GET
/accounts/{resourceId}/balancesrequest, whereresourceIdis the identification of the account that you received in the GET/accountsresponse. In the request header, make sure to add theconsent_idrelated to the account. Get account balances -
Check the response for details about the account’s IBAN, currency, and a list of balances, each detailing the balance type and amount. The response contains the following fields:
Get account transactions
To get transaction information for a specific account identified by itsresourceId:
- Make a GET
/accounts/{resourceId}/transactionsrequest with the following query parameters, whereresourceIdis the identification of the account that you received in the GET/accountsresponse. In the request header, make sure to add theconsent_idrelated to the account.
Get account transactions
-
Check the response for details about the account’s IBAN, currency, and a list of transactions. The response is an array of transactions, each detailing booking date, transaction amount, and creditor information. If consent has been granted for balances, you will also see an array of balances with details. At the end of the response you will see links, to manage the length we implement pagination. These links can be the previous and next pages, as well as direct links to account details.
See also
