latestSwagger 2.02026-08-20196638916.1 KB
23d8982b533d
Data v1.Search
Query transactions
Queries transactions based on multiple parameters and returns a response containing transactions and their corresponding statistics matching the query. The query contains both fixed parameters and parameters parsed from the free text queryString. All the commands below are typically applied per word in the query and if multiple commands are found, they are concatenated with an AND operation (OR does not exist).
Query string commands
| Type | Description | Keywords |
|---|---|---|
| Tags | Searches specifically for transactions with tags. | Words starting with '#'. |
| Amount Span | Searches for transactions within the given amount span. Keywords here depend on the locality of the user. | over, under, more than, less than, around |
| Date/Time Span | Searches for transactions within the given date/time span. Keywords here depend on the locality of the user. | weekdays, weekends, today, yesterday, this week/month/year, last week/month/year, week #. |
| Category | Searches specifically for transactions with the specified category. Keywords here depend on the locality of the user. | Restaurant, Bar |
post/api/v1/search
Request body
Example request
{
"accounts": [
"87fa44ec11c4426e889a963add92b69e"
],
"categories": [
"953c4eda24554a61a9653a479e70fc96"
],
"endDate": "1455740874875",
"externalIds": [
"953c4eda24554a61a9653a479e70fc96"
],
"limit": 20,
"maxAmount": 68.42,
"minAmount": -50.49,
"offset": 20,
"order": "ASC",
"queryString": "Food this week",
"sort": "DATE",
"startDate": "1455740874875"
}Response
Successful operation.