---
title: "Update Transaction Cost Basis"
method: PATCH
path: "/tax/transaction/{transactionId}"
tags: ["Tax"]
---

# Update Transaction Cost Basis

`PATCH /tax/transaction/{transactionId}`

Permissions required: **Subaccount**


Update the cost basis for a deposit or withdraw transaction.

## Path parameters

- `transactionId` string, required

## Request body

- UpdateTaxTransactionRequest
  - `acquisitionDatetime` string, date-time — ISO-8601 timestamp representing when the lot was acquired.
  - `assetType` string — A string representing the asset type of the transaction.
  - `data` TaxTransactionCostBasis — Details of the transaction cost basis
    - `assetType` string, required — A string representing the asset type of the transaction.
    - `costBasis` string — The cost basis of the transaction.
    - `quantity` string, required — The quantity of the transaction.
  - `lots` TransactionTaxLot[] — An Array of the Tax lots that are part of this transaction
    - `acquisitionDatetime` string, date-time — ISO-8601 timestamp representing when the lot was acquired.
    - `cost` string, required — Cost basis of the lot. Will not Not appear if the lot is missing cost basis.
    - `quantity` string, required — Amount of the Asset in the lot
  - `type` 'DEPOSIT' | 'WITHDRAW', required — A string representing the type of the transaction. Must match the original transaction type.

## Response `200`

Successfully updated the transaction

- UpdateTaxTransactionResponse
  - `data` UpdateTaxTransactionResponseId, required
    - `transactionId` string, required — The unique identifier of the transaction.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Internal Server Error
- `501` — Not Implemented Error

---

[API](https://skmtc.net/anchorage/apis/anchorage-digital-api-reference.md) · [All operations](https://skmtc.net/anchorage/apis/anchorage-digital-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anchorage/anchorage-digital-api-reference/versions/166864b1ec6d/schema)
