The Query Service acts as an intermediary between external systems and the Clearingworks Business Intelligence (BI) system. It allows for retrieving information through APIs without modifying the existing API structure. New queries can be added by configuring the BI system, eliminating the need for code changes. The service provides functionality to list available queries, get the metadata for the query (including parameters and results), and to execute the queries.
Run a query for the given criteria.
Success
Internal Server Error
{- "parameterList": [
- {
- "name": "exportDate",
- "dataType": "String",
- "operator": "EQUALS",
- "minValue": "0",
- "maxValue": "99999",
- "valueList": [
- "string"
]
}
]
}
{- "queryPath": "Business Units",
- "parameterDefs": [
- {
- "name": "importDate",
- "description": "Date the transaction was imported",
- "dataType": "String",
- "validValues": [
- "string"
], - "required": "true",
- "validOperators": [
- "N/A"
], - "defaultOperator": "=",
- "defaultMinValue": "-1bod",
- "defaultMaxValue": "+1eod",
- "minValidValue": "0",
- "maxValidValue": "9999999.99",
- "maxValidRange": 30
}
], - "rowType": "APITransaction",
- "populatedFields": [
- {
- "objectType": "Statement",
- "name": "hoaId",
- "label": "Homeowner Association",
- "description": "Homeowner Association Identifier which must be unique",
- "builtIn": false,
- "dataType": "String",
- "defaultValue": "string",
- "validValues": [
- "string"
], - "required": "true",
- "editable": "true"
}
], - "sortableFields": [
- "string"
]
}
Retrieve the available query parameters and row type for a query.
Success
Not found
Internal Server Error
{- "queryPath": "Business Units",
- "parameterDefs": [
- {
- "name": "importDate",
- "description": "Date the transaction was imported",
- "dataType": "String",
- "validValues": [
- "string"
], - "required": "true",
- "validOperators": [
- "N/A"
], - "defaultOperator": "=",
- "defaultMinValue": "-1bod",
- "defaultMaxValue": "+1eod",
- "minValidValue": "0",
- "maxValidValue": "9999999.99",
- "maxValidRange": 30
}
], - "rowType": "APITransaction",
- "populatedFields": [
- {
- "objectType": "Statement",
- "name": "hoaId",
- "label": "Homeowner Association",
- "description": "Homeowner Association Identifier which must be unique",
- "builtIn": false,
- "dataType": "String",
- "defaultValue": "string",
- "validValues": [
- "string"
], - "required": "true",
- "editable": "true"
}
], - "sortableFields": [
- "string"
]
}