---
title: "Get posted vendor history for a bank transaction"
method: GET
path: "/bank-transactions/{bankTransactionId}/vendor-history"
tags: ["Banking"]
---

# Get posted vendor history for a bank transaction

`GET /bank-transactions/{bankTransactionId}/vendor-history`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/bank-transactions/{bankTransactionId}/vendor-history`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Returns up to four most recent posted same-vendor entries in the selected company (x-organization-id), including identifiable imported/register entries. Each result labels its currency. Excludes the current transaction, draft, deleted, voided, reversed and mixed-currency entries. Exact normalized vendor identities are used without AI or substring matching. Split offset accounts retain their individual amounts. Requires bank_transactions:read or bank_transactions:read_write for OAuth and view:data permission.

## Path parameters

- `bankTransactionId` string, uuid, required

## Headers

- `x-organization-id` string, uuid

## Response `200`

Posted vendor history, newest ledger date first; journal entry UUID descending breaks ties

- object
  - `history` object[], required
    - `journalEntryId` string, uuid, required
    - `date` string, date, required
    - `description` string, required
    - `amountCents` integer, required: Signed bank movement in integer cents
    - `currencyCode` string, required: This historical transaction's currency; history excludes mixed-currency entries
    - `accounts` object[], required
      - `id` string, uuid, required
      - `code` string, required
      - `name` string, required
      - `amountCents` integer, required: Offset account debit minus credit in integer cents, aggregated by account

## Other responses

- `404`: Source bank transaction not found in the selected company
- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
