# Retrieve Filtered Contract Get record(s) using filters Endpoint: GET /rest/2.0/CONTRACT 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.Created` (string) System controlled field: Date and time the record was created - `retrieveResponse.Updated` (string) System controlled field: Date and time the record was last updated - `retrieveResponse.CreatedUserId` (string) System controlled field: Id of the user that created the record - `retrieveResponse.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `retrieveResponse.AccountId` (string) Account ID: Parent Id - `retrieveResponse.Id` (string) ID - `retrieveResponse.EndDate` (string) End Date - `retrieveResponse.OnEndDate` (string) On End Date - `retrieveResponse.RateClassId` (integer) Rate Class: Allows the selection of an existing rate class in the system to serve as a starting point for the contract rates. - `retrieveResponse.ContractStatus` (string) ContractStatus - `retrieveResponse.ContractNumber` (string) Number: Indicates the unique contract identifier. - `retrieveResponse.StartDate` (string) Start Date ## 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