Multi-Route Filters
Request Filter
Most routes support a universal request filter to control the data that you receive back in the response. Not all routes support all features of the request filter, so in any given route's documentation page, you will see a table like below, indicating what request filter options are honored by that route. Specifying a request filter not honored by that route will not cause an error, but will also have no effect. Additionally, you can specify multiple ID filters if they are supported by the route, and they will all be applied.
Filter Name |
Type |
Default Value |
Description |
startDate |
DateTime |
Current UTC DateTime - 7 Days |
Excludes all records that occurred before this date. |
endDate |
DateTime |
Current UTC DateTime |
Excludes all records that occurred after this date. |
includeDeleted |
bool |
False |
Includes deleted records that are normally excluded from the response. |
organizationIds |
List[int] |
null |
Filter results to only the specified Organization or their child records. |
accountIds |
List[int] |
null |
Filter results to only the specified Accounts or their child records. |
siteIds |
List[int] |
null |
Filter results to only the specified Sites or their child records. |
machineIdentifiers |
List[string] |
null |
Filter results to only the specified Machines or their child records. Supports specifying machines by either ID or PROSE. |
selectionIds |
List[int] |
null |
Filter results to only the specified Selections or their child records. |
productIds |
List[int] |
null |
Filter results to only the specified Products or their child records. |
Permissions Filter
All role, role right, and right related routes use the PermissionsFilter for further filtering. Its definition follows.
Filter Name |
Type |
Definition |
roleIdentifiers |
List[string] |
Filters the results to only roles that have either the specified ID or role name. |
rightIds |
List[int] |
Filters the results to only the specified rights. |
roleRightIds |
List[int] |
Filters the results to only the specified role right IDs. |
Templating Filter
All template, template group and template selection related routes use the TemplatingFilter for filtering. Its definition follows.
Filter Name |
Type |
Definition |
templateIds |
List[int] |
The template IDs you'd like to filter the result set to. |
createdBefore |
DateTime? |
Only return records created before the specified date and time. |
createdAfter |
DateTime? |
Only return records created after the specified date and time. |
modelId |
int? |
Filters the result set to only records attached to machines with this model. |
templateGroupIds |
List[int] |
Filters the result set to only records related to the specified template groups. |
templateSelectionIds |
List[int] |
Filters the result set to only records related to the specified template selections. |
Files Filter
The files, file links, and file metadata routes use the FilesFilterfor filtering. Its definition follows.
Name |
Type |
Meaning |
fileIds |
List[int] |
Filter result set to only the files whose IDs are in the list. |
fileMetadaIds |
List[int] |
Filter result set to only the file metadatas whose IDs are in the list. |
fileLinkIds |
List[int] |
Filter result set to only the file links whose IDs are in the list. |
linkedRecordIds |
List[int] |
Filter a file links result set to only links that link to the specified records. |
bucketName |
string |
Optional override. For internal use only. |
fileStatuses |
List[int] |
Filter result set to only files with the specified statuses. |
fileLinkTypes |
int |
Filter result set to only file links that link to the specified record type. |
Alert Filter
The alerts and alert metadata routes takes in an optional object to provide further filtering. Fields and meanings are:
Name |
Type |
Meaning |
alertIds |
List[int] |
Filter result set to only alerts whose IDs are in the list. |
alertCodes |
List[string] |
Filter result set to only alerts whose code is in the list. |
isUserClearable |
bool? |
Filter result set to only alerts who are/are not user clearable. |
raisedAtStart |
DateTime? |
Filter result set to only alerts that were raised after the specified UTC DateTime. |
raisedAtEnd |
DateTime? |
Filter result set to only alerts that were raised before the specified UTC DateTime. |
clearedAtStart |
DateTime? |
Filter result set to only alerts that were cleared after the specified UTC DateTime. |
clearedAtEnd |
DateTime? |
Filter result set to only alerts that were cleared before the specified UTC DateTime. |
Transaction Filter
Field Name |
Type |
Description |
transactionIdentifiers |
List[string] |
A list of transaction identifiers. The format of identifiers may vary. |
SessionFilter
Attribute |
Type |
Description |
sessionIds |
int |
The IDs of the sessions that you want to retrive. |
sessionId |
int |
The ID of the Session that the SessionEvent belongs to. |
Settings Filter
Attribute |
Type |
Description |
includeInactive |
bool |
Dictates if result set include inactiveSettings. Defaults to false. |
groupIds |
List[int] |
Filters the result set to settings belonging to one of the indicated groups. |
settingsIds |
List[int] |
Filters the result set to only the specified settings. |
Rules Filter
Attribute |
Type |
Description |
includeInactive |
bool |
Dictates if result set include inactive rules. Defaults to false. |
groupIds |
List[int] |
Filters the result set to rules belonging to one of the indicated groups. |
ruleIds |
List[int] |
Filters the result set to only the specified rules. |
applyHierarchicalFiltering |
bool |
Indicates if the result set should be hierarchicaly filtered. See GET rules for more information. |
includeRuleTree |
bool |
Changes the behavior of filters. Normally specifying multiple filters only returns data that matches all of them. Setting this to true returns all data that matches ANY provided filter. |
Credit Filter
Attribute |
Type |
Description |
gatewayIds |
List[int] |
Filters the result set to items associated with the specified gateways. |
chargeKeyIds |
List[int] |
Filters the result set to items to the specified charge keys. |
Terminal Filter
Attribute |
Type |
Description |
terminalIds |
List[int] |
Filters the result set to the specified payment terminals. |
Machine Types Filter
Attribute |
Type |
Description |
machineTypeIds |
List[int] |
Filters the result set to the specified machine types. |
Products Filter
Attribute |
Type |
Description |
isACommonProduct |
bool? |
Filter to only results that are/are not a common product. Defaults to null. |
includeDeleted |
bool |
Indicates if the result set should include products that have been deleted. Defaults to false. |
productVariantIds |
List[int] |
A list of IDs of product variants to retrieve/delete. |