> ## 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. # GL Account Balance by Date > Retrieves GL account balances as of specified date **Security** The requesting user must have the following permissions to retrieve GL account balances: - General Ledger → GL Accounts → View GL Accounts - General Ledger → GL Accounts → Access Restricted GL Accounts ## OpenAPI ````json GET /public/v1/accounting/gl-account-balances/{date} { "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/gl-account-balances/{date}": { "get": { "tags": [ "accounting" ], "summary": "GL Account Balance by Date", "description": "Retrieves GL account balances as of specified date\n\n**Security**\n\nThe requesting user must have the following permissions to retrieve GL account balances:\n\n- General Ledger → GL Accounts → View GL Accounts\n- General Ledger → GL Accounts → Access Restricted GL Accounts", "parameters": [ { "$ref": "#/components/parameters/TenantId" }, { "name": "date", "in": "path", "description": "As of date", "required": true, "schema": { "type": "string", "format": "date" } }, { "name": "locationNumbers", "in": "query", "description": "Location numbers to filter by", "required": false, "schema": { "type": "string" } }, { "name": "legalEntityNumbers", "in": "query", "description": "Legal entity numbers to filter by", "required": false, "schema": { "type": "string" } }, { "name": "glAccountNumbers", "in": "query", "description": "", "schema": { "type": "string" }, "required": false }, { "name": "glAccountNames", "in": "query", "description": "", "schema": { "type": "string" }, "required": false }, { "name": "glTypeNames", "in": "query", "description": "", "schema": { "type": "string" }, "required": false }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "minimum": 1, "maximum": 250, "default": 250 }, "required": false, "description": "Maximum number of top-level objects to return in one page." }, { "name": "continuationToken", "in": "query", "description": "", "schema": { "type": "string" }, "required": false } ], "responses": { "200": { "description": "GL account balances", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/GlAccountBalances" } }, "application/json": { "schema": { "$ref": "#/components/schemas/GlAccountBalances" } }, "text/json": { "schema": { "$ref": "#/components/schemas/GlAccountBalances" } } } }, "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": { "GlAccountBalances": { "type": "object", "additionalProperties": false, "properties": { "date": { "type": "string", "format": "date", "description": "The date the balances were calculated as of." }, "locations": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/GlAccountBalanceLocation" }, "description": "Locations in this page. pageSize pages locations, not GL accounts." }, "count": { "type": "integer", "format": "int64", "description": "Number of locations returned in this page." }, "nextLink": { "type": "string", "nullable": true, "description": "URL to retrieve the next page of locations, or null when this is the last page." } } }, "GlAccountBalanceLocation": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "description": "Location identifier." }, "name": { "type": "string", "nullable": true, "description": "Location name." }, "number": { "type": "string", "nullable": true, "description": "Location number." }, "legalEntity": { "$ref": "#/components/schemas/GlAccountBalanceLegalEntity" }, "glAccounts": { "type": "array", "nullable": true, "items": { "$ref": "#/components/schemas/GlAccountBalance" }, "description": "GL account balances for this location. Not paged — every GL account for the location is returned." } } }, "GlAccountBalanceLegalEntity": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "description": "Legal entity identifier." }, "name": { "type": "string", "nullable": true, "description": "Legal entity name." }, "number": { "type": "string", "nullable": true, "description": "Legal entity number." } } }, "GlAccountBalance": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string", "format": "uuid", "description": "GL account identifier." }, "number": { "type": "string", "nullable": true, "description": "GL account number." }, "name": { "type": "string", "nullable": true, "description": "GL account name." }, "type": { "type": "string", "nullable": true, "description": "GL account type, for example \"Equity\" or \"Current Asset\"." }, "balance": { "type": "number", "description": "Total balance as of the requested date." }, "approvedBalance": { "type": "number", "description": "Portion of the balance from approved transactions." }, "unapprovedBalance": { "type": "number", "description": "Portion of the balance from unapproved transactions." } } } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````