> For the complete documentation index, see [llms.txt](https://docs.lhv.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lhv.com/home/connect/services/account-reports/get-list-of-pending-and-rejected-transactions.md).

# Get List of Pending and Rejected Transactions

Service to retrieve a list of incoming pending and rejected transactions using the account number.

### Service Description <a href="#service-description" id="service-description"></a>

This synchronous service provides the status and details of an incoming payment before it has been booked to an account. It is intended for recent transactions from the past 14 days and is available only for incoming payments processed by LHV Bank UK.

The service supports master accounts, virtual IBANs (VIBANs), and indirect scheme participant accounts. The relevant account number must be provided as `accountNumber`.

**When to use**

* To track the status of an incoming payment expected on an account.

### Request <a href="#request" id="request"></a>

`GET` <https://connect.lhv.com/accounts/{accountNumber}/payments>

#### Path Parameters

| Name          | Description                                                                                                                                                           |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| accountNumber | <p>The IBAN or Sort Code + Account number (e.g. <code>04030700012345</code>).</p><p>Master account, VIBANs and indirect scheme participant accounts are supported</p> |

#### Query parameters

| Name       | Description                                                                                                             |
| ---------- | ----------------------------------------------------------------------------------------------------------------------- |
| `fromDate` | Optional date in `yyyy-MM-dd` format. Defaults to 14 days before today.                                                 |
| `toDate`   | Optional date in `yyyy-MM-dd` format. Defaults to today.                                                                |
| `status`   | Optional, repeatable parameter. Supported values are `Pending` and `Rejected`. If omitted, both statuses are requested. |
| `page`     | Optional zero-based page number. Defaults to `0`.                                                                       |
| `size`     | Optional page size. Defaults to `20`, maximum `100`.                                                                    |

#### Headers&#x20;

Applicable for service providers and service provider users.

| Name           | Description      |
| -------------- | ---------------- |
| Client-Code    | `customer value` |
| Client-Country | `customer value` |

#### Body

This request doesn't have a body.

### Response <a href="#response" id="response"></a>

**Successful Response**

The response contains a list of incoming payments with a status of **Pending** or **Rejected**, including details such as the amount, counterparty, and the unique payment ID assigned by LHV Bank.

**Error responses**

* `400 Bad Request` — invalid status, dates, page, or size
* `403 Forbidden` — access denied for the account
* `404 Not Found` — resource not found
* `503 Service Unavailable` — technical failure

### Example

{% tabs %}
{% tab title="200 - payment status and details" %}

```json
{
  "Data": {
    "Transaction": [
      {
        "AccountId": "GB98LHVB04030700012345",
        "Amount": {
          "Amount": "600",
          "Currency": "GBP"
        },
        "CreditDebitIndicator": "Credit",
        "Status": "Pending",
        "ValueDateTime": "2026-09-08",
        "CreditorAccount": {
          "Identification": "04030700012346",
          "Name": "Connect Demo Company"
        },
        "DebtorAccount": {
          "Identification": "04030700012347",
          "Name": "Katie Bell"
        },
        "TransactionId": "2CB9B0A3-5B2E-4F9B-AFB5-0CD78BA5E059"
      }
    ]
  },
  "Links": {},
  "Meta": {
    "TotalElements": 1,
    "Page": 0,
    "PageSize": 20
  }
}
```

{% endtab %}

{% tab title="200 - no incoming payments" %}

```json
{
    "Data": {
        "Transaction": []
    },
    "Links": {},
    "Meta": {
        "TotalElements": 0,
        "Page": 1,
        "PageSize": 20
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lhv.com/home/connect/services/account-reports/get-list-of-pending-and-rejected-transactions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
