# Retrieve Filtered Account Get record(s) using filters Endpoint: GET /rest/2.0/ACCOUNT Version: 1.0 Security: JWT ## Query parameters: - `queryAnsiSql` (string, required) SQL Where part ## Header parameters: - `sessionId` (string, required) ## Response 200 fields (application/json): - `retrieveResponse` (object) - `retrieveResponse.Id` (string) Account ID: ACCOUNT_ID - `retrieveResponse.ParentAccountId` (integer) Parent Account - `retrieveResponse.Name` (string) Account Name: this is some long help - `retrieveResponse.Status` (string) Status - `retrieveResponse.Created` (string) System controlled field: Date and time the record was created - `retrieveResponse.Description` (string) Description - `retrieveResponse.Updated` (string) System controlled field: Date and time the record was last updated - `retrieveResponse.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `retrieveResponse.CreatedUserId` (string) System controlled field: Id of the user that created the record - `retrieveResponse.AccountTypeId` (string) Account Type - `retrieveResponse.InvoiceAtThisLevel` (integer) Invoice at this level: ACCOUNT_INVOICE_LEVEL - `retrieveResponse.RateHierarchy` (integer) Restrict Rate Hierarchy: Check this attribute if the rates will be taken from the context of the current account (e.g. account product, account package product, or contract rate) and the product or package product defaults only. The rating engine will no longer obtain a rate from the parent account(s) even if they exist - `retrieveResponse.ActivityTimeZone` (string) Activity Time Zone: Specifies the time zone for usage conversion on the invoice. - `retrieveResponse.AllowPricingInDifferentCurrency` (integer) Allow Different Currency: If selected, the currency used for product pricing can be different from the Invoice Currency. For example, the pricing can be represented in EUR, but the invoice will be in USD. Checking this box displays a new Pricing Grid. - `retrieveResponse.BillableAccountId` (string) BillableAccountId - `retrieveResponse.CountryId` (integer) CountryId: Country - `retrieveResponse.BillableBillingProfileId` (integer) BillableBillingProfileId - `retrieveResponse.CollectorUserId` (integer) Collector - `retrieveResponse.DateDisplayFormat` (string) Date Display Format: Set the date display mask that can be used in conversion function on reports, invoices, and layouts to display date in account's format. You can use the following abbreviations to define date format: DD - day, MM - Month, YYYY -- Year, HH -- hour(12 hour), HH24 - hour(24 hour), MI - minute, SS - seconds, TZR - timezone, TZH - timezone hour, TZM - timezone minute. ## Response 400 fields (application/json): - `error` (string) Bad request - `message` (string) Bad request ## Response 401 fields (application/json): - `error` (string) Unauthorized - `message` (string) Unauthorized ## Response 404 fields (application/json): - `error` (string) Not found - `message` (string) Not found ## Response 429 fields (application/json): - `error` (string) Too many requests - `message` (string) Too many requests ## Response 500 fields (application/json): - `error` (string) Internal error - `message` (string) Internal error