List banks with their accounts
const url = 'https://app.commitly.com/api/banks/?page_size=100';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.commitly.com/api/banks/?page_size=100' \ --header 'Authorization: Bearer <token>'Returns the banks connected to the company, each with its bank accounts. Includes online and offline accounts.
Group level (Enterprise Edition): called with group-level credentials, the response
contains the banks of all companies in the group. The tenant field identifies
the owner.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page number, starting at 1. When paging through results, read this value
from the next link and send it to the documented base URL.
Number of records per page. Default 100, maximum 1000; larger values are reduced to 1000.
Responses
Section titled “Responses”Paginated list of banks.
object
Total number of matching records.
URL of the next page, or null on the last page. The host name may differ
from the documented base URL; read page from it and call the documented
base URL.
URL of the previous page, or null on the first page.
object
object
Bank data embedded in an account.
object
Present in GET /accounts/ only.
object
Short form of a bank account, embedded in transactions.
object
Bank name. Present in the create-transactions response only.
Present in the create-transactions response only.
ISO 4217 currency code.
Account type as supplied by the bank provider (free text, e.g. Checking). Empty for offline accounts.
Account status. Only offline accounts accept transactions via
POST /accounts/{account_id}/transactions/; accounts with status API or
DISCONNECTED, and accounts linked to a bank connection, do not.
Example
{ "count": 2, "next": null, "previous": null, "results": [ { "id": 3001, "accounts": [ { "id": 4001, "bank": { "open_banking_connection_id": null, "name": "Offline Bank", "bic": "" }, "transaction_count": 1988, "currency": "EUR", "date_created": "2021-01-21T08:54:20.387933Z", "date_updated": "2021-03-03T16:32:25.553579Z", "name": "Cash account", "alias": "", "iban": "", "type_name": "", "balance": 12745, "overdraft_limit": null, "status": "OFFLINE", "last_successful_update": null, "last_update_attempt": null, "banking_api_account": null } ], "date_created": "2021-01-21T08:54:20.380347Z", "date_updated": "2021-03-03T16:32:25.558301Z", "open_banking_connection_id": null, "name": "Offline Bank", "bic": "", "tenant": 19 }, { "id": 3002, "accounts": [ { "id": 4002, "bank": { "open_banking_connection_id": 5001, "name": "Example Bank", "bic": "EXAMPLEXXXX" }, "transaction_count": 1082, "currency": "EUR", "date_created": "2022-05-05T13:10:13.354781Z", "date_updated": "2024-01-11T10:51:33.342193Z", "name": "Checking account", "alias": "Main", "iban": "DE89370400440532013000", "type_name": "Checking", "balance": 60360.68, "overdraft_limit": 0, "status": "UPDATED", "last_successful_update": "2024-01-11T10:50:47Z", "last_update_attempt": "2024-01-11T10:50:46Z", "banking_api_account": 6001 } ], "date_created": "2022-05-05T13:10:13.300000Z", "date_updated": "2022-05-05T13:10:13.300000Z", "open_banking_connection_id": 5001, "name": "Example Bank", "bic": "EXAMPLEXXXX", "tenant": 19 } ]}The access token is invalid or has expired. Request a new token. The message is
localized (see Accept-Language).
object
Error message.
Present only if the company’s edition does not include the function; value billing_plan_permission_denied.
Example
{ "detail": "Invalid token."}Headers
Section titled “Headers”Authentication scheme, Bearer.
Example
BearerNo access token was sent, or the credentials are not allowed to call this
endpoint. If the company’s COMMITLY edition does not include the requested
function, the body additionally contains
"code": "billing_plan_permission_denied".
object
Error message.
Present only if the company’s edition does not include the function; value billing_plan_permission_denied.
Example
{ "detail": "User must be authenticated to access this resource."}
