# Read a bank transaction

One imported bank line — source, posted date, amount, account name and last four, description and memo — with how much of it is allocated, how much is unallocated and whether it is fully allocated. A cost, an allocation and an exception have no by-id read of their own — those are read through their lists.

Access class: `workspace`.

## Endpoint

`GET /v1/accounting/bank-transactions/{id}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "accountLast4": "string",
    "accountName": "string",
    "allocatedMinor": 1,
    "amountMinor": 1,
    "createdAt": "string",
    "currency": "string",
    "description": "string",
    "detail": {},
    "direction": "string",
    "externalId": "",
    "fullyAllocated": true,
    "id": 1,
    "memo": "string",
    "postedOn": "string",
    "source": "string",
    "unallocatedMinor": 1,
    "updatedAt": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
