API Documentation

Querying of list calls

LIST calls (GET /entity) can be filtered using a query parameter.

When using REST, these query parameters are built like this: query[FIELD]=VALUE and for an operator, filters look like this: query[FIELD][OPERATOR]=VALUE.

Using the exact key multiple times will result in the VALUE being aggregated into an array in the API. By default, they will result in an IN query:

<apiServer>/api/transactions?query[kind]=CK&query[kind]=RG

It is equal to:

<apiServer>/api/transactions?query[kind][$in]=CK&query[kind][$in]=RG

Negative matching is done using the $neoperator:

<apiServer>/api/transactions?query[kind][$ne]=CK

For pagination settings please consult the api definition, e.g. /api/identities/identities-list.

Operators

OperatorNameDescriptionUsage Example
$eqEqualExact match of the valuequery[FIELD]=VALUE or query[FIELD][$eq]=VALUE
$neNot equalNegative match of the value. The value of returned items is not equal to the queried value.query[FIELD][$ne]=VALUE
$inInValues of the returned items are one of the queried values.query[FIELD][$in]=VALUE1&query[FIELD][$in]=VALUE2
$notInNot inValues of the returned items do not contain the queried values.query[FIELD][$notIn]=VALUE&query[FIELD][$notIn]=VALUE2
$likeLikePartial match of the value, use % as wildcards. %ayment% will return every item containing ayment in the specified field.query[FIELD][$like]=VALUEExample: query[label][$like]=%ayment%
$gtGreater thanValues of returned items are greater than the queried value.query[FIELD][$gt]=VALUEExample: query[valuedate][$gt]=2023-01-01
$gteGreater than or equalValues of returned items are greater than or equal to the queried value.query[FIELD][$gte]=VALUEExample: query[valuedate][$gte]=2023-01-01
$ltLess thanValues of returned items are less than the queried value.query[FIELD][$lt]=VALUEExample: query[valuedate][$lt]=2023-01-01
$lteLess than or equalValues of returned items are less than or equal to the queried value.query[FIELD][$lte]=VALUEExample: query[valuedate][$lte]=2023-01-01
$isIsCompare value to nullquery[FIELD][$is]=$null
$notNotCompare value to not nullquery[FIELD][$not]=$null

Value Operators

OperatorNameDescriptionUsage Example
$nullnullCompare value to nullquery[FIELD][$is]=$null
$nownowCompare value to nowquery[FIELD][OPERATOR]=$now

Examples

Search Transactions by label

<apiServer>/api/transactions?query[label][$like]=%pay%

Filter Transactions using $in and $notIn

<apiServer>/api/transactions?query[kind][$notIn][]=RG&query[kind][$notIn][]=DR&query[kind][$notIn][]=RR&query[kind][$notIn][]=CF&query[kind][$notIn][]=PA&query[method][$in][]=RM&query[method][$in][]=PP&query[method][$in][]=WT&query[method][$in][]=DD&query[method][$in][]=CT&query[method][$in][]=SO&query[method][$in][]=AV&query[method][$in][]=BP&query[method][$in][]=AD&query[modified][$gt]=2022-02-02T01:03:38.767Z&query[resultcode]=0&query[valuedate][$gt]=2016-01-01