---
title: "Update Deposit Transaction Cost Basis"
method: PATCH
path: "/tax/accounts/{accountId}/transactions/{transactionId}"
tags: ["Tax Reporting"]
---

# Update Deposit Transaction Cost Basis

`PATCH /tax/accounts/{accountId}/transactions/{transactionId}`

## Request

- Base URL: `https://api.anchorage-staging.com/v2`
- URL: `https://api.anchorage-staging.com/v2/tax/accounts/{accountId}/transactions/{transactionId}`
- Auth: API key in header `Api-Access-Key`
- TypeScript: <https://skmtc.dev/anchorage/apis/anchorage-digital-api-reference/docs/tax/accounts/:accountId/transactions/:transactionId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update the cost basis for a specific transaction. Allows customers to submit cost basis for assets that are deposited at Anchorage. Note, one deposit can contain up to 100 individual tax lots.

## Path parameters

- `accountId` string, required
- `transactionId` string, required

## Request body

- TaxTransactionUpdateCostBasisRequest: Request to update cost basis for a transaction
  - `lots` TaxTransactionInputLot[], required: An array of tax lots that are part of this transaction. Each lot specifies the quantity, cost basis and the acquisition date.
    - `acquisitionDatetime` string, date-time, required: ISO-8601 timestamp representing when this lot was originally acquired
    - `costBasis` string, required: The cost basis of this lot.
    - `quantity` string, required: The quantity of this lot.

## Response `200`

Successfully updated the transaction cost basis

- TaxTransactionUpdateCostBasisResponse: Response after updating transaction cost basis
  - `data` TaxTransactionUpdateCostBasisResponseId, required: Response data containing transaction ID
    - `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

---

[API](https://skmtc.dev/anchorage/apis/anchorage-digital-api-reference.md) - [All operations](https://skmtc.dev/anchorage/apis/anchorage-digital-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/anchorage/apis/anchorage-digital-api-reference/revisions/166864b1ec6d?raw)
