> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryPaymentTransactions

> Queries bank and payment-provider transactions imported by the payment reconciliation. All filters are optional and combine with AND. bookingDateAfter and bookingDateBefore are strict bounds (greater than / less than) on bookingDate; any UTC offset is accepted and converted to the Wawi server's time zone, see bookingDate. Transactions hidden in JTL-Wawi's payment reconciliation, either by an import filter of the payment module or by a user's 'hide transaction' action, are not returned. Transactions that are not yet completed are included and can be told apart by status. Default order is bookingDate, then id, unless sortBy is supplied. When paging with a custom sortBy, append id as the last sort field so that pages stay stable across requests.



**query** `QueryPaymentTransactions(bookingType: PaymentTransactionBookingType, paymentAccountId: ID, first: Int, after: String, last: Int, before: String, where: PaymentTransactionFilterInput, order: [PaymentTransactionSortInput!]): QueryPaymentTransactionsConnection`

## Arguments

**`bookingType`**: `PaymentTransactionBookingType`

Returns only transactions of this booking type, given as the member name (case-insensitive) or its number. Omit for all types. Unrecognised names and numbers outside the listed set are rejected with 400.

---

**`paymentAccountId`**: `ID`

Returns only transactions imported into this payment account. Omit for all accounts.

---

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`after`**: `String`

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

---

**`last`**: `Int`

Returns the last _n_ elements from the list.

---

**`before`**: `String`

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

---

**`where`**: `PaymentTransactionFilterInput`

Filters the elements of the list. Only elements that match the given filter are returned.

---

**`order`**: `[PaymentTransactionSortInput!]`

Sorts the elements of the list. Several entries sort by the first, then by the next.

## Returns

`QueryPaymentTransactionsConnection`

**`pageInfo`**: `PageInfo!`

Information to aid in pagination.

---

**`edges`**: `[QueryPaymentTransactionsEdge!]`

A list of edges.

---

**`nodes`**: `[PaymentTransaction!]`

A flattened list of the nodes.

---

**`totalCount`**: `Int!`

Identifies the total count of items in the connection.

## Examples

```graphql Query
query QueryPaymentTransactions {
  QueryPaymentTransactions {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        id
        paymentAccountId
        transactionId
        amount
        currency
        bookingDate
      }
    }
    nodes {
      id
      paymentAccountId
      transactionId
      amount
      currency
      bookingDate
    }
    totalCount
  }
}
```

```json Response
{
  "data": {
    "QueryPaymentTransactions": {
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string",
        "endCursor": "string"
      },
      "edges": [
        {
          "cursor": "string",
          "node": {
            "id": "id",
            "paymentAccountId": "id",
            "transactionId": "string",
            "amount": "value",
            "currency": "string",
            "bookingDate": "value"
          }
        }
      ],
      "nodes": [
        {
          "id": "id",
          "paymentAccountId": "id",
          "transactionId": "string",
          "amount": "value",
          "currency": "string",
          "bookingDate": "value"
        }
      ],
      "totalCount": 1
    }
  }
}
```
