---
title: "Update a transaction"
method: PUT
path: "/accounting/{connection_id}/transaction/{id}"
tags: ["accounting", "transaction"]
---

# Update a transaction

`PUT /accounting/{connection_id}/transaction/{id}`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- AccountingTransaction
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `memo` string
  - `total_amount` number
  - `tax_amount` number
  - `account_id` string
  - `reference` string
  - `sub_total_amount` number
  - `split_account_id` string
  - `payment_method` string
  - `payment_terms` string
  - `customer_message` string
  - `type` string
  - `lineitems` AccountingTransactionLineItem[]
    - `id` string
    - `unit_quantity` number
    - `unit_amount` number
    - `total_amount` number
    - `account_id` string
    - `object_type` string
    - `name` string
    - `description` string
    - `category_ids` string[]
    - `taxrate_id` string
  - `currency` string
  - `contacts` AccountingTransactionContact[]
    - `id` string, required
    - `is_customer` boolean
    - `is_supplier` boolean
  - `organization_id` string
  - `category_ids` string[]
  - `project_id` string
  - `transaction_at` string, date-time
  - `exchange_rate` number
  - `status` 'PENDING' | 'POSTED' | 'VOID' | 'OTHER'
  - `raw` object

## Response `200`

Successful

- AccountingTransaction
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `memo` string
  - `total_amount` number
  - `tax_amount` number
  - `account_id` string
  - `reference` string
  - `sub_total_amount` number
  - `split_account_id` string
  - `payment_method` string
  - `payment_terms` string
  - `customer_message` string
  - `type` string
  - `lineitems` AccountingTransactionLineItem[]
    - `id` string
    - `unit_quantity` number
    - `unit_amount` number
    - `total_amount` number
    - `account_id` string
    - `object_type` string
    - `name` string
    - `description` string
    - `category_ids` string[]
    - `taxrate_id` string
  - `currency` string
  - `contacts` AccountingTransactionContact[]
    - `id` string, required
    - `is_customer` boolean
    - `is_supplier` boolean
  - `organization_id` string
  - `category_ids` string[]
  - `project_id` string
  - `transaction_at` string, date-time
  - `exchange_rate` number
  - `status` 'PENDING' | 'POSTED' | 'VOID' | 'OTHER'
  - `raw` object

## Changes

- **2026-09-21** `669f9277e173` — 11 info
  - added the new optional request property `exchange_rate`
  - added the new optional request property `lineitems/items/taxrate_id`
  - added the new optional request property `status`
  - added the new optional request property `transaction_at`
  - …7 more
- **2026-08-08** `1f72720916e4` — 3 info
  - added the new optional request property `project_id`
  - added the enum value `project_id` to the property `items/` of the `query` request parameter `fields`
  - added the optional property `project_id` to the response with the `200` status
- **2026-07-31** `963bcc74f9e3` — 5 info
  - added the new optional request property `category_ids`
  - added the new optional request property `lineitems/items/category_ids`
  - added the enum value `category_ids` to the property `items/` of the `query` request parameter `fields`
  - added the optional property `category_ids` to the response with the `200` status
  - …1 more

[Change history](https://skmtc.dev/unified/apis/unified-to-api/changes/accounting/:connection_id/transaction/:id/put.md)

---

[API](https://skmtc.dev/unified/apis/unified-to-api.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api/revisions/ce0cfee83c14?raw)
