cURL
curl --request POST \ --url https://acount-apis-staging-a8cdb2402163.herokuapp.com/v1/ais/accounts/balance \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "user_35100188", "merchantId": 1, "accountId": "a:C1hTinv2QaUbNMeTmTqjoXakVgiodpzmwtRKWqsGTbaR:ZhBVAJSGzmfoR" } '
{ "userId": "user_2abc123def456", "merchantId": 1, "accountId": "a:6CpoqfjmyhfT9QAbcTZ2gcnb8egGfKLKMpxzuZPoaMLB:BzQQ5nvcb7TM4Qts", "balance": { "value": "1000.50", "currency": "DKK", "lastUpdated": "2024-01-01T12:00:00Z" }, "accountDetails": { "iban": "DK5000400440116243", "accountHolderName": "John Doe", "bankId": "bank_123" } }
Retrieves balance using Token.io’s /accounts//balance endpoint.
/accounts/{accountId}/balance
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request ID for tracking
"user_35100188"
1
"a:C1hTinv2QaUbNMeTmTqjoXakVgiodpzmwtRKWqsGTbaR:ZhBVAJSGzmfoR"
Balance retrieved successfully
"user_2abc123def456"
"a:6CpoqfjmyhfT9QAbcTZ2gcnb8egGfKLKMpxzuZPoaMLB:BzQQ5nvcb7TM4Qts"
Show child attributes
"1000.50"
"DKK"
"2024-01-01T12:00:00Z"
"DK5000400440116243"
"John Doe"
"bank_123"
Was this page helpful?