---
title: "GET /transaction/aggregation"
method: GET
path: "/transaction/aggregation"
---

# GET /transaction/aggregation

`GET /transaction/aggregation`

Get transaction aggregations

## Query parameters

- `accountId` string
- `filter:legalEntityId` string
- `filter:accountId` string
- `filter:virtualAccountId` string
- `filter:from_date` string
- `filter:to_date` string
- `filter:from_authorized_at` string
- `filter:to_authorized_at` string
- `filter:status` 'pending' | 'posted' | 'failed' — `pending` - The transaction is pending and has not been posted to the account yet (the balance doesn't reflect the transaction yet). `posted` - The transaction has been posted to the account and the balance reflects the transaction. `failed` - The transaction failed to post to the account
- `filter:detailed_status` 'pending' | 'canceled' | 'failed' | 'settled' | 'declined' | 'refund' | 'reversed' | 'returned' | 'dispute' — - `pending`: Used for any transaction type that has not posted to the account yet, but is affecting the account's available balance. - `canceled`: Used for any transaction that was canceled. - `failed`: Used for any transaction that failed to post to the account. - `settled`: Used for any transaction that has posted to the account, except for card refunds, which use the `refund` status, and ACH returns, which use the `returned` status. - `declined`: Used for card transactions that were declined. - `refund`: Used for card transactions that were refunded, increasing the account's available and posted balances. - `reversed`: Used for card transactions that were authorized, but reversed by the merchant. - `returned`: Used for ACH returns. In the case of an ACH return, there are two possibilities: (1) if the ACH settled and then returned, then there will be one transaction with status `settled` for the ACH settling, and one transaction with status `returned` for the ACH return. Both of these are posted transactions. (2) if the ACH returned before settling, then there will only be one transaction with status `canceled`. - `dispute`: Used for disputed card transactions.
- `filter:cardId` string

## Response `200`

OK

- object
  - `count` number, required — The total count of transactions.
  - `totalIn` number, required — The total amount of money that arrived into the account, in cents.
  - `totalOut` number, required — The total amount of money that was sent out of the account, in cents.
  - `netChange` number, required — The net change, which is `totalIn` + `totalOut`.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `429` — TooManyRequests
- `500` — Internal Error

---

[API](https://skmtc.net/slashfi/apis/slash-public-api.md) · [All operations](https://skmtc.net/slashfi/apis/slash-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slashfi/slash-public-api/versions/773c90f079c5/schema)
