> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/payments/llms.txt)
> Source: https://docs.saleor.io/api-reference/payments/queries/transactions

# transactions Query

List of transactions. For apps with `MANAGE_ORDERS` permission, returns all transactions. For apps with just `HANDLE_PAYMENTS` permission, returns only transactions created by that app. For staff users, returns transactions from orders and checkouts in channels they have access to.

Added in Saleor 3.22

Requires one of the following permissions: HANDLE\_PAYMENTS MANAGE\_ORDERS

```graphql
transactions(
  where: TransactionWhereInput
  sortBy: TransactionSortingInput
  before: String
  after: String
  first: Int
  last: Int
): TransactionCountableConnection
```

Details

```graphql
type TransactionCountableConnection {
  pageInfo: PageInfo!
  edges: [TransactionCountableEdge!]!
  totalCount: Int
}
```

<a id="arguments"></a>

### Arguments

<a id="where"></a>

#### [`where`](#where) ● [`TransactionWhereInput`](/api-reference/payments/inputs/transaction-where-input.md)

Where filtering options for transactions.

<a id="sort-by"></a>

#### [`sortBy`](#sort-by) ● [`TransactionSortingInput`](/api-reference/payments/inputs/transaction-sorting-input.md)

Sort transactions.

Added in Saleor 3.23

<a id="before"></a>

#### [`before`](#before) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come before the specified cursor.

<a id="after"></a>

#### [`after`](#after) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come after the specified cursor.

<a id="first"></a>

#### [`first`](#first) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="last"></a>

#### [`last`](#last) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="type"></a>

### Type

<a id="transactioncountableconnection"></a>

#### [`TransactionCountableConnection`](/api-reference/payments/objects/transaction-countable-connection.md)
