---
updatedAt: 2026-06-16T08:22:44.000Z
agentTools:
  projectIndex: https://developers.toriihq.com/llms.txt
---

# List transactions

Returns recognized (mapped) expense transactions by default.<br/><br/>Request `mappingReason` in `fields` to see why a transaction has its matching status (e.g. `The ignored word "trip" was found`, `Search term "atlassian" is the longest found`).<br/><br/>`amount` is an object: `value`/`currency` are the original transaction amount; `convertedValue` is that amount in the organization display currency. Values are in minor currency units (e.g., cents).<br/><br/>Cursor-paginated: pass `size` for the page size and the returned `nextCursor` as `cursor` for the next page.<br/><br/>Sort with `sort=<field>:asc|desc`; sorting by `amount` uses the display-currency converted value. See `transactionSortSchema` for the sortable fields.<br/><br/>Bound a period with `filters` on `transactionDate`, using the `dayOnOrAfter` / `dayOnOrBefore` operators — they match whole days, so a time component in the value is ignored rather than cutting that day short.<br/><br/>Use `aggs` for spend totals and breakdowns instead of paging through transactions and summing them client-side. Pair it with a `transactionDate` filter to bound the period and `size=1` to keep the response compact — the numbers come back in `aggregations`.<br/><br/>Example — spend per app for 2026 year-to-date (`aggs` and `filters` are JSON and must be URL-encoded; shown decoded here for readability):<br/><br/>```GET /transactions?size=1&filters=[{"key":"transactionDate","op":"dayOnOrAfter","value":"2026-01-01"},{"key":"transactionDate","op":"dayOnOrBefore","value":"2026-08-31"}]&aggs={"field":"appName","aggregationType":"groupBy","options":{"size":100,"sort":{"order":"desc","aggFunc":"sum","field":"amount"}},"aggs":[{"field":"amount","aggregationType":"metric","options":{"metricFunction":"sum"}}]}```<br/><br/>Reading the result — in a `groupBy` bucket, `value` is the **transaction count**, not the amount. The metric you asked for is in the bucket's own `aggregations`: `[{"key":"slack","value":37,"aggregations":{"amount":106414875}}]` means 37 transactions totalling 1064148.75 in display currency. Reading `value` as money is the most common way to get this wrong.<br/><br/>A trailing `{"key":"Other"}` bucket rolls up everything past `options.size` (max 100) and carries no `aggregations` — skip it or widen the window.<br/><br/>Aggregated amounts are in the organization display currency, in minor units (cents). `appName` group keys are lower-cased (the field is indexed with a lowercase normalizer); group by `idApp` instead when you need the exact name casing.<br/><br/>
<p><ul><li>Rate limit: 100 requests per minute</li></ul></p>

# OpenAPI definition

