---
title: "Edit an unposted feed transaction"
method: PATCH
path: "/bank-transactions/{bankTransactionId}"
tags: ["Banking"]
---

# Edit an unposted feed transaction

`PATCH /bank-transactions/{bankTransactionId}`

## Request

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

Edit memo (description), reference, payee (contactId), or class (classId) before posting. The row's class is copied to the category line when it posts. On posted rows only contactId may change (the customer/vendor posts nothing); other edits return 409 — un-post first, or use reclassify.

## Path parameters

- `bankTransactionId` string, uuid, required

## Request body

- object
  - `description` string
  - `reference` string, nullable
  - `contactId` string, uuid, nullable
  - `classId` string, uuid, nullable: Active class UUID from GET /classes, or null to clear
  - `allocationTemplateId` string, uuid, nullable: Class allocation UUID from GET /class-allocations; splits the category line across its classes on post. Setting one clears classId.

## Response `200`

Updated

## Other responses

- `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)
