> ## 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. # Legal Entity by ID > Retrieves a single legal entity by identifier **Security** The requesting user must have the following permission to retrieve a legal entity: - Administration → Legal Entities → View Legal Entities ## OpenAPI ````json GET /public/v1/core/legal-entities/{id} { "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/core/legal-entities/{id}": { "get": { "tags": [ "core" ], "summary": "Legal Entity by ID", "description": "Retrieves a single legal entity by identifier\n\n**Security**\n\nThe requesting user must have the following permission to retrieve a legal entity:\n\n- Administration → Legal Entities → View Legal Entities", "parameters": [ { "$ref": "#/components/parameters/TenantId" }, { "name": "id", "in": "path", "description": "Legal entity identifier (uuid)", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Legal entity details", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/LegalEntity" } }, "application/json": { "schema": { "$ref": "#/components/schemas/LegalEntity" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LegalEntity" } } } }, "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": { "LegalEntity": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "number": { "type": "string" }, "isActive": { "type": "boolean" }, "taxId": { "type": "string" }, "stateId": { "type": "string" }, "payrollProviderId": { "type": "string" }, "address1": { "type": "string" }, "address2": { "type": "string" }, "city": { "type": "string" }, "state": { "type": "string" }, "zipCode": { "type": "string" }, "country": { "type": "string" } } } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````