> ## Documentation Index > Fetch the complete documentation index at: https://docs.restaurant365.com/llms.txt > Use this file to discover all available pages before exploring further. # Bank Accounts > Retrieves bank accounts for the current tenant with filtering and pagination support **Security** The requesting user must have the following permission to retrieve bank accounts: - Banking → Bank Accounts → View Bank Accounts _Masked fields:_ the bank account number and routing number return masked (`****` followed by the last four characters) unless the user also has: - Banking → Bank Accounts → View Bank Account Numbers - Banking → Bank Accounts → View Routing Numbers ## OpenAPI ````json GET /public/v1/accounting/general-ledger/bank-accounts { "openapi": "3.0.1", "info": { "title": "R365 Public API", "contact": { "name": "R365 Services Team", "email": "r365@restaurant365.com" }, "version": "1.0" }, "security": [ { "Bearer": [] } ], "paths": { "/public/v1/accounting/general-ledger/bank-accounts": { "get": { "tags": [ "accounting" ], "summary": "Bank Accounts", "description": "Retrieves bank accounts for the current tenant with filtering and pagination support\n\n**Security**\n\nThe requesting user must have the following permission to retrieve bank accounts:\n\n- Banking → Bank Accounts → View Bank Accounts\n\n_Masked fields:_ the bank account number and routing number return masked (`****` followed by the last four characters) unless the user also has:\n\n- Banking → Bank Accounts → View Bank Account Numbers\n- Banking → Bank Accounts → View Routing Numbers", "parameters": [ { "$ref": "#/components/parameters/TenantId" }, { "name": "modifiedOnStart", "in": "query", "required": false, "description": "ISO-8601 UTC timestamp lower bound (inclusive). Returns accounts modified on or after this value", "schema": { "type": "string", "format": "date-time" } }, { "name": "modifiedOnEnd", "in": "query", "required": false, "description": "ISO-8601 UTC timestamp upper bound (inclusive). Returns accounts modified on or before this value", "schema": { "type": "string", "format": "date-time" } }, { "name": "pageSize", "in": "query", "required": false, "schema": { "type": "integer", "format": "int32", "minimum": 1, "maximum": 250, "default": 250 }, "description": "Maximum number of top-level objects to return in one page." }, { "name": "continuationToken", "in": "query", "required": false, "description": "Continuation token for retrieving the next page of results", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Paginated list of bank accounts.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetBankAccountsResponse" } } } }, "400": { "description": "Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range." }, "401": { "description": "Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant." }, "403": { "description": "Forbidden — the caller lacks the permission required for this operation." }, "404": { "description": "Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired." }, "409": { "description": "Conflict — the request conflicts with the current state of the resource and cannot be applied." }, "422": { "description": "Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid." }, "429": { "description": "Too Many Requests — the caller has exceeded the rate limit; retry after a short delay." }, "500": { "description": "Internal Server Error — an unexpected error occurred while processing the request." } } } } }, "components": { "parameters": { "TenantId": { "name": "x-r365-context-tenant-id", "in": "header", "required": true, "description": "Identifies the R365 tenant the request applies to. Required on every request.", "schema": { "type": "string" } } }, "schemas": { "GetBankAccountsResponse": { "type": "object", "properties": { "bankAccounts": { "type": "array", "items": { "$ref": "#/components/schemas/QueryBankAccount" }, "description": "Bank Accounts.", "nullable": true }, "nextLink": { "type": "string", "description": "URL to retrieve the next page of results, or null if this is the last page.", "nullable": true } }, "additionalProperties": false, "description": "Response containing Bank Accounts with pagination support." }, "QueryBankAccount": { "type": "object", "properties": { "id": { "type": "string", "description": "Bank Account identifier.", "format": "uuid" }, "name": { "type": "string", "description": "Bank Account Name (GL Account name).", "nullable": true }, "number": { "type": "string", "description": "Bank Account Number (GL Account number).", "nullable": true }, "parentAccount": { "$ref": "#/components/schemas/ParentBankAccount" }, "glType": { "type": "string", "description": "GL Type name.", "nullable": true }, "legalEntity": { "$ref": "#/components/schemas/BankAccountEntityReference" }, "bank": { "$ref": "#/components/schemas/EntityReferenceGuid" }, "accountType": { "type": "string", "description": "Account type (Checking, Savings, etc.).", "nullable": true }, "bankAccountNumber": { "type": "string", "description": "Bank account number (masked based on permissions).", "nullable": true }, "bankRoutingNumber": { "type": "string", "description": "Bank routing number.", "nullable": true }, "bankIcd": { "type": "integer", "description": "Bank ICD (internal bank code).", "format": "int64", "nullable": true }, "positivePayBankID": { "type": "string", "description": "Positive Pay Bank identifier.", "nullable": true }, "achImmediateOrigin": { "type": "string", "description": "ACH immediate origin.", "nullable": true }, "achCompanyId": { "type": "string", "description": "ACH company identifier.", "nullable": true }, "achCompanyName": { "type": "string", "description": "ACH company name.", "nullable": true }, "defaultLocation": { "$ref": "#/components/schemas/BankAccountLocationReference" }, "createdOn": { "type": "string", "description": "Created date.", "format": "date-time" }, "createdBy": { "$ref": "#/components/schemas/EntityReferenceGuid", "description": "User who created the query bank account." }, "modifiedOn": { "type": "string", "description": "Modified date.", "format": "date-time", "nullable": true }, "modifiedBy": { "$ref": "#/components/schemas/EntityReferenceGuid", "description": "User who last modified the query bank account." } }, "additionalProperties": false, "description": "Public API DTO for a bank account returned by the GET bank-accounts endpoint." }, "ParentBankAccount": { "type": "object", "properties": { "id": { "type": "string", "description": "Parent account identifier.", "format": "uuid" }, "name": { "type": "string", "description": "Parent account name.", "nullable": true }, "number": { "type": "string", "description": "Parent account number.", "nullable": true }, "glType": { "type": "string", "description": "Parent account GL type.", "nullable": true } }, "additionalProperties": false, "description": "Reference to a parent bank account." }, "BankAccountEntityReference": { "type": "object", "properties": { "id": { "type": "string", "description": "Entity identifier.", "format": "uuid" }, "name": { "type": "string", "description": "Entity name.", "nullable": true }, "number": { "type": "string", "description": "Entity number (optional, populated for legal entities).", "nullable": true } }, "additionalProperties": false, "description": "Reference to an entity with id and name." }, "EntityReferenceGuid": { "type": "object", "properties": { "id": { "type": "string", "description": "The identifier of this entity.", "format": "uuid" }, "name": { "type": "string", "description": "The name of this entity.", "nullable": true } }, "additionalProperties": false, "description": "Base class for entity references." }, "BankAccountLocationReference": { "type": "object", "properties": { "id": { "type": "string", "description": "Location identifier.", "format": "uuid" }, "name": { "type": "string", "description": "Location name.", "nullable": true }, "number": { "type": "string", "description": "Location number.", "nullable": true }, "legalEntity": { "$ref": "#/components/schemas/BankAccountEntityReference" } }, "additionalProperties": false, "description": "Reference to a location with legal entity." } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````