cURL
curl --request POST \ --url https://acount-apis-staging-a8cdb2402163.herokuapp.com/v1/ais/accounts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "user_35100188", "merchantId": 1 } '
{ "userId": "user_2abc123def456", "merchantId": 1, "clientId": "fdae2b5e-0c10-4fc5-8860-4f3e7a00b4bb", "consentId": "ta:EjpMqkVifCjyRJ224tB18CVvenReoiKK1YWgb8J7cK85:5zKtXEAq", "accounts": [ { "accountId": "acc_2abc123def456", "bankId": "obDanske", "accountHolderName": "John Doe", "iban": "DK5000400440116243", "currency": "DKK", "balance": "1500.50", "accountType": "CURRENT", "accountDetails": {} } ], "totalAccounts": 2 }
Retrieves bank accounts using Token.io’s /accounts endpoint.
/accounts
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request ID for tracking
"user_35100188"
1
Accounts retrieved successfully
"user_2abc123def456"
"fdae2b5e-0c10-4fc5-8860-4f3e7a00b4bb"
"ta:EjpMqkVifCjyRJ224tB18CVvenReoiKK1YWgb8J7cK85:5zKtXEAq"
Show child attributes
"acc_2abc123def456"
"obDanske"
"John Doe"
"DK5000400440116243"
"DKK"
"1500.50"
"CURRENT"
2
Was this page helpful?