> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/admin/bank-accounts/list-bank-accounts.md).

# List bank accounts

Returns a paginated list of bank accounts, including inactive (soft-deleted) ones.

Use `id`, `bank`, or `iban` to narrow the list; each is an exact match. Query parameters other than the ones listed below are ignored.

```json
{"openapi":"3.1.0","info":{"title":"Admin API","version":"1.0.0"},"tags":[{"name":"Bank Accounts","description":"Administrative endpoints for **bank accounts** — the bank transfer (money order / EFT) accounts a customer can pay into when paying by bank transfer. Each account belongs to a bank and is identified by its IBAN.\n\n## Core Capabilities\n\n**1. Listing & Filtering**\n* Retrieve a paginated list of bank accounts, including inactive (soft-deleted) ones.\n* Filter by identifier, bank, and IBAN, each an exact match.\n\n**2. Account Lifecycle Management**\n* Create a bank account, fully or partially update it, and deactivate it.\n* The IBAN is unique across all accounts; an account whose IBAN already belongs to another account is rejected.\n\n## Deletion Semantics\n\nDeleting a bank account is a **soft delete**: the record is not removed, its `is_active` flag is set to `false` instead. A soft-deleted account keeps its IBAN, so the IBAN stays reserved and cannot be reused by a new account. The list endpoint still returns inactive accounts; filter on `is_active` at the client when only active accounts are wanted.\n\n## Error Codes\n\nRequests that are well-formed but conflict with a business rule are answered with `406 Not Acceptable` and carry the following code.\n\n| Code | Meaning |\n|------|---------|\n| `bank_account_100` | An account with the given IBAN already exists. Raised on create and on update. |\n\n## Dynamic Settings & Environment Variables\n\nNo dynamic settings (`dj_dynamic_settings`) are read by these endpoints. The dynamic settings registered by the payments module (`THREE_D_SECURE_ENABLED`, `THREE_D_SECURE_RULES`, `INSTALLMENT_FILTERS`, `LOYALTY_MONEY_ENABLED`, `APPLE_PAY_DOMAIN_ASSOCIATION`, `INSTALLMENT_PROVIDERS`, `SUBSCRIPTION_PRODUCT_ATTRIBUTE_KEY`) govern card payments, installments and related storefront flows; none of them affects the bank account endpoints.\n\n**Environment variables:** No environment variables are read directly by these endpoints."}],"servers":[{"description":"Omnitron Remote Proxy (external access — recommended)","url":"https://{omnitron_url}/api/v1/remote/{channel_id}","variables":{"omnitron_url":{"default":"sandbox.akinon.com","description":"Omnitron server URL (e.g., {omnitron.akinon.com})"},"channel_id":{"default":"1","description":"The channel identifier the remote request is routed through"}}},{"description":"Commerce API Server (internal / direct access only)","url":"https://{commerce_url}/api/v1","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Internal commerce server URL, reachable only from within the Omnitron network"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token credential sent in the Authorization header, in the form: `Token <your-token>`. Requires a staff (admin) account."}},"parameters":{"page":{"name":"page","in":"query","required":false,"description":"The page number to return.","schema":{"type":"integer","default":1}},"limit":{"name":"limit","in":"query","required":false,"description":"The number of items to return per page.","schema":{"type":"integer","default":10}},"sort":{"name":"sort","in":"query","required":false,"description":"Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (`-`) for descending order.","schema":{"type":"string"}}},"schemas":{"PaginatedBankAccountList":{"type":"object","description":"A paginated list of bank accounts.","properties":{"count":{"type":"integer","description":"Total number of bank accounts matching the request."},"next":{"type":["string","null"],"format":"uri","description":"URL of the next page, or `null` if this is the last page."},"previous":{"type":["string","null"],"format":"uri","description":"URL of the previous page, or `null` if this is the first page."},"results":{"type":"array","description":"The bank accounts on the current page.","items":{"$ref":"#/components/schemas/BankAccount"}}}},"BankAccount":{"type":"object","description":"A bank transfer account.","properties":{"pk":{"type":"integer","readOnly":true,"description":"The unique identifier of the bank account."},"bank":{"type":"integer","description":"The identifier of the bank the account belongs to."},"slug":{"type":"string","maxLength":255,"description":"The unique reference of the account."},"holder_name":{"type":"string","maxLength":255,"description":"The name of the account holder."},"iban":{"type":"string","maxLength":34,"description":"The IBAN of the account. Unique across all accounts."},"is_active":{"type":"boolean","description":"Whether the account is active. A soft-deleted account has this set to `false`."},"sort_order":{"type":"integer","description":"The position used to order accounts."},"description":{"type":["string","null"],"maxLength":255,"description":"A free-text note, or `null` when none is stored."}}},"Error":{"type":"object","description":"An error response.","properties":{"detail":{"type":"string","description":"A human-readable description of the error."}},"additionalProperties":true}},"responses":{"Unauthorized":{"description":"Authentication credentials were not provided or are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The authenticated user does not have administrator privileges.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/bank_accounts/":{"get":{"tags":["Bank Accounts"],"operationId":"listBankAccounts","summary":"List bank accounts","description":"Returns a paginated list of bank accounts, including inactive (soft-deleted) ones.\n\nUse `id`, `bank`, or `iban` to narrow the list; each is an exact match. Query parameters other than the ones listed below are ignored.","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/sort"},{"name":"id","in":"query","description":"Filter by the exact identifier of a bank account.","required":false,"schema":{"type":"integer"}},{"name":"bank","in":"query","description":"Filter by the identifier of the bank the account belongs to.","required":false,"schema":{"type":"integer"}},{"name":"iban","in":"query","description":"Filter by IBAN. Exact match.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A page of bank accounts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedBankAccountList"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.akinon.com/commerce-openapis/admin/bank-accounts/list-bank-accounts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