````json
{
  "servers": [
    {
      "url": "https://api.toriihq.com/v1.0"
    }
  ],
  "info": {
    "title": "Torii API Documentation",
    "version": "v1.0",
    "description": "The Torii API provides an easy way to integrate your data in Torii with any external system. The API closely follows REST semantics, uses JSON to encode objects, and relies on standard HTTP codes to signal operation outcomes. Torii APIs consist of both proprietary and SCIM 2.0 APIs."
  },
  "x-readme": {
    "explorer-enabled": true
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Transactions"
    }
  ],
  "openapi": "3.0.0",
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    },
    "schemas": {
      "TransactionAmount": {
        "type": "object",
        "description": "Original amount with its currency, plus the value converted to the org display currency",
        "nullable": true,
        "properties": {
          "value": {
            "type": "integer",
            "description": "Original amount (or the modified amount, if set) in minor currency units (e.g., cents)",
            "example": 130000
          },
          "currency": {
            "type": "string",
            "description": "Original currency of the transaction",
            "example": "EUR"
          },
          "convertedValue": {
            "type": "integer",
            "description": "The amount converted to the org display currency, in minor currency units (e.g., cents)",
            "example": 150000
          }
        }
      },
      "mappingStatus": {
        "type": "string",
        "description": "Mapping status of the transaction",
        "example": "mapped",
        "enum": [
          "ignored",
          "recommend_ignore",
          "recommend_map",
          "unknown",
          "mapped",
          "archived"
        ]
      },
      "Transaction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier",
            "example": 1000,
            "minimum": 1
          },
          "idApp": {
            "type": "integer",
            "description": "Unique app identifier",
            "example": 1000,
            "nullable": true,
            "minimum": 1,
            "maximum": 2147483647
          },
          "appName": {
            "type": "string",
            "description": "Name of the matched app",
            "example": "Salesforce",
            "nullable": true
          },
          "idAppAccount": {
            "type": "integer",
            "description": "Unique app account identifier",
            "example": 1000,
            "nullable": true,
            "minimum": 1
          },
          "appAccountName": {
            "type": "string",
            "description": "App account name",
            "example": "Production account",
            "nullable": true
          },
          "idUpload": {
            "type": "integer",
            "description": "Upload identifier",
            "example": 1000,
            "nullable": true,
            "minimum": 1
          },
          "fileName": {
            "type": "string",
            "description": "Name of the source file the transaction was imported from",
            "example": "expenses-q1.csv",
            "nullable": true
          },
          "transactionDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date of the transaction",
            "example": "2022-02-03",
            "nullable": true
          },
          "origTransactionDate": {
            "type": "string",
            "format": "date-time",
            "description": "Original date of the transaction",
            "nullable": true
          },
          "amount": {
            "$ref": "#/components/schemas/TransactionAmount"
          },
          "source": {
            "type": "string",
            "description": "Source the transaction was ingested from (e.g., netsuite, expensify, billcom, csv, cdw)",
            "example": "netsuite",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Transaction description",
            "example": "Salesforce subscription",
            "nullable": true
          },
          "extraInfo": {
            "type": "string",
            "description": "Additional information from the source system",
            "example": "PO-4821",
            "nullable": true
          },
          "department": {
            "type": "string",
            "description": "Department",
            "example": "Engineering",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "description": "Domain",
            "example": "acme.com",
            "nullable": true
          },
          "externalAccountId": {
            "type": "string",
            "description": "GL account identifier in the source system",
            "example": "60000",
            "nullable": true
          },
          "externalAccountName": {
            "type": "string",
            "description": "GL account name in the source system",
            "example": "Software Subscriptions",
            "nullable": true
          },
          "mappingStatus": {
            "$ref": "#/components/schemas/mappingStatus"
          },
          "mappingLogic": {
            "type": "string",
            "description": "How the transaction was matched to an app",
            "example": "manually",
            "nullable": true
          },
          "mappingReason": {
            "type": "string",
            "description": "Why the transaction has its matching status, as recorded by the matching rules. Empty when no rule matched.",
            "example": "Search term \"salesforce\" is the longest found",
            "nullable": true
          },
          "reportedBy": {
            "type": "integer",
            "description": "Unique user identifier",
            "example": 1000,
            "nullable": true,
            "minimum": 1
          },
          "reportedByFullName": {
            "type": "string",
            "description": "Full name of the user who reported the transaction",
            "example": "Tony Stark",
            "nullable": true
          },
          "idExternalTransaction": {
            "type": "string",
            "description": "Identifier of the transaction in the source system",
            "example": "INV-1001",
            "nullable": true
          }
        }
      },
      "Transactions": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Transaction"
        }
      },
      "Model17": {
        "type": "object",
        "description": "Transactions",
        "properties": {
          "transactions": {
            "$ref": "#/components/schemas/Transactions"
          },
          "aggregations": {
            "x-meta": {
              "className": "aggregations"
            },
            "nullable": true,
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AggregationBucket"
                }
              }
            ]
          },
          "count": {
            "type": "integer",
            "description": "The number of results returned in this response",
            "example": 100
          },
          "total": {
            "type": "integer",
            "description": "The total number of results",
            "example": 1000
          },
          "nextCursor": {
            "type": "string",
            "description": "A base64 string indicating the offset from which to start. <br>Pass the value of `nextCursor` returned from the previous call to get the next set of results",
            "example": "WzE0NjM1Mzg4NTcsIjY1NDMyMyJd"
          }
        }
      },
      "AggregationBucket": {
        "type": "object",
        "properties": {
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "value": {
            "type": "number",
            "nullable": true
          },
          "groupCount": {
            "type": "integer"
          },
          "aggregations": {
            "type": "string",
            "description": "Nested aggregations with the same structure as the parent"
          }
        },
        "required": [
          "key"
        ]
      }
    }
  },
  "paths": {
    "/transactions": {
      "get": {
        "summary": "List transactions",
        "operationId": "getTransactions",
        "description": "Returns recognized (mapped) expense transactions by default.<br/><br/>Request `mappingReason` in `fields` to see why a transaction has its matching status (e.g. `The ignored word \"trip\" was found`, `Search term \"atlassian\" is the longest found`).<br/><br/>`amount` is an object: `value`/`currency` are the original transaction amount; `convertedValue` is that amount in the organization display currency. Values are in minor currency units (e.g., cents).<br/><br/>Cursor-paginated: pass `size` for the page size and the returned `nextCursor` as `cursor` for the next page.<br/><br/>Sort with `sort=<field>:asc|desc`; sorting by `amount` uses the display-currency converted value. See `transactionSortSchema` for the sortable fields.<br/><br/>Bound a period with `filters` on `transactionDate`, using the `dayOnOrAfter` / `dayOnOrBefore` operators — they match whole days, so a time component in the value is ignored rather than cutting that day short.<br/><br/>Use `aggs` for spend totals and breakdowns instead of paging through transactions and summing them client-side. Pair it with a `transactionDate` filter to bound the period and `size=1` to keep the response compact — the numbers come back in `aggregations`.<br/><br/>Example — spend per app for 2026 year-to-date (`aggs` and `filters` are JSON and must be URL-encoded; shown decoded here for readability):<br/><br/>```GET /transactions?size=1&filters=[{\"key\":\"transactionDate\",\"op\":\"dayOnOrAfter\",\"value\":\"2026-01-01\"},{\"key\":\"transactionDate\",\"op\":\"dayOnOrBefore\",\"value\":\"2026-08-31\"}]&aggs={\"field\":\"appName\",\"aggregationType\":\"groupBy\",\"options\":{\"size\":100,\"sort\":{\"order\":\"desc\",\"aggFunc\":\"sum\",\"field\":\"amount\"}},\"aggs\":[{\"field\":\"amount\",\"aggregationType\":\"metric\",\"options\":{\"metricFunction\":\"sum\"}}]}```<br/><br/>Reading the result — in a `groupBy` bucket, `value` is the **transaction count**, not the amount. The metric you asked for is in the bucket's own `aggregations`: `[{\"key\":\"slack\",\"value\":37,\"aggregations\":{\"amount\":106414875}}]` means 37 transactions totalling 1064148.75 in display currency. Reading `value` as money is the most common way to get this wrong.<br/><br/>A trailing `{\"key\":\"Other\"}` bucket rolls up everything past `options.size` (max 100) and carries no `aggregations` — skip it or widen the window.<br/><br/>Aggregated amounts are in the organization display currency, in minor units (cents). `appName` group keys are lower-cased (the field is indexed with a lowercase normalizer); group by `idApp` instead when you need the exact name casing.<br/><br/>\n<p><ul><li>Rate limit: 100 requests per minute</li></ul></p>",
        "parameters": [
          {
            "name": "idApp",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "Filter transactions by app id",
              "example": 1000,
              "minimum": 1,
              "maximum": 2147483647
            },
            "description": "Filter transactions by app id"
          },
          {
            "name": "source",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Filter transactions by source",
              "example": "netsuite"
            },
            "description": "Filter transactions by source"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Free-text search on transaction description",
              "maxLength": 800
            },
            "description": "Free-text search on transaction description"
          },
          {
            "name": "mappingStatus",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Filter by mapping status (comma-separated). Defaults to `mapped`. Unmatched statuses (`unknown`, `recommend_map`) are unavailable when the org hides unmatched expenses.",
              "default": "mapped"
            },
            "description": "Filter by mapping status (comma-separated). Defaults to `mapped`. Unmatched statuses (`unknown`, `recommend_map`) are unavailable when the org hides unmatched expenses."
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Sort order, e.g. `transactionDate:desc`. Sortable fields: `id`, `transactionDate`, `amount`, `description`, `source`, `appName`, `appAccountName`, `reportedByFullName`, `mappingStatus`, `mappingLogic`, `idExternalTransaction`, `externalAccountId`, `externalAccountName`. Sorting by `amount` uses the display-currency converted value."
            },
            "description": "Sort order, e.g. `transactionDate:desc`. Sortable fields: `id`, `transactionDate`, `amount`, `description`, `source`, `appName`, `appAccountName`, `reportedByFullName`, `mappingStatus`, `mappingLogic`, `idExternalTransaction`, `externalAccountId`, `externalAccountName`. Sorting by `amount` uses the display-currency converted value."
          },
          {
            "name": "size",
            "in": "query",
            "schema": {
              "type": "integer",
              "description": "The max amount of results to return",
              "example": 1000,
              "minimum": 1,
              "maximum": 1000
            },
            "description": "The max amount of results to return"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "A base64 string indicating the offset from which to start. <br>Pass the value of `nextCursor` returned from the previous call to get the next set of results",
              "example": "WzE0NjM1Mzg4NTcsIjY1NDMyMyJd"
            },
            "description": "A base64 string indicating the offset from which to start. <br>Pass the value of `nextCursor` returned from the previous call to get the next set of results"
          },
          {
            "name": "fields",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "List of fields to return for each transaction.<br>Allowed fields: `id`, `idApp`, `appName`, `idAppAccount`, `appAccountName`, `idUpload`, `fileName`, `transactionDate`, `origTransactionDate`, `amount`, `source`, `description`, `extraInfo`, `department`, `domain`, `externalAccountId`, `externalAccountName`, `mappingStatus`, `mappingLogic`, `mappingReason`, `reportedBy`, `reportedByFullName`, `idExternalTransaction`",
              "example": "id,idApp,transactionDate,amount,source",
              "default": "id,idApp,transactionDate,amount,source,description,mappingStatus"
            },
            "description": "List of fields to return for each transaction.<br>Allowed fields: `id`, `idApp`, `appName`, `idAppAccount`, `appAccountName`, `idUpload`, `fileName`, `transactionDate`, `origTransactionDate`, `amount`, `source`, `description`, `extraInfo`, `department`, `domain`, `externalAccountId`, `externalAccountName`, `mappingStatus`, `mappingLogic`, `mappingReason`, `reportedBy`, `reportedByFullName`, `idExternalTransaction`"
          },
          {
            "name": "filters",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "Filters expression — accepts either shape: (1) Flat array of filter objects, AND-combined. Each item is {key, op, value}. (2) Array of filter groups, OR-combined. Each item is {id, filters} where filters is a flat array. See *_fields_metadata for valid keys and per-filterType operators. Omit value for isSet/isNotSet/relativeDateToday/exists/notExists. Use an array value for anyOf/allOf/noneOf/isExactly. Sent on the wire as a JSON-encoded string.",
              "example": "[{\"key\":\"source\",\"op\":\"equals\",\"value\":\"netsuite\"}]"
            },
            "description": "Filters expression — accepts either shape: (1) Flat array of filter objects, AND-combined. Each item is {key, op, value}. (2) Array of filter groups, OR-combined. Each item is {id, filters} where filters is a flat array. See *_fields_metadata for valid keys and per-filterType operators. Omit value for isSet/isNotSet/relativeDateToday/exists/notExists. Use an array value for anyOf/allOf/noneOf/isExactly. Sent on the wire as a JSON-encoded string."
          },
          {
            "name": "aggs",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "JSON string representing aggregation configuration. Structure: '{\"field\":\"string\",\"aggregationType\":\"metric|groupBy|date_range|date_histogram\",\"options\":{\"size\":\"integer\",\"sort\":{\"field\":\"string\",\"order\":\"desc|asc\",\"aggFunc\":\"total|sum|avg|max|min\"},\"metricFunction\":\"total|sum|avg|max|min\",\"dateHistogramOptions\":{\"datePeriod\":\"hourly|daily|weekly|monthly|quarterly|yearly\",\"hardBounds\":{\"min\":\"string\",\"max\":\"string\"},\"extendedBounds\":{\"min\":\"string\",\"max\":\"string\"},\"filterEmptyBuckets\":\"boolean\"}},\"aggs\":{\"field\":\"string\",\"aggregationType\":\"metric|groupBy|date_range|date_histogram\",\"options\":{\"metricFunction\":\"total|sum|avg|max|min\"}}}'. `metricFunction` is REQUIRED when aggregationType is \"metric\". For aggregationType \"date_histogram\", `options.dateHistogramOptions` is REQUIRED and `datePeriod`, `hardBounds`, `extendedBounds` and `filterEmptyBuckets` all live INSIDE it — putting them directly on `options` is rejected with 400 \"options.dateHistogramOptions\" is required. The nested \"aggs\" is OPTIONAL and, when present, must be a JSON OBJECT with this same structure — never a JSON-encoded string.",
              "example": "{\"field\":\"transactionDate\",\"aggregationType\":\"date_histogram\",\"options\":{\"dateHistogramOptions\":{\"datePeriod\":\"monthly\"}},\"aggs\":{\"field\":\"amount\",\"aggregationType\":\"metric\",\"options\":{\"metricFunction\":\"sum\"}}}",
              "x-meta": {
                "className": "aggs"
              }
            },
            "description": "JSON string representing aggregation configuration. Structure: '{\"field\":\"string\",\"aggregationType\":\"metric|groupBy|date_range|date_histogram\",\"options\":{\"size\":\"integer\",\"sort\":{\"field\":\"string\",\"order\":\"desc|asc\",\"aggFunc\":\"total|sum|avg|max|min\"},\"metricFunction\":\"total|sum|avg|max|min\",\"dateHistogramOptions\":{\"datePeriod\":\"hourly|daily|weekly|monthly|quarterly|yearly\",\"hardBounds\":{\"min\":\"string\",\"max\":\"string\"},\"extendedBounds\":{\"min\":\"string\",\"max\":\"string\"},\"filterEmptyBuckets\":\"boolean\"}},\"aggs\":{\"field\":\"string\",\"aggregationType\":\"metric|groupBy|date_range|date_histogram\",\"options\":{\"metricFunction\":\"total|sum|avg|max|min\"}}}'. `metricFunction` is REQUIRED when aggregationType is \"metric\". For aggregationType \"date_histogram\", `options.dateHistogramOptions` is REQUIRED and `datePeriod`, `hardBounds`, `extendedBounds` and `filterEmptyBuckets` all live INSIDE it — putting them directly on `options` is rejected with 400 \"options.dateHistogramOptions\" is required. The nested \"aggs\" is OPTIONAL and, when present, must be a JSON OBJECT with this same structure — never a JSON-encoded string."
          }
        ],
        "tags": [
          "Transactions"
        ],
        "responses": {
          "200": {
            "description": "Transactions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Model17"
                }
              }
            }
          }
        }
      }
    }
  }
}
````