---
title: "Update a transaction"
method: PUT
path: "/api/external/firm/v1/companies/{company_id}/transactions/{id}"
tags: ["Transactions"]
deprecated: true
---

# Update a transaction

`PUT /api/external/firm/v1/companies/{company_id}/transactions/{id}`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/firm/v1/companies/{company_id}/transactions/{id}`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `transactions:all`

> **Deprecated.**

> ⚠️ This endpoint is deprecated. Use [Update a transaction](https://pennylane.readme.io/reference/updatetransaction) from the Company API v2 instead. Your firm token can call it for any company of your firm through the `X-Company-Id` header. [Learn how to use your firm token with the Company API v2](https://pennylane.readme.io/docs/firm-api#using-your-firm-token-with-the-company-api-v2).

This endpoint returns the updated transaction.


> ℹ️
> This endpoint requires the following scope: `transactions:all`

## Path parameters

- `company_id` integer, required
- `id` integer, required

## Request body

- union
  - object
    - `customer_id` integer, nullable, required: The id of the customer
  - object
    - `supplier_id` integer, nullable, required: The id of the supplier

## Response `200`

Returns the updated transaction

- object
  - `id` integer, required: Transaction identifier
  - `label` string, nullable, required
  - `attachment_required` boolean, required: When `true`, the transaction need to be justified and matched with an invoice
  - `date` string, date, required
  - `outstanding_balance` string, nullable, required: This is the balance of the transaction after it has been processed.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `archived_at` string, date-time, nullable, required
  - `currency` union, required
    - 'EUR' | 'USD' | 'GBP' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'FJD' | 'FKP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SLE' | 'SOS' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VEF' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMK' | 'ZMW' | 'ZWL'
    - unknown
  - `currency_amount` string, required: Amount in the currency of the transaction.
  - `amount` string, required: Transaction amount in euros. If the currency is euro, `currency_amount` and `amount` are identical.
  - `currency_fee` string, nullable, required: Fee in the currency of the transaction.
  - `fee` string, nullable, required: Transaction fee in euros. If the currency is euro, `currency_fee` and `fee` are identical.
  - `journal` object, required
    - `id` integer, required
    - `url` string, required
  - `bank_account` object, required
    - `id` integer, required
    - `url` string, required
  - `pro_account_expense` object, nullable, required
    - `employee` object, nullable, required
      - `id` integer, required
      - `first_name` string, required
      - `last_name` string, required
    - `card_masked_number` string, required
  - `customer` object, nullable, required
    - `id` integer, required
    - `url` string, required
  - `supplier` object, nullable, required
    - `id` integer, required
    - `url` string, required
  - `categories` object[], required
    - `id` integer, required
    - `label` string, required
    - `weight` string, required
    - `category_group` object, required
      - `id` integer, required
    - `analytical_code` string, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `404`: The resource was not found
- `422`: Unprocessable content

## Changes

- **2026-11-03** `256ecc544f85`: 1 warning, 1 info
  - added the new `VES` enum value to the `currency/oneOf[subschema #1]/` response property for the response status `200`
  - endpoint deprecated

[Operation history](https://skmtc.dev/pennylane/apis/referentials/changes/api/external/firm/v1/companies/:company_id/transactions/:id/put.md)

---

[API](https://skmtc.dev/pennylane/apis/referentials.md) - [All operations](https://skmtc.dev/pennylane/apis/referentials/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/referentials/revisions/256ecc544f85?raw)
