# Retrieve a bank transaction

Operation ID: `getBankTransaction`

Group: Banking › Bank Transactions

[Open in the interactive reference](https://docs.api.lensing.ai/lensing/v1/endpoints/getBankTransaction)

`GET /banking/bank-transactions/{id}`

Read-only: Reads and returns; changes nothing.

Retrieves a bank transaction. A bank transaction is a single movement of funds on a bank account. Use the transaction's id, not its bankTransactionNumber. There is no direction field: a negative amount is money out and a positive amount is money in.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Api-Version` | header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version `v1`. |
| `id` | path | string | yes | The unique identifier of the bank transaction you want to retrieve. Example: `"c31f8a76-40b2-4d5e-9a03-6f18b7e2c904"`. |

## Response

`200` Success

Under `data` (getBankTransactionOutput):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The unique identifier for the bank transaction. |
| `bankTransactionNumber` | string | no | The bank transaction number. Absent until one has been assigned. |
| `externalTransactionId` | string | yes | The identifier this transaction has in the bank or aggregator it was imported from. Unique across transactions. |
| `externalPaymentId` | string | no | The end-to-end payment identifier supplied by the integration, where the bank provides one. |
| `endToEndId` | string | no | A payment reference recovered from the external transaction data by the integration. |
| `externalCreationDate` | date | yes | The date the transaction was created in the source bank, not the date it was imported. Format YYYY-MM-DD. |
| `description` | string | no | The description recorded on the transaction. |
| `externalDescription` | string | no | The description as the bank supplied it, unmodified. |
| `additionalInformation` | string | no | Any additional detail the bank supplied with the transaction. |
| `payeeOrPayor` | string | no | The name of the counterparty the money went to or came from. |
| `amount` | decimal | no | The transaction amount, as a decimal in the transaction currency. A negative amount is money leaving the account and a positive amount is money arriving. |
| `currency` | string | no | The currency of the transaction. Format ISO 4217, for example 'USD'. It governs the amount. |
| `matchStatus` | string | no | The reconciliation state of the transaction, computed from its matches. The states are 'unmatched', 'suggested', 'pending', 'matched', 'autoMatched' and 'needsAttention'. |
| `matchId` | string | no | The unique identifier for the match this transaction belongs to. Absent when the transaction is unmatched. There is no endpoint for it. |
| `notes` | string | no | Free-form notes recorded against the transaction. |
| `transactionPaymentMethod` | string | no | How the payment was made, as reported by the integration. The values are 'ACH', 'WIRE' and 'Unknown'. |
| `bankAccountId` | string | no | The bank account this transaction belongs to. See id on GET banking/bank-accounts/:id. |
| `accountName` | string | no | The name of the linked chart-of-accounts account. Suffixed with '(Inactive)' when the account link is broken. |
| `sourceBankName` | string | no | The name of the bank the account is held at. |
| `entityName` | string | no | The name of the legal entity the owning bank account belongs to. |
| `lastModifiedDate` | date-time | yes | The date and time the bank transaction last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ. |

```json
{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "bankTransactionNumber": "<bankTransactionNumber>",
    "externalTransactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "externalPaymentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "endToEndId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "externalCreationDate": "2026-01-15",
    "description": "<description>",
    "externalDescription": "<externalDescription>",
    "additionalInformation": "<additionalInformation>",
    "payeeOrPayor": "<payeeOrPayor>",
    "amount": "19.99",
    "currency": "<currency>",
    "matchStatus": "<matchStatus>",
    "matchId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "notes": "<notes>",
    "transactionPaymentMethod": "<transactionPaymentMethod>",
    "bankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "accountName": "<accountName>",
    "sourceBankName": "<sourceBankName>",
    "entityName": "<entityName>",
    "lastModifiedDate": "2026-01-15T09:30:00.000Z"
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}
```

## Errors

| Code | Status |
| --- | --- |
| `NOT_FOUND` | 400 |

## Statuses

- `400` — Invalid request or business failure. Codes: NOT_FOUND
- `401` — The request carries no valid access token.
- `403` — Not authorized
- `404` — Not found
- `429` — Too many requests from this client address. The response has no body and no `Retry-After` header.
- `500` — Internal server error
